In [ ]:
. ./nbs_header.ps1
. ./core.ps1
In [ ]:
{ pwsh ../apps/builder/build.ps1 } | Invoke-Block
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ # DibParser (Polyglot)                                                       │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
#r 
@"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
dard2.1/FSharp.Control.AsyncSeq.dll"
#r 
@"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
0/System.Reactive.dll"
#r 
@"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/
netstandard2.0/System.Reactive.Linq.dll"
#r 
@"../../../../../../../.nuget/packages/argu/6.2.4/lib/netstandard2.0/Argu.dll"
#r 
@"../../../../../../../.nuget/packages/fparsec/2.0.0-beta2/lib/netstandard2.1/FP
arsec.dll"
#r 
@"../../../../../../../.nuget/packages/fparsec/2.0.0-beta2/lib/netstandard2.1/FP
arsecCS.dll"

── pwsh ────────────────────────────────────────────────────────────────────────
ls ~/.nuget/packages/argu

╭─[ 1.93s - stdout ]───────────────────────────────────────────────────────────╮
│                                                                              │
│     Directory: C:\Users\i574n\.nuget\packages\argu                           │
│                                                                              │
│ Mode                 LastWriteTime         Length[     │
│ 32;1m Name                                                                 │
│ ----                 -------------         ------ [      │
│ 32;1m----                                                                  │
│ d----          2023-05-17  4:38 PM                6.1.1               │
│ d----          2024-03-12  9:22 PM                6.1.4               │
│ d----          2024-01-29  6:12 PM                6.1.5               │
│ d----          2024-03-12  9:20 PM                6.2.0               │
│ d----          2024-02-23  7:50 PM                6.2.1               │
│ d----          2024-03-12  9:15 PM                6.2.2               │
│ d----          2024-05-14  9:20 PM                6.2.3               │
│ d----          2024-06-06  8:37 PM                6.2.4               │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
#if !INTERACTIVE
open Lib
#endif

── fsharp ──────────────────────────────────────────────────────────────────────
open Common
open FParsec
open SpiralFileSystem.Operators

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## escapeCell (test)                                                         │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

let inline escapeCell input =
    input
    |> SpiralSm.split "\n"
    |> Array.map (function
        | line when line |> SpiralSm.starts_with "\\#!" || line |> 
SpiralSm.starts_with "\\#r" ->
            System.Text.RegularExpressions.Regex.Replace (line, "^\\\\#", "#")
        | line -> line
    )
    |> SpiralSm.concat "\n"

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

$"a{nl}\\#!magic{nl}b{nl}"
|> escapeCell
|> _assertEqual (
    $"a{nl}#!magic{nl}b{nl}"
)

╭─[ 177.11ms - stdout ]────────────────────────────────────────────────────────╮
│ "a                                                                           │
│ #!magic                                                                      │
│ b                                                                            │
│ "                                                                            │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## magicMarker                                                               │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
let magicMarker : Parser<string, unit> = pstring "#!"

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

"#!magic"
|> run magicMarker
|> _assertEqual (
    Success ("#!", (), Position ("", 2, 1, 3))
)

╭─[ 111.17ms - stdout ]────────────────────────────────────────────────────────╮
│ Success: "#!"                                                                │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

"##!magic"
|> run magicMarker
|> _assertEqual (
    Failure (
        $"Error in Ln: 1 Col: 1{nl}##!magic{nl}^{nl}Expecting: '#!'{nl}",
        ParserError (
            Position ("", 0, 1, 1),
            (),
            ErrorMessageList (ExpectedString "#!")
        ),
        ()
    )
)

╭─[ 116.87ms - stdout ]────────────────────────────────────────────────────────╮
│ Failure:                                                                     │
│ Error in Ln: 1 Col: 1                                                        │
│ ##!magic                                                                     │
│ ^                                                                            │
│ Expecting: '#!'                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## magicCommand                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
let magicCommand =
    magicMarker
    >>. manyTill anyChar newline
    |>> (System.String.Concat >> SpiralSm.trim)

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

"#!magic

a"
|> run magicCommand
|> _assertEqual (
    Success ("magic", (), Position ("", 8, 2, 1))
)

╭─[ 117.07ms - stdout ]────────────────────────────────────────────────────────╮
│ Success: "magic"                                                             │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

" #!magic

a"
|> run magicCommand
|> _assertEqual (
    Failure (
        $"Error in Ln: 1 Col: 1{nl} #!magic{nl}^{nl}Expecting: '#!'{nl}",
        ParserError (
            Position ("", 0, 1, 1),
            (),
            ErrorMessageList (ExpectedString "#!")
        ),
        ()
    )
)

╭─[ 85.51ms - stdout ]─────────────────────────────────────────────────────────╮
│ Failure:                                                                     │
│ Error in Ln: 1 Col: 1                                                        │
│  #!magic                                                                     │
│ ^                                                                            │
│ Expecting: '#!'                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## content                                                                   │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
let content =
    (newline >>. magicMarker) <|> (eof >>. preturn "")
    |> attempt
    |> lookAhead
    |> manyTill anyChar
    |>> (System.String.Concat >> SpiralSm.trim)

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

"#!magic


a


"
|> run content
|> _assertEqual (
    Success ("#!magic


a", (), Position ("", 14, 7, 1))
)

╭─[ 206.63ms - stdout ]────────────────────────────────────────────────────────╮
│ Success: "#!magic                                                            │
│                                                                              │
│                                                                              │
│ a"                                                                           │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## Output                                                                    │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
type Output =
    | Fs
    | Md
    | Spi
    | Spir

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## Magic                                                                     │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
type Magic =
    | Fsharp
    | Markdown
    | Spiral of Output
    | Magic of string

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## kernelOutputs                                                             │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
let inline kernelOutputs magic =
    match magic with
    | Fsharp -> [[ Fs ]]
    | Markdown -> [[ Md ]]
    | Spiral output -> [[ output ]]
    | _ -> [[]]

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## Block                                                                     │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
type Block =
    {
        magic : Magic
        content : string
    }

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## block                                                                     │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
let block =
    pipe2
        magicCommand
        content
        (fun magic content ->
            let magic, content =
                match magic with
                | "fsharp" -> Fsharp, content
                | "markdown" -> Markdown, content
                | "spiral" ->
                    let output = if content |> SpiralSm.contains "//// real\n" 
then Spir else Spi
                    let content =
                        if output = Spi
                        then content
                        else
                            content
                            |> SpiralSm.replace "//// real\n\n" ""
                            |> SpiralSm.replace "//// real\n" ""
                    Spiral output, content
                | magic -> magic |> Magic, content
            {
                magic = magic
                content = content
            })

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

"#!magic


a


"
|> run block
|> _assertEqual (
    Success (
        { magic = Magic "magic"; content = "a" },
        (),
        Position ("", 14, 7, 1)
    )
)

╭─[ 188.91ms - stdout ]────────────────────────────────────────────────────────╮
│ Success: { magic = Magic "magic"                                             │
│   content = "a" }                                                            │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## blocks                                                                    │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
let blocks =
    skipMany newline
    >>. sepEndBy block (skipMany1 newline)

── fsharp ──────────────────────────────────────────────────────────────────────
//// test


"#!magic1

a

\#!magic2

b

"
|> escapeCell
|> run blocks
|> _assertEqual (
    Success (
        [[
            { magic = Magic "magic1"; content = "a" }
            { magic = Magic "magic2"; content = "b" }
        ]],
        (),
        Position ("", 26, 9, 1)
    )
)

╭─[ 544.05ms - stdout ]────────────────────────────────────────────────────────╮
│ Success: [{ magic = Magic "magic1"                                           │
│    content = "a" }; { magic = Magic "magic2"                                 │
│                       content = "b" }]                                       │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## formatBlock                                                               │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
let inline formatBlock output (block : Block) =
    match output, block with
    | output, { magic = Markdown; content = content } ->
        let markdownComment =
            match output with
            | Spi | Spir -> "/// "
            | Fs -> "/// "
            | _ -> ""
        content
        |> SpiralSm.split "\n"
        |> Array.map (SpiralSm.trim_end [[||]])
        |> Array.filter (SpiralSm.ends_with " (test)" >> not)
        |> Array.map (function
            | "" -> markdownComment
            | line -> System.Text.RegularExpressions.Regex.Replace (line, 
"^\\s*", $"$&{markdownComment}")
        )
        |> SpiralSm.concat "\n"
    | Fs, { magic = Fsharp; content = content } ->
        let trimmedContent = content |> SpiralSm.trim
        if trimmedContent |> SpiralSm.contains "//// test\n"
            || trimmedContent |> SpiralSm.contains "//// ignore\n"
        then ""
        else
            content
            |> SpiralSm.split "\n"
            |> Array.filter (SpiralSm.trim_start [[||]] >> SpiralSm.starts_with 
"#r" >> not)
            |> SpiralSm.concat "\n"
    | (Spi | Spir), { magic = Spiral output'; content = content } when output' =
output ->
        let trimmedContent = content |> SpiralSm.trim
        if trimmedContent |> SpiralSm.contains "//// test\n"
            || trimmedContent |> SpiralSm.contains "//// ignore\n"
        then ""
        else content
    | _ -> ""

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

"#!markdown


a

    b

c


\#!markdown


c


\#!fsharp


let a = 1"
|> escapeCell
|> run block
|> function
    | Success (block, _, _) -> formatBlock Fs block
    | Failure (msg, _, _) -> failwith msg
|> _assertEqual "/// a
/// 
    /// b
/// 
/// c"

╭─[ 272.50ms - stdout ]────────────────────────────────────────────────────────╮
│ "/// a                                                                       │
│ ///                                                                          │
│     /// b                                                                    │
│ ///                                                                          │
│ /// c"                                                                       │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## formatBlocks                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
let inline formatBlocks output blocks =
    blocks
    |> List.map (fun block ->
        block, formatBlock output block
    )
    |> List.filter (snd >> (<>) "")
    |> fun list ->
        (list, (None, [[]]))
        ||> List.foldBack (fun (block, content) (lastMagic, acc) ->
            let lineBreak =
                if block.magic = Markdown && lastMagic <> Some Markdown && 
lastMagic <> None
                then ""
                else "\n"
            Some block.magic, $"{content}{lineBreak}" :: acc
        )
    |> snd
    |> SpiralSm.concat "\n"

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

"#!markdown


a

b


\#!markdown


c


\#!fsharp


let a = 1

\#!markdown

d (test)

\#!fsharp

//// test

let a = 2

\#!markdown

e

\#!fsharp

let a = 3"
|> escapeCell
|> run blocks
|> function
    | Success (blocks, _, _) -> formatBlocks Fs blocks
    | Failure (msg, _, _) -> failwith msg
|> _assertEqual "/// a
/// 
/// b

/// c
let a = 1

/// e
let a = 3
"

╭─[ 227.46ms - stdout ]────────────────────────────────────────────────────────╮
│ "/// a                                                                       │
│ ///                                                                          │
│ /// b                                                                        │
│                                                                              │
│ /// c                                                                        │
│ let a = 1                                                                    │
│                                                                              │
│ /// e                                                                        │
│ let a = 3                                                                    │
│ "                                                                            │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## parse                                                                     │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
let inline parse output input =
    match run blocks input with
    | Success (blocks, _, _) ->
        let blocks =
            blocks
            |> List.filter (fun block ->
                block.magic |> kernelOutputs |> List.contains output || 
block.magic = Markdown
            )

        match blocks with
        | { magic = Markdown; content = content } :: _
            when output = Fs
            && content |> SpiralSm.starts_with "# "
            && content |> SpiralSm.ends_with ")"
            ->
            let inline indentBlock (block : Block) =
                { block with
                    content =
                        block.content
                        |> SpiralSm.split "\n"
                        |> Array.fold
                            (fun (lines, isMultiline) line ->
                                let trimmedLine = line |> SpiralSm.trim
                                if trimmedLine = ""
                                then "" :: lines, isMultiline
                                else
                                    let inline singleQuoteLine () =
                                        trimmedLine |> Seq.sumBy ((=) '"' >> 
System.Convert.ToInt32) = 1
                                        && trimmedLine |> SpiralSm.contains 
@"'""'" |> not
                                        && trimmedLine |> SpiralSm.ends_with "{"
|> not
                                        && trimmedLine |> SpiralSm.ends_with 
"{|" |> not
                                        && trimmedLine |> SpiralSm.starts_with 
"}" |> not
                                        && trimmedLine |> SpiralSm.starts_with 
"|}" |> not

                                    match isMultiline, trimmedLine |> 
SpiralSm.split_string [[| $"{q}{q}{q}" |]] with
                                    | false, [[| _; _ |]] ->
                                        $"    {line}" :: lines, true

                                    | true, [[| _; _ |]] ->
                                        line :: lines, false

                                    | false, _ when singleQuoteLine () ->
                                        $"    {line}" :: lines, true

                                    | false, _ when line |> SpiralSm.starts_with
"#" && block.magic = Fsharp ->
                                        line :: lines, false

                                    | false, _ ->
                                        $"    {line}" :: lines, false

                                    | true, _ when singleQuoteLine () && line |>
SpiralSm.starts_with "    " ->
                                        $"    {line}" :: lines, false

                                    | true, _ when singleQuoteLine () ->
                                        line :: lines, false

                                    | true, _ ->
                                        line :: lines, true
                            )
                            ([[]], false)
                        |> fst
                        |> List.rev
                        |> SpiralSm.concat "\n"
                }

            let moduleName, namespaceName =
                System.Text.RegularExpressions.Regex.Match (content, @"# (.*) 
\((.*)\)$")
                |> fun m -> m.Groups.[[1]].Value, m.Groups.[[2]].Value

            let moduleBlock =
                {
                    magic = Fsharp
                    content =
                        $"#if !INTERACTIVE
namespace {namespaceName}
#endif

module {moduleName} ="
                }

            blocks
            |> List.indexed
            |> List.fold
                (fun blocks (index, block) ->
                    match index with
                    | 0 -> blocks
                    | 1 -> indentBlock block :: moduleBlock :: blocks
                    | _ -> indentBlock block :: blocks
                )
                [[]]
            |> List.rev
        | _ -> blocks
        |> Result.Ok
    | Failure (errorMsg, _, _) -> Result.Error errorMsg

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

let example1 =
    $"""#!meta

{{"kernelInfo":{{"defaultKernelName":"fsharp","items":[[{{"aliases":[[]],"name":
"fsharp"}},{{"aliases":[[]],"name":"fsharp"}}]]}}}}

\#!markdown

# TestModule (TestNamespace)

\#!fsharp

\#!import file.dib

\#!fsharp

\#r "nuget:Expecto"

\#!markdown

## ParserLibrary

\#!fsharp

open System

\#!markdown

## x (test)

\#!fsharp

//// ignore

let x = 1

\#!spiral

//// test

inl x = 1i32

\#!spiral

//// real

inl x = 2i32

\#!spiral

inl x = 3i32

\#!markdown

### TextInput

\#!fsharp

let str1 = "abc
def"

let str2 =
    "abc\
def"

let str3 =
    $"1{{
        1
    }}1"

let str4 =
    $"1{{({{|
        a = 1
    |}}).a}}1"

let str5 =
    "abc \
        def"

let x =
    match '"' with
    | '"' -> true
    | _ -> false

let long1 = {q}{q}{q}a{q}{q}{q}

let long2 =
    {q}{q}{q}
a
{q}{q}{q}

\#!fsharp

type Position =
    {{
#if INTERACTIVE
        line : string
#else
        line : int
#endif
        column : int
    }}"""
    |> escapeCell

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

example1
|> parse Fs
|> Result.toOption
|> Option.get
|> (formatBlocks Fs)
|> _assertEqual $"""#if !INTERACTIVE
namespace TestNamespace
#endif

module TestModule =

    /// ## ParserLibrary
    open System

    /// ### TextInput
    let str1 = "abc
def"

    let str2 =
        "abc\
def"

    let str3 =
        $"1{{
            1
        }}1"

    let str4 =
        $"1{{({{|
            a = 1
        |}}).a}}1"

    let str5 =
        "abc \
            def"

    let x =
        match '"' with
        | '"' -> true
        | _ -> false

    let long1 = {q}{q}{q}a{q}{q}{q}

    let long2 =
        {q}{q}{q}
a
{q}{q}{q}

    type Position =
        {{
#if INTERACTIVE
            line : string
#else
            line : int
#endif
            column : int
        }}
"""

╭─[ 507.13ms - stdout ]────────────────────────────────────────────────────────╮
│ "#if !INTERACTIVE                                                            │
│ namespace TestNamespace                                                      │
│ #endif                                                                       │
│                                                                              │
│ module TestModule =                                                          │
│                                                                              │
│     /// ## ParserLibrary                                                     │
│     open System                                                              │
│                                                                              │
│     /// ### TextInput                                                        │
│     let str1 = "abc                                                          │
│ def"                                                                         │
│                                                                              │
│     let str2 =                                                               │
│         "abc\                                                                │
│ def"                                                                         │
│                                                                              │
│     let str3 =                                                               │
│         $"1{                                                                 │
│             1                                                                │
│         }1"                                                                  │
│                                                                              │
│     let str4 =                                                               │
│         $"1{({|                                                              │
│             a = 1                                                            │
│         |}).a}1"                                                             │
│                                                                              │
│     let str5 =                                                               │
│         "abc \                                                               │
│             def"                                                             │
│                                                                              │
│     let x =                                                                  │
│         match '"' with                                                       │
│         | '"' -> true                                                        │
│         | _ -> false                                                         │
│                                                                              │
│     let long1 = """a"""                                                      │
│                                                                              │
│     let long2 =                                                              │
│         """                                                                  │
│ a                                                                            │
│ """                                                                          │
│                                                                              │
│     type Position =                                                          │
│         {                                                                    │
│ #if INTERACTIVE                                                              │
│             line : string                                                    │
│ #else                                                                        │
│             line : int                                                       │
│ #endif                                                                       │
│             column : int                                                     │
│         }                                                                    │
│ "                                                                            │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

example1
|> parse Md
|> Result.toOption
|> Option.get
|> (formatBlocks Md)
|> _assertEqual "# TestModule (TestNamespace)

## ParserLibrary

### TextInput
"

╭─[ 451.72ms - stdout ]────────────────────────────────────────────────────────╮
│ "# TestModule (TestNamespace)                                                │
│                                                                              │
│ ## ParserLibrary                                                             │
│                                                                              │
│ ### TextInput                                                                │
│ "                                                                            │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

example1
|> parse Spi
|> Result.toOption
|> Option.get
|> (formatBlocks Spi)
|> _assertEqual "/// # TestModule (TestNamespace)

/// ## ParserLibrary
inl x = 3i32

/// ### TextInput
"

╭─[ 284.42ms - stdout ]────────────────────────────────────────────────────────╮
│ "/// # TestModule (TestNamespace)                                            │
│                                                                              │
│ /// ## ParserLibrary                                                         │
│ inl x = 3i32                                                                 │
│                                                                              │
│ /// ### TextInput                                                            │
│ "                                                                            │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

example1
|> parse Spir
|> Result.toOption
|> Option.get
|> (formatBlocks Spir)
|> _assertEqual "/// # TestModule (TestNamespace)

/// ## ParserLibrary
inl x = 2i32

/// ### TextInput
"

╭─[ 233.99ms - stdout ]────────────────────────────────────────────────────────╮
│ "/// # TestModule (TestNamespace)                                            │
│                                                                              │
│ /// ## ParserLibrary                                                         │
│ inl x = 2i32                                                                 │
│                                                                              │
│ /// ### TextInput                                                            │
│ "                                                                            │
│                                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## parseDibCode                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
let inline parseDibCode output file = async {
    trace Debug
        (fun () -> "parseDibCode")
        (fun () -> $"output: {output} / file: {file} / {_locals ()}")
    let! input = file |> SpiralFileSystem.read_all_text_async
    match parse output input with
    | Result.Ok blocks -> return blocks |> formatBlocks output
    | Result.Error msg -> return failwith msg
}

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## writeDibCode                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
let inline writeDibCode output path = async {
    trace Debug
        (fun () -> "writeDibCode")
        (fun () -> $"output: {output} / path: {path} / {_locals ()}")
    let! result = parseDibCode output path
    let pathDir = path |> System.IO.Path.GetDirectoryName
    let fileNameWithoutExt =
        match output, path |> System.IO.Path.GetFileNameWithoutExtension with
        | Spir, fileNameWithoutExt -> $"real_{fileNameWithoutExt}"
        | _, fileNameWithoutExt -> fileNameWithoutExt
    let outputPath = pathDir </> $"{fileNameWithoutExt}.{output |> string |> 
SpiralSm.to_lower}"
    do! result |> SpiralFileSystem.write_all_text_async outputPath
}

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## Arguments                                                                 │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
[[<RequireQualifiedAccess>]]
type Arguments =
    | [[<Argu.ArguAttributes.MainCommand; Argu.ArguAttributes.Mandatory>]]
        File of file : string * Output

    interface Argu.IArgParserTemplate with
        member s.Usage =
            match s with
            | File _ -> nameof File

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

Argu.ArgumentParser.Create<Arguments>().PrintUsage ()

╭─[ 328.40ms - return value ]──────────────────────────────────────────────────╮
│ "USAGE: dotnet-repl [--help] <file> <fs|md|spi|spir>                         │
│                                                                              │
│ FILE:                                                                        │
│                                                                              │
│     <file> <fs|md|spi|spir>                                                  │
│                           File                                               │
│                                                                              │
│ OPTIONS:                                                                     │
│                                                                              │
│     --help                display this list of options.                      │
│ "                                                                            │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## main                                                                      │
╰──────────────────────────────────────────────────────────────────────────────╯

── fsharp ──────────────────────────────────────────────────────────────────────
let main args =
    let argsMap = args |> Runtime.parseArgsMap<Arguments>

    let files =
        argsMap.[[nameof Arguments.File]]
        |> List.map (function
            | Arguments.File (path, output) -> path, output
        )

    files
    |> List.map (fun (path, output) -> path |> writeDibCode output)
    |> Async.Parallel
    |> Async.Ignore
    |> Async.runWithTimeout 30000
    |> function
        | Some () -> 0
        | None -> 1

── fsharp ──────────────────────────────────────────────────────────────────────
//// test

let args =
    System.Environment.GetEnvironmentVariable "ARGS"
    |> SpiralRuntime.split_args
    |> Result.toArray
    |> Array.collect id

match args with
| [[||]] -> 0
| args -> if main args = 0 then 0 else failwith "main failed"

╭─[ 421.46ms - return value ]──────────────────────────────────────────────────╮
│ <div class="dni-plaintext"><pre>0                                            │
│ </pre></div><style>                                                          │
│ .dni-code-hint {                                                             │
│     font-style: italic;                                                      │
│     overflow: hidden;                                                        │
│     white-space: nowrap;                                                     │
│ }                                                                            │
│ .dni-treeview {                                                              │
│     white-space: nowrap;                                                     │
│ }                                                                            │
│ .dni-treeview td {                                                           │
│     vertical-align: top;                                                     │
│     text-align: start;                                                       │
│ }                                                                            │
│ details.dni-treeview {                                                       │
│     padding-left: 1em;                                                       │
│ }                                                                            │
│ table td {                                                                   │
│     text-align: start;                                                       │
│ }                                                                            │
│ table tr {                                                                   │
│     vertical-align: top;                                                     │
│     margin: 0em 0px;                                                         │
│ }                                                                            │
│ table tr td pre                                                              │
│ {                                                                            │
│     vertical-align: top !important;                                          │
│     margin: 0em 0px !important;                                              │
│ }                                                                            │
│ table th {                                                                   │
│     text-align: start;                                                       │
│ }                                                                            │
│ </style>                                                                     │
╰──────────────────────────────────────────────────────────────────────────────╯

╭─[ 427.60ms - stdout ]────────────────────────────────────────────────────────╮
│ 00:00:33   debug #1 writeDibCode / output: Fs / path: Builder.dib       │
│ 00:00:33   debug #2 parseDibCode / output: Fs / file: Builder.dib       │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯
00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "Builder.dib"])) }
00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/apps/builder/Builder.dib", "--output-path", "c:/home/git/polyglot/apps/builder/Builder.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/apps/builder/Builder.dib" --output-path "c:/home/git/polyglot/apps/builder/Builder.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ # Builder (Polyglot)                                                         │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> #r 
> @"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
> dard2.1/FSharp.Control.AsyncSeq.dll"
> #r 
> @"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
> 0/System.Reactive.dll"
> #r 
> @"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/
> netstandard2.0/System.Reactive.Linq.dll"
> #r 
> @"../../../../../../../.nuget/packages/argu/6.2.4/lib/netstandard2.0/Argu.dll"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> #if !INTERACTIVE
> open Lib
> #endif
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> open Common
> open SpiralFileSystem.Operators
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## buildProject                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline buildProject runtime outputDir path = async {
>     let fullPath = path |> System.IO.Path.GetFullPath
>     let fileDir = fullPath |> System.IO.Path.GetDirectoryName
>     let extension = fullPath |> System.IO.Path.GetExtension
> 
>     trace Debug
>         (fun () -> "buildProject")
>         (fun () -> $"fullPath: {fullPath} / {_locals ()}")
> 
>     match extension with
>     | ".fsproj" -> ()
>     | _ -> failwith "Invalid project file"
> 
>     let runtimes =
>         runtime
>         |> Option.map List.singleton
>         |> Option.defaultValue [[ "linux-x64"; "win-x64" ]]
> 
>     let outputDir = outputDir |> Option.defaultValue "dist"
> 
>     return!
>         runtimes
>         |> List.map (fun runtime -> async {
>             let command = $@"dotnet publish ""{path}"" --configuration Release 
> --output ""{outputDir}"" --runtime {runtime}"
>             let! exitCode, _result =
>                 SpiralRuntime.execution_options (fun x ->
>                     { x with
>                         l0 = command
>                         l6 = Some fileDir
>                     }
>                 )
>                 |> SpiralRuntime.execute_with_options_async
>             return exitCode
>         })
>         |> Async.Sequential
>         |> Async.map Array.sum
> }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## persistCodeProject                                                        │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline persistCodeProject packages modules name hash code = async {
>     trace Debug
>         (fun () -> "persistCodeProject")
>         (fun () -> $"packages: {packages} / modules: {modules} / name: {name} / 
> hash: {hash} / code.Length: {code |> String.length} / {_locals ()}")
> 
>     let workspaceRoot = SpiralFileSystem.get_workspace_root ()
> 
>     let targetDir =
>         let targetDir = workspaceRoot </> "target/Builder" </> name
>         match hash with
>         | Some hash -> targetDir </> "packages" </> hash
>         | None -> targetDir
>     targetDir |> System.IO.Directory.CreateDirectory |> ignore
> 
>     let filePath = targetDir </> $"{name}.fs" |> System.IO.Path.GetFullPath
>     do! code |> SpiralFileSystem.write_all_text_exists filePath
> 
>     let modulesCode =
>         modules
>         |> List.map (fun path -> $"""<Compile Include="{workspaceRoot </> path}"
> />""")
>         |> SpiralSm.concat "\n        "
> 
>     let fsprojPath = targetDir </> $"{name}.fsproj"
>     let fsprojCode = $"""<Project Sdk="Microsoft.NET.Sdk">
>     <PropertyGroup>
>         <TargetFramework>net9.0</TargetFramework>
>         <LangVersion>preview</LangVersion>
>         <RollForward>Major</RollForward>
>         <TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>
>         <PublishAot>false</PublishAot>
>         <PublishTrimmed>false</PublishTrimmed>
>         <PublishSingleFile>true</PublishSingleFile>
>         <SelfContained>true</SelfContained>
>         <Version>0.0.1-alpha.1</Version>
>         <OutputType>Exe</OutputType>
>     </PropertyGroup>
> 
>     <PropertyGroup Condition="$([[MSBuild]]::IsOSPlatform('FreeBSD'))">
>         <DefineConstants>_FREEBSD</DefineConstants>
>     </PropertyGroup>
> 
>     <PropertyGroup Condition="$([[MSBuild]]::IsOSPlatform('Linux'))">
>         <DefineConstants>_LINUX</DefineConstants>
>     </PropertyGroup>
> 
>     <PropertyGroup Condition="$([[MSBuild]]::IsOSPlatform('OSX'))">
>         <DefineConstants>_OSX</DefineConstants>
>     </PropertyGroup>
> 
>     <PropertyGroup Condition="$([[MSBuild]]::IsOSPlatform('Windows'))">
>         <DefineConstants>_WINDOWS</DefineConstants>
>     </PropertyGroup>
> 
>     <ItemGroup>
>         {modulesCode}
>         <Compile Include="{filePath}" />
>     </ItemGroup>
> 
>     <Import Project="{workspaceRoot}/.paket/Paket.Restore.targets" />
> </Project>
> """
>     do! fsprojCode |> SpiralFileSystem.write_all_text_exists fsprojPath
> 
>     let paketReferencesPath = targetDir </> "paket.references"
>     let paketReferencesCode =
>         "FSharp.Core" :: packages
>         |> SpiralSm.concat "\n"
>     do! paketReferencesCode |> SpiralFileSystem.write_all_text_exists 
> paketReferencesPath
> 
>     return fsprojPath
> }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## buildCode                                                                 │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline buildCode runtime packages modules outputDir name code = async {
>     let! fsprojPath = code |> persistCodeProject packages modules name None
>     let! exitCode = fsprojPath |> buildProject runtime outputDir
>     if exitCode <> 0 then
>         let! fsprojText = fsprojPath |> SpiralFileSystem.read_all_text_async
>         trace Critical
>             (fun () -> "buildCode")
>             (fun () -> $"code: {code |> SpiralSm.ellipsis_end 400} / fsprojText:
> {fsprojText} / {_locals ()}")
>     return exitCode
> }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> "1 + 1 |> ignore"
> |> buildCode None [[]] [[]] None "test1"
> |> Async.runWithTimeout 180000
> |> _assertEqual (Some 0)
> 
> ╭─[ 10.58s - stdout ]──────────────────────────────────────────────────────────╮
> │ 00:00:04   debug #1 persistCodeProject / packages: [] / modules: [] /   │
> │ name: test1 / hash:  / code.Length: 15                                       │
> │ 00:00:04   debug #2 buildProject / fullPath:                            │
> │ C:\home\git\polyglot\target\Builder\test1\test1.fsproj                       │
> │ 00:00:09   debug #1 runtime.execute_with_options_async / { options = {  │
> │ command = dotnet publish                                                     │
> │ "C:\home\git\polyglot\target/Builder\test1\test1.fsproj" --configuration     │
> │ Release --output "dist" --runtime linux-x64; cancellation_token = None;      │
> │ environment_variables = [||]; on_line = None; stdin = None; trace = true;    │
> │ working_directory = Some "C:\home\git\polyglot\target\Builder\test1" } }     │
> │ 00:00:10 verbose #2 > MSBuild version                                   │
> │ 17.10.0-preview-24101-01+07fd5d51f for .NET                                  │
> │ 00:00:10 verbose #3 >   Determining projects to restore...              │
> │ 00:00:11 verbose #4 >   Restored                                        │
> │ C:\home\git\polyglot\target\Builder\test1\test1.fsproj (in 480 ms).          │
> │ 00:00:12 verbose #5 >                                                   │
> │ C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.2 │
> │ 4101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInferen │
> │ ce.targets(313,5): message NETSDK1057: You are using a preview version of    │
> │ .NET. See: https://aka.ms/dotnet-support-policy [                            │
> │ C:\home\git\polyglot\target\Builder\test1\test1.fsproj]                      │
> │ 00:00:13 verbose #6 >   test1 ->                                        │
> │ C:\home\git\polyglot\target\Builder\test1\bin\Release\net9.0\linux-x64\test1 │
> │ .dll                                                                         │
> │ 00:00:14 verbose #7 >   test1 ->                                        │
> │ C:\home\git\polyglot\target\Builder\test1\dist\                              │
> │ 00:00:14   debug #8 runtime.execute_with_options_async / { exit_code =  │
> │ 0; output_length = 657 }                                                     │
> │ 00:00:14   debug #9 runtime.execute_with_options_async / { options = {  │
> │ command = dotnet publish                                                     │
> │ "C:\home\git\polyglot\target/Builder\test1\test1.fsproj" --configuration     │
> │ Release --output "dist" --runtime win-x64; cancellation_token = None;        │
> │ environment_variables = [||]; on_line = None; stdin = None; trace = true;    │
> │ working_directory = Some "C:\home\git\polyglot\target\Builder\test1" } }     │
> │ 00:00:14 verbose #10 > MSBuild version                                  │
> │ 17.10.0-preview-24101-01+07fd5d51f for .NET                                  │
> │ 00:00:15 verbose #11 >   Determining projects to restore...             │
> │ 00:00:16 verbose #12 >   Restored                                       │
> │ C:\home\git\polyglot\target\Builder\test1\test1.fsproj (in 350 ms).          │
> │ 00:00:16 verbose #13 >                                                  │
> │ C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.2 │
> │ 4101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInferen │
> │ ce.targets(313,5): message NETSDK1057: You are using a preview version of    │
> │ .NET. See: https://aka.ms/dotnet-support-policy [                            │
> │ C:\home\git\polyglot\target\Builder\test1\test1.fsproj]                      │
> │ 00:00:16 verbose #14 >   test1 ->                                       │
> │ C:\home\git\polyglot\target\Builder\test1\bin\Release\net9.0\win-x64\test1.d │
> │ ll                                                                           │
> │ 00:00:20 verbose #15 >   test1 ->                                       │
> │ C:\home\git\polyglot\target\Builder\test1\dist\                              │
> │ 00:00:20   debug #16 runtime.execute_with_options_async / { exit_code = │
> │ 0; output_length = 655 }                                                     │
> │ Some 0                                                                       │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> "1 + a |> ignore"
> |> buildCode None [[]] [[]] None "test2"
> |> Async.runWithTimeout 180000
> |> _assertEqual (Some 2)
> 
> ╭─[ 7.99s - stdout ]───────────────────────────────────────────────────────────╮
> │ 00:00:14   debug #3 persistCodeProject / packages: [] / modules: [] /   │
> │ name: test2 / hash:  / code.Length: 15                                       │
> │ 00:00:14   debug #4 buildProject / fullPath:                            │
> │ C:\home\git\polyglot\target\Builder\test2\test2.fsproj                       │
> │ 00:00:20   debug #17 runtime.execute_with_options_async / { options = { │
> │ command = dotnet publish                                                     │
> │ "C:\home\git\polyglot\target/Builder\test2\test2.fsproj" --configuration     │
> │ Release --output "dist" --runtime linux-x64; cancellation_token = None;      │
> │ environment_variables = [||]; on_line = None; stdin = None; trace = true;    │
> │ working_directory = Some "C:\home\git\polyglot\target\Builder\test2" } }     │
> │ 00:00:20 verbose #18 > MSBuild version                                  │
> │ 17.10.0-preview-24101-01+07fd5d51f for .NET                                  │
> │ 00:00:21 verbose #19 >   Determining projects to restore...             │
> │ 00:00:21 verbose #20 >   Restored                                       │
> │ C:\home\git\polyglot\target\Builder\test2\test2.fsproj (in 344 ms).          │
> │ 00:00:21 verbose #21 >                                                  │
> │ C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.2 │
> │ 4101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInferen │
> │ ce.targets(313,5): message NETSDK1057: You are using a preview version of    │
> │ .NET. See: https://aka.ms/dotnet-support-policy [                            │
> │ C:\home\git\polyglot\target\Builder\test2\test2.fsproj]                      │
> │ 00:00:23 verbose #22 >                                                  │
> │ C:\home\git\polyglot\target\Builder\test2\test2.fs(1,5): error FS0039: The   │
> │ value or constructor 'a' is not defined. [                                   │
> │ C:\home\git\polyglot\target\Builder\test2\test2.fsproj]                      │
> │ 00:00:23   debug #23 runtime.execute_with_options_async / { exit_code = │
> │ 1; output_length = 679 }                                                     │
> │ 00:00:23   debug #24 runtime.execute_with_options_async / { options = { │
> │ command = dotnet publish                                                     │
> │ "C:\home\git\polyglot\target/Builder\test2\test2.fsproj" --configuration     │
> │ Release --output "dist" --runtime win-x64; cancellation_token = None;        │
> │ environment_variables = [||]; on_line = None; stdin = None; trace = true;    │
> │ working_directory = Some "C:\home\git\polyglot\target\Builder\test2" } }     │
> │ 00:00:23 verbose #25 > MSBuild version                                  │
> │ 17.10.0-preview-24101-01+07fd5d51f for .NET                                  │
> │ 00:00:24 verbose #26 >   Determining projects to restore...             │
> │ 00:00:25 verbose #27 >   Restored                                       │
> │ C:\home\git\polyglot\target\Builder\test2\test2.fsproj (in 554 ms).          │
> │ 00:00:25 verbose #28 >                                                  │
> │ C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.2 │
> │ 4101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInferen │
> │ ce.targets(313,5): message NETSDK1057: You are using a preview version of    │
> │ .NET. See: https://aka.ms/dotnet-support-policy [                            │
> │ C:\home\git\polyglot\target\Builder\test2\test2.fsproj]                      │
> │ 00:00:27 verbose #29 >                                                  │
> │ C:\home\git\polyglot\target\Builder\test2\test2.fs(1,5): error FS0039: The   │
> │ value or constructor 'a' is not defined. [                                   │
> │ C:\home\git\polyglot\target\Builder\test2\test2.fsproj]                      │
> │ 00:00:28   debug #30 runtime.execute_with_options_async / { exit_code = │
> │ 1; output_length = 679 }                                                     │
> │ 00:00:22 critical #5 buildCode / code: 1 + a |> ignore / fsprojText:    │
> │ <Project Sdk="Microsoft.NET.Sdk">                                            │
> │     <PropertyGroup>                                                          │
> │         <TargetFramework>net9.0</TargetFramework>                            │
> │         <LangVersion>preview</LangVersion>                                   │
> │         <RollForward>Major</RollForward>                                     │
> │         <TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>            │
> │         <PublishAot>false</PublishAot>                                       │
> │         <PublishTrimmed>false</PublishTrimmed>                               │
> │         <PublishSingleFile>true</PublishSingleFile>                          │
> │         <SelfContained>true</SelfContained>                                  │
> │         <Version>0.0.1-alpha.1</Version>                                     │
> │         <OutputType>Exe</OutputType>                                         │
> │     </PropertyGroup>                                                         │
> │                                                                              │
> │     <PropertyGroup Condition="$([MSBuild]::IsOSPlatform('FreeBSD'))">        │
> │         <DefineConstants>_FREEBSD</DefineConstants>                          │
> │     </PropertyGroup>                                                         │
> │                                                                              │
> │     <PropertyGroup Condition="$([MSBuild]::IsOSPlatform('Linux'))">          │
> │         <DefineConstants>_LINUX</DefineConstants>                            │
> │     </PropertyGroup>                                                         │
> │                                                                              │
> │     <PropertyGroup Condition="$([MSBuild]::IsOSPlatform('OSX'))">            │
> │         <DefineConstants>_OSX</DefineConstants>                              │
> │     </PropertyGroup>                                                         │
> │                                                                              │
> │     <PropertyGroup Condition="$([MSBuild]::IsOSPlatform('Windows'))">        │
> │         <DefineConstants>_WINDOWS</DefineConstants>                          │
> │     </PropertyGroup>                                                         │
> │                                                                              │
> │     <ItemGroup>                                                              │
> │                                                                              │
> │         <Compile                                                             │
> │ Include="C:\home\git\polyglot\target\Builder\test2\test2.fs" />              │
> │     </ItemGroup>                                                             │
> │                                                                              │
> │     <Import Project="C:\home\git\polyglot/.paket/Paket.Restore.targets" />   │
> │ </Project>                                                                   │
> │                                                                              │
> │ Some 2                                                                       │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## readFile                                                                  │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline readFile path = async {
>     let! code = path |> SpiralFileSystem.read_all_text_async
> 
>     let code = System.Text.RegularExpressions.Regex.Replace (
>         code,
>         @"( *)(let\s+main\s+.*?\s*=)",
>         fun m -> m.Groups.[[1]].Value + "[[<EntryPoint>]]\n" + 
> m.Groups.[[1]].Value + m.Groups.[[2]].Value
>     )
> 
>     let codeTrim = code |> SpiralSm.trim_end [[||]]
>     return
>         if codeTrim |> SpiralSm.ends_with "\n()"
>         then codeTrim |> SpiralSm.slice 0 ((codeTrim |> String.length) - 3)
>         else code
> }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## buildFile                                                                 │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline buildFile runtime packages modules path = async {
>     let fullPath = path |> System.IO.Path.GetFullPath
>     let dir = fullPath |> System.IO.Path.GetDirectoryName
>     let name = fullPath |> System.IO.Path.GetFileNameWithoutExtension
>     let! code = fullPath |> readFile
>     return! code |> buildCode runtime packages modules (dir </> "dist" |> Some) 
> name
> }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## persistFile                                                               │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline persistFile packages modules path = async {
>     let fullPath = path |> System.IO.Path.GetFullPath
>     let name = fullPath |> System.IO.Path.GetFileNameWithoutExtension
>     let! code = fullPath |> readFile
>     return! code |> persistCodeProject packages modules name None
> }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## Arguments                                                                 │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> [[<RequireQualifiedAccess>]]
> type Arguments =
>     | [[<Argu.ArguAttributes.MainCommand; Argu.ArguAttributes.ExactlyOnce>]] 
> Path of path : string
>     | [[<Argu.ArguAttributes.Unique>]] Packages of packages : string list
>     | [[<Argu.ArguAttributes.Unique>]] Modules of modules : string list
>     | [[<Argu.ArguAttributes.Unique>]] Runtime of runtime : string
>     | [[<Argu.ArguAttributes.Unique>]] Persist_Only
> 
>     interface Argu.IArgParserTemplate with
>         member s.Usage =
>             match s with
>             | Path _ -> nameof Path
>             | Packages _ -> nameof Packages
>             | Modules _ -> nameof Modules
>             | Runtime _ -> nameof Runtime
>             | Persist_Only -> nameof Persist_Only
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> Argu.ArgumentParser.Create<Arguments>().PrintUsage ()
> 
> ╭─[ 130.38ms - return value ]──────────────────────────────────────────────────╮
> │ "USAGE: dotnet-repl [--help] [--packages [<packages>...]]                    │
> │                    [--modules [<modules>...]] [--runtime <runtime>]          │
> │                    [--persist-only] <path>                                   │
> │                                                                              │
> │ PATH:                                                                        │
> │                                                                              │
> │     <path>                Path                                               │
> │                                                                              │
> │ OPTIONS:                                                                     │
> │                                                                              │
> │     --packages [<packages>...]                                               │
> │                           Packages                                           │
> │     --modules [<modules>...]                                                 │
> │                           Modules                                            │
> │     --runtime <runtime>   Runtime                                            │
> │     --persist-only        Persist_Only                                       │
> │     --help                display this list of options.                      │
> │ "                                                                            │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## main                                                                      │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let main args =
>     let argsMap = args |> Runtime.parseArgsMap<Arguments>
> 
>     let path =
>         match argsMap.[[nameof Arguments.Path]] with
>         | [[ Arguments.Path path ]] -> Some path
>         | _ -> None
>         |> Option.get
> 
>     let packages =
>         match argsMap |> Map.tryFind (nameof Arguments.Packages) with
>         | Some [[ Arguments.Packages packages ]] -> packages
>         | _ -> [[]]
> 
>     let modules =
>         match argsMap |> Map.tryFind (nameof Arguments.Modules) with
>         | Some [[ Arguments.Modules modules ]] -> modules
>         | _ -> [[]]
> 
>     let runtime =
>         match argsMap |> Map.tryFind (nameof Arguments.Runtime) with
>         | Some [[ Arguments.Runtime runtime ]] -> Some runtime
>         | _ -> None
> 
>     let persistOnly = argsMap |> Map.containsKey (nameof Arguments.Persist_Only)
> 
>     if persistOnly
>     then path |> persistFile packages modules |> Async.map (fun _ -> 0)
>     else path |> buildFile runtime packages modules
>     |> Async.runWithTimeout (60000 * 60)
>     |> function
>         | Some exitCode -> exitCode
>         | None -> 1
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let args =
>     System.Environment.GetEnvironmentVariable "ARGS"
>     |> SpiralRuntime.split_args
>     |> Result.toArray
>     |> Array.collect id
> 
> match args with
> | [[||]] -> 0
> | args -> if main args = 0 then 0 else failwith "main failed"
> 
> ╭─[ 11.32s - return value ]────────────────────────────────────────────────────╮
> │ <div class="dni-plaintext"><pre>0                                            │
> │ </pre></div><style>                                                          │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 11.32s - stdout ]──────────────────────────────────────────────────────────╮
> │ 00:00:23   debug #6 persistCodeProject / packages: [Argu;               │
> │ FSharp.Control.AsyncSeq; System.Reactive.Linq] / modules: [                  │
> │ lib/spiral/common.fsx; lib/spiral/sm.fsx; lib/spiral/crypto.fsx; ... ] /     │
> │ name: Builder / hash:  / code.Length: 8210                                   │
> │ 00:00:23   debug #7 buildProject / fullPath:                            │
> │ C:\home\git\polyglot\target\Builder\Builder\Builder.fsproj                   │
> │ 00:00:29   debug #31 runtime.execute_with_options_async / { options = { │
> │ command = dotnet publish                                                     │
> │ "C:\home\git\polyglot\target/Builder\Builder\Builder.fsproj" --configuration │
> │ Release --output "C:\home\git\polyglot\apps\builder\dist" --runtime          │
> │ linux-x64; cancellation_token = None; environment_variables = [||]; on_line  │
> │ = None; stdin = None; trace = true; working_directory = Some                 │
> │ "C:\home\git\polyglot\target\Builder\Builder" } }                            │
> │ 00:00:29 verbose #32 > MSBuild version                                  │
> │ 17.10.0-preview-24101-01+07fd5d51f for .NET                                  │
> │ 00:00:30 verbose #33 >   Determining projects to restore...             │
> │ 00:00:31 verbose #34 >   Restored                                       │
> │ C:\home\git\polyglot\target\Builder\Builder\Builder.fsproj (in 410 ms).      │
> │ 00:00:31 verbose #35 >                                                  │
> │ C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.2 │
> │ 4101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInferen │
> │ ce.targets(313,5): message NETSDK1057: You are using a preview version of    │
> │ .NET. See: https://aka.ms/dotnet-support-policy [                            │
> │ C:\home\git\polyglot\target\Builder\Builder\Builder.fsproj]                  │
> │ 00:00:32 verbose #36 >   Builder ->                                     │
> │ C:\home\git\polyglot\target\Builder\Builder\bin\Release\net9.0\linux-x64\Bui │
> │ lder.dll                                                                     │
> │ 00:00:33 verbose #37 >   Builder ->                                     │
> │ C:\home\git\polyglot\apps\builder\dist\                                      │
> │ 00:00:33   debug #38 runtime.execute_with_options_async / { exit_code = │
> │ 0; output_length = 665 }                                                     │
> │ 00:00:33   debug #39 runtime.execute_with_options_async / { options = { │
> │ command = dotnet publish                                                     │
> │ "C:\home\git\polyglot\target/Builder\Builder\Builder.fsproj" --configuration │
> │ Release --output "C:\home\git\polyglot\apps\builder\dist" --runtime win-x64; │
> │ cancellation_token = None; environment_variables = [||]; on_line = None;     │
> │ stdin = None; trace = true; working_directory = Some                         │
> │ "C:\home\git\polyglot\target\Builder\Builder" } }                            │
> │ 00:00:33 verbose #40 > MSBuild version                                  │
> │ 17.10.0-preview-24101-01+07fd5d51f for .NET                                  │
> │ 00:00:34 verbose #41 >   Determining projects to restore...             │
> │ 00:00:35 verbose #42 >   Restored                                       │
> │ C:\home\git\polyglot\target\Builder\Builder\Builder.fsproj (in 405 ms).      │
> │ 00:00:35 verbose #43 >                                                  │
> │ C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.2 │
> │ 4101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInferen │
> │ ce.targets(313,5): message NETSDK1057: You are using a preview version of    │
> │ .NET. See: https://aka.ms/dotnet-support-policy [                            │
> │ C:\home\git\polyglot\target\Builder\Builder\Builder.fsproj]                  │
> │ 00:00:36 verbose #44 >   Builder ->                                     │
> │ C:\home\git\polyglot\target\Builder\Builder\bin\Release\net9.0\win-x64\Build │
> │ er.dll                                                                       │
> │ 00:00:40 verbose #45 >   Builder ->                                     │
> │ C:\home\git\polyglot\apps\builder\dist\                                      │
> │ 00:00:40   debug #46 runtime.execute_with_options_async / { exit_code = │
> │ 0; output_length = 663 }                                                     │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:07 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 34436 }
00:01:07   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/apps/builder/Builder.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/apps/builder/Builder.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:13 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/apps/builder/Builder.dib.ipynb to html
00:01:13 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:01:13 verbose #7 !   validate(nb)
00:01:15 verbose #8 ! [NbConvertApp] Writing 335132 bytes to c:\home\git\polyglot\apps\builder\Builder.dib.html
00:01:15 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 649 }
00:01:15   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 649 }
00:01:15   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/apps/builder/Builder.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/apps/builder/Builder.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:16 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:01:16   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:01:17   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 35144 }
In [ ]:
{ pwsh ../apps/spiral/builder/build.ps1 -SkipFsx 1 } | Invoke-Block
00:00:00   debug #1 persistCodeProject / packages: [Fable.Core] / modules: [lib/spiral/common.fsx; lib/spiral/sm.fsx; lib/spiral/crypto.fsx; ... ] / name: spiral_builder / hash:  / code.Length: 1267269
targetDir: C:\home\git\polyglot\target\Builder\spiral_builder
Fable 4.19.3: F# to Rust compiler (status: alpha)

Thanks to the contributor! @intrepion
Stand with Ukraine! https://standwithukraine.com.ua/

Parsing target\Builder\spiral_builder\spiral_builder.fsproj...
Retrieving project options from cache, in case of issues run `dotnet fable clean` or try `--noCache` option.
Project and references (14 source files) parsed in 186ms

Skipped compilation because all generated files are up-to-date!
   Compiling syn v2.0.70
   Compiling windows-sys v0.52.0
   Compiling parking_lot_core v0.9.10
   Compiling serde v1.0.204
   Compiling chrono v0.4.38
   Compiling uuid v1.10.0
   Compiling parking_lot v0.12.3
   Compiling anstyle-wincon v3.0.3
   Compiling anstyle-query v1.1.0
   Compiling socket2 v0.5.7
   Compiling anstream v0.6.14
   Compiling clap_builder v4.5.9
   Compiling futures-macro v0.3.30
   Compiling thiserror-impl v1.0.61
   Compiling tokio-macros v2.2.0
   Compiling clap v4.5.9
   Compiling serde_json v1.0.120
   Compiling tokio v1.37.0
   Compiling futures-util v0.3.30
   Compiling thiserror v1.0.61
   Compiling async-walkdir v2.0.0
   Compiling futures-executor v0.3.30
   Compiling futures v0.3.30
   Compiling fable_library_rust v0.1.0 (C:\home\git\polyglot\lib\rust\fable\fable_modules\fable-library-rust)
   Compiling tokio-stream v0.1.15
   Compiling spiral_builder v0.0.1 (C:\home\git\polyglot\apps\spiral\builder)
    Finished `release` profile [optimized] target(s) in 42.28s
     Running unittests spiral_builder.rs (C:\home\git\polyglot\workspace\target\release\deps\spiral_builder-f43d88b7a5b1c176.exe)

running 1 test
test module_7e2cd9e0::Spiral_builder::verify_app ... ok

successes:

successes:
    module_7e2cd9e0::Spiral_builder::verify_app

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Compiling windows-sys v0.52.0
   Compiling parking_lot_core v0.9.10
   Compiling futures-util v0.3.30
   Compiling thiserror v1.0.61
   Compiling chrono v0.4.38
   Compiling serde v1.0.204
   Compiling uuid v1.10.0
   Compiling async-walkdir v2.0.0
   Compiling parking_lot v0.12.3
   Compiling anstyle-wincon v3.0.3
   Compiling anstyle-query v1.1.0
   Compiling socket2 v0.5.7
   Compiling anstream v0.6.14
   Compiling tokio v1.37.0
   Compiling clap_builder v4.5.9
   Compiling futures-executor v0.3.30
   Compiling futures v0.3.30
   Compiling serde_json v1.0.120
   Compiling fable_library_rust v0.1.0 (C:\home\git\polyglot\lib\rust\fable\fable_modules\fable-library-rust)
   Compiling clap v4.5.9
   Compiling tokio-stream v0.1.15
   Compiling spiral_builder v0.0.1 (C:\home\git\polyglot\apps\spiral\builder)
error: failed to remove file `C:\home\git\polyglot\workspace\target\release\spiral_builder.exe`

Caused by:
  Access is denied. (os error 5)

# Invoke-Block / $retry: 1/1 / $Location:  / Get-Location: C:\home\git\polyglot\apps\spiral\builder / $OnError: Continue / $exitcode: 101 / $EnvVars: {
  "PATH": "C:\\Users\\i574n\\scoop\\apps\\pwsh\\current;C:\\Program Files\\NVIDIA\\CUDNN\\v9.1\\bin;C:\\ProgramData\\scoop\\shims;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\dotnet\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Intel\\WiFi\\bin\\;C:\\Program Files\\Common Files\\Intel\\WirelessCommon\\;C:\\Program Files\\Perforce;C:\\Users\\i574n\\scoop\\apps\\vscode-insiders\\current\\bin;C:\\Users\\i574n\\scoop\\apps\\elixir\\current\\bin;C:\\Users\\i574n\\scoop\\apps\\python\\current\\Scripts;C:\\Users\\i574n\\scoop\\apps\\rustup\\current\\.cargo\\bin;C:\\Users\\i574n\\scoop\\apps\\latex\\current\\texmfs\\install\\miktex\\bin\\x64;C:\\Users\\i574n\\scoop\\apps\\dotnet-sdk-preview\\current;C:\\Users\\i574n\\scoop\\apps\\dotnet-sdk\\current;C:\\Users\\i574n\\scoop\\apps\\gsudo\\current;C:\\Users\\i574n\\scoop\\apps\\python\\current;C:\\Users\\i574n\\scoop\\apps\\nircmd\\current;C:\\Users\\i574n\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\i574n/scoop/buckets/mold/home/windows/path;C:\\Users\\i574n/scoop/persist/rustup/.cargo/bin;C:\\Users\\i574n/scoop/apps/nvm/current/nodejs/nodejs;C:\\Users\\i574n/scoop/apps/cygwin/current/root/bin;C:\\Users\\i574n\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\i574n\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\i574n\\.bun\\bin;C:\\Users\\i574n\\.dotnet\\tools;C:\\Users\\i574n\\scoop\\shims;C:\\Users\\i574n\\.fly\\bin;C:\\Users\\i574n/.cargo/bin;C:\\Users\\i574n/.bun/bin;C:\\Users\\i574n/.cargo/bin;C:\\Users\\i574n/.bun/bin;C:\\Users\\i574n/.cargo/bin;C:\\Users\\i574n/.bun/bin"
} / $Error: '' / $ScriptBlock:
'cargo +nightly build --release'

In [ ]:
{ pwsh ../apps/parser/build.ps1 } | Invoke-Block
00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "DibParser.dib"])) }
00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/apps/parser/DibParser.dib", "--output-path", "c:/home/git/polyglot/apps/parser/DibParser.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/apps/parser/DibParser.dib" --output-path "c:/home/git/polyglot/apps/parser/DibParser.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ # DibParser (Polyglot)                                                       │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> #r 
> @"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
> dard2.1/FSharp.Control.AsyncSeq.dll"
> #r 
> @"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
> 0/System.Reactive.dll"
> #r 
> @"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/
> netstandard2.0/System.Reactive.Linq.dll"
> #r 
> @"../../../../../../../.nuget/packages/argu/6.2.4/lib/netstandard2.0/Argu.dll"
> #r 
> @"../../../../../../../.nuget/packages/fparsec/2.0.0-beta2/lib/netstandard2.1/FP
> arsec.dll"
> #r 
> @"../../../../../../../.nuget/packages/fparsec/2.0.0-beta2/lib/netstandard2.1/FP
> arsecCS.dll"
> 
> ── pwsh ────────────────────────────────────────────────────────────────────────
> ls ~/.nuget/packages/argu
> 
> ╭─[ 464.25ms - stdout ]────────────────────────────────────────────────────────╮
> │                                                                              │
> │     Directory: C:\Users\i574n\.nuget\packages\argu                           │
> │                                                                              │
> │ Mode                 LastWriteTime         Length[     │
> │ 32;1m Name                                                                 │
> │ ----                 -------------         ------ [      │
> │ 32;1m----                                                                  │
> │ d----          2023-05-17  4:38 PM                6.1.1               │
> │ d----          2024-03-12  9:22 PM                6.1.4               │
> │ d----          2024-01-29  6:12 PM                6.1.5               │
> │ d----          2024-03-12  9:20 PM                6.2.0               │
> │ d----          2024-02-23  7:50 PM                6.2.1               │
> │ d----          2024-03-12  9:15 PM                6.2.2               │
> │ d----          2024-05-14  9:20 PM                6.2.3               │
> │ d----          2024-06-06  8:37 PM                6.2.4               │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> #if !INTERACTIVE
> open Lib
> #endif
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> open Common
> open FParsec
> open SpiralFileSystem.Operators
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## escapeCell (test)                                                         │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let inline escapeCell input =
>     input
>     |> SpiralSm.split "\n"
>     |> Array.map (function
>         | line when line |> SpiralSm.starts_with "\\#!" || line |> 
> SpiralSm.starts_with "\\#r" ->
>             System.Text.RegularExpressions.Regex.Replace (line, "^\\\\#", "#")
>         | line -> line
>     )
>     |> SpiralSm.concat "\n"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> $"a{nl}\\#!magic{nl}b{nl}"
> |> escapeCell
> |> _assertEqual (
>     $"a{nl}#!magic{nl}b{nl}"
> )
> 
> ╭─[ 55.72ms - stdout ]─────────────────────────────────────────────────────────╮
> │ "a                                                                           │
> │ #!magic                                                                      │
> │ b                                                                            │
> │ "                                                                            │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## magicMarker                                                               │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let magicMarker : Parser<string, unit> = pstring "#!"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> "#!magic"
> |> run magicMarker
> |> _assertEqual (
>     Success ("#!", (), Position ("", 2, 1, 3))
> )
> 
> ╭─[ 41.07ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success: "#!"                                                                │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> "##!magic"
> |> run magicMarker
> |> _assertEqual (
>     Failure (
>         $"Error in Ln: 1 Col: 1{nl}##!magic{nl}^{nl}Expecting: '#!'{nl}",
>         ParserError (
>             Position ("", 0, 1, 1),
>             (),
>             ErrorMessageList (ExpectedString "#!")
>         ),
>         ()
>     )
> )
> 
> ╭─[ 57.48ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Failure:                                                                     │
> │ Error in Ln: 1 Col: 1                                                        │
> │ ##!magic                                                                     │
> │ ^                                                                            │
> │ Expecting: '#!'                                                              │
> │                                                                              │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## magicCommand                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let magicCommand =
>     magicMarker
>     >>. manyTill anyChar newline
>     |>> (System.String.Concat >> SpiralSm.trim)
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> "#!magic
> 
> a"
> |> run magicCommand
> |> _assertEqual (
>     Success ("magic", (), Position ("", 8, 2, 1))
> )
> 
> ╭─[ 32.43ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success: "magic"                                                             │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> " #!magic
> 
> a"
> |> run magicCommand
> |> _assertEqual (
>     Failure (
>         $"Error in Ln: 1 Col: 1{nl} #!magic{nl}^{nl}Expecting: '#!'{nl}",
>         ParserError (
>             Position ("", 0, 1, 1),
>             (),
>             ErrorMessageList (ExpectedString "#!")
>         ),
>         ()
>     )
> )
> 
> ╭─[ 31.29ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Failure:                                                                     │
> │ Error in Ln: 1 Col: 1                                                        │
> │  #!magic                                                                     │
> │ ^                                                                            │
> │ Expecting: '#!'                                                              │
> │                                                                              │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## content                                                                   │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let content =
>     (newline >>. magicMarker) <|> (eof >>. preturn "")
>     |> attempt
>     |> lookAhead
>     |> manyTill anyChar
>     |>> (System.String.Concat >> SpiralSm.trim)
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> "#!magic
> 
> 
> a
> 
> 
> "
> |> run content
> |> _assertEqual (
>     Success ("#!magic
> 
> 
> a", (), Position ("", 14, 7, 1))
> )
> 
> ╭─[ 31.46ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success: "#!magic                                                            │
> │                                                                              │
> │                                                                              │
> │ a"                                                                           │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## Output                                                                    │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type Output =
>     | Fs
>     | Md
>     | Spi
>     | Spir
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## Magic                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type Magic =
>     | Fsharp
>     | Markdown
>     | Spiral of Output
>     | Magic of string
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## kernelOutputs                                                             │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline kernelOutputs magic =
>     match magic with
>     | Fsharp -> [[ Fs ]]
>     | Markdown -> [[ Md ]]
>     | Spiral output -> [[ output ]]
>     | _ -> [[]]
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## Block                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type Block =
>     {
>         magic : Magic
>         content : string
>     }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## block                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let block =
>     pipe2
>         magicCommand
>         content
>         (fun magic content ->
>             let magic, content =
>                 match magic with
>                 | "fsharp" -> Fsharp, content
>                 | "markdown" -> Markdown, content
>                 | "spiral" ->
>                     let output = if content |> SpiralSm.contains "//// real\n" 
> then Spir else Spi
>                     let content =
>                         if output = Spi
>                         then content
>                         else
>                             content
>                             |> SpiralSm.replace "//// real\n\n" ""
>                             |> SpiralSm.replace "//// real\n" ""
>                     Spiral output, content
>                 | magic -> magic |> Magic, content
>             {
>                 magic = magic
>                 content = content
>             })
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> "#!magic
> 
> 
> a
> 
> 
> "
> |> run block
> |> _assertEqual (
>     Success (
>         { magic = Magic "magic"; content = "a" },
>         (),
>         Position ("", 14, 7, 1)
>     )
> )
> 
> ╭─[ 44.17ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success: { magic = Magic "magic"                                             │
> │   content = "a" }                                                            │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## blocks                                                                    │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let blocks =
>     skipMany newline
>     >>. sepEndBy block (skipMany1 newline)
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> 
> "#!magic1
> 
> a
> 
> \#!magic2
> 
> b
> 
> "
> |> escapeCell
> |> run blocks
> |> _assertEqual (
>     Success (
>         [[
>             { magic = Magic "magic1"; content = "a" }
>             { magic = Magic "magic2"; content = "b" }
>         ]],
>         (),
>         Position ("", 26, 9, 1)
>     )
> )
> 
> ╭─[ 46.22ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success: [{ magic = Magic "magic1"                                           │
> │    content = "a" }; { magic = Magic "magic2"                                 │
> │                       content = "b" }]                                       │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## formatBlock                                                               │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline formatBlock output (block : Block) =
>     match output, block with
>     | output, { magic = Markdown; content = content } ->
>         let markdownComment =
>             match output with
>             | Spi | Spir -> "/// "
>             | Fs -> "/// "
>             | _ -> ""
>         content
>         |> SpiralSm.split "\n"
>         |> Array.map (SpiralSm.trim_end [[||]])
>         |> Array.filter (SpiralSm.ends_with " (test)" >> not)
>         |> Array.map (function
>             | "" -> markdownComment
>             | line -> System.Text.RegularExpressions.Regex.Replace (line, 
> "^\\s*", $"$&{markdownComment}")
>         )
>         |> SpiralSm.concat "\n"
>     | Fs, { magic = Fsharp; content = content } ->
>         let trimmedContent = content |> SpiralSm.trim
>         if trimmedContent |> SpiralSm.contains "//// test\n"
>             || trimmedContent |> SpiralSm.contains "//// ignore\n"
>         then ""
>         else
>             content
>             |> SpiralSm.split "\n"
>             |> Array.filter (SpiralSm.trim_start [[||]] >> SpiralSm.starts_with 
> "#r" >> not)
>             |> SpiralSm.concat "\n"
>     | (Spi | Spir), { magic = Spiral output'; content = content } when output' =
> output ->
>         let trimmedContent = content |> SpiralSm.trim
>         if trimmedContent |> SpiralSm.contains "//// test\n"
>             || trimmedContent |> SpiralSm.contains "//// ignore\n"
>         then ""
>         else content
>     | _ -> ""
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> "#!markdown
> 
> 
> a
> 
>     b
> 
> c
> 
> 
> \#!markdown
> 
> 
> c
> 
> 
> \#!fsharp
> 
> 
> let a = 1"
> |> escapeCell
> |> run block
> |> function
>     | Success (block, _, _) -> formatBlock Fs block
>     | Failure (msg, _, _) -> failwith msg
> |> _assertEqual "/// a
> /// 
>     /// b
> /// 
> /// c"
> 
> ╭─[ 57.96ms - stdout ]─────────────────────────────────────────────────────────╮
> │ "/// a                                                                       │
> │ ///                                                                          │
> │     /// b                                                                    │
> │ ///                                                                          │
> │ /// c"                                                                       │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## formatBlocks                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline formatBlocks output blocks =
>     blocks
>     |> List.map (fun block ->
>         block, formatBlock output block
>     )
>     |> List.filter (snd >> (<>) "")
>     |> fun list ->
>         (list, (None, [[]]))
>         ||> List.foldBack (fun (block, content) (lastMagic, acc) ->
>             let lineBreak =
>                 if block.magic = Markdown && lastMagic <> Some Markdown && 
> lastMagic <> None
>                 then ""
>                 else "\n"
>             Some block.magic, $"{content}{lineBreak}" :: acc
>         )
>     |> snd
>     |> SpiralSm.concat "\n"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> "#!markdown
> 
> 
> a
> 
> b
> 
> 
> \#!markdown
> 
> 
> c
> 
> 
> \#!fsharp
> 
> 
> let a = 1
> 
> \#!markdown
> 
> d (test)
> 
> \#!fsharp
> 
> //// test
> 
> let a = 2
> 
> \#!markdown
> 
> e
> 
> \#!fsharp
> 
> let a = 3"
> |> escapeCell
> |> run blocks
> |> function
>     | Success (blocks, _, _) -> formatBlocks Fs blocks
>     | Failure (msg, _, _) -> failwith msg
> |> _assertEqual "/// a
> /// 
> /// b
> 
> /// c
> let a = 1
> 
> /// e
> let a = 3
> "
> 
> ╭─[ 72.99ms - stdout ]─────────────────────────────────────────────────────────╮
> │ "/// a                                                                       │
> │ ///                                                                          │
> │ /// b                                                                        │
> │                                                                              │
> │ /// c                                                                        │
> │ let a = 1                                                                    │
> │                                                                              │
> │ /// e                                                                        │
> │ let a = 3                                                                    │
> │ "                                                                            │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## parse                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline parse output input =
>     match run blocks input with
>     | Success (blocks, _, _) ->
>         let blocks =
>             blocks
>             |> List.filter (fun block ->
>                 block.magic |> kernelOutputs |> List.contains output || 
> block.magic = Markdown
>             )
> 
>         match blocks with
>         | { magic = Markdown; content = content } :: _
>             when output = Fs
>             && content |> SpiralSm.starts_with "# "
>             && content |> SpiralSm.ends_with ")"
>             ->
>             let inline indentBlock (block : Block) =
>                 { block with
>                     content =
>                         block.content
>                         |> SpiralSm.split "\n"
>                         |> Array.fold
>                             (fun (lines, isMultiline) line ->
>                                 let trimmedLine = line |> SpiralSm.trim
>                                 if trimmedLine = ""
>                                 then "" :: lines, isMultiline
>                                 else
>                                     let inline singleQuoteLine () =
>                                         trimmedLine |> Seq.sumBy ((=) '"' >> 
> System.Convert.ToInt32) = 1
>                                         && trimmedLine |> SpiralSm.contains 
> @"'""'" |> not
>                                         && trimmedLine |> SpiralSm.ends_with "{"
> |> not
>                                         && trimmedLine |> SpiralSm.ends_with 
> "{|" |> not
>                                         && trimmedLine |> SpiralSm.starts_with 
> "}" |> not
>                                         && trimmedLine |> SpiralSm.starts_with 
> "|}" |> not
> 
>                                     match isMultiline, trimmedLine |> 
> SpiralSm.split_string [[| $"{q}{q}{q}" |]] with
>                                     | false, [[| _; _ |]] ->
>                                         $"    {line}" :: lines, true
> 
>                                     | true, [[| _; _ |]] ->
>                                         line :: lines, false
> 
>                                     | false, _ when singleQuoteLine () ->
>                                         $"    {line}" :: lines, true
> 
>                                     | false, _ when line |> SpiralSm.starts_with
> "#" && block.magic = Fsharp ->
>                                         line :: lines, false
> 
>                                     | false, _ ->
>                                         $"    {line}" :: lines, false
> 
>                                     | true, _ when singleQuoteLine () && line |>
> SpiralSm.starts_with "    " ->
>                                         $"    {line}" :: lines, false
> 
>                                     | true, _ when singleQuoteLine () ->
>                                         line :: lines, false
> 
>                                     | true, _ ->
>                                         line :: lines, true
>                             )
>                             ([[]], false)
>                         |> fst
>                         |> List.rev
>                         |> SpiralSm.concat "\n"
>                 }
> 
>             let moduleName, namespaceName =
>                 System.Text.RegularExpressions.Regex.Match (content, @"# (.*) 
> \((.*)\)$")
>                 |> fun m -> m.Groups.[[1]].Value, m.Groups.[[2]].Value
> 
>             let moduleBlock =
>                 {
>                     magic = Fsharp
>                     content =
>                         $"#if !INTERACTIVE
> namespace {namespaceName}
> #endif
> 
> module {moduleName} ="
>                 }
> 
>             blocks
>             |> List.indexed
>             |> List.fold
>                 (fun blocks (index, block) ->
>                     match index with
>                     | 0 -> blocks
>                     | 1 -> indentBlock block :: moduleBlock :: blocks
>                     | _ -> indentBlock block :: blocks
>                 )
>                 [[]]
>             |> List.rev
>         | _ -> blocks
>         |> Result.Ok
>     | Failure (errorMsg, _, _) -> Result.Error errorMsg
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let example1 =
>     $"""#!meta
> 
> {{"kernelInfo":{{"defaultKernelName":"fsharp","items":[[{{"aliases":[[]],"name":
> "fsharp"}},{{"aliases":[[]],"name":"fsharp"}}]]}}}}
> 
> \#!markdown
> 
> # TestModule (TestNamespace)
> 
> \#!fsharp
> 
> \#!import file.dib
> 
> \#!fsharp
> 
> \#r "nuget:Expecto"
> 
> \#!markdown
> 
> ## ParserLibrary
> 
> \#!fsharp
> 
> open System
> 
> \#!markdown
> 
> ## x (test)
> 
> \#!fsharp
> 
> //// ignore
> 
> let x = 1
> 
> \#!spiral
> 
> //// test
> 
> inl x = 1i32
> 
> \#!spiral
> 
> //// real
> 
> inl x = 2i32
> 
> \#!spiral
> 
> inl x = 3i32
> 
> \#!markdown
> 
> ### TextInput
> 
> \#!fsharp
> 
> let str1 = "abc
> def"
> 
> let str2 =
>     "abc\
> def"
> 
> let str3 =
>     $"1{{
>         1
>     }}1"
> 
> let str4 =
>     $"1{{({{|
>         a = 1
>     |}}).a}}1"
> 
> let str5 =
>     "abc \
>         def"
> 
> let x =
>     match '"' with
>     | '"' -> true
>     | _ -> false
> 
> let long1 = {q}{q}{q}a{q}{q}{q}
> 
> let long2 =
>     {q}{q}{q}
> a
> {q}{q}{q}
> 
> \#!fsharp
> 
> type Position =
>     {{
> #if INTERACTIVE
>         line : string
> #else
>         line : int
> #endif
>         column : int
>     }}"""
>     |> escapeCell
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> example1
> |> parse Fs
> |> Result.toOption
> |> Option.get
> |> (formatBlocks Fs)
> |> _assertEqual $"""#if !INTERACTIVE
> namespace TestNamespace
> #endif
> 
> module TestModule =
> 
>     /// ## ParserLibrary
>     open System
> 
>     /// ### TextInput
>     let str1 = "abc
> def"
> 
>     let str2 =
>         "abc\
> def"
> 
>     let str3 =
>         $"1{{
>             1
>         }}1"
> 
>     let str4 =
>         $"1{{({{|
>             a = 1
>         |}}).a}}1"
> 
>     let str5 =
>         "abc \
>             def"
> 
>     let x =
>         match '"' with
>         | '"' -> true
>         | _ -> false
> 
>     let long1 = {q}{q}{q}a{q}{q}{q}
> 
>     let long2 =
>         {q}{q}{q}
> a
> {q}{q}{q}
> 
>     type Position =
>         {{
> #if INTERACTIVE
>             line : string
> #else
>             line : int
> #endif
>             column : int
>         }}
> """
> 
> ╭─[ 178.15ms - stdout ]────────────────────────────────────────────────────────╮
> │ "#if !INTERACTIVE                                                            │
> │ namespace TestNamespace                                                      │
> │ #endif                                                                       │
> │                                                                              │
> │ module TestModule =                                                          │
> │                                                                              │
> │     /// ## ParserLibrary                                                     │
> │     open System                                                              │
> │                                                                              │
> │     /// ### TextInput                                                        │
> │     let str1 = "abc                                                          │
> │ def"                                                                         │
> │                                                                              │
> │     let str2 =                                                               │
> │         "abc\                                                                │
> │ def"                                                                         │
> │                                                                              │
> │     let str3 =                                                               │
> │         $"1{                                                                 │
> │             1                                                                │
> │         }1"                                                                  │
> │                                                                              │
> │     let str4 =                                                               │
> │         $"1{({|                                                              │
> │             a = 1                                                            │
> │         |}).a}1"                                                             │
> │                                                                              │
> │     let str5 =                                                               │
> │         "abc \                                                               │
> │             def"                                                             │
> │                                                                              │
> │     let x =                                                                  │
> │         match '"' with                                                       │
> │         | '"' -> true                                                        │
> │         | _ -> false                                                         │
> │                                                                              │
> │     let long1 = """a"""                                                      │
> │                                                                              │
> │     let long2 =                                                              │
> │         """                                                                  │
> │ a                                                                            │
> │ """                                                                          │
> │                                                                              │
> │     type Position =                                                          │
> │         {                                                                    │
> │ #if INTERACTIVE                                                              │
> │             line : string                                                    │
> │ #else                                                                        │
> │             line : int                                                       │
> │ #endif                                                                       │
> │             column : int                                                     │
> │         }                                                                    │
> │ "                                                                            │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> example1
> |> parse Md
> |> Result.toOption
> |> Option.get
> |> (formatBlocks Md)
> |> _assertEqual "# TestModule (TestNamespace)
> 
> ## ParserLibrary
> 
> ### TextInput
> "
> 
> ╭─[ 157.71ms - stdout ]────────────────────────────────────────────────────────╮
> │ "# TestModule (TestNamespace)                                                │
> │                                                                              │
> │ ## ParserLibrary                                                             │
> │                                                                              │
> │ ### TextInput                                                                │
> │ "                                                                            │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> example1
> |> parse Spi
> |> Result.toOption
> |> Option.get
> |> (formatBlocks Spi)
> |> _assertEqual "/// # TestModule (TestNamespace)
> 
> /// ## ParserLibrary
> inl x = 3i32
> 
> /// ### TextInput
> "
> 
> ╭─[ 171.63ms - stdout ]────────────────────────────────────────────────────────╮
> │ "/// # TestModule (TestNamespace)                                            │
> │                                                                              │
> │ /// ## ParserLibrary                                                         │
> │ inl x = 3i32                                                                 │
> │                                                                              │
> │ /// ### TextInput                                                            │
> │ "                                                                            │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> example1
> |> parse Spir
> |> Result.toOption
> |> Option.get
> |> (formatBlocks Spir)
> |> _assertEqual "/// # TestModule (TestNamespace)
> 
> /// ## ParserLibrary
> inl x = 2i32
> 
> /// ### TextInput
> "
> 
> ╭─[ 157.92ms - stdout ]────────────────────────────────────────────────────────╮
> │ "/// # TestModule (TestNamespace)                                            │
> │                                                                              │
> │ /// ## ParserLibrary                                                         │
> │ inl x = 2i32                                                                 │
> │                                                                              │
> │ /// ### TextInput                                                            │
> │ "                                                                            │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## parseDibCode                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline parseDibCode output file = async {
>     trace Debug
>         (fun () -> "parseDibCode")
>         (fun () -> $"output: {output} / file: {file} / {_locals ()}")
>     let! input = file |> SpiralFileSystem.read_all_text_async
>     match parse output input with
>     | Result.Ok blocks -> return blocks |> formatBlocks output
>     | Result.Error msg -> return failwith msg
> }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## writeDibCode                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline writeDibCode output path = async {
>     trace Debug
>         (fun () -> "writeDibCode")
>         (fun () -> $"output: {output} / path: {path} / {_locals ()}")
>     let! result = parseDibCode output path
>     let pathDir = path |> System.IO.Path.GetDirectoryName
>     let fileNameWithoutExt =
>         match output, path |> System.IO.Path.GetFileNameWithoutExtension with
>         | Spir, fileNameWithoutExt -> $"real_{fileNameWithoutExt}"
>         | _, fileNameWithoutExt -> fileNameWithoutExt
>     let outputPath = pathDir </> $"{fileNameWithoutExt}.{output |> string |> 
> SpiralSm.to_lower}"
>     do! result |> SpiralFileSystem.write_all_text_async outputPath
> }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## Arguments                                                                 │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> [[<RequireQualifiedAccess>]]
> type Arguments =
>     | [[<Argu.ArguAttributes.MainCommand; Argu.ArguAttributes.Mandatory>]]
>         File of file : string * Output
> 
>     interface Argu.IArgParserTemplate with
>         member s.Usage =
>             match s with
>             | File _ -> nameof File
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> Argu.ArgumentParser.Create<Arguments>().PrintUsage ()
> 
> ╭─[ 91.54ms - return value ]───────────────────────────────────────────────────╮
> │ "USAGE: dotnet-repl [--help] <file> <fs|md|spi|spir>                         │
> │                                                                              │
> │ FILE:                                                                        │
> │                                                                              │
> │     <file> <fs|md|spi|spir>                                                  │
> │                           File                                               │
> │                                                                              │
> │ OPTIONS:                                                                     │
> │                                                                              │
> │     --help                display this list of options.                      │
> │ "                                                                            │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## main                                                                      │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let main args =
>     let argsMap = args |> Runtime.parseArgsMap<Arguments>
> 
>     let files =
>         argsMap.[[nameof Arguments.File]]
>         |> List.map (function
>             | Arguments.File (path, output) -> path, output
>         )
> 
>     files
>     |> List.map (fun (path, output) -> path |> writeDibCode output)
>     |> Async.Parallel
>     |> Async.Ignore
>     |> Async.runWithTimeout 30000
>     |> function
>         | Some () -> 0
>         | None -> 1
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let args =
>     System.Environment.GetEnvironmentVariable "ARGS"
>     |> SpiralRuntime.split_args
>     |> Result.toArray
>     |> Array.collect id
> 
> match args with
> | [[||]] -> 0
> | args -> if main args = 0 then 0 else failwith "main failed"
> 
> ╭─[ 178.91ms - return value ]──────────────────────────────────────────────────╮
> │ <div class="dni-plaintext"><pre>0                                            │
> │ </pre></div><style>                                                          │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 181.46ms - stdout ]────────────────────────────────────────────────────────╮
> │ 00:00:05   debug #1 writeDibCode / output: Fs / path: DibParser.dib     │
> │ 00:00:05   debug #2 parseDibCode / output: Fs / file: DibParser.dib     │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:24 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 44158 }
00:00:24   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/apps/parser/DibParser.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/apps/parser/DibParser.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:26 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/apps/parser/DibParser.dib.ipynb to html
00:00:26 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:26 verbose #7 !   validate(nb)
00:00:28 verbose #8 ! [NbConvertApp] Writing 378847 bytes to c:\home\git\polyglot\apps\parser\DibParser.dib.html
00:00:28 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 651 }
00:00:28   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 651 }
00:00:28   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/apps/parser/DibParser.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/apps/parser/DibParser.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:29 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:00:29   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:00:29   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 44868 }
00:00:00   debug #1 persistCodeProject / packages: [Argu; FParsec; FSharp.Control.AsyncSeq; ... ] / modules: [lib/spiral/common.fsx; lib/spiral/sm.fsx; lib/spiral/crypto.fsx; ... ] / name: DibParser / hash:  / code.Length: 10861
00:00:00   debug #2 buildProject / fullPath: C:\home\git\polyglot\target\Builder\DibParser\DibParser.fsproj
00:00:00   debug #1 runtime.execute_with_options_async / { options = { command = dotnet publish "C:\home\git\polyglot\target/Builder\DibParser\DibParser.fsproj" --configuration Release --output "C:\home\git\polyglot\apps\parser\dist" --runtime linux-x64; cancellation_token = None; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot\target\Builder\DibParser" } }
00:00:00 verbose #2 > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET
00:00:01 verbose #3 >   Determining projects to restore...
00:00:01 verbose #4 >   Restored C:\home\git\polyglot\target\Builder\DibParser\DibParser.fsproj (in 380 ms).
00:00:02 verbose #5 > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\Builder\DibParser\DibParser.fsproj]
00:00:02 verbose #6 >   DibParser -> C:\home\git\polyglot\target\Builder\DibParser\bin\Release\net9.0\linux-x64\DibParser.dll
00:00:04 verbose #7 >   DibParser -> C:\home\git\polyglot\apps\parser\dist\
00:00:04   debug #8 runtime.execute_with_options_async / { exit_code = 0; output_length = 680 }
00:00:04   debug #9 runtime.execute_with_options_async / { options = { command = dotnet publish "C:\home\git\polyglot\target/Builder\DibParser\DibParser.fsproj" --configuration Release --output "C:\home\git\polyglot\apps\parser\dist" --runtime win-x64; cancellation_token = None; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot\target\Builder\DibParser" } }
00:00:04 verbose #10 > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET
00:00:04 verbose #11 >   Determining projects to restore...
00:00:05 verbose #12 >   Restored C:\home\git\polyglot\target\Builder\DibParser\DibParser.fsproj (in 360 ms).
00:00:05 verbose #13 > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\Builder\DibParser\DibParser.fsproj]
00:00:06 verbose #14 >   DibParser -> C:\home\git\polyglot\target\Builder\DibParser\bin\Release\net9.0\win-x64\DibParser.dll
00:00:09 verbose #15 >   DibParser -> C:\home\git\polyglot\apps\parser\dist\
00:00:09   debug #16 runtime.execute_with_options_async / { exit_code = 0; output_length = 678 }
00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "JsonParser.dib"])) }
00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/apps/parser/JsonParser.dib", "--output-path", "c:/home/git/polyglot/apps/parser/JsonParser.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/apps/parser/JsonParser.dib" --output-path "c:/home/git/polyglot/apps/parser/JsonParser.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ # JsonParser (Polyglot)                                                      │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> open Common
> open Parser
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## JsonParser                                                                │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> (*
> // --------------------------------
> JSON spec from http://www.json.org/
> // --------------------------------
> 
> The JSON spec is available at [[json.org]](http://www.json.org/). I'll paraphase
> it here:
> 
> * A `value` can be a `string` or a `number` or a `bool` or `null` or an `object`
> or an `array`.
>   * These structures can be nested.
> * A `string` is a sequence of zero or more Unicode characters, wrapped in double
> quotes, using backslash escapes.
> * A `number` is very much like a C or Java number, except that the octal and 
> hexadecimal formats are not used.
> * A `boolean` is the literal `true` or `false`
> * A `null` is the literal `null`
> * An `object` is an unordered set of name/value pairs.
>   * An object begins with { (left brace) and ends with } (right brace).
>   * Each name is followed by : (colon) and the name/value pairs are separated by
> , (comma).
> * An `array` is an ordered collection of values.
>   * An array begins with [[ (left bracket) and ends with ]] (right bracket).
>   * Values are separated by , (comma).
> * Whitespace can be inserted between any pair of tokens.
> *)
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let inline parserEqual (expected : ParseResult<'a>) (actual : ParseResult<'a * 
> Input>) =
>     match actual, expected with
>     | Success (_actual, _), Success _expected ->
>         printResult actual
>         _actual |> _assertEqual _expected
>     | Failure (l1, e1, p1), Failure (l2, e2, p2) when l1 = l2 && e1 = e2 && p1 =
> p2 ->
>         printResult actual
>     | _ ->
>         printfn $"Actual: {actual}"
>         printfn $"Expected: {expected}"
>         failwith "Parse failed"
>     actual
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### JValue                                                                   │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type JValue =
>     | JString of string
>     | JNumber of float
>     | JBool   of bool
>     | JNull
>     | JObject of Map<string, JValue>
>     | JArray  of JValue list
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let jValue, jValueRef = createParserForwardedToRef<JValue> ()
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### jNull                                                                    │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let jNull =
>     pstring "null"
>     >>% JNull
>     <?> "null"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> jValueRef <|
>     choice
>         [[
>             jNull
>         ]]
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jValue "null"
> |> parserEqual (Success JNull)
> 
> ╭─[ 216.72ms - return value ]──────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JNull, { lines = [                      │
> │ |&quot;null&quot;|]<br />                  position = { line = 0<br />       │
> │ column = 4 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JNull, { lines = [|&quot;null&quot;|]<br />     │
> │ position = { line = 0<br />               column = 4 }                       │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JNull</code></span></summary><div><table><thead> │
> │ <tr></tr></thead><tbody><tr><td>IsJString</td><td><div                       │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;null&quot;|]<br />  position = │
> │ { line = 0<br />               column = 4 }                                  │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ null                         │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 4                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>4                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 227.03ms - stdout ]────────────────────────────────────────────────────────╮
> │ JNull                                                                        │
> │ JNull                                                                        │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNull "nulp"
> |> parserEqual (
>     Failure (
>         "null",
>         "Unexpected 'p'",
>         { currentLine = "nulp"; line = 0; column = 3 }
>     )
> )
> 
> ╭─[ 49.68ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Failure (&quot;null&quot;, &quot;Unexpected      │
> │ &#39;p&#39;&quot;, { currentLine = &quot;nulp&quot;<br />                    │
> │ line = 0<br />                                     column = 3                │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&quot;null&quot;              │
> │ </pre></div></td></tr><tr><td>Item2</td><td><div                             │
> │ class="dni-plaintext"><pre>&quot;Unexpected &#39;p&#39;&quot;                │
> │ </pre></div></td></tr><tr><td>Item3</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{            │
> │ currentLine = &quot;nulp&quot;<br />  line = 0<br />  column = 3             │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ currentLine</td><td><div class="dni-plaintext"><pre>&quot;nulp&quot;         │
> │ </pre></div></td></tr><tr><td>line</td><td><div class="dni-plaintext"><pre>0 │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>3                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>IsSu │
> │ ccess</td><td><div class="dni-plaintext"><pre>false                          │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 53.98ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Line:0 Col:3 Error parsing null                                              │
> │ nulp                                                                         │
> │    ^Unexpected 'p'                                                           │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### jBool                                                                    │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let jBool =
>     let jtrue =
>         pstring "true"
>         >>% JBool true
>     let jfalse =
>         pstring "false"
>         >>% JBool false
> 
>     jtrue <|> jfalse
>     <?> "bool"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> jValueRef <|
>     choice
>         [[
>             jNull
>             jBool
>         ]]
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jBool "true"
> |> parserEqual (Success (JBool true))
> 
> ╭─[ 53.02ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JBool true, { lines = [                 │
> │ |&quot;true&quot;|]<br />                       position = { line = 0<br />  │
> │ column = 4 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JBool true, { lines = [|&quot;true&quot;|]<br   │
> │ />  position = { line = 0<br />               column = 4 }                   │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JBool                                            │
> │ true</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr>< │
> │ td>Item</td><td><div class="dni-plaintext"><pre>true                         │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;true&quot;|]<br />  position = │
> │ { line = 0<br />               column = 4 }                                  │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ true                         │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 4                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>4                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 60.13ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JBool true                                                                   │
> │ JBool true                                                                   │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jBool "false"
> |> parserEqual (Success (JBool false))
> 
> ╭─[ 49.74ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JBool false, { lines = [                │
> │ |&quot;false&quot;|]<br />                        position = { line = 0<br   │
> │ />                                     column = 5 }                          │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JBool false, { lines = [|&quot;false&quot;|]<br │
> │ />  position = { line = 0<br />               column = 5 }                   │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JBool                                            │
> │ false</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr> │
> │ <td>Item</td><td><div class="dni-plaintext"><pre>false                       │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;false&quot;|]<br />  position  │
> │ = { line = 0<br />               column = 5 }                                │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ false                        │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 5                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>5                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 57.00ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JBool false                                                                  │
> │ JBool false                                                                  │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jBool "truX"
> |> parserEqual (
>     Failure (
>         "bool",
>         "Unexpected 't'",
>         { currentLine = "truX"; line = 0; column = 0 }
>     )
> )
> 
> ╭─[ 31.44ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Failure (&quot;bool&quot;, &quot;Unexpected      │
> │ &#39;t&#39;&quot;, { currentLine = &quot;truX&quot;<br />                    │
> │ line = 0<br />                                     column = 0                │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&quot;bool&quot;              │
> │ </pre></div></td></tr><tr><td>Item2</td><td><div                             │
> │ class="dni-plaintext"><pre>&quot;Unexpected &#39;t&#39;&quot;                │
> │ </pre></div></td></tr><tr><td>Item3</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{            │
> │ currentLine = &quot;truX&quot;<br />  line = 0<br />  column = 0             │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ currentLine</td><td><div class="dni-plaintext"><pre>&quot;truX&quot;         │
> │ </pre></div></td></tr><tr><td>line</td><td><div class="dni-plaintext"><pre>0 │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>IsSu │
> │ ccess</td><td><div class="dni-plaintext"><pre>false                          │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 35.87ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Line:0 Col:0 Error parsing bool                                              │
> │ truX                                                                         │
> │ ^Unexpected 't'                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### jUnescapedChar                                                           │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let jUnescapedChar =
>     satisfy (fun ch -> ch <> '\\' && ch <> '\"') "char"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jUnescapedChar "a"
> |> parserEqual (Success 'a')
> 
> ╭─[ 58.40ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (&#39;a&#39;, { lines = [                │
> │ |&quot;a&quot;|]<br />                position = { line = 0<br />            │
> │ column = 1 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(a, { lines = [|&quot;a&quot;|]<br />  position  │
> │ = { line = 0<br />               column = 1 }                                │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&#39;a&#39;                   │
> │ </pre></div></td></tr><tr><td>Item2</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ lines = [  │
> │ |&quot;a&quot;|]<br />  position = { line = 0<br />               column = 1 │
> │ }                                                                            │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ a                            │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 1                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>1                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 64.09ms - stdout ]─────────────────────────────────────────────────────────╮
> │ 'a'                                                                          │
> │ 'a'                                                                          │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jUnescapedChar "\\"
> |> parserEqual (
>     Failure (
>         "char",
>         "Unexpected '\\'",
>         { currentLine = "\\"; line = 0; column = 0 }
>     )
> )
> 
> ╭─[ 38.89ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Failure (&quot;char&quot;, &quot;Unexpected      │
> │ &#39;\&#39;&quot;, { currentLine = &quot;\&quot;<br />                       │
> │ line = 0<br />                                     column = 0                │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&quot;char&quot;              │
> │ </pre></div></td></tr><tr><td>Item2</td><td><div                             │
> │ class="dni-plaintext"><pre>&quot;Unexpected &#39;\&#39;&quot;                │
> │ </pre></div></td></tr><tr><td>Item3</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{            │
> │ currentLine = &quot;\&quot;<br />  line = 0<br />  column = 0                │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ currentLine</td><td><div class="dni-plaintext"><pre>&quot;\&quot;            │
> │ </pre></div></td></tr><tr><td>line</td><td><div class="dni-plaintext"><pre>0 │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>IsSu │
> │ ccess</td><td><div class="dni-plaintext"><pre>false                          │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 43.35ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Line:0 Col:0 Error parsing char                                              │
> │ \                                                                            │
> │ ^Unexpected '\'                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### jEscapedChar                                                             │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let jEscapedChar =
>     [[
>         ("\\\"",'\"')
>         ("\\\\",'\\')
>         ("\\/",'/')
>         ("\\b",'\b')
>         ("\\f",'\f')
>         ("\\n",'\n')
>         ("\\r",'\r')
>         ("\\t",'\t')
>     ]]
>     |> List.map (fun (toMatch, result) ->
>         pstring toMatch >>% result
>     )
>     |> choice
>     <?> "escaped char"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jEscapedChar "\\\\"
> |> parserEqual (Success '\\')
> 
> ╭─[ 42.45ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (&#39;\\&#39;, { lines = [               │
> │ |&quot;\\&quot;|]<br />                 position = { line = 0<br />          │
> │ column = 2 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(\, { lines = [|&quot;\\&quot;|]<br />  position │
> │ = { line = 0<br />               column = 2 }                                │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&#39;\\&#39;                  │
> │ </pre></div></td></tr><tr><td>Item2</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ lines = [  │
> │ |&quot;\\&quot;|]<br />  position = { line = 0<br />               column =  │
> │ 2 }                                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ \\                           │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 2                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>2                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 47.80ms - stdout ]─────────────────────────────────────────────────────────╮
> │ '\\'                                                                         │
> │ '\\'                                                                         │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jEscapedChar "\\t"
> |> parserEqual (Success '\t')
> 
> ╭─[ 33.29ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (&#39;\009&#39;, { lines = [             │
> │ |&quot;\t&quot;|]<br />                   position = { line = 0<br />        │
> │ column = 2 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(	, { lines = [|&quot;\t&quot;|]<br />  position = │
> │ { line = 0<br />               column = 2 }                                  │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&#39;\009&#39;                │
> │ </pre></div></td></tr><tr><td>Item2</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ lines = [  │
> │ |&quot;\t&quot;|]<br />  position = { line = 0<br />               column =  │
> │ 2 }                                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ \t                           │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 2                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>2                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 38.54ms - stdout ]─────────────────────────────────────────────────────────╮
> │ '\009'                                                                       │
> │ '\009'                                                                       │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jEscapedChar @"\\"
> |> parserEqual (Success '\\')
> 
> ╭─[ 32.00ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (&#39;\\&#39;, { lines = [               │
> │ |&quot;\\&quot;|]<br />                 position = { line = 0<br />          │
> │ column = 2 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(\, { lines = [|&quot;\\&quot;|]<br />  position │
> │ = { line = 0<br />               column = 2 }                                │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&#39;\\&#39;                  │
> │ </pre></div></td></tr><tr><td>Item2</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ lines = [  │
> │ |&quot;\\&quot;|]<br />  position = { line = 0<br />               column =  │
> │ 2 }                                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ \\                           │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 2                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>2                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 37.77ms - stdout ]─────────────────────────────────────────────────────────╮
> │ '\\'                                                                         │
> │ '\\'                                                                         │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jEscapedChar @"\n"
> |> parserEqual (Success '\n')
> 
> ╭─[ 37.32ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (&#39;\010&#39;, { lines = [|&quot;<br   │
> │ />&quot;|]<br />                   position = { line = 0<br />               │
> │ column = 2 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(<br />, { lines = [|&quot;<br />&quot;|]<br />  │
> │ position = { line = 0<br />               column = 2 }                       │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&#39;\010&#39;                │
> │ </pre></div></td></tr><tr><td>Item2</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ lines = [  │
> │ |&quot;<br />&quot;|]<br />  position = { line = 0<br />                     │
> │ column = 2 }                                                                 │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ <br />                       │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 2                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>2                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 43.41ms - stdout ]─────────────────────────────────────────────────────────╮
> │ '\010'                                                                       │
> │ '\010'                                                                       │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jEscapedChar "a"
> |> parserEqual (
>     Failure (
>         "escaped char",
>         "Unexpected 'a'",
>         { currentLine = "a"; line = 0; column = 0 }
>     )
> )
> 
> ╭─[ 31.22ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Failure (&quot;escaped char&quot;,               │
> │ &quot;Unexpected &#39;a&#39;&quot;, { currentLine = &quot;a&quot;<br />      │
> │ line = 0<br />                                             column = 0        │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&quot;escaped char&quot;      │
> │ </pre></div></td></tr><tr><td>Item2</td><td><div                             │
> │ class="dni-plaintext"><pre>&quot;Unexpected &#39;a&#39;&quot;                │
> │ </pre></div></td></tr><tr><td>Item3</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{            │
> │ currentLine = &quot;a&quot;<br />  line = 0<br />  column = 0                │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ currentLine</td><td><div class="dni-plaintext"><pre>&quot;a&quot;            │
> │ </pre></div></td></tr><tr><td>line</td><td><div class="dni-plaintext"><pre>0 │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>IsSu │
> │ ccess</td><td><div class="dni-plaintext"><pre>false                          │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 36.39ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Line:0 Col:0 Error parsing escaped char                                      │
> │ a                                                                            │
> │ ^Unexpected 'a'                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### jUnicodeChar                                                             │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let jUnicodeChar =
>     let backslash = pchar '\\'
>     let uChar = pchar 'u'
>     let hexdigit = anyOf ([[ '0' .. '9' ]] @ [[ 'A' .. 'F' ]] @ [[ 'a' .. 'f' 
> ]])
>     let fourHexDigits = hexdigit .>>. hexdigit .>>. hexdigit .>>. hexdigit
> 
>     let inline convertToChar (((h1, h2), h3), h4) =
>         let str = $"%c{h1}%c{h2}%c{h3}%c{h4}"
>         Int32.Parse (str, Globalization.NumberStyles.HexNumber) |> char
> 
>     backslash >>. uChar >>. fourHexDigits
>     |>> convertToChar
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jUnicodeChar "\\u263A"
> |> parserEqual (Success '☺')
> 
> ╭─[ 42.53ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (&#39;☺&#39;, { lines = [                │
> │ |&quot;\u263A&quot;|]<br />                position = { line = 0<br />       │
> │ column = 6 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(☺, { lines = [|&quot;\u263A&quot;|]<br />       │
> │ position = { line = 0<br />               column = 6 }                       │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&#39;☺&#39;                   │
> │ </pre></div></td></tr><tr><td>Item2</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ lines = [  │
> │ |&quot;\u263A&quot;|]<br />  position = { line = 0<br />                     │
> │ column = 6 }                                                                 │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ \u263A                       │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 6                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>6                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 48.22ms - stdout ]─────────────────────────────────────────────────────────╮
> │ '☺'                                                                          │
> │ '☺'                                                                          │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### jString                                                                  │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let quotedString =
>     let quote = pchar '\"' <?> "quote"
>     let jchar = jUnescapedChar <|> jEscapedChar <|> jUnicodeChar
> 
>     quote >>. manyChars jchar .>> quote
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let jString =
>     quotedString
>     |>> JString
>     <?> "quoted string"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> jValueRef <|
>     choice
>         [[
>             jNull
>             jBool
>             jString
>         ]]
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jString "\"\""
> |> parserEqual (Success (JString ""))
> 
> ╭─[ 48.17ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JString &quot;&quot;, { lines = [       │
> │ |&quot;&quot;&quot;&quot;|]<br />                       position = { line =  │
> │ 0<br />                                    column = 2 }                      │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JString &quot;&quot;, { lines = [               │
> │ |&quot;&quot;&quot;&quot;|]<br />  position = { line = 0<br />               │
> │ column = 2 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JString                                          │
> │ &quot;&quot;</code></span></summary><div><table><thead><tr></tr></thead><tbo │
> │ dy><tr><td>Item</td><td><div class="dni-plaintext"><pre>&quot;&quot;         │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><su...span                           │
> │ class="dni-code-hint"><code>{ lines = [|&quot;&quot;&quot;&quot;|]<br />     │
> │ position = { line = 0<br />               column = 2 }                       │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ &quot;&quot;                 │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 2                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>2                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 54.66ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JString ""                                                                   │
> │ JString ""                                                                   │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jString "\"a\""
> |> parserEqual (Success (JString "a"))
> 
> ╭─[ 39.38ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JString &quot;a&quot;, { lines = [      │
> │ |&quot;&quot;a&quot;&quot;|]<br />                        position = { line  │
> │ = 0<br />                                     column = 3 }                   │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JString &quot;a&quot;, { lines = [              │
> │ |&quot;&quot;a&quot;&quot;|]<br />  position = { line = 0<br />              │
> │ column = 3 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JString                                          │
> │ &quot;a&quot;</code></span></summary><div><table><thead><tr></tr></thead><tb │
> │ ody><tr><td>Item</td><td><div class="dni-plaintext"><pre>&quot;a&quot;       │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treev...an class="dni-code-hint"><code>{ lines │
> │ = [|&quot;&quot;a&quot;&quot;|]<br />  position = { line = 0<br />           │
> │ column = 3 }                                                                 │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ &quot;a&quot;                │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 3                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>3                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 46.83ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JString "a"                                                                  │
> │ JString "a"                                                                  │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jString "\"ab\""
> |> parserEqual (Success (JString "ab"))
> 
> ╭─[ 38.17ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JString &quot;ab&quot;, { lines = [     │
> │ |&quot;&quot;ab&quot;&quot;|]<br />                         position = {     │
> │ line = 0<br />                                      column = 4 }             │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JString &quot;ab&quot;, { lines = [             │
> │ |&quot;&quot;ab&quot;&quot;|]<br />  position = { line = 0<br />             │
> │ column = 4 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JString                                          │
> │ &quot;ab&quot;</code></span></summary><div><table><thead><tr></tr></thead><t │
> │ body><tr><td>Item</td><td><div class="dni-plaintext"><pre>&quot;ab&quot;     │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="d... class="dni-code-hint"><code>{ lines = [       │
> │ |&quot;&quot;ab&quot;&quot;|]<br />  position = { line = 0<br />             │
> │ column = 4 }                                                                 │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ &quot;ab&quot;               │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 4                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>4                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 44.96ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JString "ab"                                                                 │
> │ JString "ab"                                                                 │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jString "\"ab\\tde\""
> |> parserEqual (Success (JString "ab\tde"))
> 
> ╭─[ 36.99ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JString &quot;ab	de&quot;, { lines = [    │
> │ |&quot;&quot;ab\tde&quot;&quot;|]<br />                            position  │
> │ = { line = 0<br />                                         column = 8 }      │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JString &quot;ab	de&quot;, { lines = [            │
> │ |&quot;&quot;ab\tde&quot;&quot;|]<br />  position = { line = 0<br />         │
> │ column = 8 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JString &quot;ab	                                  │
> │ de&quot;</code></span></summary><div><table><thead><tr></tr></thead><tbody>< │
> │ tr><td>Item</td><td><div class="dni-plaintext"><pre>&quot;ab	de&quot;          │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2...dni-code-hint"><code>{ lines = [|&quot;&quot;ab\tde&quot;&quot;|]<br />  │
> │ position = { line = 0<br />               column = 8 }                       │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ &quot;ab\tde&quot;           │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 8                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>8                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 43.69ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JString "ab	de"                                                                │
> │ JString "ab	de"                                                                │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jString "\"ab\\u263Ade\""
> |> parserEqual (Success (JString "ab☺de"))
> 
> ╭─[ 47.74ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JString &quot;ab☺de&quot;, { lines = [  │
> │ |&quot;&quot;ab\u263Ade&quot;&quot;|]<br />                                  │
> │ position = { line = 0<br />                                         column = │
> │ 12 }                                                                         │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JString &quot;ab☺de&quot;, { lines = [          │
> │ |&quot;&quot;ab\u263Ade&quot;&quot;|]<br />  position = { line = 0<br />     │
> │ column = 12 }                                                                │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JString                                          │
> │ &quot;ab☺de&quot;</code></span></summary><div><table><thead><tr></tr></thead │
> │ ><tbody><tr><td>Item</td><td><div                                            │
> │ class="dni-plaintext"><pre>&quot;ab☺de&quot;                                 │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr...nt"><c │
> │ ode>{ lines = [|&quot;&quot;ab\u263Ade&quot;&quot;|]<br />  position = {     │
> │ line = 0<br />               column = 12 }                                   │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ &quot;ab\u263Ade&quot;       │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 12                                                         │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>12                                                │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 54.61ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JString "ab☺de"                                                              │
> │ JString "ab☺de"                                                              │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### jNumber                                                                  │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let jNumber =
>     let optSign = opt (pchar '-')
> 
>     let zero = pstring "0"
> 
>     let digitOneNine =
>         satisfy (fun ch -> Char.IsDigit ch && ch <> '0') "1-9"
> 
>     let digit =
>         satisfy Char.IsDigit "digit"
> 
>     let point = pchar '.'
> 
>     let e = pchar 'e' <|> pchar 'E'
> 
>     let optPlusMinus = opt (pchar '-' <|> pchar '+')
> 
>     let nonZeroInt =
>         digitOneNine .>>. manyChars digit
>         |>> fun (first, rest) -> string first + rest
> 
>     let intPart = zero <|> nonZeroInt
> 
>     let fractionPart = point >>. manyChars1 digit
> 
>     let exponentPart = e >>. optPlusMinus .>>. manyChars1 digit
> 
>     let inline (|>?) opt f =
>         match opt with
>         | None -> ""
>         | Some x -> f x
> 
>     let inline convertToJNumber (((optSign, intPart), fractionPart), expPart) =
>         let signStr =
>             optSign
>             |>? string
> 
>         let fractionPartStr =
>             fractionPart
>             |>? (fun digits -> "." + digits)
> 
>         let expPartStr =
>             expPart
>             |>? fun (optSign, digits) ->
>                 let sign = optSign |>? string
>                 "e" + sign + digits
> 
>         (signStr + intPart + fractionPartStr + expPartStr)
>         |> float
>         |> JNumber
> 
>     optSign .>>. intPart .>>. opt fractionPart .>>. opt exponentPart
>     |>> convertToJNumber
>     <?> "number"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> jValueRef <|
>     choice
>         [[
>             jNull
>             jBool
>             jString
>             jNumber
>         ]]
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNumber "123"
> |> parserEqual (Success (JNumber 123.0))
> 
> ╭─[ 59.89ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JNumber 123.0, { lines = [              │
> │ |&quot;123&quot;|]<br />                          position = { line = 0<br   │
> │ />                                       column = 3 }                        │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JNumber 123.0, { lines = [|&quot;123&quot;|]<br │
> │ />  position = { line = 0<br />               column = 3 }                   │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JNumber                                          │
> │ 123.0</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr> │
> │ <td>Item</td><td><div class="dni-plaintext"><pre>123.0                       │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;123&quot;|]<br />  position =  │
> │ { line = 0<br />               column = 3 }                                  │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ 123                          │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 3                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>3                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 69.46ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JNumber 123.0                                                                │
> │ JNumber 123.0                                                                │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNumber "-123"
> |> parserEqual (Success (JNumber -123.0))
> 
> ╭─[ 35.69ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JNumber -123.0, { lines = [             │
> │ |&quot;-123&quot;|]<br />                           position = { line = 0<br │
> │ />                                        column = 4 }                       │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JNumber -123.0, { lines = [                     │
> │ |&quot;-123&quot;|]<br />  position = { line = 0<br />               column  │
> │ = 4 }                                                                        │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JNumber                                          │
> │ -123.0</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr │
> │ ><td>Item</td><td><div class="dni-plaintext"><pre>-123.0                     │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;-123&quot;|]<br />  position = │
> │ { line = 0<br />               column = 4 }                                  │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ -123                         │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 4                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>4                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 41.76ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JNumber -123.0                                                               │
> │ JNumber -123.0                                                               │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNumber "123.4"
> |> parserEqual (Success (JNumber 123.4))
> 
> ╭─[ 43.06ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JNumber 123.4, { lines = [              │
> │ |&quot;123.4&quot;|]<br />                          position = { line = 0<br │
> │ />                                       column = 5 }                        │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JNumber 123.4, { lines = [                      │
> │ |&quot;123.4&quot;|]<br />  position = { line = 0<br />               column │
> │ = 5 }                                                                        │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JNumber                                          │
> │ 123.4</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr> │
> │ <td>Item</td><td><div class="dni-plaintext"><pre>123.4                       │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;123.4&quot;|]<br />  position  │
> │ = { line = 0<br />               column = 5 }                                │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ 123.4                        │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 5                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>5                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 49.99ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JNumber 123.4                                                                │
> │ JNumber 123.4                                                                │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNumber "-123."
> |> parserEqual (Success (JNumber -123.0))
> 
> ╭─[ 38.03ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JNumber -123.0, { lines = [             │
> │ |&quot;-123.&quot;|]<br />                           position = { line =     │
> │ 0<br />                                        column = 4 }                  │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JNumber -123.0, { lines = [                     │
> │ |&quot;-123.&quot;|]<br />  position = { line = 0<br />               column │
> │ = 4 }                                                                        │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JNumber                                          │
> │ -123.0</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr │
> │ ><td>Item</td><td><div class="dni-plaintext"><pre>-123.0                     │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;-123.&quot;|]<br />  position  │
> │ = { line = 0<br />               column = 4 }                                │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ -123.                        │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 4                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>4                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 45.80ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JNumber -123.0                                                               │
> │ JNumber -123.0                                                               │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNumber "00.1"
> |> parserEqual (Success (JNumber 0.0))
> 
> ╭─[ 39.69ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JNumber 0.0, { lines = [                │
> │ |&quot;00.1&quot;|]<br />                        position = { line = 0<br /> │
> │ column = 1 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JNumber 0.0, { lines = [|&quot;00.1&quot;|]<br  │
> │ />  position = { line = 0<br />               column = 1 }                   │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JNumber                                          │
> │ 0.0</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><t │
> │ d>Item</td><td><div class="dni-plaintext"><pre>0.0                           │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;00.1&quot;|]<br />  position = │
> │ { line = 0<br />               column = 1 }                                  │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ 00.1                         │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 0<br />  column = 1                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>0                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>1                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 45.79ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JNumber 0.0                                                                  │
> │ JNumber 0.0                                                                  │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let jNumber_ = jNumber .>> spaces1
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNumber_ "123"
> |> parserEqual (Success (JNumber 123.0))
> 
> ╭─[ 39.87ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JNumber 123.0, { lines = [              │
> │ |&quot;123&quot;|]<br />                          position = { line = 1<br   │
> │ />                                       column = 0 }                        │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JNumber 123.0, { lines = [|&quot;123&quot;|]<br │
> │ />  position = { line = 1<br />               column = 0 }                   │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JNumber                                          │
> │ 123.0</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr> │
> │ <td>Item</td><td><div class="dni-plaintext"><pre>123.0                       │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;123&quot;|]<br />  position =  │
> │ { line = 1<br />               column = 0 }                                  │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ 123                          │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 1<br />  column = 0                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>1                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 46.56ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JNumber 123.0                                                                │
> │ JNumber 123.0                                                                │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNumber_ "-123"
> |> parserEqual (Success (JNumber -123.0))
> 
> ╭─[ 40.00ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JNumber -123.0, { lines = [             │
> │ |&quot;-123&quot;|]<br />                           position = { line = 1<br │
> │ />                                        column = 0 }                       │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JNumber -123.0, { lines = [                     │
> │ |&quot;-123&quot;|]<br />  position = { line = 1<br />               column  │
> │ = 0 }                                                                        │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JNumber                                          │
> │ -123.0</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr │
> │ ><td>Item</td><td><div class="dni-plaintext"><pre>-123.0                     │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;-123&quot;|]<br />  position = │
> │ { line = 1<br />               column = 0 }                                  │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ -123                         │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 1<br />  column = 0                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>1                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 46.08ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JNumber -123.0                                                               │
> │ JNumber -123.0                                                               │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNumber_ "-123."
> |> parserEqual (
>     Failure (
>         "number andThen many1 whitespace",
>         "Unexpected '.'",
>         { currentLine = "-123."; line = 0; column = 4 }
>     )
> )
> 
> ╭─[ 31.71ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Failure<br />  (&quot;number andThen many1       │
> │ whitespace&quot;, &quot;Unexpected &#39;.&#39;&quot;, { currentLine =        │
> │ &quot;-123.&quot;<br />                                                      │
> │ line = 0<br />                                                               │
> │ column = 4                                                                   │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&quot;number andThen many1    │
> │ whitespace&quot;                                                             │
> │ </pre></div></td></tr><tr><td>Item2</td><td><div                             │
> │ class="dni-plaintext"><pre>&quot;Unexpected &#39;.&#39;&quot;                │
> │ </pre></div></td></tr><tr><td>Item3</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{            │
> │ currentLine = &quot;-123.&quot;<br />  line = 0<br />  column = 4            │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ currentLine</td><td><div class="dni-plaintext"><pre>&quot;-123.&quot;        │
> │ </pre></div></td></tr><tr><td>line</td><td><div class="dni-plaintext"><pre>0 │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>4                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>IsSu │
> │ ccess</td><td><div class="dni-plaintext"><pre>false                          │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 36.31ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Line:0 Col:4 Error parsing number andThen many1 whitespace                   │
> │ -123.                                                                        │
> │     ^Unexpected '.'                                                          │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNumber_ "123.4"
> |> parserEqual (Success (JNumber 123.4))
> 
> ╭─[ 35.98ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JNumber 123.4, { lines = [              │
> │ |&quot;123.4&quot;|]<br />                          position = { line = 1<br │
> │ />                                       column = 0 }                        │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JNumber 123.4, { lines = [                      │
> │ |&quot;123.4&quot;|]<br />  position = { line = 1<br />               column │
> │ = 0 }                                                                        │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JNumber                                          │
> │ 123.4</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr> │
> │ <td>Item</td><td><div class="dni-plaintext"><pre>123.4                       │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;123.4&quot;|]<br />  position  │
> │ = { line = 1<br />               column = 0 }                                │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ 123.4                        │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 1<br />  column = 0                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>1                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 42.54ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JNumber 123.4                                                                │
> │ JNumber 123.4                                                                │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNumber_ "00.4"
> |> parserEqual (
>     Failure (
>         "number andThen many1 whitespace",
>         "Unexpected '0'",
>         { currentLine = "00.4"; line = 0; column = 1 }
>     )
> )
> 
> ╭─[ 35.08ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Failure<br />  (&quot;number andThen many1       │
> │ whitespace&quot;, &quot;Unexpected &#39;0&#39;&quot;, { currentLine =        │
> │ &quot;00.4&quot;<br />                                                       │
> │ line = 0<br />                                                               │
> │ column = 1                                                                   │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&quot;number andThen many1    │
> │ whitespace&quot;                                                             │
> │ </pre></div></td></tr><tr><td>Item2</td><td><div                             │
> │ class="dni-plaintext"><pre>&quot;Unexpected &#39;0&#39;&quot;                │
> │ </pre></div></td></tr><tr><td>Item3</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{            │
> │ currentLine = &quot;00.4&quot;<br />  line = 0<br />  column = 1             │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ currentLine</td><td><div class="dni-plaintext"><pre>&quot;00.4&quot;         │
> │ </pre></div></td></tr><tr><td>line</td><td><div class="dni-plaintext"><pre>0 │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>1                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>IsSu │
> │ ccess</td><td><div class="dni-plaintext"><pre>false                          │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 39.93ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Line:0 Col:1 Error parsing number andThen many1 whitespace                   │
> │ 00.4                                                                         │
> │  ^Unexpected '0'                                                             │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNumber_ "123e4"
> |> parserEqual (Success (JNumber 1230000.0))
> 
> ╭─[ 40.62ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JNumber 1230000.0, { lines = [          │
> │ |&quot;123e4&quot;|]<br />                              position = { line =  │
> │ 1<br />                                           column = 0 }               │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JNumber 1230000.0, { lines = [                  │
> │ |&quot;123e4&quot;|]<br />  position = { line = 1<br />               column │
> │ = 0 }                                                                        │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JNumber                                          │
> │ 1230000.0</code></span></summary><div><table><thead><tr></tr></thead><tbody> │
> │ <tr><td>Item</td><td><div class="dni-plaintext"><pre>1230000.0               │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;123e4&quot;|]<br />  position  │
> │ = { line = 1<br />               column = 0 }                                │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ 123e4                        │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 1<br />  column = 0                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>1                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 50.28ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JNumber 1230000.0                                                            │
> │ JNumber 1230000.0                                                            │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNumber_ "123.4e5"
> |> parserEqual (Success (JNumber 12340000.0))
> 
> ╭─[ 37.18ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JNumber 12340000.0, { lines = [         │
> │ |&quot;123.4e5&quot;|]<br />                               position = { line │
> │ = 1<br />                                            column = 0 }            │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JNumber 12340000.0, { lines = [                 │
> │ |&quot;123.4e5&quot;|]<br />  position = { line = 1<br />                    │
> │ column = 0 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JNumber                                          │
> │ 12340000.0</code></span></summary><div><table><thead><tr></tr></thead><tbody │
> │ ><tr><td>Item</td><td><div class="dni-plaintext"><pre>12340000.0             │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;123.4e5&quot;|]<br />          │
> │ position = { line = 1<br />               column = 0 }                       │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ 123.4e5                      │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 1<br />  column = 0                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>1                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 43.72ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JNumber 12340000.0                                                           │
> │ JNumber 12340000.0                                                           │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jNumber_ "123.4e-5"
> |> parserEqual (Success (JNumber 0.001234))
> 
> ╭─[ 40.49ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JNumber 0.001234, { lines = [           │
> │ |&quot;123.4e-5&quot;|]<br />                             position = { line  │
> │ = 1<br />                                          column = 0 }              │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JNumber 0.001234, { lines = [                   │
> │ |&quot;123.4e-5&quot;|]<br />  position = { line = 1<br />                   │
> │ column = 0 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JNumber                                          │
> │ 0.001234</code></span></summary><div><table><thead><tr></tr></thead><tbody>< │
> │ tr><td>Item</td><td><div class="dni-plaintext"><pre>0.001234                 │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJObject</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJArray</td><td><div                          │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>Item │
> │ 2</td><td><details class="dni-treeview"><summary><span                       │
> │ class="dni-code-hint"><code>{ lines = [|&quot;123.4e-5&quot;|]<br />         │
> │ position = { line = 1<br />               column = 0 }                       │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ 123.4e-5                     │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 1<br />  column = 0                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>1                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 46.77ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JNumber 0.001234                                                             │
> │ JNumber 0.001234                                                             │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### jArray                                                                   │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let jArray =
>     let left = pchar '[[' .>> spaces
>     let right = pchar ']]' .>> spaces
>     let comma = pchar ',' .>> spaces
>     let value = jValue .>> spaces
> 
>     let values = sepBy value comma
> 
>     between left values right
>     |>> JArray
>     <?> "array"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> jValueRef <|
>     choice
>         [[
>             jNull
>             jBool
>             jString
>             jNumber
>             jArray
>         ]]
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jArray "[[ 1, 2 ]]"
> |> parserEqual (Success (JArray [[ JNumber 1.0; JNumber 2.0 ]]))
> 
> ╭─[ 83.59ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success (JArray [JNumber 1.0; JNumber 2.0], {    │
> │ lines = [|&quot;[ 1, 2 ]&quot;|]<br />                                       │
> │ position = { line = 1<br />                                                  │
> │ column = 0 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JArray [JNumber 1.0; JNumber 2.0], { lines = [  │
> │ |&quot;[ 1, 2 ]&quot;|]<br />  position = { line = 1<br />                   │
> │ column = 0 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JArray [JNumber 1.0; JNumber                     │
> │ 2.0]</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr>< │
> │ td>Item</td><td><table><thead><tr><th><i>index</i></th><th>value</th></tr></ │
> │ thead><tbody><tr><td>0</td><td><details class="dni-treeview"><summary><span  │
> │ class="dni-code-hint"><code>JNumber                                          │
> │ 1.0</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><t │
> │ d>Item</td><td><div class="dni-plaintext"><pre>1.0                           │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr><tr><td>IsJBool</td><td><div                           │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNull</td><td>...ummary><span                │
> │ class="dni-code-hint"><code>{ lines = [|&quot;[ 1, 2 ]&quot;|]<br />         │
> │ position = { line = 1<br />               column = 0 }                       │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ [ 1, 2 ]                     │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 1<br />  column = 0                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>1                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 90.60ms - stdout ]─────────────────────────────────────────────────────────╮
> │ JArray [JNumber 1.0; JNumber 2.0]                                            │
> │ JArray [JNumber 1.0; JNumber 2.0]                                            │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jArray "[[ 1, 2, ]]"
> |> parserEqual (
>     Failure (
>         "array",
>         "Unexpected ','",
>         { currentLine = "[[ 1, 2, ]]"; line = 0; column = 6 }
>     )
> )
> 
> ╭─[ 36.35ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Failure (&quot;array&quot;, &quot;Unexpected     │
> │ &#39;,&#39;&quot;, { currentLine = &quot;[ 1, 2, ]&quot;<br />               │
> │ line = 0<br />                                      column = 6               │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&quot;array&quot;             │
> │ </pre></div></td></tr><tr><td>Item2</td><td><div                             │
> │ class="dni-plaintext"><pre>&quot;Unexpected &#39;,&#39;&quot;                │
> │ </pre></div></td></tr><tr><td>Item3</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{            │
> │ currentLine = &quot;[ 1, 2, ]&quot;<br />  line = 0<br />  column = 6        │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ currentLine</td><td><div class="dni-plaintext"><pre>&quot;[ 1, 2, ]&quot;    │
> │ </pre></div></td></tr><tr><td>line</td><td><div class="dni-plaintext"><pre>0 │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>6                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>IsSu │
> │ ccess</td><td><div class="dni-plaintext"><pre>false                          │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 40.94ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Line:0 Col:6 Error parsing array                                             │
> │ [ 1, 2, ]                                                                    │
> │       ^Unexpected ','                                                        │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### jObject                                                                  │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let jObject =
>     let left = spaces >>. pchar '{' .>> spaces
>     let right = pchar '}' .>> spaces
>     let colon = pchar ':' .>> spaces
>     let comma = pchar ',' .>> spaces
>     let key = quotedString .>> spaces
>     let value = jValue .>> spaces
> 
>     let keyValue = (key .>> colon) .>>. value
>     let keyValues = sepBy keyValue comma
> 
>     between left keyValues right
>     |>> Map.ofList
>     |>> JObject
>     <?> "object"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> jValueRef <|
>     choice
>         [[
>             jNull
>             jBool
>             jString
>             jNumber
>             jArray
>             jObject
>         ]]
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jObject """{ "a":1, "b"  :  2 }"""
> |> parserEqual (
>     Success (
>         JObject (
>             Map.ofList [[
>                 "a", JNumber 1.0
>                 "b", JNumber 2.0
>             ]]
>         )
>     )
> )
> 
> ╭─[ 178.44ms - return value ]──────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success<br />  (JObject (map [(&quot;a&quot;,    │
> │ JNumber 1.0); (&quot;b&quot;, JNumber 2.0)]),<br />   { lines = [|&quot;{    │
> │ &quot;a&quot;:1, &quot;b&quot;  :  2 }&quot;|]<br />     position = { line = │
> │ 1<br />                  column = 0 }                                        │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item</td><td><details class="dni-treeview"><summary><span                   │
> │ class="dni-code-hint"><code>(JObject (map [(&quot;a&quot;, JNumber 1.0);     │
> │ (&quot;b&quot;, JNumber 2.0)]), { lines = [|&quot;{ &quot;a&quot;:1,         │
> │ &quot;b&quot;  :  2 }&quot;|]<br />  position = { line = 1<br />             │
> │ column = 0 }                                                                 │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>JObject (map [(&quot;a&quot;, JNumber 1.0);      │
> │ (&quot;b&quot;, JNumber                                                      │
> │ 2.0)])</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr │
> │ ><td>Item</td><td><table><thead><tr><th><i>key</i></th><th>value</th></tr></ │
> │ thead><tbody><tr><td><div class="dni-plaintext"><pre>&quot;a&quot;           │
> │ </pre></div></td><td><details class="dni-treeview"><summary><span            │
> │ class="dni-code-hint"><code>JNumber                                          │
> │ 1.0</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><t │
> │ d>Item</td><td><div class="dni-plaintext"><pre>1.0                           │
> │ </pre></div></td></tr><tr><td>IsJString</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr><tr><td>IsJNumber</...ot;a&quot;:1, &quot;b&quot;  :   │
> │ 2 }&quot;|]<br />  position = { line = 1<br />               column = 0 }    │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ lines</td><td><div class="dni-plaintext"><pre>[ { &quot;a&quot;:1,           │
> │ &quot;b&quot;  :  2 }                                                        │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 1<br />  column = 0                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>1                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 188.09ms - stdout ]────────────────────────────────────────────────────────╮
> │ JObject (map [("a", JNumber 1.0); ("b", JNumber 2.0)])                       │
> │ JObject (map [("a", JNumber 1.0); ("b", JNumber 2.0)])                       │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run jObject """{ "a":1, "b"  :  2, }"""
> |> parserEqual (
>     Failure (
>         "object",
>         "Unexpected ','",
>         { currentLine = """{ "a":1, "b"  :  2, }"""; line = 0; column = 18 }
>     )
> )
> 
> ╭─[ 47.56ms - return value ]───────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Failure (&quot;object&quot;, &quot;Unexpected    │
> │ &#39;,&#39;&quot;, { currentLine = &quot;{ &quot;a&quot;:1, &quot;b&quot;  : │
> │ 2, }&quot;<br />                                       line = 0<br />        │
> │ column = 18                                                                  │
> │ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
> │ >Item1</td><td><div class="dni-plaintext"><pre>&quot;object&quot;            │
> │ </pre></div></td></tr><tr><td>Item2</td><td><div                             │
> │ class="dni-plaintext"><pre>&quot;Unexpected &#39;,&#39;&quot;                │
> │ </pre></div></td></tr><tr><td>Item3</td><td><details                         │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{            │
> │ currentLine = &quot;{ &quot;a&quot;:1, &quot;b&quot;  :  2, }&quot;<br />    │
> │ line = 0<br />  column = 18                                                  │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ currentLine</td><td><div class="dni-plaintext"><pre>&quot;{ &quot;a&quot;:1, │
> │ &quot;b&quot;  :  2, }&quot;                                                 │
> │ </pre></div></td></tr><tr><td>line</td><td><div class="dni-plaintext"><pre>0 │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>18                                                │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr><tr><td>IsSu │
> │ ccess</td><td><div class="dni-plaintext"><pre>false                          │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>true                                              │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 52.26ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Line:0 Col:18 Error parsing object                                           │
> │ { "a":1, "b"  :  2, }                                                        │
> │                   ^Unexpected ','                                            │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### jValue                                                                   │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let example1 = """{
>     "name" : "Scott",
>     "isMale" : true,
>     "bday" : {"year":2001, "month":12, "day":25 },
>     "favouriteColors" : [["blue", "green"]],
>     "emptyArray" : [[]],
>     "emptyObject" : {}
> }"""
> run jValue example1
> |> parserEqual (
>     Success (
>         JObject (
>             Map.ofList [[
>                 "name", JString "Scott"
>                 "isMale", JBool true
>                 "bday", JObject (
>                     Map.ofList [[
>                         "year", JNumber 2001.0
>                         "month", JNumber 12.0
>                         "day", JNumber 25.0
>                     ]]
>                 )
>                 "favouriteColors", JArray [[ JString "blue"; JString "green" ]]
>                 "emptyArray", JArray [[]]
>                 "emptyObject", JObject Map.empty
>             ]]
>         )
>     )
> )
> 
> ╭─[ 158.31ms - return value ]──────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success<br />  (JObject<br />     (map<br />     │
> │ [(&quot;bday&quot;,<br />          JObject<br />            (map<br />       │
> │ [(&quot;day&quot;, JNumber 25.0); (&quot;month&quot;, JNumber 12.0);<br />   │
> │ (&quot;year&quot;, JNumber 2001.0)])); (&quot;emptyArray&quot;, JArray [     │
> │ ]);<br />         (&quot;emptyObject&quot;, JObject (map []));<br />         │
> │ (&quot;favouriteColors&quot;,                                                │
> │ ...</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><t │
> │ d>Item</td><td><details class="dni-treeview"><summary><span                  │
> │ class="dni-code-hint"><code>(JObject<br />  (map<br />     [                 │
> │ (&quot;bday&quot;,<br />       JObject<br />         (map<br />            [ │
> │ (&quot;day&quot;, JNumber 25.0); (&quot;month&quot;, JNumber 12.0);<br />    │
> │ (&quot;year&quot;, JNumber 2001.0)])); (&quot;emptyArray&quot;, JArray [     │
> │ ]);<br />      (&quot;emptyObject&quot;, JObject (map []));<br />            │
> │ (&quot;favouriteColors&quot;, JArray [JString &quot;blue&quot;; JString      │
> │ &quot;gr...</code></span></summary><div><table><thead><tr></tr></thead><tbod │
> │ y><tr><td>Item1</td><td><details class="dni-treeview"><summary><span         │
> │ class="dni-code-hint"><code>JObject<br />  (map<br />     [                  │
> │ (&quot;bday&quot;,<br />       JObject<br />         (map<br />            [ │
> │ (&quot;day&quot;, JNumber 25.0); (&quot;month&quot;, JNumber 12.0);<br />    │
> │ (&quot;year&quot;, JNumber 2001.0)])); (&quot;emptyArray&quot;, JArra...,,   │
> │ &quot;isMale&quot; : true,,     &quot;bday&quot; : {&quot;year&quot;:2001,   │
> │ &quot;month&quot;:12, &quot;day&quot;:25 },,     &quot;favouriteColors&quot; │
> │ : [&quot;blue&quot;, &quot;green&quot;],,     &quot;emptyArray&quot; : [],,  │
> │ &quot;emptyObject&quot; : {}, }                                              │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 8<br />  column = 0                                                          │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>8                               │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 164.37ms - stdout ]────────────────────────────────────────────────────────╮
> │ JObject                                                                      │
> │   (map                                                                       │
> │      [("bday",                                                               │
> │        JObject                                                               │
> │          (map                                                                │
> │             [("day", JNumber 25.0); ("month", JNumber 12.0);                 │
> │              ("year", JNumber 2001.0)])); ("emptyArray", JArray []);         │
> │       ("emptyObject", JObject (map []));                                     │
> │       ("favouriteColors", JArray [JString "blue"; JString "green"]);         │
> │       ("isMale", JBool true); ("name", JString "Scott")])                    │
> │ JObject                                                                      │
> │   (map                                                                       │
> │      [("bday", JObject (map [("day", JNumber 25.0); ("month", JNumber 12.0); │
> │ ("year", JNumber 2001.0)]));                                                 │
> │       ("emptyArray", JArray []); ("emptyObject", JObject (map []));          │
> │       ("favouriteColors", JArray [JString "blue"; JString "green"]);         │
> │ ("isMale", JBool true); ("name", JString "Scott")])                          │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let example2 = """{"widget": {
>     "debug": "on",
>     "window": {
>         "title": "Sample Konfabulator Widget",
>         "name": "main_window",
>         "width": 500,
>         "height": 500
>     },
>     "image": {
>         "src": "Images/Sun.png",
>         "name": "sun1",
>         "hOffset": 250,
>         "vOffset": 250,
>         "alignment": "center"
>     },
>     "text": {
>         "data": "Click Here",
>         "size": 36,
>         "style": "bold",
>         "name": "text1",
>         "hOffset": 250,
>         "vOffset": 100,
>         "alignment": "center",
>         "onMouseUp": "sun1.opacity = (sun1.opacity / 100) * 90;"
>     }
> }}"""
> 
> run jValue example2
> |> parserEqual (
>     Success (
>         JObject (
>             Map.ofList [[
>                 "widget", JObject (
>                     Map.ofList [[
>                         "debug", JString "on"
>                         "window", JObject (
>                             Map.ofList [[
>                                 "title", JString "Sample Konfabulator Widget"
>                                 "name", JString "main_window"
>                                 "width", JNumber 500.0
>                                 "height", JNumber 500.0
>                             ]]
>                         )
>                         "image", JObject (
>                             Map.ofList [[
>                                 "src", JString "Images/Sun.png"
>                                 "name", JString "sun1"
>                                 "hOffset", JNumber 250.0
>                                 "vOffset", JNumber 250.0
>                                 "alignment", JString "center"
>                             ]]
>                         )
>                         "text", JObject (
>                             Map.ofList [[
>                                 "data", JString "Click Here"
>                                 "size", JNumber 36.0
>                                 "style", JString "bold"
>                                 "name", JString "text1"
>                                 "hOffset", JNumber 250.0
>                                 "vOffset", JNumber 100.0
>                                 "alignment", JString "center"
>                                 "onMouseUp", JString "sun1.opacity = 
> (sun1.opacity / 100) * 90;"
>                             ]]
>                         )
>                     ]]
>                 )
>             ]]
>         )
>     )
> )
> 
> ╭─[ 318.28ms - return value ]──────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success<br />  (JObject<br />     (map<br />     │
> │ [(&quot;widget&quot;,<br />          JObject<br />            (map<br />     │
> │ [(&quot;debug&quot;, JString &quot;on&quot;);<br />                          │
> │ (&quot;image&quot;,<br />                 JObject<br />                      │
> │ (map<br />                      [(&quot;alignment&quot;, JString             │
> │ &quot;center&quot;);<br />                                                   │
> │ (&quot;hOffset&quot;...</code></span></summary><div><table><thead><tr></tr>< │
> │ /thead><tbody><tr><td>Item</td><td><details                                  │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>(JObject<br  │
> │ />  (map<br />     [(&quot;widget&quot;,<br />       JObject<br />           │
> │ (map<br />            [(&quot;debug&quot;, JString &quot;on&quot;);<br />    │
> │ (&quot;image&quot;,<br />              JObject<br />                (map<br  │
> │ />                   [(&quot;alignment&quot;, JString &quot;center&quot;);   │
> │ (&quot;hOffset&quot;, JNumber 250.0);<br />                                  │
> │ (&quot;name&quot;, JString                                                   │
> │ &quot;sun1&quot;...</code></span></summary><div><table><thead><tr></tr></the │
> │ ad><tbody><tr><td>Item1</td><td><details class="dni-treeview"><summary><span │
> │ class="dni-code-hint"><code>JObject<br />  (map<br />     [                  │
> │ (&quot;widget&quot;,<br />       JObject<br />         (map<br />            │
> │ [(&quot;debug&quot;, JString &quot;on&quot;);<br />                          │
> │ (&quot;image&quot;,<br />              JObject<br />                (...t;,, │
> │ &quot;name&quot;: &quot;text1&quot;,,         &quot;hOffset&quot;: 250,,     │
> │ &quot;vOffset&quot;: 100,,         &quot;alignment&quot;:                    │
> │ &quot;center&quot;,,         &quot;onMouseUp&quot;: &quot;sun1.opacity =     │
> │ (sun1.opacity / 100) * 90;&quot;,     }, }}                                  │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 26<br />  column = 0                                                         │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>26                              │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 324.27ms - stdout ]────────────────────────────────────────────────────────╮
> │ JObject                                                                      │
> │   (map                                                                       │
> │      [("widget",                                                             │
> │        JObject                                                               │
> │          (map                                                                │
> │             [("debug", JString "on");                                        │
> │              ("image",                                                       │
> │               JObject                                                        │
> │                 (map                                                         │
> │                    [("alignment", JString "center"); ("hOffset", JNumber     │
> │ 250.0);                                                                      │
> │                     ("name", JString "sun1"); ("src", JString                │
> │ "Images/Sun.png");                                                           │
> │                     ("vOffset", JNumber 250.0)]));                           │
> │              ("text",                                                        │
> │               JObject                                                        │
> │                 (map                                                         │
> │                    [("alignment", JString "center");                         │
> │                     ("data", JString "Click Here"); ("hOffset", JNumber      │
> │ 250.0);                                                                      │
> │                     ("name", JString "text1");                               │
> │                     ("onMouseUp",                                            │
> │                      JString "sun1.opacity = (sun1.opacity / 100) * 90;");   │
> │                     ("size", JNumber 36.0); ("style", JString "bold");       │
> │                     ("vOffset", JNumber 100.0)]));                           │
> │              ("window",                                                      │
> │               JObject                                                        │
> │                 (map                                                         │
> │                    [("height", JNumber 500.0); ("name", JString              │
> │ "main_window");                                                              │
> │                     ("title", JString "Sample Konfabulator Widget");         │
> │                     ("width", JNumber 500.0)]))]))])                         │
> │ JObject                                                                      │
> │   (map                                                                       │
> │      [("widget",                                                             │
> │        JObject                                                               │
> │          (map                                                                │
> │             [("debug", JString "on");                                        │
> │              ("image",                                                       │
> │               JObject                                                        │
> │                 (map                                                         │
> │                    [("alignment", JString "center"); ("hOffset", JNumber     │
> │ 250.0); ("name", JString "sun1");                                            │
> │                     ("src", JString "Images/Sun.png"); ("vOffset", JNumber   │
> │ 250.0)]));                                                                   │
> │              ("text",                                                        │
> │               JObject                                                        │
> │                 (map                                                         │
> │                    [("alignment", JString "center"); ("data", JString "Click │
> │ Here"); ("hOffset", JNumber 250.0);                                          │
> │                     ("name", JString "text1"); ("onMouseUp", JString         │
> │ "sun1.opacity = (sun1.opacity / 100) * 90;");                                │
> │                     ("size", JNumber 36.0); ("style", JString "bold");       │
> │ ("vOffset", JNumber 100.0)]));                                               │
> │              ("window",                                                      │
> │               JObject                                                        │
> │                 (map                                                         │
> │                    [("height", JNumber 500.0); ("name", JString              │
> │ "main_window");                                                              │
> │                     ("title", JString "Sample Konfabulator Widget");         │
> │ ("width", JNumber 500.0)]))]))])                                             │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let example3 = """{
>   "string": "Hello, \"World\"!",
>   "escapedString": "This string contains \\/\\\\\\b\\f\\n\\r\\t\\\"\\'",
>   "number": 42,
>   "scientificNumber": 3.14e-10,
>   "boolean": true,
>   "nullValue": null,
>   "array": [[1, 2, 3, 4, 5]],
>   "unicodeString1": "프리마",
>   "unicodeString2": "\u0048\u0065\u006C\u006C\u006F, 
> \u0022\u0057\u006F\u0072\u006C\u0064\u0022!",
>   "specialCharacters": "!@#$%^&*()",
>   "emptyArray": [[]],
>   "emptyObject": {},
>   "nestedArrays": [[[[1, 2, 3]], [[4, 5, 6]]]],
>   "object": {
>     "nestedString": "Nested Value",
>     "nestedNumber": 3.14,
>     "nestedBoolean": false,
>     "nestedNull": null,
>     "nestedArray": [["a", "b", "c"]],
>     "nestedObject": {
>       "nestedProperty": "Nested Object Value"
>     }
>   },
>   "nestedObjects": [[
>     {"name": "Alice", "age": 25},
>     {"name": "Bob", "age": 30}
>   ]]
> }"""
> run jValue example3
> |> parserEqual (
>     Success (
>         JObject (
>             Map.ofList [[
>                 "string", JString @"Hello, ""World""!"
>                 "escapedString", JString @"This string contains 
> \/\\\b\f\n\r\t\""\'"
>                 "number", JNumber 42.0
>                 "scientificNumber", JNumber 3.14e-10
>                 "boolean", JBool true
>                 "nullValue", JNull
>                 "array", JArray [[
>                     JNumber 1.0; JNumber 2.0; JNumber 3.0; JNumber 4.0; JNumber 
> 5.0
>                 ]]
>                 "unicodeString1", JString "프리마"
>                 "unicodeString2", JString @"Hello, ""World""!"
>                 "specialCharacters", JString "!@#$%^&*()"
>                 "emptyArray", JArray [[]]
>                 "emptyObject", JObject Map.empty
>                 "nestedArrays", JArray [[
>                     JArray [[ JNumber 1.0; JNumber 2.0; JNumber 3.0 ]]
>                     JArray [[ JNumber 4.0; JNumber 5.0; JNumber 6.0 ]]
>                 ]]
>                 "object", JObject (
>                     Map.ofList [[
>                         "nestedString", JString "Nested Value"
>                         "nestedNumber", JNumber 3.14
>                         "nestedBoolean", JBool false
>                         "nestedNull", JNull
>                         "nestedArray", JArray [[JString "a"; JString "b"; 
> JString "c"]]
>                         "nestedObject", JObject (
>                             Map.ofList [[
>                                 "nestedProperty", JString "Nested Object Value"
>                             ]]
>                         )
>                     ]]
>                 )
>                 "nestedObjects", JArray [[
>                   JObject (Map.ofList [[ "name", JString "Alice"; "age", JNumber
> 25.0 ]])
>                   JObject (Map.ofList [[ "name", JString "Bob"; "age", JNumber 
> 30.0 ]])
>                 ]]
>             ]]
>         )
>     )
> )
> 
> ╭─[ 459.23ms - return value ]──────────────────────────────────────────────────╮
> │ <details open="open" class="dni-treeview"><summary><span                     │
> │ class="dni-code-hint"><code>Success<br />  (JObject<br />     (map<br />     │
> │ [(&quot;array&quot;,<br />          JArray<br />            [JNumber 1.0;    │
> │ JNumber 2.0; JNumber 3.0; JNumber 4.0; JNumber 5.0]);<br />                  │
> │ (&quot;boolean&quot;, JBool true); (&quot;emptyArray&quot;, JArray []);<br   │
> │ />         (&quot;emptyObject&quot;, JObject (map []));<br />                │
> │ (&quot;escapedString&quot;, JString &quot;This                               │
> │ s...</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr>< │
> │ td>Item</td><td><details class="dni-treeview"><summary><span                 │
> │ class="dni-code-hint"><code>(JObject<br />  (map<br />     [                 │
> │ (&quot;array&quot;,<br />       JArray [JNumber 1.0; JNumber 2.0; JNumber    │
> │ 3.0; JNumber 4.0; JNumber 5.0]);<br />      (&quot;boolean&quot;, JBool      │
> │ true); (&quot;emptyArray&quot;, JArray []);<br />                            │
> │ (&quot;emptyObject&quot;, JObject (map []));<br />                           │
> │ (&quot;escapedString&quot;, JString &quot;This string contains \/\\\b\f<br   │
> │ />\r\t\&quot;\&#39;&quot;);<br />                                            │
> │ ...</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><t │
> │ d>Item1</td><td><details class="dni-treeview"><summary><span                 │
> │ class="dni-code-hint"><code>JObject<br />  (map<br />     [                  │
> │ (&quot;array&quot;,<br />       JArray [JNumber 1.0; JNumber 2.0; JNumber    │
> │ 3.0; JNumber 4.0; JNumber 5.0]);<br />      (&quot;boolean&quot;, JBool      │
> │ true); (&quot;emptyArray&quot;, JArray []);<br />                            │
> │ (&quot;emptyObject&quot;, JObject (map []));<br />                           │
> │ (&quot;es...nestedObject&quot;: {,       &quot;nestedProperty&quot;:         │
> │ &quot;Nested Object Value&quot;,     },   },,   &quot;nestedObjects&quot;: [ │
> │ ,     {&quot;name&quot;: &quot;Alice&quot;, &quot;age&quot;: 25},,           │
> │ {&quot;name&quot;: &quot;Bob&quot;, &quot;age&quot;: 30},   ], }             │
> │ ]</pre></div></td></tr><tr><td>position</td><td><details                     │
> │ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ line =     │
> │ 29<br />  column = 0                                                         │
> │ }</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
> │ line</td><td><div class="dni-plaintext"><pre>29                              │
> │ </pre></div></td></tr><tr><td>column</td><td><div                            │
> │ class="dni-plaintext"><pre>0                                                 │
> │ </pre></div></td></tr></tbody></table></div></details></td></tr></tbody></ta │
> │ ble></div></details></td></tr></tbody></table></div></details></td></tr><tr> │
> │ <td>IsSuccess</td><td><div class="dni-plaintext"><pre>true                   │
> │ </pre></div></td></tr><tr><td>IsFailure</td><td><div                         │
> │ class="dni-plaintext"><pre>false                                             │
> │ </pre></div></td></tr></tbody></table></div></details><style>                │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ╭─[ 465.67ms - stdout ]────────────────────────────────────────────────────────╮
> │ JObject                                                                      │
> │   (map                                                                       │
> │      [("array",                                                              │
> │        JArray [JNumber 1.0; JNumber 2.0; JNumber 3.0; JNumber 4.0; JNumber   │
> │ 5.0]);                                                                       │
> │       ("boolean", JBool true); ("emptyArray", JArray []);                    │
> │       ("emptyObject", JObject (map []));                                     │
> │       ("escapedString", JString "This string contains \/\\\b\f\n\r\t\"\'");  │
> │       ("nestedArrays",                                                       │
> │        JArray                                                                │
> │          [JArray [JNumber 1.0; JNumber 2.0; JNumber 3.0];                    │
> │           JArray [JNumber 4.0; JNumber 5.0; JNumber 6.0]]);                  │
> │       ("nestedObjects",                                                      │
> │        JArray                                                                │
> │          [JObject (map [("age", JNumber 25.0); ("name", JString "Alice")]);  │
> │           JObject (map [("age", JNumber 30.0); ("name", JString "Bob")])]);  │
> │       ("nullValue", JNull); ("number", JNumber 42.0); ...])                  │
> │ JObject                                                                      │
> │   (map                                                                       │
> │      [("array", JArray [JNumber 1.0; JNumber 2.0; JNumber 3.0; JNumber 4.0;  │
> │ JNumber 5.0]); ("boolean", JBool true);                                      │
> │       ("emptyArray", JArray []); ("emptyObject", JObject (map []));          │
> │       ("escapedString", JString "This string contains \/\\\b\f\n\r\t\"\'");  │
> │       ("nestedArrays",                                                       │
> │        JArray [JArray [JNumber 1.0; JNumber 2.0; JNumber 3.0]; JArray [      │
> │ JNumber 4.0; JNumber 5.0; JNumber 6.0]]);                                    │
> │       ("nestedObjects",                                                      │
> │        JArray                                                                │
> │          [JObject (map [("age", JNumber 25.0); ("name", JString "Alice")]);  │
> │           JObject (map [("age", JNumber 30.0); ("name", JString "Bob")])]);  │
> │ ("nullValue", JNull);                                                        │
> │       ("number", JNumber 42.0); ...])                                        │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:24 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 266592 }
00:00:24   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/apps/parser/JsonParser.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/apps/parser/JsonParser.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:26 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/apps/parser/JsonParser.dib.ipynb to html
00:00:26 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:26 verbose #7 !   validate(nb)
00:00:27 verbose #8 ! [NbConvertApp] Writing 534279 bytes to c:\home\git\polyglot\apps\parser\JsonParser.dib.html
00:00:28 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 653 }
00:00:28   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 653 }
00:00:28   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/apps/parser/JsonParser.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/apps/parser/JsonParser.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:28 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:00:28   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:00:29   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 267304 }
00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "Parser.dib"])) }
00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/apps/parser/Parser.dib", "--output-path", "c:/home/git/polyglot/apps/parser/Parser.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/apps/parser/Parser.dib" --output-path "c:/home/git/polyglot/apps/parser/Parser.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ # Parser (Polyglot)                                                          │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> open Common
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### TextInput                                                                │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type Position =
>     {
>         line : int
>         column : int
>     }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let initialPos = { line = 0; column = 0 }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline incrCol (pos : Position) =
>     { pos with column = pos.column + 1 }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline incrLine pos =
>     { line = pos.line + 1; column = 0 }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type InputState =
>     {
>         lines : string[[]]
>         position : Position
>     }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline fromStr str =
>     {
>         lines =
>             if str |> String.IsNullOrEmpty
>             then [[||]]
>             else str |> SpiralSm.split_string [[| "\r\n"; "\n" |]]
>         position = initialPos
>     }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> fromStr "" |> _assertEqual {
>     lines = [[||]]
>     position = { line = 0; column = 0 }
> }
> 
> ╭─[ 57.10ms - stdout ]─────────────────────────────────────────────────────────╮
> │ { lines = [||]                                                               │
> │   position = { line = 0                                                      │
> │                column = 0 } }                                                │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> fromStr "Hello \n World" |> _assertEqual {
>     lines = [[| "Hello "; " World" |]]
>     position = { line = 0; column = 0 }
> }
> 
> ╭─[ 22.14ms - stdout ]─────────────────────────────────────────────────────────╮
> │ { lines = [|"Hello "; " World"|]                                             │
> │   position = { line = 0                                                      │
> │                column = 0 } }                                                │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline currentLine inputState =
>     let linePos = inputState.position.line
>     if linePos < inputState.lines.Length
>     then inputState.lines.[[linePos]]
>     else "end of file"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline nextChar input =
>     let linePos = input.position.line
>     let colPos = input.position.column
> 
>     if linePos >= input.lines.Length
>     then input, None
>     else
>         let currentLine = currentLine input
>         if colPos < currentLine.Length then
>             let char = currentLine.[[colPos]]
>             let newPos = incrCol input.position
>             let newState = { input with position = newPos }
>             newState, Some char
>         else
>             let char = '\n'
>             let newPos = incrLine input.position
>             let newState = { input with position = newPos }
>             newState, Some char
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let newInput, charOpt = fromStr "Hello World" |> nextChar
> 
> newInput |> _assertEqual {
>     lines = [[| "Hello World" |]]
>     position = { line = 0; column = 1 }
> }
> charOpt |> _assertEqual (Some 'H')
> 
> ╭─[ 44.79ms - stdout ]─────────────────────────────────────────────────────────╮
> │ { lines = [|"Hello World"|]                                                  │
> │   position = { line = 0                                                      │
> │                column = 1 } }                                                │
> │                                                                              │
> │ Some 'H'                                                                     │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let newInput, charOpt = fromStr "Hello\n\nWorld" |> nextChar
> 
> newInput |> _assertEqual {
>     lines = [[| "Hello"; ""; "World" |]]
>     position = { line = 0; column = 1 }
> }
> charOpt |> _assertEqual (Some 'H')
> 
> ╭─[ 31.48ms - stdout ]─────────────────────────────────────────────────────────╮
> │ { lines = [|"Hello"; ""; "World"|]                                           │
> │   position = { line = 0                                                      │
> │                column = 1 } }                                                │
> │                                                                              │
> │ Some 'H'                                                                     │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### Parser                                                                   │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type Input = InputState
> type ParserLabel = string
> type ParserError = string
> 
> type ParserPosition =
>     {
>         currentLine : string
>         line : int
>         column : int
>     }
> 
> type ParseResult<'a> =
>     | Success of 'a
>     | Failure of ParserLabel * ParserError * ParserPosition
> 
> type Parser<'a> =
>     {
>         label : ParserLabel
>         parseFn : Input -> ParseResult<'a * Input>
>     }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline printResult result =
>     match result with
>     | Success (value, input) ->
>         printfn $"%A{value}"
>     | Failure (label, error, parserPos) ->
>         let errorLine = parserPos.currentLine
>         let colPos = parserPos.column
>         let linePos = parserPos.line
>         let failureCaret = $"{' ' |> string |> String.replicate colPos}^{error}"
>         printfn $"Line:%i{linePos} Col:%i{colPos} Error parsing 
> %s{label}\n%s{errorLine}\n%s{failureCaret}"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline runOnInput parser input =
>     parser.parseFn input
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline run parser inputStr =
>     runOnInput parser (fromStr inputStr)
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline parserPositionFromInputState (inputState : Input) =
>     {
>         currentLine = currentLine inputState
>         line = inputState.position.line
>         column = inputState.position.column
>     }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline getLabel parser =
>     parser.label
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline setLabel parser newLabel =
>     {
>         label = newLabel
>         parseFn = fun input ->
>             match parser.parseFn input with
>             | Success s -> Success s
>             | Failure (oldLabel, err, pos) -> Failure (newLabel, err, pos)
>     }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let (<?>) = setLabel
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline satisfy predicate label =
>     {
>         label = label
>         parseFn = fun input ->
>             let remainingInput, charOpt = nextChar input
>             match charOpt with
>             | None ->
>                 let err = "No more input"
>                 let pos = parserPositionFromInputState input
>                 Failure (label, err, pos)
>             | Some first ->
>                 if predicate first
>                 then Success (first, remainingInput)
>                 else
>                     let err = $"Unexpected '%c{first}'"
>                     let pos = parserPositionFromInputState input
>                     Failure (label, err, pos)
>     }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "Hello"
> let parser = satisfy (fun c -> c = 'H') "H"
> runOnInput parser input |> _assertEqual (
>     Success (
>         'H',
>         {
>             lines = [[| "Hello" |]]
>             position = { line = 0; column = 1 }
>         }
>     )
> )
> 
> ╭─[ 41.59ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success ('H', { lines = [|"Hello"|]                                          │
> │                 position = { line = 0                                        │
> │                              column = 1 } })                                 │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "World"
> let parser = satisfy (fun c -> c = 'H') "H"
> runOnInput parser input |> _assertEqual (
>     Failure (
>         "H",
>         "Unexpected 'W'",
>         {
>             currentLine = "World"
>             line = 0
>             column = 0
>         }
>     )
> )
> 
> ╭─[ 39.26ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Failure ("H", "Unexpected 'W'", { currentLine = "World"                      │
> │                                   line = 0                                   │
> │                                   column = 0 })                              │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline bindP f p =
>     {
>         label = "unknown"
>         parseFn = fun input ->
>             match runOnInput p input with
>             | Failure (label, err, pos) -> Failure (label, err, pos)
>             | Success (value1, remainingInput) -> runOnInput (f value1) 
> remainingInput
>     }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline (>>=) p f = bindP f p
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "Hello"
> let parser = satisfy (fun c -> c = 'H') "H"
> let parser2 = parser >>= fun c -> satisfy (fun c -> c = 'e') "e"
> runOnInput parser2 input |> _assertEqual (
>     Success (
>         'e',
>         {
>             lines = [[| "Hello" |]]
>             position = { line = 0; column = 2 }
>         }
>     )
> )
> 
> ╭─[ 54.52ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success ('e', { lines = [|"Hello"|]                                          │
> │                 position = { line = 0                                        │
> │                              column = 2 } })                                 │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "World"
> let parser = satisfy (fun c -> c = 'W') "W"
> let parser2 = parser >>= fun c -> satisfy (fun c -> c = 'e') "e"
> runOnInput parser2 input |> _assertEqual (
>     Failure (
>         "e",
>         "Unexpected 'o'",
>         {
>             currentLine = "World"
>             line = 0
>             column = 1
>         }
>     )
> )
> 
> ╭─[ 47.70ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Failure ("e", "Unexpected 'o'", { currentLine = "World"                      │
> │                                   line = 0                                   │
> │                                   column = 1 })                              │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline returnP x =
>     {
>         label = $"%A{x}"
>         parseFn = fun input -> Success (x, input)
>     }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "Hello"
> let parser = returnP "Hello"
> runOnInput parser input |> _assertEqual (
>     Success (
>         "Hello",
>         {
>             lines = [[| "Hello" |]]
>             position = { line = 0; column = 0 }
>         }
>     )
> )
> 
> ╭─[ 28.78ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success ("Hello", { lines = [|"Hello"|]                                      │
> │                     position = { line = 0                                    │
> │                                  column = 0 } })                             │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline mapP f =
>     bindP (f >> returnP)
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let (<!>) = mapP
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline (|>>) x f = f <!> x
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "Hello"
> let parser = satisfy (fun c -> c = 'H') "H"
> let parser2 = parser |>> string
> runOnInput parser2 input |> _assertEqual (
>     Success (
>         "H",
>         {
>             lines = [[| "Hello" |]]
>             position = { line = 0; column = 1 }
>         }
>     )
> )
> 
> ╭─[ 42.09ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success ("H", { lines = [|"Hello"|]                                          │
> │                 position = { line = 0                                        │
> │                              column = 1 } })                                 │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline applyP fP xP =
>     fP >>=
>         fun f ->
>             xP >>=
>                 fun x ->
>                     returnP (f x)
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let (<*>) = applyP
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline lift2 f xP yP =
>     returnP f <*> xP <*> yP
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "Hello"
> let parser = satisfy (fun c -> c = 'H') "H"
> let parser2 = satisfy (fun c -> c = 'e') "e"
> let parser3 = lift2 (fun c1 c2 -> string c1 + string c2) parser parser2
> runOnInput parser3 input |> _assertEqual (
>     Success (
>         "He",
>         {
>             lines = [[| "Hello" |]]
>             position = { line = 0; column = 2 }
>         }
>     )
> )
> 
> ╭─[ 60.30ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success ("He", { lines = [|"Hello"|]                                         │
> │                  position = { line = 0                                       │
> │                               column = 2 } })                                │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline andThen p1 p2 =
>     p1 >>=
>         fun p1Result ->
>             p2 >>=
>                 fun p2Result ->
>                     returnP (p1Result, p2Result)
>     <?> $"{getLabel p1} andThen {getLabel p2}"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let (.>>.) = andThen
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "Hello"
> let parser = satisfy (fun c -> c = 'H') "H"
> let parser2 = satisfy (fun c -> c = 'e') "e"
> let parser3 = parser .>>. parser2
> runOnInput parser3 input |> _assertEqual (
>     Success (
>         ('H', 'e'),
>         {
>             lines = [[| "Hello" |]]
>             position = { line = 0; column = 2 }
>         }
>     )
> )
> 
> ╭─[ 57.69ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success (('H', 'e'), { lines = [|"Hello"|]                                   │
> │                        position = { line = 0                                 │
> │                                     column = 2 } })                          │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline orElse p1 p2 =
>     {
>         label = $"{getLabel p1} orElse {getLabel p2}"
>         parseFn = fun input ->
>             match runOnInput p1 input with
>             | Success _ as result -> result
>             | Failure _ -> runOnInput p2 input
>     }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let (<|>) = orElse
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "hello"
> let parser = satisfy (fun c -> c = 'H') "H"
> let parser2 = satisfy (fun c -> c = 'h') "h"
> let parser3 = parser <|> parser2
> runOnInput parser3 input |> _assertEqual (
>     Success (
>         'h',
>         {
>             lines = [[| "hello" |]]
>             position = { line = 0; column = 1 }
>         }
>     )
> )
> 
> ╭─[ 44.18ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success ('h', { lines = [|"hello"|]                                          │
> │                 position = { line = 0                                        │
> │                              column = 1 } })                                 │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline choice listOfParsers =
>     listOfParsers |> List.reduce (<|>)
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "hello"
> let parser = satisfy (fun c -> c = 'H') "H"
> let parser2 = satisfy (fun c -> c = 'h') "h"
> let parser3 = choice [[ parser; parser2 ]]
> runOnInput parser3 input |> _assertEqual (
>     Success (
>         'h',
>         {
>             lines = [[| "hello" |]]
>             position = { line = 0; column = 1 }
>         }
>     )
> )
> 
> ╭─[ 42.34ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success ('h', { lines = [|"hello"|]                                          │
> │                 position = { line = 0                                        │
> │                              column = 1 } })                                 │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let rec sequence parserList =
>     match parserList with
>     | [[]] -> returnP [[]]
>     | head :: tail -> (lift2 cons) head (sequence tail)
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "Hello"
> let parser = satisfy (fun c -> c = 'H') "H"
> let parser2 = satisfy (fun c -> c = 'e') "e"
> let parser3 = sequence [[ parser; parser2 ]]
> runOnInput parser3 input |> _assertEqual (
>     Success (
>         [[ 'H'; 'e' ]],
>         {
>             lines = [[| "Hello" |]]
>             position = { line = 0; column = 2 }
>         }
>     )
> )
> 
> ╭─[ 53.15ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success (['H'; 'e'], { lines = [|"Hello"|]                                   │
> │                        position = { line = 0                                 │
> │                                     column = 2 } })                          │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let rec parseZeroOrMore parser input =
>     match runOnInput parser input with
>     | Failure (_, _, _) ->
>         [[]], input
>     | Success (firstValue, inputAfterFirstParse) ->
>         let subsequentValues, remainingInput = parseZeroOrMore parser 
> inputAfterFirstParse
>         firstValue :: subsequentValues, remainingInput
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline many parser =
>     {
>         label = $"many {getLabel parser}"
>         parseFn = fun input -> Success (parseZeroOrMore parser input)
>     }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "hello"
> let parser = satisfy (fun c -> c = 'H') "H"
> let parser2 = many parser
> runOnInput parser2 input |> _assertEqual (
>     Success (
>         [[]],
>         {
>             lines = [[| "hello" |]]
>             position = { line = 0; column = 0 }
>         }
>     )
> )
> 
> ╭─[ 40.43ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success ([], { lines = [|"hello"|]                                           │
> │                position = { line = 0                                         │
> │                             column = 0 } })                                  │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline many1 p =
>     p >>=
>         fun head ->
>             many p >>=
>                 fun tail ->
>                     returnP (head :: tail)
>     <?> $"many1 {getLabel p}"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "hello"
> let parser = satisfy (fun c -> c = 'H') "H"
> let parser2 = many1 parser
> runOnInput parser2 input |> _assertEqual (
>     Failure (
>         "many1 H",
>         "Unexpected 'h'",
>         {
>             currentLine = "hello"
>             line = 0
>             column = 0
>         }
>     )
> )
> 
> ╭─[ 56.11ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Failure ("many1 H", "Unexpected 'h'", { currentLine = "hello"                │
> │                                         line = 0                             │
> │                                         column = 0 })                        │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline opt p =
>     let some = p |>> Some
>     let none = returnP None
>     (some <|> none)
>     <?> $"opt {getLabel p}"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "hello"
> let parser = satisfy (fun c -> c = 'H') "H"
> let parser2 = opt parser
> runOnInput parser2 input |> _assertEqual (
>     Success (
>         None,
>         {
>             lines = [[| "hello" |]]
>             position = { line = 0; column = 0 }
>         }
>     )
> )
> 
> ╭─[ 46.35ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success (None, { lines = [|"hello"|]                                         │
> │                  position = { line = 0                                       │
> │                               column = 0 } })                                │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline (.>>) p1 p2 =
>     p1 .>>. p2
>     |> mapP fst
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline (>>.) p1 p2 =
>     p1 .>>. p2
>     |> mapP snd
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline between p1 p2 p3 =
>     p1 >>. p2 .>> p3
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "[[Hello]]"
> let parser =
>     between
>         (satisfy (fun c -> c = '[[') "[[")
>         (many (satisfy (fun c -> [[ 'a' .. 'z' ]] @ [[ 'A' .. 'Z' ]] |> 
> List.contains c) "letter"))
>         (satisfy (fun c -> c = ']]') "]]")
> runOnInput parser input |> _assertEqual (
>     Success (
>         [[ 'H'; 'e'; 'l'; 'l'; 'o' ]],
>         {
>             lines = [[| "[[Hello]]" |]]
>             position = { line = 0; column = 7 }
>         }
>     )
> )
> 
> ╭─[ 129.05ms - stdout ]────────────────────────────────────────────────────────╮
> │ Success (['H'; 'e'; 'l'; 'l'; 'o'], { lines = [|"[Hello]"|]                  │
> │                                       position = { line = 0                  │
> │                                                    column = 7 } })           │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline sepBy1 p sep =
>     let sepThenP = sep >>. p
>     p .>>. many sepThenP
>     |>> fun (p, pList) -> p :: pList
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline sepBy p sep =
>     sepBy1 p sep <|> returnP [[]]
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "Hello,World"
> let parser = sepBy (many (satisfy (fun c -> c <> ',') "not comma")) (satisfy 
> (fun c -> c = ',') "comma")
> runOnInput parser input |> _assertEqual (
>     Success (
>         [[ [[ 'H'; 'e'; 'l'; 'l'; 'o' ]]; [[ 'W'; 'o'; 'r'; 'l'; 'd'; '\n' ]] 
> ]],
>         {
>             lines = [[| "Hello,World" |]]
>             position = { line = 1; column = 0 }
>         }
>     )
> )
> 
> ╭─[ 90.65ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success ([['H'; 'e'; 'l'; 'l'; 'o']; ['W'; 'o'; 'r'; 'l'; 'd'; '\010']], {   │
> │ lines = [|"Hello,World"|]                                                    │
> │                                                                              │
> │ position = { line = 1                                                        │
> │                                                                              │
> │ column = 0 } })                                                              │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline pchar charToMatch =
>     satisfy ((=) charToMatch) $"%c{charToMatch}"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline anyOf listOfChars =
>     listOfChars
>     |> List.map pchar
>     |> choice
>     <?> $"anyOf %A{listOfChars}"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "Hello"
> let parser = anyOf [[ 'H'; 'e'; 'l'; 'o' ]] |> many
> runOnInput parser input |> _assertEqual (
>     Success (
>         [[ 'H'; 'e'; 'l'; 'l'; 'o' ]],
>         {
>             lines = [[| "Hello" |]]
>             position = { line = 0; column = 5 }
>         }
>     )
> )
> 
> ╭─[ 51.26ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success (['H'; 'e'; 'l'; 'l'; 'o'], { lines = [|"Hello"|]                    │
> │                                       position = { line = 0                  │
> │                                                    column = 5 } })           │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline charListToStr charList =
>     charList |> List.toArray |> String
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline manyChars cp =
>     many cp
>     |>> charListToStr
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline manyChars1 cp =
>     many1 cp
>     |>> charListToStr
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "Hello"
> let parser = manyChars1 (anyOf [[ 'H'; 'e'; 'l'; 'o' ]])
> runOnInput parser input |> _assertEqual (
>     Success (
>         "Hello",
>         {
>             lines = [[| "Hello" |]]
>             position = { line = 0; column = 5 }
>         }
>     )
> )
> 
> ╭─[ 77.82ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success ("Hello", { lines = [|"Hello"|]                                      │
> │                     position = { line = 0                                    │
> │                                  column = 5 } })                             │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline pstring str =
>     str
>     |> List.ofSeq
>     |> List.map pchar
>     |> sequence
>     |> mapP charListToStr
>     <?> str
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "Hello"
> let parser = pstring "Hello"
> runOnInput parser input |> _assertEqual (
>     Success (
>         "Hello",
>         {
>             lines = [[| "Hello" |]]
>             position = { line = 0; column = 5 }
>         }
>     )
> )
> 
> ╭─[ 57.50ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success ("Hello", { lines = [|"Hello"|]                                      │
> │                     position = { line = 0                                    │
> │                                  column = 5 } })                             │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let whitespaceChar =
>     satisfy Char.IsWhiteSpace "whitespace"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let spaces = many whitespaceChar
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let spaces1 = many1 whitespaceChar
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "  Hello"
> let parser = spaces1 .>>. pstring "Hello"
> runOnInput parser input |> _assertEqual (
>     Success (
>         ([[ ' '; ' ' ]], "Hello"),
>         {
>             lines = [[| "  Hello" |]]
>             position = { line = 0; column = 7 }
>         }
>     )
> )
> 
> ╭─[ 58.56ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success (([' '; ' '], "Hello"), { lines = [|"  Hello"|]                      │
> │                                   position = { line = 0                      │
> │                                                column = 7 } })               │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let digitChar =
>     satisfy Char.IsDigit "digit"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let input = fromStr "Hello"
> let parser = digitChar
> runOnInput parser input |> _assertEqual (
>     Failure (
>         "digit",
>         "Unexpected 'H'",
>         {
>             currentLine = "Hello"
>             line = 0
>             column = 0
>         }
>     )
> )
> 
> ╭─[ 26.20ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Failure ("digit", "Unexpected 'H'", { currentLine = "Hello"                  │
> │                                       line = 0                               │
> │                                       column = 0 })                          │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let pint =
>     let inline resultToInt (sign, digits) =
>         let i = int digits
>         match sign with
>         | Some ch -> -i
>         | None -> i
> 
>     let digits = manyChars1 digitChar
> 
>     opt (pchar '-') .>>. digits
>     |> mapP resultToInt
>     <?> "integer"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run pint "-123"
> |> _assertEqual (
>     Success (
>         -123,
>         {
>             lines = [[| "-123" |]]
>             position = { line = 0; column = 4 }
>         }
>     )
> )
> 
> ╭─[ 30.85ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success (-123, { lines = [|"-123"|]                                          │
> │                  position = { line = 0                                       │
> │                               column = 4 } })                                │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let pfloat =
>     let inline resultToFloat (((sign, digits1), point), digits2) =
>         let fl = float $"{digits1}.{digits2}"
>         match sign with
>         | Some ch -> -fl
>         | None -> fl
> 
>     let digits = manyChars1 digitChar
> 
>     opt (pchar '-') .>>. digits .>>. pchar '.' .>>. digits
>     |> mapP resultToFloat
>     <?> "float"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> run pfloat "-123.45"
> |> _assertEqual (
>     Success (
>         -123.45,
>         {
>             lines = [[| "-123.45" |]]
>             position = { line = 0; column = 7 }
>         }
>     )
> )
> 
> ╭─[ 34.56ms - stdout ]─────────────────────────────────────────────────────────╮
> │ Success (-123.45, { lines = [|"-123.45"|]                                    │
> │                     position = { line = 0                                    │
> │                                  column = 7 } })                             │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline createParserForwardedToRef<'a> () =
>     let mutable parserRef : Parser<'a> =
>         {
>             label = "unknown"
>             parseFn = fun _ -> failwith "unfixed forwarded parser"
>         }
> 
>     let wrapperParser =
>         { parserRef with
>             parseFn = fun input -> runOnInput parserRef input
>         }
> 
>     wrapperParser, (fun v -> parserRef <- v)
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline (>>%) p x =
>     p
>     |>> fun _ -> x
00:00:21 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 39314 }
00:00:21   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/apps/parser/Parser.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/apps/parser/Parser.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:23 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/apps/parser/Parser.dib.ipynb to html
00:00:23 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:23 verbose #7 !   validate(nb)
00:00:25 verbose #8 ! [NbConvertApp] Writing 413674 bytes to c:\home\git\polyglot\apps\parser\Parser.dib.html
00:00:25 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 645 }
00:00:25   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 645 }
00:00:25   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/apps/parser/Parser.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/apps/parser/Parser.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:26 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:00:26   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:00:26   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 40018 }
00:00:00   debug #1 writeDibCode / output: Fs / path: JsonParser.dib
00:00:00   debug #1 writeDibCode / output: Fs / path: Parser.dib
00:00:00   debug #3 parseDibCode / output: Fs / file: Parser.dib
00:00:00   debug #3 parseDibCode / output: Fs / file: JsonParser.dib
In [ ]:
{ pwsh ../apps/spiral/build.ps1 } | Invoke-Block
00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "Supervisor.dib", "--retries", "3"])) }
00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/apps/spiral/Supervisor.dib", "--output-path", "c:/home/git/polyglot/apps/spiral/Supervisor.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/apps/spiral/Supervisor.dib" --output-path "c:/home/git/polyglot/apps/spiral/Supervisor.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ # Supervisor (Polyglot)                                                      │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> #r 
> @"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
> dard2.1/FSharp.Control.AsyncSeq.dll"
> #r 
> @"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
> 0/System.Reactive.dll"
> #r 
> @"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/
> netstandard2.0/System.Reactive.Linq.dll"
> #r 
> @"../../../../../../../.nuget/packages/argu/6.2.4/lib/netstandard2.0/Argu.dll"
> #r 
> @"../../../../../../../.nuget/packages/microsoft.aspnetcore.http.connections.com
> mon/7.0.0/lib/net7.0/Microsoft.AspNetCore.Http.Connections.Common.dll"
> #r 
> @"../../../../../../../.nuget/packages/microsoft.aspnetcore.http.connections.cli
> ent/7.0.0/lib/net7.0/Microsoft.AspNetCore.Http.Connections.Client.dll"
> #r 
> @"../../../../../../../.nuget/packages/microsoft.aspnetcore.signalr.common/7.0.0
> /lib/net7.0/Microsoft.AspNetCore.SignalR.Common.dll"
> #r 
> @"../../../../../../../.nuget/packages/microsoft.aspnetcore.signalr.client/7.0.0
> /lib/net7.0/Microsoft.AspNetCore.SignalR.Client.dll"
> #r 
> @"../../../../../../../.nuget/packages/microsoft.aspnetcore.signalr.client.core/
> 7.0.0/lib/net7.0/Microsoft.AspNetCore.SignalR.Client.Core.dll"
> #r 
> @"../../../../../../../.nuget/packages/fsharp.json/0.4.1/lib/netstandard2.0/FSha
> rp.Json.dll"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> #if !INTERACTIVE
> open Lib
> #endif
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> open Common
> open SpiralFileSystem.Operators
> open Microsoft.AspNetCore.SignalR.Client
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### sendJson                                                                 │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline sendJson (port : int) (json : string) = async {
>     let host = "127.0.0.1"
>     let! portOpen = SpiralNetworking.test_port_open host port
>     if portOpen then
>         try
>             let connection = 
> HubConnectionBuilder().WithUrl($"http://{host}:{port}").Build()
>             do! connection.StartAsync () |> Async.AwaitTask
>             let! result = connection.InvokeAsync<string>("ClientToServerMsg", 
> json) |> Async.AwaitTask
>             do! connection.StopAsync () |> Async.AwaitTask
>             trace Verbose (fun () -> $"Supervisor.sendJson / port: {port} / 
> json: {json |> SpiralSm.ellipsis_end 200} / result: {result |> Option.ofObj |> 
> Option.map (SpiralSm.ellipsis_end 200)}") _locals
>             return Some result
>         with ex ->
>             trace Critical (fun () -> $"Supervisor.sendJson / port: {port} / 
> json: {json |> SpiralSm.ellipsis_end 200} / ex: {ex |> 
> SpiralSm.format_exception}") _locals
>             return None
>     else
>         trace Debug (fun () -> "Supervisor.sendJson / port: {port} / error: port
> not open") _locals
>         return None
> }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### sendObj                                                                  │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline sendObj port obj =
>     obj
>     |> System.Text.Json.JsonSerializer.Serialize
>     |> sendJson port
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### VSCPos                                                                   │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type VSCPos = {| line : int; character : int |}
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### VSCRange                                                                 │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type VSCRange = VSCPos * VSCPos
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### RString                                                                  │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type RString = VSCRange * string
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### TracedError                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type TracedError = {| trace : string list; message : string |}
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### ClientErrorsRes                                                          │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type ClientErrorsRes =
>     | FatalError of string
>     | TracedError of TracedError
>     | PackageErrors of {| uri : string; errors : RString list |}
>     | TokenizerErrors of {| uri : string; errors : RString list |}
>     | ParserErrors of {| uri : string; errors : RString list |}
>     | TypeErrors of {| uri : string; errors : RString list |}
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### workspaceRoot                                                            │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let workspaceRoot = SpiralFileSystem.get_workspace_root ()
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### awaitCompiler                                                            │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline awaitCompiler port cancellationToken = async {
>     let host = "127.0.0.1"
>     let struct (ct, disposable) = cancellationToken |> 
> SpiralThreading.new_disposable_token
>     let! ct = ct |> SpiralAsync.merge_cancellation_token_with_default_async
> 
>     let compiler = MailboxProcessor.Start (fun inbox -> async {
>         let! availablePort = SpiralNetworking.get_available_port (Some 180) host
> port
>         if availablePort <> port then
>             inbox.Post (port, false)
>         else
>             let compilerPath =
>                 workspaceRoot </> "deps/The-Spiral-Language/The Spiral Language 
> 2/artifacts/bin/The Spiral Language 2/release"
>                 |> System.IO.Path.GetFullPath
> 
>             let dllPath = compilerPath </> "Spiral.dll"
> 
>             let! exitCode, result =
>                 SpiralRuntime.execution_options (fun x ->
>                     { x with
>                         l0 = $@"dotnet ""{dllPath}"" --port {availablePort} 
> --default-int i32 --default-float f64"
>                         l1 = Some ct
>                         l3 = Some (fun struct (_, line, _) -> async {
>                             if line |> SpiralSm.contains 
> $"System.IO.IOException: Failed to bind to address http://{host}:{port}: address
> already in use." then
>                                 inbox.Post (port, false)
> 
>                             if line |> SpiralSm.contains $"Server bound to: 
> http://localhost:{availablePort}" then
>                                 let rec loop retry = async {
>                                     do!
>                                         SpiralNetworking.wait_for_port_access 
> (Some 100) true host availablePort
>                                         |> Async.runWithTimeoutAsync 500
>                                         |> Async.Ignore
> 
>                                     let _locals () = $"port: {availablePort} / 
> retry: {retry} / {_locals ()}"
>                                     try
>                                         let pingObj = {| Ping = true |}
>                                         let! pingResult = pingObj |> sendObj 
> availablePort
>                                         trace Verbose (fun () -> $"awaitCompiler
> / Ping / result: '{pingResult}'") _locals
> 
>                                         inbox.Post (availablePort, true)
>                                     with ex ->
>                                         trace Verbose (fun () -> $"awaitCompiler
> / Ping / ex: {ex |> SpiralSm.format_exception}") _locals
>                                         do! Async.Sleep 10
>                                         do! loop (retry + 1)
>                                 }
>                                 do! loop 0
>                         })
>                         l6 = Some workspaceRoot
>                     }
>                 )
>                 |> SpiralRuntime.execute_with_options_async
> 
>             trace Debug (fun () -> $"awaitCompiler / exitCode: {exitCode} / 
> result: {result}") _locals
>             disposable.Dispose ()
>     }, ct)
> 
>     let! serverPort, managed = compiler.Receive ()
> 
>     let connection = 
> HubConnectionBuilder().WithUrl($"http://{host}:{serverPort}").Build ()
>     do! connection.StartAsync () |> Async.AwaitTask
> 
>     let event = Event<_> ()
>     let disposable' = connection.On<string> ("ServerToClientMsg", event.Trigger)
>     let stream =
>         FSharp.Control.AsyncSeq.unfoldAsync
>             (fun () -> async {
>                 let! msg = event.Publish |> Async.AwaitEvent
>                 return Some (msg |> 
> FSharp.Json.Json.deserialize<ClientErrorsRes>, ())
>             })
>             ()
> 
>     let disposable' =
>         new_disposable (fun () ->
>             async {
>                 disposable'.Dispose ()
>                 do! connection.StopAsync () |> Async.AwaitTask
>                 disposable.Dispose ()
>                 if managed
>                 then do!
>                     SpiralNetworking.wait_for_port_access (Some 100) false host 
> serverPort
>                     |> Async.runWithTimeoutAsync 1500
>                     |> Async.Ignore
>             }
>             |> Async.RunSynchronously
>         )
> 
>     return
>         serverPort,
>         stream,
>         ct,
>         disposable'
> }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### getFilePathFromUri                                                       │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline getFilePathFromUri uri =
>     match System.Uri.TryCreate (uri, System.UriKind.Absolute) with
>     | true, uri -> uri.AbsolutePath |> System.IO.Path.GetFullPath
>     | _ -> failwith "invalid uri"
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### getCompilerPort                                                          │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline getCompilerPort () =
>     13805
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### serialize_obj                                                            │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
>     let serializeObj obj =
>         try
>             obj
>             |> FSharp.Json.Json.serialize
>             |> SpiralSm.replace "\\\\" "\\"
>             |> SpiralSm.replace "\\r\\n" "\n"
>             |> SpiralSm.replace "\\n" "\n"
>         with ex ->
>             trace Critical (fun () -> "Supervisor.serialize_obj / obj: %A{obj}")
> _locals
>             ""
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### Backend                                                                  │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type Backend =
>     | Fsharp
>     | Cuda
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### buildFile                                                                │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline buildFile backend timeout port cancellationToken path =
>     let rec loop retry = async {
>         let fullPath = path |> System.IO.Path.GetFullPath
>         let fileDir = fullPath |> System.IO.Path.GetDirectoryName
>         let fileName = fullPath |> System.IO.Path.GetFileNameWithoutExtension
>         let! code = fullPath |> SpiralFileSystem.read_all_text_async
> 
>         let stream, disposable = fileDir |> FileSystem.watchDirectory (fun _ -> 
> true)
>         use _ = disposable
> 
>         let struct (token, disposable) = SpiralThreading.new_disposable_token 
> cancellationToken
>         use _ = disposable
> 
>         let port = port |> Option.defaultWith getCompilerPort
>         let! serverPort, errors, ct, disposable = awaitCompiler port (Some 
> token)
>         use _ = disposable
> 
>         let outputFileName =
>             match backend with
>             | Fsharp -> $"{fileName}.fsx"
>             | Cuda -> $"{fileName}.py"
> 
>         let outputContentSeq =
>             stream
>             |> FSharp.Control.AsyncSeq.chooseAsync (function
>                 | _, (FileSystem.FileSystemChange.Changed (path, Some text))
>                     when (path |> System.IO.Path.GetFileName) = outputFileName
>                     ->
>                         // fileDir </> path |> 
> SpiralFileSystem.read_all_text_retry_async
>                         text |> Some |> Async.init
>                 | _ -> None |> Async.init
>             )
>             |> FSharp.Control.AsyncSeq.map (fun content ->
>                 Some (content |> SpiralSm.replace "\r\n" "\n"), None
>             )
> 
>         let inline printErrorData (data : {| uri : string; errors : RString list
> |}) =
>             let fileName = data.uri |> System.IO.Path.GetFileName
>             let errors =
>                 data.errors
>                 |> List.map snd
>                 |> SpiralSm.concat "\n"
>             $"{fileName}:\n{errors}"
> 
>         let errorsSeq =
>             errors
>             |> FSharp.Control.AsyncSeq.choose (fun error ->
>                 match error with
>                 | FatalError message ->
>                     Some (message, error)
>                 | TracedError data ->
>                     Some (data.message, error)
>                 | PackageErrors data when data.errors |> List.isEmpty |> not ->
>                     Some (data |> printErrorData, error)
>                 | TokenizerErrors data when data.errors |> List.isEmpty |> not 
> ->
>                     Some (data |> printErrorData, error)
>                 | ParserErrors data when data.errors |> List.isEmpty |> not ->
>                     Some (data |> printErrorData, error)
>                 | TypeErrors data when data.errors |> List.isEmpty |> not ->
>                     Some (data |> printErrorData, error)
>                 | _ -> None
>             )
>             |> FSharp.Control.AsyncSeq.map (fun (message, error) ->
>                 None, Some (message, error)
>             )
> 
>         let timerSeq =
>             500
>             |> FSharp.Control.AsyncSeq.intervalMs
>             |> FSharp.Control.AsyncSeq.map (fun _ -> None, None)
> 
>         let outputSeq =
>             [[ outputContentSeq; errorsSeq; timerSeq ]]
>             |> FSharp.Control.AsyncSeq.mergeAll
> 
>         let! outputChild =
>             ((None, [[]], 0), outputSeq)
>             ||> FSharp.Control.AsyncSeq.scan (
>                 fun (outputContentResult, errors, typeErrorCount) 
> (outputContent, error) ->
>                     trace Debug (fun () -> $"Supervisor.buildFile / 
> AsyncSeq.scan / outputContent:\n{outputContent |> Option.defaultValue 
> System.String.Empty |> SpiralSm.ellipsis_end 300} / errors: {errors |> 
> serializeObj} / outputContentResult: {outputContentResult} / typeErrorCount: 
> {typeErrorCount} / retry: {retry} / error: {error} / path: {path}") _locals
>                     match outputContent, error with
>                     | Some outputContent, None -> Some outputContent, errors, 
> typeErrorCount
>                     | None, Some (_, FatalError "File main has a type error 
> somewhere in its path.") ->
>                         outputContentResult, errors, typeErrorCount + 1
>                     | None, Some error -> outputContentResult, error :: errors, 
> typeErrorCount
>                     | None, None when typeErrorCount >= 1 ->
>                         outputContentResult, errors, typeErrorCount + 1
>                     | _ -> outputContentResult, errors, typeErrorCount
>             )
>             |> FSharp.Control.AsyncSeq.takeWhileInclusive (fun (outputContent, 
> errors, typeErrorCount) ->
>                 trace Debug (fun () -> $"Supervisor.buildFile / 
> takeWhileInclusive / outputContent:\n{outputContent |> Option.defaultValue 
> System.String.Empty |> SpiralSm.ellipsis_end 300} / errors: {errors |> 
> serializeObj} / typeErrorCount: {typeErrorCount} / retry: {retry} / path: 
> {path}") _locals
>     #if INTERACTIVE
>                 let errorWait = 2
>     #else
>                 let errorWait = 2
>     #endif
>                 match outputContent, errors with
>                 | None, [[]] when typeErrorCount > errorWait -> false
>                 | None, [[]] -> true
>                 | _ -> false
>             )
>             |> FSharp.Control.AsyncSeq.tryLast
>             |> Async.withCancellationToken ct
>             |> Async.catch
>             |> Async.runWithTimeoutAsync timeout
>             |> Async.StartChild
> 
>         // do! Async.Sleep 60
> 
>         let fullPathUri = fullPath |> SpiralFileSystem.normalize_path |> 
> SpiralFileSystem.new_file_uri
> 
>         let fileOpenObj = {| FileOpen = {| uri = fullPathUri; spiText = code |} 
> |}
>         let! _fileOpenResult = fileOpenObj |> sendObj serverPort
> 
>         // do! Async.Sleep 60
> 
>         let backendId =
>             match backend with
>             | Fsharp -> "Fsharp"
>             | Cuda -> "Python + Cuda"
>         let buildFileObj = {| BuildFile = {| uri = fullPathUri; backend = 
> backendId |} |}
>         let! _buildFileResult = buildFileObj |> sendObj serverPort
> 
>         let! result, typeErrorCount =
>             outputChild
>             |> Async.map (function
>                 | Some (Ok (Some (outputCode, errors, typeErrorCount))) ->
>                     (outputCode, errors |> List.distinct |> List.rev), 
> typeErrorCount
>                 | Some (Error ex) ->
>                     trace Critical (fun () -> $"Supervisor.buildFile / error: 
> {ex |> SpiralSm.format_exception} / retry: {retry}") _locals
>                     (None, [[]]), 0
>                 | _ -> (None, [[]]), 0
>             )
>         
>         match result with
>         | None, _ when typeErrorCount > 0 && retry = 0 ->
>             return! loop (retry + 1)
>         | _ ->
>             if fileDir |> SpiralSm.starts_with (workspaceRoot </> "target") then
>                 let fileDirUri = fileDir |> SpiralFileSystem.normalize_path |> 
> SpiralFileSystem.new_file_uri
>                 let fileDeleteObj = {| FileDelete = {| uris = [[| fileDirUri |]]
> |} |}
>                 let! _fileDeleteResult = fileDeleteObj |> sendObj serverPort
>                 ()
> 
>             let outputPath = fileDir </> outputFileName
>             return outputPath, result
>     }
>     loop 0
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### SpiralInput                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> type SpiralInput =
>     | Spi of string * string option
>     | Spir of string
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### persistCode                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline persistCode backend input = async {
>     let targetDir = workspaceRoot </> "target/spiral_Eval"
> 
>     let packagesDir = targetDir </> "packages"
> 
>     let hashHex = $"%A{backend}%A{input}" |> SpiralCrypto.hash_text
> 
>     let codeDir = packagesDir </> hashHex
>     codeDir |> System.IO.Directory.CreateDirectory |> ignore
> 
>     let moduleName = "main"
> 
>     let spirModule, spiModule =
>         match input with
>         | Spi (spi, Some spir) -> true, true
>         | Spi (spi, None) -> false, true
>         | Spir spir -> true, false
>         |> fun (spir, spi) ->
>             (if spir then $"real_{moduleName}*-" else ""),
>             if spi then moduleName else ""
> 
>     let spiprojPath = codeDir </> "package.spiproj"
>     let spiprojCode =
>         $"""packageDir: {workspaceRoot </> "lib"}
> packages:
>     |core-
>     spiral-
> modules:
>     {spirModule}
>     {spiModule}
> """
>     do! spiprojCode |> SpiralFileSystem.write_all_text_exists spiprojPath
> 
>     let spirPath = codeDir </> $"real_{moduleName}.spir"
>     let spiPath = codeDir </> $"{moduleName}.spi"
> 
>     let spirCode, spiCode =
>         match input with
>         | Spi (spi, Some spir) -> Some spir, Some spi
>         | Spi (spi, None) -> None, Some spi
>         | Spir spir -> Some spir, None
> 
>     match spirCode with
>     | Some spir -> do! spir |> SpiralFileSystem.write_all_text_exists spirPath
>     | None -> ()
>     match spiCode with
>     | Some spi -> do! spi |> SpiralFileSystem.write_all_text_exists spiPath
>     | None -> ()
> 
>     let spiralPath =
>         match input with
>         | Spi _ -> spiPath
>         | Spir _ -> spirPath
>     match backend with
>     | None -> return spiralPath, None
>     | Some backend ->
>         let outputFileName =
>             let fileName =
>                 match input with
>                 | Spi _ -> moduleName
>                 | Spir _ -> $"real_{moduleName}"
>             match backend with
>             | Fsharp -> $"{fileName}.fsx"
>             | Cuda -> $"{fileName}.py"
>         let outputPath = codeDir </> outputFileName
>         if outputPath |> System.IO.File.Exists |> not
>         then return spiralPath, None
>         else
>             let! oldCode = spiralPath |> SpiralFileSystem.read_all_text_async
>             if oldCode <> (spiCode |> Option.defaultValue (spirCode |> 
> Option.defaultValue ""))
>             then return spiralPath, None
>             else
>                 let! outputCode = outputPath |> 
> SpiralFileSystem.read_all_text_async
>                 return spiralPath, Some (outputPath, outputCode |> 
> SpiralSm.replace "\r\n" "\n")
>     }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### buildCode                                                                │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let buildCode backend isCache timeout cancellationToken input = async {
>     let! mainPath, outputCache = input |> persistCode (Some backend)
>     match outputCache with
>     | Some (outputPath, outputCode) when isCache -> return mainPath, 
> (outputPath, Some outputCode), [[]]
>     | _ ->
>         let! outputPath, (outputCode, errors) = mainPath |> buildFile backend 
> timeout None cancellationToken
>         return mainPath, (outputPath, outputCode), errors
> }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> """inl app () =
>     console.write_line "text"
>     1i32
> 
> inl main () =
>     app
>     |> dyn
>     |> ignore
> """
> |> fun code -> Spi (code, None)
> |> buildCode Fsharp false 15000 None
> |> Async.runWithTimeout 15000
> |> Option.map (fun (_, (_, outputContent), errors) -> outputContent, errors |> 
> List.map fst)
> |> _assertEqual (
>     Some (
>         Some """let rec closure0 () () : int32 =
>     let v2 : (string -> unit) = System.Console.WriteLine
>     let v3 : string = "text"
>     v2 v3
>     1
> let v0 : (unit -> int32) = closure0()
> ()
> """,
>         [[]]
>     )
> )
> 
> ╭─[ 4.54s - stdout ]───────────────────────────────────────────────────────────╮
> │ 00:00:14 verbose #1 async.run_with_timeout_async / { timeout = 180 }    │
> │ 00:00:11   debug #1 runtime.execute_with_options_async / { options = {  │
> │ command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral   │
> │ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port    │
> │ 13805 --default-int i32 --default-float f64; cancellation_token = Some       │
> │ System.Threading.CancellationToken; environment_variables = [||]; on_line =  │
> │ Some <fun:buildCode@6-92>; stdin = None; trace = true; working_directory =   │
> │ Some "C:\home\git\polyglot" } }                                              │
> │ 00:00:11 verbose #2 > 00:00:00   debug #1 pwd:                     │
> │ C:\home\git\polyglot                                                         │
> │ 00:00:11 verbose #3 > 00:00:00   debug #2 dllPath:                 │
> │ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │
> │ 2\artifacts\bin\The Spiral Language 2\release                                │
> │ 00:00:11 verbose #4 > 00:00:00   debug #3 targetDir:               │
> │ C:\home\git\polyglot\target/spiral_Eval                                      │
> │ 00:00:14 verbose #2 async.run_with_timeout_async / { timeout = 100 }    │
> │ 00:00:14 verbose #3 networking.wait_for_port_access / { port = 13805;   │
> │ retry = 0; timeout = Some 100; status = true }                               │
> │ 00:00:14 verbose #4 async.run_with_timeout_async / { timeout = 100 }    │
> │ 00:00:11 verbose #5 > Starting the Spiral Server. It is bound to:       │
> │ http://localhost:13805                                                       │
> │ 00:00:14 verbose #5 async.run_with_timeout_async / { timeout = 100 }    │
> │ 00:00:09 verbose #1 Supervisor.sendJson / port: 13805 / json:           │
> │ {"Ping":true} / result:                                                      │
> │ 00:00:09 verbose #2 awaitCompiler / Ping / result: 'Some(null)' / port: │
> │ 13805 / retry: 0                                                             │
> │ 00:00:12 verbose #6 > Server bound to: http://localhost:13805           │
> │ 00:00:09   debug #3 Supervisor.buildFile / takeWhileInclusive /         │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:09   debug #4 Supervisor.buildFile / AsyncSeq.scan /              │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:09   debug #5 Supervisor.buildFile / takeWhileInclusive /         │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:09 verbose #6 Supervisor.sendJson / port: 13805 / json:           │
> │ {"FileOpen":{"spiText":"inl app () =\n    console.write_line                 │
> │ \u0022text\u0022\n    1i32\n\ninl main                                       │
> │ ...et/spiral_Eval/packages/22ccd04317d5605c65f81c7f777766f357e85dc69f2d6d04b │
> │ 9dc60aebd08a0d6/main.spi"}} / result:                                        │
> │ 00:00:09 verbose #7 Supervisor.sendJson / port: 13805 / json:           │
> │ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/target/ │
> │ spiral_Eval/packages/22ccd04317d5605c65f81c7f777766f357e85dc69f2d6d04b9dc60a │
> │ ebd08a0d6/main.spi"}} / result:                                              │
> │ 00:00:12 verbose #7 > 00:00:01   debug #4                          │
> │ Supervisor.supervisor_server.BuildFile / file:                               │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6/main.spi                               │
> │ 00:00:09   debug #8 Supervisor.buildFile / AsyncSeq.scan /              │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:09   debug #9 Supervisor.buildFile / takeWhileInclusive /         │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:10   debug #10 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:10   debug #11 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:10   debug #12 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:10   debug #13 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:11   debug #14 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:11   debug #15 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:11   debug #16 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:11   debug #17 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:11   debug #18 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │ let rec closure0 () () : int32 =                                             │
> │     let v2 : (string -> unit) = System.Console.WriteLine                     │
> │     let v3 : string = "text"                                                 │
> │     v2 v3                                                                    │
> │     1                                                                        │
> │ let v0 : (unit -> int32) = closure0()                                        │
> │ ()                                                                           │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:11   debug #19 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │ let rec closure0 () () : int32 =                                             │
> │     let v2 : (string -> unit) = System.Console.WriteLine                     │
> │     let v3 : string = "text"                                                 │
> │     v2 v3                                                                    │
> │     1                                                                        │
> │ let v0 : (unit -> int32) = closure0()                                        │
> │ ()                                                                           │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\22ccd04317d5605c65f81c7f777 │
> │ 766f357e85dc69f2d6d04b9dc60aebd08a0d6\main.spi                               │
> │ 00:00:11 verbose #20 Supervisor.sendJson / port: 13805 / json:          │
> │ {"FileDelete":{"uris":[                                                      │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/22ccd04317d5605c65 │
> │ f81c7f777766f357e85dc69f2d6d04b9dc60aebd08a0d6"]}} / result:                 │
> │ 00:00:18 verbose #6 networking.wait_for_port_access / { port = 13805;   │
> │ retry = 0; timeout = Some 100; status = false }                              │
> │ 00:00:18 verbose #7 async.run_with_timeout_async / { timeout = 100 }    │
> │ 00:00:11   debug #21 FileSystem.watchWithFilter / Disposing watch       │
> │ stream / filter: FileName, LastWrite                                         │
> │ Some                                                                         │
> │   (Some                                                                      │
> │      "let rec closure0 () () : int32 =                                       │
> │     let v2 : (string -> unit) = System.Console.WriteLine                     │
> │     let v3 : string = "text"                                                 │
> │     v2 v3                                                                    │
> │     1                                                                        │
> │ let v0 : (unit -> int32) = closure0()                                        │
> │ ()                                                                           │
> │ ",                                                                           │
> │    [])                                                                       │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> ""
> |> fun code -> Spi (code, None)
> |> buildCode Fsharp false 10000 None
> |> Async.runWithTimeout 10000
> |> Option.map (fun (_, (_, outputContent), errors) -> outputContent, errors |> 
> List.map fst)
> |> _assertEqual (
>     Some (
>         None,
>         [[ "Cannot find `main` in file main." ]]
>     )
> )
> 
> ╭─[ 3.81s - stdout ]───────────────────────────────────────────────────────────╮
> │ 00:00:18 verbose #8 async.run_with_timeout_async / { timeout = 180 }    │
> │ 00:00:15   debug #8 runtime.execute_with_options_async / { options = {  │
> │ command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral   │
> │ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port    │
> │ 13805 --default-int i32 --default-float f64; cancellation_token = Some       │
> │ System.Threading.CancellationToken; environment_variables = [||]; on_line =  │
> │ Some <fun:buildCode@6-92>; stdin = None; trace = true; working_directory =   │
> │ Some "C:\home\git\polyglot" } }                                              │
> │ 00:00:15 verbose #9 > 00:00:00   debug #1 pwd:                     │
> │ C:\home\git\polyglot                                                         │
> │ 00:00:15 verbose #10 > 00:00:00   debug #2 dllPath:                │
> │ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │
> │ 2\artifacts\bin\The Spiral Language 2\release                                │
> │ 00:00:15 verbose #11 > 00:00:00   debug #3 targetDir:              │
> │ C:\home\git\polyglot\target/spiral_Eval                                      │
> │ 00:00:19 verbose #9 async.run_with_timeout_async / { timeout = 100 }    │
> │ 00:00:19 verbose #10 networking.wait_for_port_access / { port = 13805;  │
> │ retry = 0; timeout = Some 100; status = true }                               │
> │ 00:00:19 verbose #11 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:16 verbose #12 > Starting the Spiral Server. It is bound to:      │
> │ http://localhost:13805                                                       │
> │ 00:00:19 verbose #12 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:13 verbose #22 Supervisor.sendJson / port: 13805 / json:          │
> │ {"Ping":true} / result:                                                      │
> │ 00:00:13 verbose #23 awaitCompiler / Ping / result: 'Some(null)' /      │
> │ port: 13805 / retry: 0                                                       │
> │ 00:00:16 verbose #13 > Server bound to: http://localhost:13805          │
> │ 00:00:13   debug #24 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa\main.spi                               │
> │ 00:00:13   debug #25 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa\main.spi                               │
> │ 00:00:13   debug #26 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa\main.spi                               │
> │ 00:00:13 verbose #27 Supervisor.sendJson / port: 13805 / json:          │
> │ {"FileOpen":{"spiText":"","uri":"file:///c:/home/git/polyglot/target/spiral_ │
> │ Eval/packages/a65342ccc7da0da967b18d8e705d0260e9a932e5e68c0feb33db55c4d28170 │
> │ aa/main.spi"}} / result:                                                     │
> │ 00:00:13 verbose #28 Supervisor.sendJson / port: 13805 / json:          │
> │ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/target/ │
> │ spiral_Eval/packages/a65342ccc7da0da967b18d8e705d0260e9a932e5e68c0feb33db55c │
> │ 4d28170aa/main.spi"}} / result:                                              │
> │ 00:00:16 verbose #14 > 00:00:01   debug #4                         │
> │ Supervisor.supervisor_server.BuildFile / file:                               │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa/main.spi                               │
> │ 00:00:13   debug #29 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa\main.spi                               │
> │ 00:00:13   debug #30 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa\main.spi                               │
> │ 00:00:14   debug #31 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa\main.spi                               │
> │ 00:00:14   debug #32 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa\main.spi                               │
> │ 00:00:14   debug #33 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa\main.spi                               │
> │ 00:00:14   debug #34 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa\main.spi                               │
> │ 00:00:15   debug #35 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa\main.spi                               │
> │ 00:00:15   debug #36 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa\main.spi                               │
> │ 00:00:15   debug #37 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error: Some((Cannot find `main` in file main., FatalError "Cannot find       │
> │ `main` in file main.")) / path:                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa\main.spi                               │
> │ 00:00:15   debug #38 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [                                                                 │
> │   [                                                                          │
> │     "Cannot find `main` in file main.",                                      │
> │     {                                                                        │
> │       "FatalError": "Cannot find `main` in file main."                       │
> │     }                                                                        │
> │   ]                                                                          │
> │ ] / typeErrorCount: 0 / retry: 0 / path:                                     │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\a65342ccc7da0da967b18d8e705 │
> │ d0260e9a932e5e68c0feb33db55c4d28170aa\main.spi                               │
> │ 00:00:15 verbose #39 Supervisor.sendJson / port: 13805 / json:          │
> │ {"FileDelete":{"uris":[                                                      │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/a65342ccc7da0da967 │
> │ b18d8e705d0260e9a932e5e68c0feb33db55c4d28170aa"]}} / result:                 │
> │ 00:00:22 verbose #13 networking.wait_for_port_access / { port = 13805;  │
> │ retry = 0; timeout = Some 100; status = false }                              │
> │ 00:00:22 verbose #14 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:15   debug #40 FileSystem.watchWithFilter / Disposing watch       │
> │ stream / filter: FileName, LastWrite                                         │
> │ Some (None, ["Cannot find `main` in file main."])                            │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> """inl main () =
>     1i32 / 0i32
> """
> |> fun code -> Spi (code, None)
> |> buildCode Fsharp false 10000 None
> |> Async.runWithTimeout 10000
> |> Option.map (fun (_, (_, outputContent), errors) -> outputContent, errors |> 
> List.map fst)
> |> _assertEqual (
>     Some (
>         None,
>         [[ "An attempt to divide by zero has been detected at compile time." ]]
>     )
> )
> 
> ╭─[ 3.92s - stdout ]───────────────────────────────────────────────────────────╮
> │ 00:00:22 verbose #15 async.run_with_timeout_async / { timeout = 180 }   │
> │ 00:00:19   debug #15 runtime.execute_with_options_async / { options = { │
> │ command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral   │
> │ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port    │
> │ 13805 --default-int i32 --default-float f64; cancellation_token = Some       │
> │ System.Threading.CancellationToken; environment_variables = [||]; on_line =  │
> │ Some <fun:buildCode@6-92>; stdin = None; trace = true; working_directory =   │
> │ Some "C:\home\git\polyglot" } }                                              │
> │ 00:00:19 verbose #16 > 00:00:00   debug #1 pwd:                    │
> │ C:\home\git\polyglot                                                         │
> │ 00:00:19 verbose #17 > 00:00:00   debug #2 dllPath:                │
> │ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │
> │ 2\artifacts\bin\The Spiral Language 2\release                                │
> │ 00:00:19 verbose #18 > 00:00:00   debug #3 targetDir:              │
> │ C:\home\git\polyglot\target/spiral_Eval                                      │
> │ 00:00:22 verbose #16 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:22 verbose #17 networking.wait_for_port_access / { port = 13805;  │
> │ retry = 0; timeout = Some 100; status = true }                               │
> │ 00:00:23 verbose #18 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:20 verbose #19 > Starting the Spiral Server. It is bound to:      │
> │ http://localhost:13805                                                       │
> │ 00:00:23 verbose #19 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:17 verbose #41 Supervisor.sendJson / port: 13805 / json:          │
> │ {"Ping":true} / result:                                                      │
> │ 00:00:17 verbose #42 awaitCompiler / Ping / result: 'Some(null)' /      │
> │ port: 13805 / retry: 0                                                       │
> │ 00:00:20 verbose #20 > Server bound to: http://localhost:13805          │
> │ 00:00:17   debug #43 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2\main.spi                               │
> │ 00:00:17   debug #44 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2\main.spi                               │
> │ 00:00:17   debug #45 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2\main.spi                               │
> │ 00:00:17 verbose #46 Supervisor.sendJson / port: 13805 / json:          │
> │ {"FileOpen":{"spiText":"inl main () =\n    1i32 /                            │
> │ 0i32\n","uri":"file:///c:/home/git/polyglot/target/spiral_Eval/packages/fef9 │
> │ 812d9b06b75b1ab26589e52c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2/main.spi"}} /   │
> │ result:                                                                      │
> │ 00:00:17 verbose #47 Supervisor.sendJson / port: 13805 / json:          │
> │ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/target/ │
> │ spiral_Eval/packages/fef9812d9b06b75b1ab26589e52c6d6ff05910b73ead9e8c4f27f88 │
> │ d2a5cdfb2/main.spi"}} / result:                                              │
> │ 00:00:20 verbose #21 > 00:00:01   debug #4                         │
> │ Supervisor.supervisor_server.BuildFile / file:                               │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2/main.spi                               │
> │ 00:00:17   debug #48 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2\main.spi                               │
> │ 00:00:17   debug #49 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2\main.spi                               │
> │ 00:00:18   debug #50 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2\main.spi                               │
> │ 00:00:18   debug #51 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2\main.spi                               │
> │ 00:00:18   debug #52 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2\main.spi                               │
> │ 00:00:18   debug #53 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2\main.spi                               │
> │ 00:00:19   debug #54 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2\main.spi                               │
> │ 00:00:19   debug #55 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2\main.spi                               │
> │ 00:00:19   debug #56 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2\main.spi                               │
> │ 00:00:19   debug #57 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2\main.spi                               │
> │ 00:00:19   debug #58 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error: Some((An attempt to divide by zero has been detected at compile       │
> │ time., TracedError                                                           │
> │   { message = "An attempt to divide by zero has been detected at compile     │
> │ time."                                                                       │
> │     trace =                                                                  │
> │      ["Error trace on line: 1, column: 10 in module:                         │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2/main.spi.                              │
> │ inl main () =                                                                │
> │          ^                                                                   │
> │ ";                                                                           │
> │       "Error trace on line: 2, column: 5 in module:                          │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2/main.spi.                              │
> │     1i32 / 0i32                                                              │
> │     ^                                                                        │
> │ "] })) / path:                                                               │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2\main.spi                               │
> │ 00:00:19   debug #59 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [                                                                 │
> │   [                                                                          │
> │     "An attempt to divide by zero has been detected at compile time.",       │
> │     {                                                                        │
> │       "TracedError": {                                                       │
> │         "message": "An attempt to divide by zero has been detected at        │
> │ compile time.",                                                              │
> │         "trace": [                                                           │
> │           "Error trace on line: 1, column: 10 in module:                     │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2/main.spi.                              │
> │ inl main () =                                                                │
> │          ^                                                                   │
> │ ",                                                                           │
> │           "Error trace on line: 2, column: 5 in module:                      │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2/main.spi.                              │
> │     1i32 / 0i32                                                              │
> │     ^                                                                        │
> │ "                                                                            │
> │         ]                                                                    │
> │       }                                                                      │
> │     }                                                                        │
> │   ]                                                                          │
> │ ] / typeErrorCount: 0 / retry: 0 / path:                                     │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\fef9812d9b06b75b1ab26589e52 │
> │ c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2\main.spi                               │
> │ 00:00:19 verbose #60 Supervisor.sendJson / port: 13805 / json:          │
> │ {"FileDelete":{"uris":[                                                      │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/fef9812d9b06b75b1a │
> │ b26589e52c6d6ff05910b73ead9e8c4f27f88d2a5cdfb2"]}} / result:                 │
> │ 00:00:25 verbose #20 networking.wait_for_port_access / { port = 13805;  │
> │ retry = 0; timeout = Some 100; status = false }                              │
> │ 00:00:26 verbose #21 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:19   debug #61 FileSystem.watchWithFilter / Disposing watch       │
> │ stream / filter: FileName, LastWrite                                         │
> │ Some (None, ["An attempt to divide by zero has been detected at compile      │
> │ time."])                                                                     │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> """inl main () =
>     1 + ""
> """
> |> fun code -> Spi (code, None)
> |> buildCode Fsharp false 10000 None
> |> Async.runWithTimeout 10000
> |> Option.map (fun (_, (_, outputContent), errors) -> outputContent, errors |> 
> List.map fst)
> |> _assertEqual (
>     Some (
>         None,
>         [[
>             "main.spi:
> Constraint satisfaction error.
> Got: string
> Fails to satisfy: number"
>         ]]
>     )
> )
> 
> ╭─[ 3.68s - stdout ]───────────────────────────────────────────────────────────╮
> │ 00:00:26 verbose #22 async.run_with_timeout_async / { timeout = 180 }   │
> │ 00:00:23   debug #22 runtime.execute_with_options_async / { options = { │
> │ command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral   │
> │ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port    │
> │ 13805 --default-int i32 --default-float f64; cancellation_token = Some       │
> │ System.Threading.CancellationToken; environment_variables = [||]; on_line =  │
> │ Some <fun:buildCode@6-92>; stdin = None; trace = true; working_directory =   │
> │ Some "C:\home\git\polyglot" } }                                              │
> │ 00:00:23 verbose #23 > 00:00:00   debug #1 pwd:                    │
> │ C:\home\git\polyglot                                                         │
> │ 00:00:23 verbose #24 > 00:00:00   debug #2 dllPath:                │
> │ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │
> │ 2\artifacts\bin\The Spiral Language 2\release                                │
> │ 00:00:23 verbose #25 > 00:00:00   debug #3 targetDir:              │
> │ C:\home\git\polyglot\target/spiral_Eval                                      │
> │ 00:00:26 verbose #23 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:26 verbose #24 networking.wait_for_port_access / { port = 13805;  │
> │ retry = 0; timeout = Some 100; status = true }                               │
> │ 00:00:26 verbose #25 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:23 verbose #26 > Starting the Spiral Server. It is bound to:      │
> │ http://localhost:13805                                                       │
> │ 00:00:27 verbose #26 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:20 verbose #62 Supervisor.sendJson / port: 13805 / json:          │
> │ {"Ping":true} / result:                                                      │
> │ 00:00:20 verbose #63 awaitCompiler / Ping / result: 'Some(null)' /      │
> │ port: 13805 / retry: 0                                                       │
> │ 00:00:24 verbose #27 > Server bound to: http://localhost:13805          │
> │ 00:00:20   debug #64 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:20   debug #65 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:20   debug #66 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:20 verbose #67 Supervisor.sendJson / port: 13805 / json:          │
> │ {"FileOpen":{"spiText":"inl main () =\n    1 \u002B                          │
> │ \u0022\u0022\n","uri":"file:///c:/home/git/polyg...et/spiral_Eval/packages/c │
> │ 030f84f8e553befcbdd9aabeace67685221d91a46e3655199e42df713504aa0/main.spi"}}  │
> │ / result:                                                                    │
> │ 00:00:20 verbose #68 Supervisor.sendJson / port: 13805 / json:          │
> │ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/target/ │
> │ spiral_Eval/packages/c030f84f8e553befcbdd9aabeace67685221d91a46e3655199e42df │
> │ 713504aa0/main.spi"}} / result:                                              │
> │ 00:00:24 verbose #28 > 00:00:01   debug #4                         │
> │ Supervisor.supervisor_server.BuildFile / file:                               │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0/main.spi                               │
> │ 00:00:21   debug #69 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:21   debug #70 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:21   debug #71 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:21   debug #72 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:22   debug #73 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:22   debug #74 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:22   debug #75 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:22   debug #76 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:23   debug #77 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error: Some((File main has a type error somewhere in its path., FatalError   │
> │ "File main has a type error somewhere in its path.")) / path:                │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:23   debug #78 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 1 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:23   debug #79 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 1 / retry: 0 /       │
> │ error: Some((main.spi:                                                       │
> │ Constraint satisfaction error.                                               │
> │ Got: string                                                                  │
> │ Fails to satisfy: number, TypeErrors                                         │
> │   { errors =                                                                 │
> │      [(({ character = 8                                                      │
> │           line = 1 }, { character = 10                                       │
> │                         line = 1 }),                                         │
> │        "Constraint satisfaction error.                                       │
> │ Got: string                                                                  │
> │ Fails to satisfy: number")]                                                  │
> │     uri =                                                                    │
> │                                                                              │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/c030f84f8e553befcb │
> │ dd9aabeace67685221d91a46e3655199e42df713504aa0/main.spi" })) / path:         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:23   debug #80 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [                                                                 │
> │   [                                                                          │
> │     "main.spi:                                                               │
> │ Constraint satisfaction error.                                               │
> │ Got: string                                                                  │
> │ Fails to satisfy: number",                                                   │
> │     {                                                                        │
> │       "TypeErrors": {                                                        │
> │         "errors": [                                                          │
> │           [                                                                  │
> │             [                                                                │
> │               {                                                              │
> │                 "character": 8,                                              │
> │                 "line": 1                                                    │
> │               },                                                             │
> │               {                                                              │
> │                 "character": 10,                                             │
> │                 "line": 1                                                    │
> │               }                                                              │
> │             ],                                                               │
> │             "Constraint satisfaction error.                                  │
> │ Got: string                                                                  │
> │ Fails to satisfy: number"                                                    │
> │           ]                                                                  │
> │         ],                                                                   │
> │         "uri":                                                               │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/c030f84f8e553befcb │
> │ dd9aabeace67685221d91a46e3655199e42df713504aa0/main.spi"                     │
> │       }                                                                      │
> │     }                                                                        │
> │   ]                                                                          │
> │ ] / typeErrorCount: 1 / retry: 0 / path:                                     │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:29 verbose #27 async.run_with_timeout_async / { timeout = 180 }   │
> │ 00:00:23   debug #81 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 1 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:23   debug #82 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 1 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:23   debug #83 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 1 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:23 verbose #84 Supervisor.sendJson / port: 13805 / json:          │
> │ {"FileOpen":{"spiText":"inl main () =\n    1 \u002B                          │
> │ \u0022\u0022\n","uri":"file:///c:/home/git/polyg...et/spiral_Eval/packages/c │
> │ 030f84f8e553befcbdd9aabeace67685221d91a46e3655199e42df713504aa0/main.spi"}}  │
> │ / result:                                                                    │
> │ 00:00:26 verbose #29 > 00:00:03   debug #5                         │
> │ Supervisor.supervisor_server.BuildFile / file:                               │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0/main.spi                               │
> │ 00:00:23 verbose #85 Supervisor.sendJson / port: 13805 / json:          │
> │ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/target/ │
> │ spiral_Eval/packages/c030f84f8e553befcbdd9aabeace67685221d91a46e3655199e42df │
> │ 713504aa0/main.spi"}} / result:                                              │
> │ 00:00:23   debug #86 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 1 /       │
> │ error: Some((main.spi:                                                       │
> │ Constraint satisfaction error.                                               │
> │ Got: string                                                                  │
> │ Fails to satisfy: number, TypeErrors                                         │
> │   { errors =                                                                 │
> │      [(({ character = 8                                                      │
> │           line = 1 }, { character = 10                                       │
> │                         line = 1 }),                                         │
> │        "Constraint satisfaction error.                                       │
> │ Got: string                                                                  │
> │ Fails to satisfy: number")]                                                  │
> │     uri =                                                                    │
> │                                                                              │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/c030f84f8e553befcb │
> │ dd9aabeace67685221d91a46e3655199e42df713504aa0/main.spi" })) / path:         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:23   debug #87 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [                                                                 │
> │   [                                                                          │
> │     "main.spi:                                                               │
> │ Constraint satisfaction error.                                               │
> │ Got: string                                                                  │
> │ Fails to satisfy: number",                                                   │
> │     {                                                                        │
> │       "TypeErrors": {                                                        │
> │         "errors": [                                                          │
> │           [                                                                  │
> │             [                                                                │
> │               {                                                              │
> │                 "character": 8,                                              │
> │                 "line": 1                                                    │
> │               },                                                             │
> │               {                                                              │
> │                 "character": 10,                                             │
> │                 "line": 1                                                    │
> │               }                                                              │
> │             ],                                                               │
> │             "Constraint satisfaction error.                                  │
> │ Got: string                                                                  │
> │ Fails to satisfy: number"                                                    │
> │           ]                                                                  │
> │         ],                                                                   │
> │         "uri":                                                               │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/c030f84f8e553befcb │
> │ dd9aabeace67685221d91a46e3655199e42df713504aa0/main.spi"                     │
> │       }                                                                      │
> │     }                                                                        │
> │   ]                                                                          │
> │ ] / typeErrorCount: 0 / retry: 1 / path:                                     │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c030f84f8e553befcbdd9aabeac │
> │ e67685221d91a46e3655199e42df713504aa0\main.spi                               │
> │ 00:00:23 verbose #88 Supervisor.sendJson / port: 13805 / json:          │
> │ {"FileDelete":{"uris":[                                                      │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/c030f84f8e553befcb │
> │ dd9aabeace67685221d91a46e3655199e42df713504aa0"]}} / result:                 │
> │ 00:00:23   debug #89 FileSystem.watchWithFilter / Disposing watch       │
> │ stream / filter: FileName, LastWrite                                         │
> │ 00:00:29 verbose #28 networking.wait_for_port_access / { port = 13805;  │
> │ retry = 0; timeout = Some 100; status = false }                              │
> │ 00:00:29 verbose #29 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:23   debug #90 FileSystem.watchWithFilter / Disposing watch       │
> │ stream / filter: FileName, LastWrite                                         │
> │ Some (None, ["main.spi:                                                      │
> │ Constraint satisfaction error.                                               │
> │ Got: string                                                                  │
> │ Fails to satisfy: number"])                                                  │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> """inl main () =
>     x + y
> """
> |> fun code -> Spi (code, None)
> |> buildCode Fsharp false 10000 None
> |> Async.runWithTimeout 10000
> |> Option.map (fun (_, (_, outputContent), errors) -> outputContent, errors |> 
> List.map fst)
> |> _assertEqual (
>     Some (
>         None,
>         [[
>             "main.spi:
> Unbound variable: x.
> Unbound variable: y."
>         ]]
>     )
> )
> 
> ╭─[ 3.75s - stdout ]───────────────────────────────────────────────────────────╮
> │ 00:00:30 verbose #30 async.run_with_timeout_async / { timeout = 180 }   │
> │ 00:00:27   debug #30 runtime.execute_with_options_async / { options = { │
> │ command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral   │
> │ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port    │
> │ 13805 --default-int i32 --default-float f64; cancellation_token = Some       │
> │ System.Threading.CancellationToken; environment_variables = [||]; on_line =  │
> │ Some <fun:buildCode@6-92>; stdin = None; trace = true; working_directory =   │
> │ Some "C:\home\git\polyglot" } }                                              │
> │ 00:00:27 verbose #31 > 00:00:00   debug #1 pwd:                    │
> │ C:\home\git\polyglot                                                         │
> │ 00:00:27 verbose #32 > 00:00:00   debug #2 dllPath:                │
> │ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │
> │ 2\artifacts\bin\The Spiral Language 2\release                                │
> │ 00:00:27 verbose #33 > 00:00:00   debug #3 targetDir:              │
> │ C:\home\git\polyglot\target/spiral_Eval                                      │
> │ 00:00:30 verbose #31 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:30 verbose #32 networking.wait_for_port_access / { port = 13805;  │
> │ retry = 0; timeout = Some 100; status = true }                               │
> │ 00:00:30 verbose #33 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:27 verbose #34 > Starting the Spiral Server. It is bound to:      │
> │ http://localhost:13805                                                       │
> │ 00:00:30 verbose #34 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:24 verbose #91 Supervisor.sendJson / port: 13805 / json:          │
> │ {"Ping":true} / result:                                                      │
> │ 00:00:24 verbose #92 awaitCompiler / Ping / result: 'Some(null)' /      │
> │ port: 13805 / retry: 0                                                       │
> │ 00:00:27 verbose #35 > Server bound to: http://localhost:13805          │
> │ 00:00:24   debug #93 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:24   debug #94 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:24   debug #95 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:24 verbose #96 Supervisor.sendJson / port: 13805 / json:          │
> │ {"FileOpen":{"spiText":"inl main () =\n    x \u002B                          │
> │ y\n","uri":"file:///c:/home/git/polyglot/target/spiral_Eval/packages/6cdeec5 │
> │ 07f9de5ba9c8429cfa7049b777a622aa3bf7333b151c767fde35dc5d1/main.spi"}} /      │
> │ result:                                                                      │
> │ 00:00:24 verbose #97 Supervisor.sendJson / port: 13805 / json:          │
> │ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/target/ │
> │ spiral_Eval/packages/6cdeec507f9de5ba9c8429cfa7049b777a622aa3bf7333b151c767f │
> │ de35dc5d1/main.spi"}} / result:                                              │
> │ 00:00:28 verbose #36 > 00:00:01   debug #4                         │
> │ Supervisor.supervisor_server.BuildFile / file:                               │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1/main.spi                               │
> │ 00:00:25   debug #98 Supervisor.buildFile / AsyncSeq.scan /             │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:25   debug #99 Supervisor.buildFile / takeWhileInclusive /        │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:25   debug #100 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:25   debug #101 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:26   debug #102 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:26   debug #103 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:26   debug #104 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:26   debug #105 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:26   debug #106 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error: Some((File main has a type error somewhere in its path., FatalError   │
> │ "File main has a type error somewhere in its path.")) / path:                │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:26   debug #107 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 1 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:26   debug #108 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 1 / retry: 0 /       │
> │ error: Some((main.spi:                                                       │
> │ Unbound variable: x.                                                         │
> │ Unbound variable: y., TypeErrors                                             │
> │   { errors =                                                                 │
> │      [(({ character = 4                                                      │
> │           line = 1 }, { character = 5                                        │
> │                         line = 1 }), "Unbound variable: x.");                │
> │       (({ character = 8                                                      │
> │           line = 1 }, { character = 9                                        │
> │                         line = 1 }), "Unbound variable: y.")]                │
> │     uri =                                                                    │
> │                                                                              │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/6cdeec507f9de5ba9c │
> │ 8429cfa7049b777a622aa3bf7333b151c767fde35dc5d1/main.spi" })) / path:         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:26   debug #109 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [                                                                 │
> │   [                                                                          │
> │     "main.spi:                                                               │
> │ Unbound variable: x.                                                         │
> │ Unbound variable: y.",                                                       │
> │     {                                                                        │
> │       "TypeErrors": {                                                        │
> │         "errors": [                                                          │
> │           [                                                                  │
> │             [                                                                │
> │               {                                                              │
> │                 "character": 4,                                              │
> │                 "line": 1                                                    │
> │               },                                                             │
> │               {                                                              │
> │                 "character": 5,                                              │
> │                 "line": 1                                                    │
> │               }                                                              │
> │             ],                                                               │
> │             "Unbound variable: x."                                           │
> │           ],                                                                 │
> │           [                                                                  │
> │             [                                                                │
> │               {                                                              │
> │                 "character": 8,                                              │
> │                 "line": 1                                                    │
> │               },                                                             │
> │               {                                                              │
> │                 "character": 9,                                              │
> │                 "line": 1                                                    │
> │               }                                                              │
> │             ],                                                               │
> │             "Unbound variable: y."                                           │
> │           ]                                                                  │
> │         ],                                                                   │
> │         "uri":                                                               │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/6cdeec507f9de5ba9c │
> │ 8429cfa7049b777a622aa3bf7333b151c767fde35dc5d1/main.spi"                     │
> │       }                                                                      │
> │     }                                                                        │
> │   ]                                                                          │
> │ ] / typeErrorCount: 1 / retry: 0 / path:                                     │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:33 verbose #35 async.run_with_timeout_async / { timeout = 180 }   │
> │ 00:00:27   debug #110 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 1 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:27   debug #111 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 1 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:27   debug #112 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 1 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:27 verbose #113 Supervisor.sendJson / port: 13805 / json:         │
> │ {"FileOpen":{"spiText":"inl main () =\n    x \u002B                          │
> │ y\n","uri":"file:///c:/home/git/polyglot/target/spiral_Eval/packages/6cdeec5 │
> │ 07f9de5ba9c8429cfa7049b777a622aa3bf7333b151c767fde35dc5d1/main.spi"}} /      │
> │ result:                                                                      │
> │ 00:00:30 verbose #37 > 00:00:03   debug #5                         │
> │ Supervisor.supervisor_server.BuildFile / file:                               │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1/main.spi                               │
> │ 00:00:27 verbose #114 Supervisor.sendJson / port: 13805 / json:         │
> │ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/target/ │
> │ spiral_Eval/packages/6cdeec507f9de5ba9c8429cfa7049b777a622aa3bf7333b151c767f │
> │ de35dc5d1/main.spi"}} / result:                                              │
> │ 00:00:27   debug #115 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 1 /       │
> │ error: Some((main.spi:                                                       │
> │ Unbound variable: x.                                                         │
> │ Unbound variable: y., TypeErrors                                             │
> │   { errors =                                                                 │
> │      [(({ character = 4                                                      │
> │           line = 1 }, { character = 5                                        │
> │                         line = 1 }), "Unbound variable: x.");                │
> │       (({ character = 8                                                      │
> │           line = 1 }, { character = 9                                        │
> │                         line = 1 }), "Unbound variable: y.")]                │
> │     uri =                                                                    │
> │                                                                              │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/6cdeec507f9de5ba9c │
> │ 8429cfa7049b777a622aa3bf7333b151c767fde35dc5d1/main.spi" })) / path:         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:27   debug #116 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [                                                                 │
> │   [                                                                          │
> │     "main.spi:                                                               │
> │ Unbound variable: x.                                                         │
> │ Unbound variable: y.",                                                       │
> │     {                                                                        │
> │       "TypeErrors": {                                                        │
> │         "errors": [                                                          │
> │           [                                                                  │
> │             [                                                                │
> │               {                                                              │
> │                 "character": 4,                                              │
> │                 "line": 1                                                    │
> │               },                                                             │
> │               {                                                              │
> │                 "character": 5,                                              │
> │                 "line": 1                                                    │
> │               }                                                              │
> │             ],                                                               │
> │             "Unbound variable: x."                                           │
> │           ],                                                                 │
> │           [                                                                  │
> │             [                                                                │
> │               {                                                              │
> │                 "character": 8,                                              │
> │                 "line": 1                                                    │
> │               },                                                             │
> │               {                                                              │
> │                 "character": 9,                                              │
> │                 "line": 1                                                    │
> │               }                                                              │
> │             ],                                                               │
> │             "Unbound variable: y."                                           │
> │           ]                                                                  │
> │         ],                                                                   │
> │         "uri":                                                               │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/6cdeec507f9de5ba9c │
> │ 8429cfa7049b777a622aa3bf7333b151c767fde35dc5d1/main.spi"                     │
> │       }                                                                      │
> │     }                                                                        │
> │   ]                                                                          │
> │ ] / typeErrorCount: 0 / retry: 1 / path:                                     │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\6cdeec507f9de5ba9c8429cfa70 │
> │ 49b777a622aa3bf7333b151c767fde35dc5d1\main.spi                               │
> │ 00:00:27 verbose #117 Supervisor.sendJson / port: 13805 / json:         │
> │ {"FileDelete":{"uris":[                                                      │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/6cdeec507f9de5ba9c │
> │ 8429cfa7049b777a622aa3bf7333b151c767fde35dc5d1"]}} / result:                 │
> │ 00:00:27   debug #118 FileSystem.watchWithFilter / Disposing watch      │
> │ stream / filter: FileName, LastWrite                                         │
> │ 00:00:33 verbose #36 networking.wait_for_port_access / { port = 13805;  │
> │ retry = 0; timeout = Some 100; status = false }                              │
> │ 00:00:33 verbose #37 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:27   debug #119 FileSystem.watchWithFilter / Disposing watch      │
> │ stream / filter: FileName, LastWrite                                         │
> │ Some (None, ["main.spi:                                                      │
> │ Unbound variable: x.                                                         │
> │ Unbound variable: y."])                                                      │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> """
> inl main () =
>     real
>         inl real_unbox forall a. (obj : a) : a =
>             typecase obj with
>             | _ => obj
>         real_unbox ()
>     ()
> """
> |> fun code -> Spi (code, None)
> |> buildCode Fsharp false 10000 None
> |> Async.runWithTimeout 10000
> |> Option.map (fun (_, (_, outputContent), errors) -> outputContent, errors |> 
> List.map fst)
> |> _assertEqual (
>     Some (
>         None,
>         [[ "Cannot apply a forall with a term." ]]
>     )
> )
> 
> ╭─[ 3.93s - stdout ]───────────────────────────────────────────────────────────╮
> │ 00:00:33 verbose #38 async.run_with_timeout_async / { timeout = 180 }   │
> │ 00:00:30   debug #38 runtime.execute_with_options_async / { options = { │
> │ command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral   │
> │ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port    │
> │ 13805 --default-int i32 --default-float f64; cancellation_token = Some       │
> │ System.Threading.CancellationToken; environment_variables = [||]; on_line =  │
> │ Some <fun:buildCode@6-92>; stdin = None; trace = true; working_directory =   │
> │ Some "C:\home\git\polyglot" } }                                              │
> │ 00:00:31 verbose #39 > 00:00:00   debug #1 pwd:                    │
> │ C:\home\git\polyglot                                                         │
> │ 00:00:31 verbose #40 > 00:00:00   debug #2 dllPath:                │
> │ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │
> │ 2\artifacts\bin\The Spiral Language 2\release                                │
> │ 00:00:31 verbose #41 > 00:00:00   debug #3 targetDir:              │
> │ C:\home\git\polyglot\target/spiral_Eval                                      │
> │ 00:00:34 verbose #39 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:34 verbose #40 networking.wait_for_port_access / { port = 13805;  │
> │ retry = 0; timeout = Some 100; status = true }                               │
> │ 00:00:34 verbose #41 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:31 verbose #42 > Starting the Spiral Server. It is bound to:      │
> │ http://localhost:13805                                                       │
> │ 00:00:34 verbose #42 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:28 verbose #120 Supervisor.sendJson / port: 13805 / json:         │
> │ {"Ping":true} / result:                                                      │
> │ 00:00:28 verbose #121 awaitCompiler / Ping / result: 'Some(null)' /     │
> │ port: 13805 / retry: 0                                                       │
> │ 00:00:31 verbose #43 > Server bound to: http://localhost:13805          │
> │ 00:00:28   debug #122 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\61c59548b11a56efe6894b6855e │
> │ 845b5bd8d9f78be605803496c626bd6369493\main.spi                               │
> │ 00:00:28   debug #123 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\61c59548b11a56efe6894b6855e │
> │ 845b5bd8d9f78be605803496c626bd6369493\main.spi                               │
> │ 00:00:28   debug #124 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\61c59548b11a56efe6894b6855e │
> │ 845b5bd8d9f78be605803496c626bd6369493\main.spi                               │
> │ 00:00:28 verbose #125 Supervisor.sendJson / port: 13805 / json:         │
> │ {"FileOpen":{"spiText":"\ninl main () =\n    real\n        inl real_unbox    │
> │ forall a. (obj : a) : a                                                      │
> │ =\...et/spiral_Eval/packages/61c59548b11a56efe6894b6855e845b5bd8d9f78be60580 │
> │ 3496c626bd6369493/main.spi"}} / result:                                      │
> │ 00:00:28 verbose #126 Supervisor.sendJson / port: 13805 / json:         │
> │ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/target/ │
> │ spiral_Eval/packages/61c59548b11a56efe6894b6855e845b5bd8d9f78be605803496c626 │
> │ bd6369493/main.spi"}} / result:                                              │
> │ 00:00:32 verbose #44 > 00:00:01   debug #4                         │
> │ Supervisor.supervisor_server.BuildFile / file:                               │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/61c59548b11a56efe6894b6855e │
> │ 845b5bd8d9f78be605803496c626bd6369493/main.spi                               │
> │ 00:00:28   debug #127 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\61c59548b11a56efe6894b6855e │
> │ 845b5bd8d9f78be605803496c626bd6369493\main.spi                               │
> │ 00:00:28   debug #128 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\61c59548b11a56efe6894b6855e │
> │ 845b5bd8d9f78be605803496c626bd6369493\main.spi                               │
> │ 00:00:29   debug #129 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\61c59548b11a56efe6894b6855e │
> │ 845b5bd8d9f78be605803496c626bd6369493\main.spi                               │
> │ 00:00:29   debug #130 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\61c59548b11a56efe6894b6855e │
> │ 845b5bd8d9f78be605803496c626bd6369493\main.spi                               │
> │ 00:00:29   debug #131 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\61c59548b11a56efe6894b6855e │
> │ 845b5bd8d9f78be605803496c626bd6369493\main.spi                               │
> │ 00:00:29   debug #132 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\61c59548b11a56efe6894b6855e │
> │ 845b5bd8d9f78be605803496c626bd6369493\main.spi                               │
> │ 00:00:30   debug #133 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\61c59548b11a56efe6894b6855e │
> │ 845b5bd8d9f78be605803496c626bd6369493\main.spi                               │
> │ 00:00:30   debug #134 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\61c59548b11a56efe6894b6855e │
> │ 845b5bd8d9f78be605803496c626bd6369493\main.spi                               │
> │ 00:00:31   debug #135 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\61c59548b11a56efe6894b6855e │
> │ 845b5bd8d9f78be605803496c626bd6369493\main.spi                               │
> │ 00:00:31   debug #136 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\61c59548b11a56efe6894b6855e │
> │ 845b5bd8d9f78be605803496c626bd6369493\main.spi                               │
> │ 00:00:31   debug #137 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error: Some((Cannot apply a forall with a term., TracedError                 │
> │   { message = "Cannot apply a forall with a term."                           │
> │     trace =                                                                  │
> │      ["Error trace on line: 2, column: 10 in module:                         │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/61c59548b11a56efe6894b6855e │
> │ 845b5bd8d9f78be605803496c626bd6369493/main.spi.                              │
> │ inl main () =                                                                │
> │          ^                                                                   │
> │ ";                                                                           │
> │       "Error trace on line: 4, column: 9 in module:                          │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/61c59548b11a56efe6894b6855e │
> │ 845b5bd8d9f78be605803496c626bd6369493/main.spi.                              │
> │         inl real_unbox forall a. (obj : a) : a =                             │
> │         ^                                                                    │
> │ ";                                                                           │
> │       "Error trace on line: 7, column: 9 in module:                          │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/61c59548b11a56efe6894b6855e │
> │ 845b5bd8d9f78be605803496c626bd6369493/main.spi.                              │
> │         real_unbox ()                                                        │
> │         ^                                                                    │
> │ "] })) / path:                                                               │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\61c59548b11a56efe6894b6855e │
> │ 845b5bd8d9f78be605803496c626bd6369493\main.spi                               │
> │ 00:00:31   debug #138 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [                                                                 │
> │   [                                                                          │
> │     "Cannot apply a forall with a term.",                                    │
> │     {                                                                        │
> │       "TracedError": {                                                       │
> │         "message": "Cannot apply a forall with a term.",                     │
> │         "trace": [                                                           │
> │           "Error trace on line: 2, column: 10 in module:                     │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/61c59548b11a56efe6894b6855e │
> │ 845b5bd8d9f78be605803496c626bd6369493/main.spi.                              │
> │ inl main () =                                                                │
> │          ^                                                                   │
> │ ",                                                                           │
> │           "Error trace on line: 4, column: 9 in module:                      │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/61c59548b11a56efe6894b6855e │
> │ 845b5bd8d9f78be605803496c626bd6369493/main.spi.                              │
> │         inl real_unbox forall a. (obj : a) : a =                             │
> │         ^                                                                    │
> │ ",                                                                           │
> │           "Error trace on line: 7, column: 9 in module:                      │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/61c59548b11a56efe6894b6855e │
> │ 845b5bd8d9f78be605803496c626bd6369493/main.spi.                              │
> │         real_unbox ()                                                        │
> │         ^                                                                    │
> │ "                                                                            │
> │         ]                                                                    │
> │       }                                                                      │
> │     }                                                                        │
> │   ]                                                                          │
> │ ] / typeErrorCount: 0 / retry: 0 / path:                                     │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\61c59548b11a56efe6894b6855e │
> │ 845b5bd8d9f78be605803496c626bd6369493\main.spi                               │
> │ 00:00:31 verbose #139 Supervisor.sendJson / port: 13805 / json:         │
> │ {"FileDelete":{"uris":[                                                      │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/61c59548b11a56efe6 │
> │ 894b6855e845b5bd8d9f78be605803496c626bd6369493"]}} / result:                 │
> │ 00:00:37 verbose #43 networking.wait_for_port_access / { port = 13805;  │
> │ retry = 0; timeout = Some 100; status = false }                              │
> │ 00:00:37 verbose #44 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:31   debug #140 FileSystem.watchWithFilter / Disposing watch      │
> │ stream / filter: FileName, LastWrite                                         │
> │ Some (None, ["Cannot apply a forall with a term."])                          │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> """
> inl main () =
>     real
>         inl real_unbox forall a. (obj : a) : a =
>             typecase obj with
>             | _ => obj
>         real_unbox `i32 1
> """
> |> fun code -> Spi (code, None)
> |> buildCode Fsharp false 10000 None
> |> Async.runWithTimeout 10000
> |> Option.map (fun (_, (_, outputContent), errors) -> outputContent, errors |> 
> List.map fst)
> |> _assertEqual (
>     Some (
>         None,
>         [[ "The main function should not have a forall." ]]
>     )
> )
> 
> ╭─[ 3.64s - stdout ]───────────────────────────────────────────────────────────╮
> │ 00:00:37 verbose #45 async.run_with_timeout_async / { timeout = 180 }   │
> │ 00:00:34   debug #45 runtime.execute_with_options_async / { options = { │
> │ command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral   │
> │ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port    │
> │ 13805 --default-int i32 --default-float f64; cancellation_token = Some       │
> │ System.Threading.CancellationToken; environment_variables = [||]; on_line =  │
> │ Some <fun:buildCode@6-92>; stdin = None; trace = true; working_directory =   │
> │ Some "C:\home\git\polyglot" } }                                              │
> │ 00:00:35 verbose #46 > 00:00:00   debug #1 pwd:                    │
> │ C:\home\git\polyglot                                                         │
> │ 00:00:35 verbose #47 > 00:00:00   debug #2 dllPath:                │
> │ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │
> │ 2\artifacts\bin\The Spiral Language 2\release                                │
> │ 00:00:35 verbose #48 > 00:00:00   debug #3 targetDir:              │
> │ C:\home\git\polyglot\target/spiral_Eval                                      │
> │ 00:00:38 verbose #46 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:38 verbose #47 networking.wait_for_port_access / { port = 13805;  │
> │ retry = 0; timeout = Some 100; status = true }                               │
> │ 00:00:38 verbose #48 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:35 verbose #49 > Starting the Spiral Server. It is bound to:      │
> │ http://localhost:13805                                                       │
> │ 00:00:38 verbose #49 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:32 verbose #141 Supervisor.sendJson / port: 13805 / json:         │
> │ {"Ping":true} / result:                                                      │
> │ 00:00:32 verbose #142 awaitCompiler / Ping / result: 'Some(null)' /     │
> │ port: 13805 / retry: 0                                                       │
> │ 00:00:35 verbose #50 > Server bound to: http://localhost:13805          │
> │ 00:00:32   debug #143 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\d18ab5eccdd16bb367f1cae1e75 │
> │ 791ae1134c04410280fa27c5ddd010dff3b10\main.spi                               │
> │ 00:00:32   debug #144 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\d18ab5eccdd16bb367f1cae1e75 │
> │ 791ae1134c04410280fa27c5ddd010dff3b10\main.spi                               │
> │ 00:00:32   debug #145 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\d18ab5eccdd16bb367f1cae1e75 │
> │ 791ae1134c04410280fa27c5ddd010dff3b10\main.spi                               │
> │ 00:00:32 verbose #146 Supervisor.sendJson / port: 13805 / json:         │
> │ {"FileOpen":{"spiText":"\ninl main () =\n    real\n        inl real_unbox    │
> │ forall a. (obj : a) : a                                                      │
> │ =\...et/spiral_Eval/packages/d18ab5eccdd16bb367f1cae1e75791ae1134c04410280fa │
> │ 27c5ddd010dff3b10/main.spi"}} / result:                                      │
> │ 00:00:32 verbose #147 Supervisor.sendJson / port: 13805 / json:         │
> │ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/target/ │
> │ spiral_Eval/packages/d18ab5eccdd16bb367f1cae1e75791ae1134c04410280fa27c5ddd0 │
> │ 10dff3b10/main.spi"}} / result:                                              │
> │ 00:00:35 verbose #51 > 00:00:01   debug #4                         │
> │ Supervisor.supervisor_server.BuildFile / file:                               │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/d18ab5eccdd16bb367f1cae1e75 │
> │ 791ae1134c04410280fa27c5ddd010dff3b10/main.spi                               │
> │ 00:00:32   debug #148 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\d18ab5eccdd16bb367f1cae1e75 │
> │ 791ae1134c04410280fa27c5ddd010dff3b10\main.spi                               │
> │ 00:00:32   debug #149 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\d18ab5eccdd16bb367f1cae1e75 │
> │ 791ae1134c04410280fa27c5ddd010dff3b10\main.spi                               │
> │ 00:00:33   debug #150 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\d18ab5eccdd16bb367f1cae1e75 │
> │ 791ae1134c04410280fa27c5ddd010dff3b10\main.spi                               │
> │ 00:00:33   debug #151 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\d18ab5eccdd16bb367f1cae1e75 │
> │ 791ae1134c04410280fa27c5ddd010dff3b10\main.spi                               │
> │ 00:00:33   debug #152 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\d18ab5eccdd16bb367f1cae1e75 │
> │ 791ae1134c04410280fa27c5ddd010dff3b10\main.spi                               │
> │ 00:00:33   debug #153 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\d18ab5eccdd16bb367f1cae1e75 │
> │ 791ae1134c04410280fa27c5ddd010dff3b10\main.spi                               │
> │ 00:00:34   debug #154 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\d18ab5eccdd16bb367f1cae1e75 │
> │ 791ae1134c04410280fa27c5ddd010dff3b10\main.spi                               │
> │ 00:00:34   debug #155 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\d18ab5eccdd16bb367f1cae1e75 │
> │ 791ae1134c04410280fa27c5ddd010dff3b10\main.spi                               │
> │ 00:00:34   debug #156 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error: Some((The main function should not have a forall., TracedError {      │
> │ message = "The main function should not have a forall."                      │
> │               trace = [] })) / path:                                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\d18ab5eccdd16bb367f1cae1e75 │
> │ 791ae1134c04410280fa27c5ddd010dff3b10\main.spi                               │
> │ 00:00:34   debug #157 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [                                                                 │
> │   [                                                                          │
> │     "The main function should not have a forall.",                           │
> │     {                                                                        │
> │       "TracedError": {                                                       │
> │         "message": "The main function should not have a forall.",            │
> │         "trace": []                                                          │
> │       }                                                                      │
> │     }                                                                        │
> │   ]                                                                          │
> │ ] / typeErrorCount: 0 / retry: 0 / path:                                     │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\d18ab5eccdd16bb367f1cae1e75 │
> │ 791ae1134c04410280fa27c5ddd010dff3b10\main.spi                               │
> │ 00:00:34 verbose #158 Supervisor.sendJson / port: 13805 / json:         │
> │ {"FileDelete":{"uris":[                                                      │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/d18ab5eccdd16bb367 │
> │ f1cae1e75791ae1134c04410280fa27c5ddd010dff3b10"]}} / result:                 │
> │ 00:00:41 verbose #50 networking.wait_for_port_access / { port = 13805;  │
> │ retry = 0; timeout = Some 100; status = false }                              │
> │ 00:00:41 verbose #51 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:34   debug #159 FileSystem.watchWithFilter / Disposing watch      │
> │ stream / filter: FileName, LastWrite                                         │
> │ Some (None, ["The main function should not have a forall."])                 │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> """
> inl init_series start end inc =
>     inl total : f64 = conv ((end - start) / inc) + 1
>     listm.init total (conv >> (*) inc >> (+) start) : list f64
> 
> type integration = (f64 -> f64) -> f64 -> f64 -> f64
> 
> inl integral dt : integration =
>     fun f a b =>
>         init_series (a + dt / 2) (b - dt / 2) dt
>         |> listm.map (f >> (*) dt)
>         |> listm.fold (+) 0
> 
> inl main () =
>     integral 0.1 (fun x => x ** 2) 0 1
> """
> |> fun code -> Spi (code, None)
> |> buildCode Fsharp false 10000 None
> |> Async.runWithTimeout 10000
> |> Option.map (fun (_, (_, outputContent), errors) -> outputContent, errors |> 
> List.map fst)
> |> _assertEqual (
>     Some (
>         Some "0.3325000000000001\n",
>         [[]]
>     )
> )
> 
> ╭─[ 3.86s - stdout ]───────────────────────────────────────────────────────────╮
> │ 00:00:41 verbose #52 async.run_with_timeout_async / { timeout = 180 }   │
> │ 00:00:38   debug #52 runtime.execute_with_options_async / { options = { │
> │ command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral   │
> │ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port    │
> │ 13805 --default-int i32 --default-float f64; cancellation_token = Some       │
> │ System.Threading.CancellationToken; environment_variables = [||]; on_line =  │
> │ Some <fun:buildCode@6-92>; stdin = None; trace = true; working_directory =   │
> │ Some "C:\home\git\polyglot" } }                                              │
> │ 00:00:38 verbose #53 > 00:00:00   debug #1 pwd:                    │
> │ C:\home\git\polyglot                                                         │
> │ 00:00:38 verbose #54 > 00:00:00   debug #2 dllPath:                │
> │ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │
> │ 2\artifacts\bin\The Spiral Language 2\release                                │
> │ 00:00:38 verbose #55 > 00:00:00   debug #3 targetDir:              │
> │ C:\home\git\polyglot\target/spiral_Eval                                      │
> │ 00:00:41 verbose #53 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:41 verbose #54 networking.wait_for_port_access / { port = 13805;  │
> │ retry = 0; timeout = Some 100; status = true }                               │
> │ 00:00:42 verbose #55 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:39 verbose #56 > Starting the Spiral Server. It is bound to:      │
> │ http://localhost:13805                                                       │
> │ 00:00:42 verbose #56 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:36 verbose #160 Supervisor.sendJson / port: 13805 / json:         │
> │ {"Ping":true} / result:                                                      │
> │ 00:00:36 verbose #161 awaitCompiler / Ping / result: 'Some(null)' /     │
> │ port: 13805 / retry: 0                                                       │
> │ 00:00:39 verbose #57 > Server bound to: http://localhost:13805          │
> │ 00:00:36   debug #162 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:00:36   debug #163 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:00:36   debug #164 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:00:36 verbose #165 Supervisor.sendJson / port: 13805 / json:         │
> │ {"FileOpen":{"spiText":"\ninl init_series start end inc =\n    inl total :   │
> │ f64 = conv ((end -                                                           │
> │ start)...et/spiral_Eval/packages/c127414de2a2a92d9fd93ea5a8e9312a6aad9129ffd │
> │ 3cbd56ac7f0327106f1db/main.spi"}} / result:                                  │
> │ 00:00:36 verbose #166 Supervisor.sendJson / port: 13805 / json:         │
> │ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/target/ │
> │ spiral_Eval/packages/c127414de2a2a92d9fd93ea5a8e9312a6aad9129ffd3cbd56ac7f03 │
> │ 27106f1db/main.spi"}} / result:                                              │
> │ 00:00:39 verbose #58 > 00:00:01   debug #4                         │
> │ Supervisor.supervisor_server.BuildFile / file:                               │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db/main.spi                               │
> │ 00:00:36   debug #167 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:00:36   debug #168 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:00:37   debug #169 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:00:37   debug #170 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:00:37   debug #171 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:00:37   debug #172 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:00:38   debug #173 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:00:38   debug #174 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:00:38   debug #175 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:00:38   debug #176 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:00:38   debug #177 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │ 0.3325000000000001                                                           │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:00:38   debug #178 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │ 0.3325000000000001                                                           │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\c127414de2a2a92d9fd93ea5a8e │
> │ 9312a6aad9129ffd3cbd56ac7f0327106f1db\main.spi                               │
> │ 00:00:38 verbose #179 Supervisor.sendJson / port: 13805 / json:         │
> │ {"FileDelete":{"uris":[                                                      │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/c127414de2a2a92d9f │
> │ d93ea5a8e9312a6aad9129ffd3cbd56ac7f0327106f1db"]}} / result:                 │
> │ 00:00:44 verbose #57 networking.wait_for_port_access / { port = 13805;  │
> │ retry = 0; timeout = Some 100; status = false }                              │
> │ 00:00:45 verbose #58 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:38   debug #180 FileSystem.watchWithFilter / Disposing watch      │
> │ stream / filter: FileName, LastWrite                                         │
> │ Some (Some "0.3325000000000001                                               │
> │ ", [])                                                                       │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> """
> inl init_series start end inc =
>     inl total : f64 = conv ((end - start) / inc) + 1
>     listm.init total (conv >> (*) inc >> (+) start) : list f64
> 
> type integration = (f64 -> f64) -> f64 -> f64 -> f64
> 
> inl integral dt : integration =
>     fun f a b =>
>         init_series (a + dt / 2) (b - dt / 2) dt
>         |> listm.map (f >> (*) dt)
>         |> listm.fold (+) 0
> 
> inl main () =
>     integral 0.1 (fun x => x ** 2) 0 1
> """
> |> fun code -> Spi (code, None)
> |> buildCode Cuda false 10000 None
> |> Async.runWithTimeout 10000
> |> Option.map (fun (_, (_, outputContent), errors) -> outputContent, errors |> 
> List.map fst)
> |> _assertEqual (
>     Some (
>         Some @"kernel = r""""""
> """"""
> class static_array():
>     def __init__(self, length):
>         self.ptr = [[]]
>         for _ in range(length):
>             self.ptr.append(None)
> 
>     def __getitem__(self, index):
>         assert 0 <= index < len(self.ptr), ""The get index needs to be in 
> range.""
>         return self.ptr[[index]]
>     
>     def __setitem__(self, index, value):
>         assert 0 <= index < len(self.ptr), ""The set index needs to be in 
> range.""
>         self.ptr[[index]] = value
> 
> class static_array_list(static_array):
>     def __init__(self, length):
>         super().__init__(length)
>         self.length = 0
> 
>     def __getitem__(self, index):
>         assert 0 <= index < self.length, ""The get index needs to be in range.""
>         return self.ptr[[index]]
>     
>     def __setitem__(self, index, value):
>         assert 0 <= index < self.length, ""The set index needs to be in range.""
>         self.ptr[[index]] = value
> 
>     def push(self,value):
>         assert (self.length < len(self.ptr)), ""The length before pushing has to
> be less than the maximum length of the array.""
>         self.ptr[[self.length]] = value
>         self.length += 1
> 
>     def pop(self):
>         assert (0 < self.length), ""The length before popping has to be greater 
> than 0.""
>         self.length -= 1
>         return self.ptr[[self.length]]
> 
>     def unsafe_set_length(self,i):
>         assert 0 <= i <= len(self.ptr), ""The new length has to be in range.""
>         self.length = i
> 
> class dynamic_array(static_array): 
>     pass
> 
> class dynamic_array_list(static_array_list):
>     def length_(self): return self.length
> 
> import cupy as cp
> from dataclasses import dataclass
> from typing import NamedTuple, Union, Callable, Tuple
> i8 = i16 = i32 = i64 = u8 = u16 = u32 = u64 = int; f32 = f64 = float; char = 
> string = str
> 
> def main():
>     return 0.3325000000000001
> 
> if __name__ == '__main__': result = main(); None if result is None else 
> print(result)
> ",
>         [[]]
>     )
> )
> 
> ╭─[ 3.81s - stdout ]───────────────────────────────────────────────────────────╮
> │ 00:00:45 verbose #59 async.run_with_timeout_async / { timeout = 180 }   │
> │ 00:00:42   debug #59 runtime.execute_with_options_async / { options = { │
> │ command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral   │
> │ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port    │
> │ 13805 --default-int i32 --default-float f64; cancellation_token = Some       │
> │ System.Threading.CancellationToken; environment_variables = [||]; on_line =  │
> │ Some <fun:buildCode@6-92>; stdin = None; trace = true; working_directory =   │
> │ Some "C:\home\git\polyglot" } }                                              │
> │ 00:00:42 verbose #60 > 00:00:00   debug #1 pwd:                    │
> │ C:\home\git\polyglot                                                         │
> │ 00:00:42 verbose #61 > 00:00:00   debug #2 dllPath:                │
> │ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │
> │ 2\artifacts\bin\The Spiral Language 2\release                                │
> │ 00:00:42 verbose #62 > 00:00:00   debug #3 targetDir:              │
> │ C:\home\git\polyglot\target/spiral_Eval                                      │
> │ 00:00:45 verbose #60 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:45 verbose #61 networking.wait_for_port_access / { port = 13805;  │
> │ retry = 0; timeout = Some 100; status = true }                               │
> │ 00:00:45 verbose #62 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:42 verbose #63 > Starting the Spiral Server. It is bound to:      │
> │ http://localhost:13805                                                       │
> │ 00:00:46 verbose #63 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:39 verbose #181 Supervisor.sendJson / port: 13805 / json:         │
> │ {"Ping":true} / result:                                                      │
> │ 00:00:39 verbose #182 awaitCompiler / Ping / result: 'Some(null)' /     │
> │ port: 13805 / retry: 0                                                       │
> │ 00:00:43 verbose #64 > Server bound to: http://localhost:13805          │
> │ 00:00:39   debug #183 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\ca288d6928a8e761855210f25f9 │
> │ 7fdc056ee1f21be4a24b26e8533ec368831c8\main.spi                               │
> │ 00:00:39   debug #184 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\ca288d6928a8e761855210f25f9 │
> │ 7fdc056ee1f21be4a24b26e8533ec368831c8\main.spi                               │
> │ 00:00:39   debug #185 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\ca288d6928a8e761855210f25f9 │
> │ 7fdc056ee1f21be4a24b26e8533ec368831c8\main.spi                               │
> │ 00:00:39 verbose #186 Supervisor.sendJson / port: 13805 / json:         │
> │ {"FileOpen":{"spiText":"\ninl init_series start end inc =\n    inl total :   │
> │ f64 = conv ((end -                                                           │
> │ start)...et/spiral_Eval/packages/ca288d6928a8e761855210f25f97fdc056ee1f21be4 │
> │ a24b26e8533ec368831c8/main.spi"}} / result:                                  │
> │ 00:00:39 verbose #187 Supervisor.sendJson / port: 13805 / json:         │
> │ {"BuildFile":{"backend":"Python \u002B                                       │
> │ Cuda","uri":"file:///c:/home/git/polyglot/target/spiral_Eval/packages/ca288d │
> │ 6928a8e761855210f25f97fdc056ee1f21be4a24b26e8533ec368831c8/main.spi"}} /     │
> │ result:                                                                      │
> │ 00:00:43 verbose #65 > 00:00:01   debug #4                         │
> │ Supervisor.supervisor_server.BuildFile / file:                               │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/ca288d6928a8e761855210f25f9 │
> │ 7fdc056ee1f21be4a24b26e8533ec368831c8/main.spi                               │
> │ 00:00:40   debug #188 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\ca288d6928a8e761855210f25f9 │
> │ 7fdc056ee1f21be4a24b26e8533ec368831c8\main.spi                               │
> │ 00:00:40   debug #189 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\ca288d6928a8e761855210f25f9 │
> │ 7fdc056ee1f21be4a24b26e8533ec368831c8\main.spi                               │
> │ 00:00:40   debug #190 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\ca288d6928a8e761855210f25f9 │
> │ 7fdc056ee1f21be4a24b26e8533ec368831c8\main.spi                               │
> │ 00:00:40   debug #191 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\ca288d6928a8e761855210f25f9 │
> │ 7fdc056ee1f21be4a24b26e8533ec368831c8\main.spi                               │
> │ 00:00:41   debug #192 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\ca288d6928a8e761855210f25f9 │
> │ 7fdc056ee1f21be4a24b26e8533ec368831c8\main.spi                               │
> │ 00:00:41   debug #193 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\ca288d6928a8e761855210f25f9 │
> │ 7fdc056ee1f21be4a24b26e8533ec368831c8\main.spi                               │
> │ 00:00:41   debug #194 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\ca288d6928a8e761855210f25f9 │
> │ 7fdc056ee1f21be4a24b26e8533ec368831c8\main.spi                               │
> │ 00:00:41   debug #195 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\ca288d6928a8e761855210f25f9 │
> │ 7fdc056ee1f21be4a24b26e8533ec368831c8\main.spi                               │
> │ 00:00:42   debug #196 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │ kernel = r"""                                                                │
> │ """                                                                          │
> │ class static_array():                                                        │
> │     def __init__(self, length):                                              │
> │         self.ptr = []                                                        │
> │         for _ in range(length):                                              │
> │             self.ptr.app...char = string = str                               │
> │                                                                              │
> │ def main():                                                                  │
> │     return 0.3325000000000001                                                │
> │                                                                              │
> │ if __name__ == '__main__': result = main(); None if result is None else      │
> │ print(result)                                                                │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\ca288d6928a8e761855210f25f9 │
> │ 7fdc056ee1f21be4a24b26e8533ec368831c8\main.spi                               │
> │ 00:00:42   debug #197 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │ kernel = r"""                                                                │
> │ """                                                                          │
> │ class static_array():                                                        │
> │     def __init__(self, length):                                              │
> │         self.ptr = []                                                        │
> │         for _ in range(length):                                              │
> │             self.ptr.app...char = string = str                               │
> │                                                                              │
> │ def main():                                                                  │
> │     return 0.3325000000000001                                                │
> │                                                                              │
> │ if __name__ == '__main__': result = main(); None if result is None else      │
> │ print(result)                                                                │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\ca288d6928a8e761855210f25f9 │
> │ 7fdc056ee1f21be4a24b26e8533ec368831c8\main.spi                               │
> │ 00:00:42 verbose #198 Supervisor.sendJson / port: 13805 / json:         │
> │ {"FileDelete":{"uris":[                                                      │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/ca288d6928a8e76185 │
> │ 5210f25f97fdc056ee1f21be4a24b26e8533ec368831c8"]}} / result:                 │
> │ 00:00:48 verbose #64 networking.wait_for_port_access / { port = 13805;  │
> │ retry = 0; timeout = Some 100; status = false }                              │
> │ 00:00:48 verbose #65 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:42   debug #199 FileSystem.watchWithFilter / Disposing watch      │
> │ stream / filter: FileName, LastWrite                                         │
> │ Some                                                                         │
> │   (Some                                                                      │
> │      "kernel = r"""                                                          │
> │ """                                                                          │
> │ class static_array():                                                        │
> │     def __init__(self, length):                                              │
> │         self.ptr = []                                                        │
> │         for _ in range(length):                                              │
> │             self.ptr.append(None)                                            │
> │                                                                              │
> │     def __getitem__(self, index):                                            │
> │         assert 0 <= index < len(self.ptr), "The get index needs to be in     │
> │ range."                                                                      │
> │         return self.ptr[index]                                               │
> │                                                                              │
> │     def __setitem__(self, index, value):                                     │
> │         assert 0 <= index < len(self.ptr), "The set index needs to be in     │
> │ range."                                                                      │
> │         self.ptr[index] = value                                              │
> │                                                                              │
> │ class static_array_list(static_array):                                       │
> │     def __init__(self, length):                                              │
> │         super().__init__(length)                                             │
> │         self.length = 0                                                      │
> │                                                                              │
> │     def __getitem__(self, index):                                            │
> │         assert 0 <= index < self.length, "The get index needs to be in       │
> │ range."                                                                      │
> │         return self.ptr[index]                                               │
> │                                                                              │
> │     def __setitem__(self, index, value):                                     │
> │         assert 0 <= index < self.length, "The set index needs to be in       │
> │ range."                                                                      │
> │         self.ptr[index] = value                                              │
> │                                                                              │
> │     def push(self,value):                                                    │
> │         assert (self.length < len(self.ptr)), "The length before pushing has │
> │ to be less than the maximum length of the array."                            │
> │         self.ptr[self.length] = value                                        │
> │         self.length += 1                                                     │
> │                                                                              │
> │     def pop(self):                                                           │
> │         assert (0 < self.length), "The length before popping has to be       │
> │ greater than 0."                                                             │
> │         self.length -= 1                                                     │
> │         return self.ptr[self.length]                                         │
> │                                                                              │
> │     def unsafe_set_length(self,i):                                           │
> │         assert 0 <= i <= len(self.ptr), "The new length has to be in range." │
> │         self.length = i                                                      │
> │                                                                              │
> │ class dynamic_array(static_array):                                           │
> │     pass                                                                     │
> │                                                                              │
> │ class dynamic_array_list(static_array_list):                                 │
> │     def length_(self): return self.length                                    │
> │                                                                              │
> │ import cupy as cp                                                            │
> │ from dataclasses import dataclass                                            │
> │ from typing import NamedTuple, Union, Callable, Tuple                        │
> │ i8 = i16 = i32 = i64 = u8 = u16 = u32 = u64 = int; f32 = f64 = float; char = │
> │ string = str                                                                 │
> │                                                                              │
> │ def main():                                                                  │
> │     return 0.3325000000000001                                                │
> │                                                                              │
> │ if __name__ == '__main__': result = main(); None if result is None else      │
> │ print(result)                                                                │
> │ ",                                                                           │
> │    [])                                                                       │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> """
> inl init_series start end inc =
>     inl total : f64 = conv ((end - start) / inc) + 1
>     listm.init total (conv >> (*) inc >> (+) start) : list f64
> 
> type integration = (f64 -> f64) -> f64 -> f64 -> f64
> 
> inl integral dt : integration =
>     fun f a b =>
>         init_series (a + dt / 2) (b - dt / 2) dt
>         |> listm.map (f >> (*) dt)
>         |> listm.fold (+) 0
> 
> inl main () =
>     integral 0.01 (fun x => x ** 2) 0 1
> """
> |> fun code -> Spi (code, None)
> |> buildCode Fsharp false 10000 None
> |> Async.runWithTimeout 10000
> |> Option.map (fun (_, (_, outputContent), errors) -> outputContent, errors |> 
> List.map fst)
> |> _assertEqual (
>     Some (
>         Some "0.33332500000000004\n",
>         [[]]
>     )
> )
> // |> _assertEqual None
> // |> fun x -> printfn $"{x.ToDisplayString ()}"
> 
> ╭─[ 3.81s - stdout ]───────────────────────────────────────────────────────────╮
> │ 00:00:49 verbose #66 async.run_with_timeout_async / { timeout = 180 }   │
> │ 00:00:46   debug #66 runtime.execute_with_options_async / { options = { │
> │ command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral   │
> │ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port    │
> │ 13805 --default-int i32 --default-float f64; cancellation_token = Some       │
> │ System.Threading.CancellationToken; environment_variables = [||]; on_line =  │
> │ Some <fun:buildCode@6-92>; stdin = None; trace = true; working_directory =   │
> │ Some "C:\home\git\polyglot" } }                                              │
> │ 00:00:46 verbose #67 > 00:00:00   debug #1 pwd:                    │
> │ C:\home\git\polyglot                                                         │
> │ 00:00:46 verbose #68 > 00:00:00   debug #2 dllPath:                │
> │ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │
> │ 2\artifacts\bin\The Spiral Language 2\release                                │
> │ 00:00:46 verbose #69 > 00:00:00   debug #3 targetDir:              │
> │ C:\home\git\polyglot\target/spiral_Eval                                      │
> │ 00:00:49 verbose #67 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:49 verbose #68 networking.wait_for_port_access / { port = 13805;  │
> │ retry = 0; timeout = Some 100; status = true }                               │
> │ 00:00:49 verbose #69 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:46 verbose #70 > Starting the Spiral Server. It is bound to:      │
> │ http://localhost:13805                                                       │
> │ 00:00:49 verbose #70 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:43 verbose #200 Supervisor.sendJson / port: 13805 / json:         │
> │ {"Ping":true} / result:                                                      │
> │ 00:00:43 verbose #201 awaitCompiler / Ping / result: 'Some(null)' /     │
> │ port: 13805 / retry: 0                                                       │
> │ 00:00:47 verbose #71 > Server bound to: http://localhost:13805          │
> │ 00:00:43   debug #202 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4\main.spi                               │
> │ 00:00:43   debug #203 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4\main.spi                               │
> │ 00:00:43   debug #204 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4\main.spi                               │
> │ 00:00:43 verbose #205 Supervisor.sendJson / port: 13805 / json:         │
> │ {"FileOpen":{"spiText":"\ninl init_series start end inc =\n    inl total :   │
> │ f64 = conv ((end -                                                           │
> │ start)...et/spiral_Eval/packages/2acc44d97e6b50ce3caf39a0b93135633484d22c3ef │
> │ 6e7797ce64875a41451f4/main.spi"}} / result:                                  │
> │ 00:00:43 verbose #206 Supervisor.sendJson / port: 13805 / json:         │
> │ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/target/ │
> │ spiral_Eval/packages/2acc44d97e6b50ce3caf39a0b93135633484d22c3ef6e7797ce6487 │
> │ 5a41451f4/main.spi"}} / result:                                              │
> │ 00:00:47 verbose #72 > 00:00:01   debug #4                         │
> │ Supervisor.supervisor_server.BuildFile / file:                               │
> │ c:/home/git/polyglot/target/spiral_Eval/packages/2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4/main.spi                               │
> │ 00:00:44   debug #207 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4\main.spi                               │
> │ 00:00:44   debug #208 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4\main.spi                               │
> │ 00:00:44   debug #209 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4\main.spi                               │
> │ 00:00:44   debug #210 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4\main.spi                               │
> │ 00:00:45   debug #211 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4\main.spi                               │
> │ 00:00:45   debug #212 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4\main.spi                               │
> │ 00:00:45   debug #213 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4\main.spi                               │
> │ 00:00:45   debug #214 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4\main.spi                               │
> │ 00:00:46   debug #215 Supervisor.buildFile / AsyncSeq.scan /            │
> │ outputContent:                                                               │
> │ 0.33332500000000004                                                          │
> │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
> │ error:  / path:                                                              │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4\main.spi                               │
> │ 00:00:46   debug #216 Supervisor.buildFile / takeWhileInclusive /       │
> │ outputContent:                                                               │
> │ 0.33332500000000004                                                          │
> │  / errors: [] / typeErrorCount: 0 / retry: 0 / path:                         │
> │ C:\home\git\polyglot\target/spiral_Eval\packages\2acc44d97e6b50ce3caf39a0b93 │
> │ 135633484d22c3ef6e7797ce64875a41451f4\main.spi                               │
> │ 00:00:46 verbose #217 Supervisor.sendJson / port: 13805 / json:         │
> │ {"FileDelete":{"uris":[                                                      │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/2acc44d97e6b50ce3c │
> │ af39a0b93135633484d22c3ef6e7797ce64875a41451f4"]}} / result:                 │
> │ 00:00:52 verbose #71 networking.wait_for_port_access / { port = 13805;  │
> │ retry = 0; timeout = Some 100; status = false }                              │
> │ 00:00:52 verbose #72 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:46   debug #218 FileSystem.watchWithFilter / Disposing watch      │
> │ stream / filter: FileName, LastWrite                                         │
> │ Some (Some "0.33332500000000004                                              │
> │ ", [])                                                                       │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## getFileTokenRange                                                         │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline getFileTokenRange port cancellationToken path = async {
>     let fullPath = path |> System.IO.Path.GetFullPath
>     let! code = fullPath |> SpiralFileSystem.read_all_text_async
>     let lines = code |> SpiralSm.split "\n"
> 
>     let struct (token, disposable) = SpiralThreading.new_disposable_token 
> cancellationToken
>     use _ = disposable
> 
>     let port = port |> Option.defaultWith getCompilerPort
>     let! serverPort, _errors, ct, disposable = awaitCompiler port (Some token)
>     use _ = disposable
> 
>     let fullPathUri = fullPath |> SpiralFileSystem.normalize_path |> 
> SpiralFileSystem.new_file_uri
> 
>     let fileOpenObj = {| FileOpen = {| uri = fullPathUri; spiText = code |} |}
>     let! _fileOpenResult = fileOpenObj |> sendObj serverPort
> 
>     do! Async.Sleep 60
> 
>     let fileTokenRangeObj =
>         {|
>             FileTokenRange =
>                 {|
>                     uri = fullPathUri
>                     range =
>                         [[|
>                             {| line = 0; character = 0 |}
>                             {| line = lines.Length - 1; character = 
> lines.[[lines.Length - 1]].Length |}
>                         |]]
>                 |}
>         |}
>     let! fileTokenRangeResult =
>         fileTokenRangeObj
>         |> sendObj serverPort
>         |> Async.withCancellationToken ct
> 
>     let fileDir = fullPath |> System.IO.Path.GetDirectoryName
>     if fileDir |> SpiralSm.starts_with (workspaceRoot </> "target") then
>         let fileDirUri = fileDir |> SpiralFileSystem.normalize_path |> 
> SpiralFileSystem.new_file_uri
>         let fileDeleteObj = {| FileDelete = {| uris = [[| fileDirUri |]] |} |}
>         let! _fileDeleteResult = fileDeleteObj |> sendObj serverPort
>         ()
> 
>     return fileTokenRangeResult |> Option.map FSharp.Json.Json.deserialize<int 
> array>
> }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## getCodeTokenRange                                                         │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline getCodeTokenRange cancellationToken code = async {
>     let! mainPath, _ = Spi (code, None) |> persistCode None
> 
>     let codeDir = mainPath |> System.IO.Path.GetDirectoryName
>     let tokensPath = codeDir </> "tokens.json"
>     let! tokens = async {
>         if tokensPath |> System.IO.File.Exists |> not
>         then return None
>         else
>             let! text = tokensPath |> SpiralFileSystem.read_all_text_async
> 
>             return
>                 if text.Length > 2
>                 then text |> FSharp.Json.Json.deserialize<int array> |> Some
>                 else None
>     }
>     match tokens with
>     | Some tokens ->
>         return tokens |> Some
>     | None -> return! mainPath |> getFileTokenRange None cancellationToken
> }
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> """inl main () = ()"""
> |> getCodeTokenRange None
> |> Async.runWithTimeout 10000
> |> Option.flatten
> |> _assertEqual (Some [[| 0; 0; 3; 7; 0; 0; 4; 4; 0; 0; 0; 5; 1; 8; 0; 0; 1; 1; 
> 8; 0; 0; 2; 1; 4; 0; 0;
> 2; 1; 8; 0; 0; 1; 1; 8; 0 |]])
> 
> ╭─[ 3.53s - stdout ]───────────────────────────────────────────────────────────╮
> │ 00:00:57 verbose #73 async.run_with_timeout_async / { timeout = 180 }   │
> │ 00:00:54   debug #73 runtime.execute_with_options_async / { options = { │
> │ command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral   │
> │ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port    │
> │ 13805 --default-int i32 --default-float f64; cancellation_token = Some       │
> │ System.Threading.CancellationToken; environment_variables = [||]; on_line =  │
> │ Some <fun:it@4-187>; stdin = None; trace = true; working_directory = Some    │
> │ "C:\home\git\polyglot" } }                                                   │
> │ 00:00:54 verbose #74 > 00:00:00   debug #1 pwd:                    │
> │ C:\home\git\polyglot                                                         │
> │ 00:00:54 verbose #75 > 00:00:00   debug #2 dllPath:                │
> │ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │
> │ 2\artifacts\bin\The Spiral Language 2\release                                │
> │ 00:00:54 verbose #76 > 00:00:00   debug #3 targetDir:              │
> │ C:\home\git\polyglot\target/spiral_Eval                                      │
> │ 00:00:58 verbose #74 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:58 verbose #75 networking.wait_for_port_access / { port = 13805;  │
> │ retry = 0; timeout = Some 100; status = true }                               │
> │ 00:00:58 verbose #76 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:55 verbose #77 > Starting the Spiral Server. It is bound to:      │
> │ http://localhost:13805                                                       │
> │ 00:00:58 verbose #77 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:52 verbose #219 Supervisor.sendJson / port: 13805 / json:         │
> │ {"Ping":true} / result:                                                      │
> │ 00:00:52 verbose #220 awaitCompiler / Ping / result: 'Some(null)' /     │
> │ port: 13805 / retry: 0                                                       │
> │ 00:00:55 verbose #78 > Server bound to: http://localhost:13805          │
> │ 00:00:52 verbose #221 Supervisor.sendJson / port: 13805 / json:         │
> │ {"FileOpen":{"spiText":"inl main () =                                        │
> │ ()","uri":"file:///c:/home/git/polyglot/target/spiral_Eval/packages/20e725d4 │
> │ 6cfdc99c0f307f1933a76ec7da4570c1b757721164d86f19feaf821e/main.spi"}} /       │
> │ result:                                                                      │
> │ 00:00:52 verbose #222 Supervisor.sendJson / port: 13805 / json:         │
> │ {"FileTokenRange":{"range":[                                                 │
> │ {"character":0,"line":0},{"character":16,"line":0}],"uri":"file:///c:/ho...e │
> │ t/spiral_Eval/packages/20e725d46cfdc99c0f307f1933a76ec7da4570c1b757721164d86 │
> │ f19feaf821e/main.spi"}} / result: Some([                                     │
> │   0,                                                                         │
> │   0,                                                                         │
> │   3,                                                                         │
> │   7,                                                                         │
> │   0,                                                                         │
> │   0,                                                                         │
> │   4,                                                                         │
> │   4,                                                                         │
> │   0,                                                                         │
> │   0,                                                                         │
> │   0,                                                                         │
> │   5,                                                                         │
> │   1,                                                                         │
> │   8,                                                                         │
> │   0,                                                                         │
> │   0,                                                                         │
> │  ...8,                                                                       │
> │   0,                                                                         │
> │   0,                                                                         │
> │   2,                                                                         │
> │   1,                                                                         │
> │   4,                                                                         │
> │   0,                                                                         │
> │   0,                                                                         │
> │   2,                                                                         │
> │   1,                                                                         │
> │   8,                                                                         │
> │   0,                                                                         │
> │   0,                                                                         │
> │   1,                                                                         │
> │   1,                                                                         │
> │   8,                                                                         │
> │   0                                                                          │
> │ ])                                                                           │
> │ 00:00:52 verbose #223 Supervisor.sendJson / port: 13805 / json:         │
> │ {"FileDelete":{"uris":[                                                      │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/20e725d46cfdc99c0f │
> │ 307f1933a76ec7da4570c1b757721164d86f19feaf821e"]}} / result:                 │
> │ 00:00:59 verbose #78 networking.wait_for_port_access / { port = 13805;  │
> │ retry = 0; timeout = Some 100; status = false }                              │
> │ 00:00:59 verbose #79 async.run_with_timeout_async / { timeout = 100 }   │
> │ Some [|0; 0; 3; 7; 0; 0; 4; 4; 0; 0; 0; 5; 1; 8; 0; 0; 1; 1; 8; 0; 0; 2; 1;  │
> │ 4; 0; 0; 2; 1; 8; 0; 0; 1; 1; 8; 0|]                                         │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> """inl main () = 1i32"""
> |> getCodeTokenRange None
> |> Async.runWithTimeout 10000
> |> Option.flatten
> |> _assertEqual (Some [[| 0; 0; 3; 7; 0; 0; 4; 4; 0; 0; 0; 5; 1; 8; 0; 0; 1; 1; 
> 8; 0; 0; 2; 1; 4; 0; 0;
> 2; 1; 3; 0; 0; 1; 3; 12; 0 |]])
> 
> ╭─[ 3.64s - stdout ]───────────────────────────────────────────────────────────╮
> │ 00:01:01 verbose #80 async.run_with_timeout_async / { timeout = 180 }   │
> │ 00:00:58   debug #79 runtime.execute_with_options_async / { options = { │
> │ command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral   │
> │ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port    │
> │ 13805 --default-int i32 --default-float f64; cancellation_token = Some       │
> │ System.Threading.CancellationToken; environment_variables = [||]; on_line =  │
> │ Some <fun:it@4-413>; stdin = None; trace = true; working_directory = Some    │
> │ "C:\home\git\polyglot" } }                                                   │
> │ 00:00:58 verbose #80 > 00:00:00   debug #1 pwd:                    │
> │ C:\home\git\polyglot                                                         │
> │ 00:00:58 verbose #81 > 00:00:00   debug #2 dllPath:                │
> │ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language            │
> │ 2\artifacts\bin\The Spiral Language 2\release                                │
> │ 00:00:58 verbose #82 > 00:00:00   debug #3 targetDir:              │
> │ C:\home\git\polyglot\target/spiral_Eval                                      │
> │ 00:01:01 verbose #81 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:01:01 verbose #82 networking.wait_for_port_access / { port = 13805;  │
> │ retry = 0; timeout = Some 100; status = true }                               │
> │ 00:01:01 verbose #83 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:58 verbose #83 > Starting the Spiral Server. It is bound to:      │
> │ http://localhost:13805                                                       │
> │ 00:01:01 verbose #84 async.run_with_timeout_async / { timeout = 100 }   │
> │ 00:00:55 verbose #224 Supervisor.sendJson / port: 13805 / json:         │
> │ {"Ping":true} / result:                                                      │
> │ 00:00:55 verbose #225 awaitCompiler / Ping / result: 'Some(null)' /     │
> │ port: 13805 / retry: 0                                                       │
> │ 00:00:59 verbose #84 > Server bound to: http://localhost:13805          │
> │ 00:00:55 verbose #226 Supervisor.sendJson / port: 13805 / json:         │
> │ {"FileOpen":{"spiText":"inl main () =                                        │
> │ 1i32","uri":"file:///c:/home/git/polyglot/target/spiral_Eval/packages/537082 │
> │ 9508ddefc7386d6b4d280722b47d97cb925585525bee733a187ff8f18b/main.spi"}} /     │
> │ result:                                                                      │
> │ 00:00:56 verbose #227 Supervisor.sendJson / port: 13805 / json:         │
> │ {"FileTokenRange":{"range":[                                                 │
> │ {"character":0,"line":0},{"character":18,"line":0}],"uri":"file:///c:/ho...e │
> │ t/spiral_Eval/packages/5370829508ddefc7386d6b4d280722b47d97cb925585525bee733 │
> │ a187ff8f18b/main.spi"}} / result: Some([                                     │
> │   0,                                                                         │
> │   0,                                                                         │
> │   3,                                                                         │
> │   7,                                                                         │
> │   0,                                                                         │
> │   0,                                                                         │
> │   4,                                                                         │
> │   4,                                                                         │
> │   0,                                                                         │
> │   0,                                                                         │
> │   0,                                                                         │
> │   5,                                                                         │
> │   1,                                                                         │
> │   8,                                                                         │
> │   0,                                                                         │
> │   0,                                                                         │
> │  ...,                                                                        │
> │   0,                                                                         │
> │   0,                                                                         │
> │   2,                                                                         │
> │   1,                                                                         │
> │   4,                                                                         │
> │   0,                                                                         │
> │   0,                                                                         │
> │   2,                                                                         │
> │   1,                                                                         │
> │   3,                                                                         │
> │   0,                                                                         │
> │   0,                                                                         │
> │   1,                                                                         │
> │   3,                                                                         │
> │   12,                                                                        │
> │   0                                                                          │
> │ ])                                                                           │
> │ 00:00:56 verbose #228 Supervisor.sendJson / port: 13805 / json:         │
> │ {"FileDelete":{"uris":[                                                      │
> │ "file:///c:/home/git/polyglot/target/spiral_Eval/packages/5370829508ddefc738 │
> │ 6d6b4d280722b47d97cb925585525bee733a187ff8f18b"]}} / result:                 │
> │ 00:01:02 verbose #85 networking.wait_for_port_access / { port = 13805;  │
> │ retry = 0; timeout = Some 100; status = false }                              │
> │ 00:01:02 verbose #86 async.run_with_timeout_async / { timeout = 100 }   │
> │ Some [|0; 0; 3; 7; 0; 0; 4; 4; 0; 0; 0; 5; 1; 8; 0; 0; 1; 1; 8; 0; 0; 2; 1;  │
> │ 4; 0; 0; 2; 1; 3; 0; 0; 1; 3; 12; 0|]                                        │
> │                                                                              │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## Arguments                                                                 │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> [[<RequireQualifiedAccess>]]
> type Arguments =
>     | Build_File of string * string
>     | File_Token_Range of string * string
>     | Execute_Command of string
>     | [[<Argu.ArguAttributes.Unique>]] Timeout of int
>     | [[<Argu.ArguAttributes.Unique>]] Port of int
>     | [[<Argu.ArguAttributes.Unique>]] Parallel
>     | [[<Argu.ArguAttributes.Unique>]] Exit_On_Error
> 
>     interface Argu.IArgParserTemplate with
>         member s.Usage =
>             match s with
>             | Build_File _ -> nameof Build_File
>             | File_Token_Range _ -> nameof File_Token_Range
>             | Execute_Command _ -> nameof Execute_Command
>             | Timeout _ -> nameof Timeout
>             | Port _ -> nameof Port
>             | Parallel -> nameof Parallel
>             | Exit_On_Error-> nameof Exit_On_Error
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> Argu.ArgumentParser.Create<Arguments>().PrintUsage ()
> 
> ╭─[ 120.41ms - return value ]──────────────────────────────────────────────────╮
> │ "USAGE: dotnet-repl [--help] [--build-file <string> <string>]                │
> │                    [--file-token-range <string> <string>]                    │
> │                    [--execute-command <string>] [--timeout <int>] [--port    │
> │ <int>]                                                                       │
> │                    [--parallel] [--exit-on-error]                            │
> │                                                                              │
> │ OPTIONS:                                                                     │
> │                                                                              │
> │     --build-file <string> <string>                                           │
> │                           Build_File                                         │
> │     --file-token-range <string> <string>                                     │
> │                           File_Token_Range                                   │
> │     --execute-command <string>                                               │
> │                           Execute_Command                                    │
> │     --timeout <int>       Timeout                                            │
> │     --port <int>          Port                                               │
> │     --parallel            Parallel                                           │
> │     --exit-on-error       Exit_On_Error                                      │
> │     --help                display this list of options.                      │
> │ "                                                                            │
> │                                                                              │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## main                                                                      │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let main args =
>     let argsMap = args |> Runtime.parseArgsMap<Arguments>
> 
>     let buildFileActions =
>         argsMap
>         |> Map.tryFind (nameof Arguments.Build_File)
>         |> Option.defaultValue [[]]
>         |> List.choose (function
>             | Arguments.Build_File (inputPath, outputPath) -> Some (inputPath, 
> outputPath)
>             | _ -> None
>         )
> 
>     let fileTokenRangeActions =
>         argsMap
>         |> Map.tryFind (nameof Arguments.File_Token_Range)
>         |> Option.defaultValue [[]]
>         |> List.choose (function
>             | Arguments.File_Token_Range (inputPath, outputPath) -> Some 
> (inputPath, outputPath)
>             | _ -> None
>         )
> 
>     let executeCommandActions =
>         argsMap
>         |> Map.tryFind (nameof Arguments.Execute_Command)
>         |> Option.defaultValue [[]]
>         |> List.choose (function
>             | Arguments.Execute_Command command -> Some command
>             | _ -> None
>         )
> 
>     let timeout =
>         match argsMap |> Map.tryFind (nameof Arguments.Timeout) with
>         | Some [[ Arguments.Timeout timeout ]] -> timeout
>         | _ -> 60000 * 60
> 
>     let port =
>         match argsMap |> Map.tryFind (nameof Arguments.Port) with
>         | Some [[ Arguments.Port port ]] -> Some port
>         | _ -> None
> 
>     let isParallel = argsMap |> Map.containsKey (nameof Arguments.Parallel)
> 
>     let isExitOnError = argsMap |> Map.containsKey (nameof 
> Arguments.Exit_On_Error)
> 
>     async {
>         let port =
>             port
>             |> Option.defaultWith getCompilerPort
>         let struct (localToken, disposable) = 
> SpiralThreading.new_disposable_token None
>         let! serverPort, _errors, compilerToken, disposable = awaitCompiler port
> (Some localToken)
>         use _ = disposable
> 
>         let buildFileAsync =
>             buildFileActions
>             |> List.map (fun (inputPath, outputPath) -> async {
>                 let! _outputPath, (outputCode, errors) =
>                     let backend =
>                         if outputPath |> SpiralSm.ends_with ".fsx"
>                         then Fsharp
>                         elif outputPath |> SpiralSm.ends_with ".py"
>                         then Cuda
>                         else failwith $"Supervisor.main / invalid backend / 
> outputPath: {outputPath}"
>                     let isReal = inputPath |> SpiralSm.ends_with ".spir"
>                     inputPath |> buildFile backend timeout (Some serverPort) 
> None
> 
>                 errors
>                 |> List.map snd
>                 |> List.iter (fun error ->
>                     trace Critical (fun () -> $"main / error: {error |> 
> serializeObj}") _locals
>                 )
> 
>                 match outputCode with
>                 | Some outputCode ->
>                     do! outputCode |> SpiralFileSystem.write_all_text_exists 
> outputPath
>                     return 0
>                 | None ->
>                     if isExitOnError
>                     then SpiralRuntime.current_process_kill ()
> 
>                     return 1
>             })
> 
>         let fileTokenRangeAsync =
>             fileTokenRangeActions
>             |> List.map (fun (inputPath, outputPath) -> async {
>                 let! tokenRange = inputPath |> getFileTokenRange (Some 
> serverPort) None
>                 match tokenRange with
>                 | Some tokenRange ->
>                     do! tokenRange |> FSharp.Json.Json.serialize |> 
> SpiralFileSystem.write_all_text_exists outputPath
>                     return 0
>                 | None ->
>                     if isExitOnError
>                     then SpiralRuntime.current_process_kill ()
> 
>                     return 1
>             })
> 
>         let executeCommandAsync =
>             executeCommandActions
>             |> List.map (fun command -> async {
>                 let! exitCode, result =
>                     SpiralRuntime.execution_options (fun x ->
>                         { x with
>                             l0 = command
>                             l1 = Some compilerToken
>                         }
>                     )
>                     |> SpiralRuntime.execute_with_options_async
> 
>                 trace Debug (fun () -> $"main / executeCommand / exitCode: 
> {exitCode} / command: {command}") _locals
> 
>                 if isExitOnError && exitCode <> 0
>                 then SpiralRuntime.current_process_kill ()
> 
>                 return exitCode
>             })
> 
>         return!
>             [[| buildFileAsync; fileTokenRangeAsync; executeCommandAsync |]]
>             |> Seq.collect id
>             |> fun x ->
>                 if isParallel
>                 then Async.Parallel (x, float System.Environment.ProcessorCount 
> * 0.51 |> ceil |> int)
>                 else Async.Sequential x
>             |> Async.map Array.sum
>     }
>     |> Async.runWithTimeout timeout
>     |> Option.defaultValue 1
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> //// test
> 
> let args =
>     System.Environment.GetEnvironmentVariable "ARGS"
>     |> SpiralRuntime.split_args
>     |> Result.toArray
>     |> Array.collect id
> 
> match args with
> | [[||]] -> 0
> | args -> if main args = 0 then 0 else failwith "main failed"
> 
> ╭─[ 74.49ms - return value ]───────────────────────────────────────────────────╮
> │ <div class="dni-plaintext"><pre>0                                            │
> │ </pre></div><style>                                                          │
> │ .dni-code-hint {                                                             │
> │     font-style: italic;                                                      │
> │     overflow: hidden;                                                        │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview {                                                              │
> │     white-space: nowrap;                                                     │
> │ }                                                                            │
> │ .dni-treeview td {                                                           │
> │     vertical-align: top;                                                     │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ details.dni-treeview {                                                       │
> │     padding-left: 1em;                                                       │
> │ }                                                                            │
> │ table td {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ table tr {                                                                   │
> │     vertical-align: top;                                                     │
> │     margin: 0em 0px;                                                         │
> │ }                                                                            │
> │ table tr td pre                                                              │
> │ {                                                                            │
> │     vertical-align: top !important;                                          │
> │     margin: 0em 0px !important;                                              │
> │ }                                                                            │
> │ table th {                                                                   │
> │     text-align: start;                                                       │
> │ }                                                                            │
> │ </style>                                                                     │
> ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:21 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 213670 }
00:01:21   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/apps/spiral/Supervisor.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/apps/spiral/Supervisor.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:23 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/apps/spiral/Supervisor.dib.ipynb to html
00:01:23 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:01:23 verbose #7 !   validate(nb)
00:01:25 verbose #8 ! [NbConvertApp] Writing 558875 bytes to c:\home\git\polyglot\apps\spiral\Supervisor.dib.html
00:01:25 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 653 }
00:01:25   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 653 }
00:01:25   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/apps/spiral/Supervisor.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/apps/spiral/Supervisor.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:26 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:01:26   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:01:26   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 214382 }
00:00:00   debug #1 writeDibCode / output: Fs / path: Supervisor.dib
00:00:00   debug #2 parseDibCode / output: Fs / file: Supervisor.dib
00:00:00   debug #1 persistCodeProject / packages: [Argu; FSharp.Control.AsyncSeq; FSharp.Json; ... ] / modules: [lib/spiral/common.fsx; lib/spiral/sm.fsx; lib/spiral/crypto.fsx; ... ] / name: Supervisor / hash:  / code.Length: 27503
00:00:00   debug #2 buildProject / fullPath: C:\home\git\polyglot\target\Builder\Supervisor\Supervisor.fsproj
00:00:00   debug #1 runtime.execute_with_options_async / { options = { command = dotnet publish "C:\home\git\polyglot\target/Builder\Supervisor\Supervisor.fsproj" --configuration Release --output "C:\home\git\polyglot\apps\spiral\dist" --runtime linux-x64; cancellation_token = None; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot\target\Builder\Supervisor" } }
00:00:00 verbose #2 > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET
00:00:01 verbose #3 >   Determining projects to restore...
00:00:05 verbose #4 >   Restored C:\home\git\polyglot\target\Builder\Supervisor\Supervisor.fsproj (in 3.51 sec).
00:00:05 verbose #5 > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\Builder\Supervisor\Supervisor.fsproj]
00:00:06 verbose #6 >   Supervisor -> C:\home\git\polyglot\target\Builder\Supervisor\bin\Release\net9.0\linux-x64\Supervisor.dll
00:00:07 verbose #7 >   Supervisor -> C:\home\git\polyglot\apps\spiral\dist\
00:00:07   debug #8 runtime.execute_with_options_async / { exit_code = 0; output_length = 690 }
00:00:07   debug #9 runtime.execute_with_options_async / { options = { command = dotnet publish "C:\home\git\polyglot\target/Builder\Supervisor\Supervisor.fsproj" --configuration Release --output "C:\home\git\polyglot\apps\spiral\dist" --runtime win-x64; cancellation_token = None; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot\target\Builder\Supervisor" } }
00:00:07 verbose #10 > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET
00:00:08 verbose #11 >   Determining projects to restore...
00:00:08 verbose #12 >   Restored C:\home\git\polyglot\target\Builder\Supervisor\Supervisor.fsproj (in 408 ms).
00:00:09 verbose #13 > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\Builder\Supervisor\Supervisor.fsproj]
00:00:09 verbose #14 >   Supervisor -> C:\home\git\polyglot\target\Builder\Supervisor\bin\Release\net9.0\win-x64\Supervisor.dll
00:00:13 verbose #15 >   Supervisor -> C:\home\git\polyglot\apps\spiral\dist\
00:00:13   debug #16 runtime.execute_with_options_async / { exit_code = 0; output_length = 686 }
00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "Eval.dib", "--retries", "3"])) }
00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/apps/spiral/Eval.dib", "--output-path", "c:/home/git/polyglot/apps/spiral/Eval.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/apps/spiral/Eval.dib" --output-path "c:/home/git/polyglot/apps/spiral/Eval.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ # Eval (Polyglot)                                                            │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> #r 
> @"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
> dard2.1/FSharp.Control.AsyncSeq.dll"
> #r 
> @"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
> 0/System.Reactive.dll"
> #r 
> @"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/
> netstandard2.0/System.Reactive.Linq.dll"
> #r 
> @"../../../../../../../.nuget/packages/argu/6.2.4/lib/netstandard2.0/Argu.dll"
> #r 
> @"../../../../../../../.nuget/packages/microsoft.aspnetcore.http.connections.com
> mon/7.0.0/lib/net7.0/Microsoft.AspNetCore.Http.Connections.Common.dll"
> #r 
> @"../../../../../../../.nuget/packages/microsoft.aspnetcore.http.connections.cli
> ent/7.0.0/lib/net7.0/Microsoft.AspNetCore.Http.Connections.Client.dll"
> #r 
> @"../../../../../../../.nuget/packages/microsoft.aspnetcore.signalr.common/7.0.0
> /lib/net7.0/Microsoft.AspNetCore.SignalR.Common.dll"
> #r 
> @"../../../../../../../.nuget/packages/microsoft.aspnetcore.signalr.client/7.0.0
> /lib/net7.0/Microsoft.AspNetCore.SignalR.Client.dll"
> #r 
> @"../../../../../../../.nuget/packages/microsoft.aspnetcore.signalr.client.core/
> 7.0.0/lib/net7.0/Microsoft.AspNetCore.SignalR.Client.Core.dll"
> #r 
> @"../../../../../../../.nuget/packages/fsharp.json/0.4.1/lib/netstandard2.0/FSha
> rp.Json.dll"
> #r 
> @"../../../../../../../.nuget/packages/system.management/7.0.0/lib/netstandard2.
> 0/System.Management.dll"
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> #if !INTERACTIVE
> open Lib
> #endif
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> open Common
> open SpiralFileSystem.Operators
> open Microsoft.AspNetCore.SignalR.Client
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> open System
> open System.Collections.Generic
> open System.IO
> open System.Text
> open System.Threading
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## mapErrors                                                                 │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline mapErrors (severity, errors, lastTopLevelIndex) allCode =
>     let allCodeLineLength =
>         allCode |> SpiralSm.split "\n" |> Array.length
> 
>     errors
>     |> List.map (fun (_, error) ->
>         match error with
>         | Supervisor.FatalError message ->
>             (
>                 severity, message, 0, ("", (0, 0), (0, 0))
>             )
>             |> List.singleton
>         | Supervisor.TracedError data ->
>             data.trace
>             |> List.truncate 5
>             |> List.append [[ data.message ]]
>             |> List.map (fun message ->
>                 (
>                     severity, message, 0, ("", (0, 0), (0, 0))
>                 )
>             )
>         | Supervisor.PackageErrors data
>         | Supervisor.TokenizerErrors data
>         | Supervisor.ParserErrors data
>         | Supervisor.TypeErrors data ->
>             data.errors
>             |> List.filter (fun ((rangeStart, _), _) ->
>                 trace Debug (fun () -> $"Eval.mapErrors / rangeStart.line: 
> {rangeStart.line} / lastTopLevelIndex: {lastTopLevelIndex} / allCodeLineLength: 
> {allCodeLineLength} / filtered: {rangeStart.line > allCodeLineLength}") _locals
>                 rangeStart.line > allCodeLineLength
>             )
>             |> List.map (fun ((rangeStart, rangeEnd), message) ->
>                 (
>                     severity,
>                     message,
>                     0,
>                     (
>                         (data.uri |> System.IO.Path.GetFileName),
>                         (
>                             (match lastTopLevelIndex with
>                             | Some i when rangeStart.line >= i + 
> allCodeLineLength + 3 ->
>                                 rangeStart.line - allCodeLineLength - 2
>                             | _ -> rangeStart.line - allCodeLineLength),
>                             (match lastTopLevelIndex with
>                             | Some i when rangeStart.line >= i + 
> allCodeLineLength + 3 ->
>                                 rangeStart.character - 4
>                             | _ -> rangeStart.character)
>                         ),
>                         (
>                             (match lastTopLevelIndex with
>                             | Some i when rangeStart.line >= i + 
> allCodeLineLength + 3 ->
>                                 rangeEnd.line - allCodeLineLength - 2
>                             | _ -> rangeEnd.line - allCodeLineLength),
>                             (match lastTopLevelIndex with
>                             | Some i when rangeStart.line >= i + 
> allCodeLineLength + 3 ->
>                                 rangeEnd.character - 4
>                             | _ -> rangeEnd.character)
>                         )
>                     )
>                 )
>             )
>     )
>     |> List.collect id
>     |> List.toArray
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### workspaceRoot                                                            │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let workspaceRoot = SpiralFileSystem.get_workspace_root ()
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### targetDir                                                                │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let targetDir = workspaceRoot </> "target/spiral_Eval"
> [[ targetDir ]]
> |> List.iter (fun dir -> if Directory.Exists dir |> not then 
> Directory.CreateDirectory dir |> ignore)
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ### assemblyName                                                             │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let assemblyName = Reflection.Assembly.GetEntryAssembly().GetName().Name
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## allCode                                                                   │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let mutable allCode = ""
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## allCodeReal                                                               │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let mutable allCodeReal = ""
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## traceToggle                                                               │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let mutable traceToggle = false
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## getParentProcessId                                                        │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let getParentProcessId () =
>     if SpiralPlatform.is_windows () |> not
>     then 0u
>     else
>         let pid = System.Diagnostics.Process.GetCurrentProcess().Id
>         let query = $"SELECT ParentProcessId FROM Win32_Process WHERE ProcessId 
> = {pid}"
>         use searcher = new System.Management.ManagementObjectSearcher (query)
>         use results = searcher.Get ()
>         let data = results |> Seq.cast<System.Management.ManagementObject>
>         if data |> Seq.isEmpty
>         then 0u
>         else data |> Seq.head |> (fun mo -> mo.[["ParentProcessId"]] :?> uint32)
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## startTokenRangeWatcher                                                    │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline startTokenRangeWatcher () =
>     if [[ "dotnet-repl" ]] |> List.contains assemblyName |> not then
>         let tokensDir = targetDir </> "tokens"
> 
>         [[ tokensDir ]]
>         |> List.iter (fun dir -> if Directory.Exists dir |> not then 
> Directory.CreateDirectory dir |> ignore)
> 
>         let stream, disposable = FileSystem.watchDirectory (fun _ -> false) 
> tokensDir
> 
>         try
>             let existingFilesChild =
>                 tokensDir
>                 |> System.IO.Directory.GetDirectories
>                 |> Array.map (fun codeDir -> async {
>                     try
>                         let tokensPath = codeDir </> "tokens.json"
>                         if tokensPath |> File.Exists |> not then
>                             let spiralCodePath = codeDir </> "main.spi"
>                             let spiralRealCodePath = codeDir </> 
> "real_main.spir"
>                             let spiralExists = spiralCodePath |> 
> System.IO.File.Exists
>                             let spiralRealExists = spiralRealCodePath |> 
> System.IO.File.Exists
>                             if spiralExists |> not && spiralRealExists |> not
>                             then do! codeDir |> 
> SpiralFileSystem.delete_directory_async |> Async.Ignore
>                             else
>                                 let! tokens =
>                                     if spiralExists then spiralCodePath else 
> spiralRealCodePath
>                                     |> Supervisor.getFileTokenRange None None
>                                 match tokens with
>                                 | Some tokens ->
>                                     do!
>                                         tokens
>                                         |> FSharp.Json.Json.serialize
>                                         |> SpiralFileSystem.write_all_text_async
> tokensPath
>                                 | None ->
>                                     trace Verbose (fun () -> 
> $"Eval.startTokenRangeWatcher / GetDirectories / tokens: None") _locals
>                     with ex ->
>                         trace Critical (fun () -> $"Eval.startTokenRangeWatcher 
> / GetDirectories / ex: {ex |> SpiralSm.format_exception}") _locals
>                 })
>                 |> Async.Parallel
>                 |> Async.Ignore
> 
>             let streamAsyncChild =
>                 stream
>                 |> FSharp.Control.AsyncSeq.iterAsyncParallel (fun (ticks, event)
> ->
>                         match event with
>                         | FileSystem.FileSystemChange.Changed (codePath, _)
>                             when [[ "main.spi"; "real_main.spir" ]]
>                                 |> List.contains (System.IO.Path.GetFileName 
> codePath)
>                             ->
>                             async {
>                                 let hashDir = codePath |> 
> System.IO.Directory.GetParent
>                                 let hashHex = hashDir.Name
>                                 let codePath = tokensDir </> codePath
>                                 let tokensPath = tokensDir </> hashHex </> 
> "tokens.json"
>                                 do! Async.Sleep 30
>                                 let! tokens = codePath |> 
> Supervisor.getFileTokenRange None None
>                                 match tokens with
>                                 | Some tokens ->
>                                     do!
>                                         tokens
>                                         |> FSharp.Json.Json.serialize
>                                         |> 
> SpiralFileSystem.write_all_text_exists tokensPath
>                                 | None ->
>                                     trace Verbose (fun () -> 
> $"Eval.startTokenRangeWatcher / iterAsyncParallel / tokens: None") _locals
>                             }
>                             |> Async.retryAsync 2
>                             |> Async.map (Result.toOption >> Option.get)
>                         | _ -> () |> Async.init
>                 )
> 
>             let parentAsyncChild = async {
>                 let parentProcessId = getParentProcessId ()
>                 trace Verbose
>                     (fun () -> "Eval.parentAsyncChild")
>                     (fun () -> $"parentProcessId: {parentProcessId} / {_locals 
> ()}")
> 
>                 if parentProcessId > 0u then
>                     let parentProcess = parentProcessId |> int |> 
> System.Diagnostics.Process.GetProcessById
>                     do! parentProcess.WaitForExitAsync () |> Async.AwaitTask
>                     trace Verbose
>                         (fun () -> "Eval.parentAsyncChild / Parent process has 
> exited. Performing cleanup...")
>                         (fun () -> $"{_locals ()}")
>                     System.Threading.Thread.Sleep 1000
>                     System.Environment.Exit 1
>             }
> 
>             async {
>                 do! Async.Sleep 3000
>                 existingFilesChild |> Async.StartImmediate
>                 streamAsyncChild |> Async.Start
>                 parentAsyncChild |> Async.Start
>             }
>             |> Async.Start
>         with ex ->
>             trace Critical (fun () -> $"Eval.startTokenRangeWatcher / ex: {ex |>
> SpiralSm.format_exception}") _locals
> 
>         disposable
>     else new_disposable (fun () -> ())
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## startCommandsWatcher                                                      │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let startCommandsWatcher (uriServer : string) =
>     let commandsDir = targetDir </> "eval_commands"
>     let commandHistoryDir = targetDir </> "eval_command_history"
>     [[ commandsDir; commandHistoryDir ]]
>     |> List.iter (fun dir -> if Directory.Exists dir |> not then 
> Directory.CreateDirectory dir |> ignore)
> 
>     Directory.EnumerateFiles commandsDir |> Seq.iter File.Delete
> 
>     let stream, disposable =
>         commandsDir
>         |> FileSystem.watchDirectory (function
>             | FileSystem.FileSystemChange.Created _ -> true
>             | _ -> false
>         )
> 
>     let connection = HubConnectionBuilder().WithUrl(uriServer).Build()
>     connection.StartAsync() |> Async.AwaitTask |> Async.Start
>     // let _ = connection.On<string>("ServerToClientMsg", fun x ->
>     //     printfn $"ServerToClientMsg: '{x}'"
>     // )
> 
>     stream
>     |> FSharp.Control.AsyncSeq.iterAsyncParallel (fun (ticks, event) -> async {
>         let _locals () = $"ticks: {ticks} / event: {event} / {_locals ()}"
>         trace Verbose (fun () -> "Eval.startCommandsWatcher / 
> iterAsyncParallel") _locals
> 
>         match event with
>         | FileSystem.FileSystemChange.Created (path, Some json) ->
>             try
>                 let fullPath = commandsDir </> path
>                 let! result = 
> connection.InvokeAsync<string>("ClientToServerMsg", json) |> Async.AwaitTask
>                 let commandHistoryPath = commandHistoryDir </> path
>                 do! fullPath |> SpiralFileSystem.move_file_async 
> commandHistoryPath |> Async.Ignore
>                 if result |> SpiralSm.trim |> String.length > 0 then
>                     let resultPath = commandHistoryDir </> 
> $"{Path.GetFileNameWithoutExtension path}_result.json"
>                     do! result |> SpiralFileSystem.write_all_text_async 
> resultPath
>             with ex ->
>                 let _locals () = $"ex: {ex |> SpiralSm.format_exception} / 
> {_locals ()}"
>                 trace Critical (fun () -> "Eval.startCommandsWatcher / 
> iterAsyncParallel") _locals
>         | _ -> ()
>     })
>     |> Async.StartChild
>     |> Async.Ignore
>     |> Async.Start
> 
>     new_disposable (fun () ->
>         disposable.Dispose ()
>     )
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## prepareSpiral                                                             │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let prepareSpiral rawCellCode lines =
>     let lastBlock =
>         lines
>         |> Array.tryFindBack (fun line ->
>             line |> String.length > 0
>             && line.[[0]] <> ' '
>         )
> 
>     let hasMain =
>         lastBlock
>         |> Option.exists (fun line ->
>             line |> SpiralSm.starts_with "inl main "
>             || line |> SpiralSm.starts_with "let main "
>         )
> 
>     if hasMain
>     then rawCellCode, None
>     else
>         let lastTopLevelIndex, _ =
>             (lines |> Array.indexed, (None, false))
>             ||> Array.foldBack (fun (i, line) (lastTopLevelIndex, finished) ->
>                 // trace Verbose (fun () -> $"Eval.prepareSpiral / i: {i} / 
> line: '{line}' / lastTopLevelIndex: {lastTopLevelIndex} / finished: {finished}")
> _locals
>                 match line with
>                 | _ when finished -> lastTopLevelIndex, true
>                 | "" -> lastTopLevelIndex, false
>                 | line when
>                     line |> SpiralSm.starts_with " "
>                     || line |> SpiralSm.starts_with "// " -> lastTopLevelIndex, 
> false
>                 | line when
>                     line |> SpiralSm.starts_with "open "
>                     || line |> SpiralSm.starts_with "prototype "
>                     || line |> SpiralSm.starts_with "instance "
>                     || line |> SpiralSm.starts_with "type "
>                     || line |> SpiralSm.starts_with "union "
>                     || line |> SpiralSm.starts_with "nominal " -> 
> lastTopLevelIndex, true
>                 | line when
>                     line |> SpiralSm.starts_with "inl "
>                     || line |> SpiralSm.starts_with "let " ->
>                     let m =
>                         System.Text.RegularExpressions.Regex.Match (
>                             line,
>                             @"^(inl|let) +([[~\(\w]][[\w\d']]*(?:| 
> *[[~\w]][[\w\d']]*\)|, *[[~\w]][[\w\d']]*)) +[[:=]](?! +function)"
>                         )
>                     trace Verbose (fun () -> $"Eval.prepareSpi / m: '{m}' / 
> m.Groups.Count: {m.Groups.Count}") _locals
>                     if m.Groups.Count = 3
>                     then Some i, false
>                     else lastTopLevelIndex, true
>                 | _ -> Some i, false
>             )
>         let code =
>             match lastTopLevelIndex with
>             | Some lastTopLevelIndex ->
>                 lines
>                 |> Array.mapi (fun i line ->
>                     match i with
>                     | i when i < lastTopLevelIndex -> line
>                     | i when i = lastTopLevelIndex -> $"\nlet main () =\n    
> {line}"
>                     | _ when line |> SpiralSm.trim = "" -> ""
>                     | _ -> $"    {line}"
>                 )
>                 |> SpiralSm.concat "\n"
>             | None -> $"{rawCellCode}\n\ninl main () = ()\n"
>         code, lastTopLevelIndex
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## processSpiralOutput                                                       │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let processSpiralOutput
>     (props : {|
>         printCode: bool
>         traceLevel: TraceLevel
>         builderCommands: string array
>         lastTopLevelIndex: int option
>         backend: Supervisor.Backend
>         cancellationToken: _
>         spiralErrors: _
>         code: string
>         outputPath: string
>         isReal: bool
>     |})
>     = async {
>     let inline _trace (fn : unit -> string) =
>         if props.traceLevel = Verbose
>         then trace Info (fun () -> $"Eval.processSpiralOutput / props: {props |>
> FSharp.Json.Json.serialize |> SpiralSm.ellipsis_end 400} / {fn ()}") _locals
>         else fn () |> System.Console.WriteLine
> 
>     if props.printCode then
>         let ext = props.outputPath |> System.IO.Path.GetExtension
>         _trace (fun () -> if props.builderCommands.Length > 0 then 
> $"{ext}:\n{props.code}\n" else props.code)
> 
>     let workspaceRootExternal =
>         let currentDir =
>             System.IO.Directory.GetCurrentDirectory ()
>             |> SpiralSm.to_lower
>         let workspaceRoot = workspaceRoot |> SpiralSm.to_lower
>         if currentDir |> SpiralSm.starts_with workspaceRoot
>         then None
>         else Some workspaceRoot
> 
>     let! spiralBuilderResults =
>         match props.builderCommands, props.lastTopLevelIndex with
>         | [[||]], _ | _, None -> [[||]] |> Async.init
>         | builderCommands, _ ->
>             builderCommands
>             |> Array.map (fun builderCommand ->
>                 let path =
>                     workspaceRoot </> 
> $@"workspace/target/release/spiral_builder{SpiralPlatform.get_executable_suffix 
> ()}"
>                     |> System.IO.Path.GetFullPath
>                 let commands =
>                     if props.backend = Supervisor.Fsharp
>                         && (
>                             builderCommand |> SpiralSm.starts_with "rust"
>                             || builderCommand |> SpiralSm.starts_with 
> "typescript"
>                             || builderCommand |> SpiralSm.starts_with "python"
>                         )
>                     then [[| $"{path} fable --fs-path \"{props.outputPath}\" 
> --command \"{builderCommand}\"" |]]
>                     elif props.backend = Supervisor.Cuda
>                         && builderCommand |> SpiralSm.starts_with "cuda"
>                     then [[| $"{path} {builderCommand} --py-path 
> \"{props.outputPath}\"" |]]
>                     else [[||]]
>                 builderCommand, commands
>             )
>             |> Array.filter (fun (_, commands) -> commands.Length > 0)
>             |> Array.map (fun (builderCommand, commands) ->
>                 commands
>                 |> Array.map (fun command -> async {
>                     let! exitCode, result =
>                         SpiralRuntime.execution_options (fun x ->
>                             { x with
>                                 l0 = command
>                                 l1 = props.cancellationToken
>                                 l2 = [[|
>                                     "AUTOMATION", assemblyName = "dotnet-repl" 
> |> string
>                                     "TRACE_LEVEL", $"%A{if props.printCode then 
> props.traceLevel else Info}"
>                                 |]]
>                                 l6 = workspaceRootExternal
>                             }
>                         )
>                         |> SpiralRuntime.execute_with_options_async
>                     trace Debug
>                         (fun () -> $"Eval.processSpiralOutput / spiral_builder")
>                         (fun () -> $"exitCode: {exitCode} / result: {result |> 
> SpiralSm.ellipsis_end 400} / {_locals ()}")
>                     return
>                         if exitCode = 0
>                         then (result, false) |> Ok
>                         else result |> Error
>                 })
>             )
>             |> Array.collect id
>             |> Async.Parallel
> 
>     let hasEval =
>         props.backend = Supervisor.Fsharp
>         && props.builderCommands |> Array.exists (fun x -> x |> 
> SpiralSm.starts_with "fsharp")
> 
>     let outputResult =
>         if props.builderCommands.Length > 0 && not hasEval
>         then None
>         else
>             let code =
>                 if props.builderCommands.Length > 1
>                 then
>                     let header = "System.Console.WriteLine \".fsx output:\"\n"
>                     $"{header}{props.code}"
>                 else props.code
>             Some (Ok [[ code, true ]])
> 
>     match outputResult, spiralBuilderResults with
>     | Some outputResult, [[||]] ->
>         return outputResult, [[||]]
>     | None, [[||]] ->
>         return Ok [[ "()", true ]], [[||]]
>     | _, spiralBuilderResults ->
>         try
>             let spiralResults =
>                 match outputResult with
>                 | Some (Ok code) ->
>                     spiralBuilderResults
>                     |> Array.append (code |> List.map Ok |> List.toArray)
>                 | _ -> spiralBuilderResults
>             let codes =
>                 spiralResults
>                 |> Array.map (fun spiralBuilderResult' ->
>                     let spiralBuilderResult'', errors =
>                         match spiralBuilderResult' with
>                         | Ok (x, false) ->
>                             let x = x |> 
> FSharp.Json.Json.deserialize<Map<string,string>>
>                             x, [[||]]
>                         | Ok (x, true) ->
>                             let result =
>                                 [[
>                                     "command_result",
>                                     [[
>                                         "extension", "fsx"
>                                         "code", x
>                                         "output", ""
>                                     ]]
>                                     |> Map.ofList
>                                     |> FSharp.Json.Json.serialize
>                                 ]]
>                                 |> Map.ofList
>                             result, [[||]]
> 
>                         | Error error ->
>                             ([[]] |> Map),
>                             [[|
>                                 (
>                                     TraceLevel.Critical, 
> $"Eval.processSpiralOutput / evalResult error / errors[[0]] / outputPath: 
> {props.outputPath} / builderCommands: %A{props.builderCommands} / 
> spiralBuilderResult': %A{spiralBuilderResult'} / error: %A{error}", 0, ("", (0, 
> 0), (0, 0))
>                                 )
>                             |]]
> 
>                     if errors |> Array.isEmpty |> not
>                         || spiralBuilderResult'' |> Map.containsKey 
> "command_result" |> not
>                     then Error (Exception $"Eval.processSpiralOutput / 
> evalResult errors / Exception / spiralBuilderResult'': 
> %A{spiralBuilderResult''}"), errors
>                     else
>                         let commandResult = 
> spiralBuilderResult''.[["command_result"]] |> 
> FSharp.Json.Json.deserialize<Map<string,string>>
> 
>                         let extension = commandResult.[["extension"]]
>                         let code = commandResult.[["code"]]
>                         let output = commandResult.[["output"]]
> 
>                         let eval = output = "" && extension = "fsx"
> 
>                         if props.printCode && not eval
>                         then _trace (fun () -> $""".{extension}:{'\n'}{code}""")
> 
>                         trace Debug
>                             (fun () -> $"Eval.processSpiralOutput / result")
>                             (fun () -> $"commandResult: {commandResult |> 
> FSharp.Json.Json.serialize |> SpiralSm.ellipsis_end 400}/ {_locals ()}")
> 
>                         let code =
>                             if props.printCode
>                                 || spiralResults.Length > 1
>                                 || props.builderCommands.Length > 1
>                             then
>                                 if eval then
>                                     code
>                                 else
>                                     let header =
>                                         if props.backend = Supervisor.Fsharp
>                                         then $".{extension} output:\n"
>                                         else $".{extension} output 
> ({props.backend}):\n"
>                                     $"""{if output |> SpiralSm.contains "\n" 
> then "\n" else ""}{header}{output}"""
>                             elif eval
>                             then code
>                             else output
>                         Ok (code, eval), [[||]]
>                 )
>             trace Debug
>                 (fun () -> $"Eval.processSpiralOutput / codes")
>                 (fun () ->
>                     let props = {| props with cancellationToken = None |}
>                     $"codes: {codes |> FSharp.Json.Json.serialize |> 
> SpiralSm.ellipsis_end 400} / spiralResults: {spiralResults |> 
> FSharp.Json.Json.serialize |> SpiralSm.ellipsis_end 400} / spiralBuilderResults:
> {spiralBuilderResults |> FSharp.Json.Json.serialize |> SpiralSm.ellipsis_end 
> 400} / props: {props |> FSharp.Json.Json.serialize |> SpiralSm.ellipsis_end 400}
> / {_locals ()}")
>             return
>                 (((Ok [[]]), [[||]]), codes)
>                 ||> Array.fold (fun (acc_code, acc_errors) (code, errors) ->
>                     match code, acc_code with
>                     | Ok code, Ok acc_code ->
>                         let errors =
>                             acc_errors
>                             |> Array.append errors
>                             |> Array.append props.spiralErrors
>                         let errors =
>                             if errors |> Array.isEmpty
>                             then errors
>                             else
>                                 errors
>                                 |> Array.append [[|
>                                     TraceLevel.Critical, 
> $"Eval.processSpiralOutput / errors / errors[[-1]] / outputPath: 
> {props.outputPath} / builderCommands: %A{props.builderCommands} / code: {code |>
> fst |> SpiralSm.ellipsis_end 400}", 0, ("", (0, 0), (0, 0))
>                                 |]]
>                         Ok (code :: acc_code), errors
>                     | Error error, _
>                     | _, Error error ->
>                         Error error,
>                         acc_errors |> Array.append errors
>                 )
>         with ex ->
>             trace Critical (fun () -> $"Eval.processSpiralOutput / try 2 ex / 
> spiralBuilderResults: %A{spiralBuilderResults} / ex: {ex |> 
> SpiralSm.format_exception}") _locals
>             return Error (Exception $"Eval.processSpiralOutput / try 2 ex / 
> Exception / spiralBuilderResults: %A{spiralBuilderResults} / ex: {ex |> 
> SpiralSm.format_exception}"),
>             [[|
>                 (
>                     TraceLevel.Critical, $"Eval.processSpiralOutput / try 2 ex /
> errors[[0]] / spiralBuilderResults: %A{spiralBuilderResults} / ex: {ex |> 
> SpiralSm.format_exception}", 0, ("", (0, 0), (0, 0))
>                 )
>             |]]
> }
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## tryGetPropertyValue                                                       │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let tryGetPropertyValue (propertyName: string) (obj: obj) =
>     let objType = obj.GetType ()
>     let propertyInfo = propertyName |> objType.GetProperty
>     if propertyInfo <> null
>     then propertyInfo.GetValue (obj, null) |> Some
>     else None
> 
> ── markdown ────────────────────────────────────────────────────────────────────
> ╭──────────────────────────────────────────────────────────────────────────────╮
> │ ## eval                                                                      │
> ╰──────────────────────────────────────────────────────────────────────────────╯
> 
> ── fsharp ──────────────────────────────────────────────────────────────────────
> let inline eval
>     (fsi_eval:
>         string
>         -> System.Threading.CancellationToken
>         -> Choice<'a, Exception> * (TraceLevel * string * int * (string * (int *
> int) * (int * int))) array)
>     (cancellationToken: Option<System.Threading.CancellationToken>)
>     (code: string)
>     =
>     trace Verbose
>         (fun () -> $"Eval.eval")
>         (fun () -> $"code: {code |> SpiralSm.ellipsis_end 400} / {_locals ()}")
> 
>     let rawCellCode =
>         code |> SpiralSm.replace "\r\n" "\n"
> 
>     let lines = rawCellCode |> SpiralSm.split "\n"
> 
>     if lines |> Array.exists (fun line -> line |> SpiralSm.starts_with "#r " && 
> line |> SpiralSm.ends_with "\"") then
>         let cancellationToken = defaultArg cancellationToken 
> System.Threading.CancellationToken.None
>         let ch, errors = fsi_eval code cancellationToken
>         trace Verbose (fun () -> $"Eval.eval / fsi_eval 1 / ch: %A{ch} / errors:
> {errors}") _locals
>         match ch with
>         | Choice1Of2 v -> Ok(v), errors
>         | Choice2Of2 ex -> Error(ex), errors
>     else
>         let builderCommands =
>             lines
>             |> Array.choose (fun line ->
>                 if line |> SpiralSm.starts_with "///! "
>                 then line |> SpiralSm.split "///! " |> Array.tryItem 1
>                 else None
>             )
> 
>         let timeout =
>             lines
>             |> Array.tryPick (fun line ->
>                 if line |> SpiralSm.starts_with "//// timeout="
>                 then line |> SpiralSm.split "=" |> Array.tryItem 1 |> Option.map
> int
>                 else None
>             )
>             |> Option.defaultValue (60000 * 60)
> 
>         let boolArg def command =
>             lines
>             |> Array.tryPick (fun line ->
>                 let text = $"//// {command}"
>                 match line.[[0..text.Length-1]], line.[[text.Length..]] with
>                 | head, "" when head = text ->
>                     Some true
>                 | head, _ when head = text ->
>                     line |> SpiralSm.split "=" |> Array.tryItem 1 |> Option.map 
> ((<>) "false")
>                 | _ -> None
>             )
>             |> Option.defaultValue def
> 
>         let printCode = "print_code" |> boolArg false
>         let isTraceToggle = "trace_toggle" |> boolArg false
>         let isTrace = "trace" |> boolArg false
>         let isCache = "cache" |> boolArg false
>         let isReal = "real" |> boolArg false
> 
>         if isTraceToggle
>         then traceToggle <- not traceToggle
> 
>         let oldLevel = get_trace_level ()
>         let traceLevel =
>             if isTrace || traceToggle
>             then Verbose
>             else Info
>         traceLevel
>         |> to_trace_level
>         |> set_trace_level
>         use _ = (new_disposable (fun () ->
>             oldLevel |> set_trace_level
>         ))
> 
>         async {
>             try
>                 let cellCode, lastTopLevelIndex = prepareSpiral rawCellCode 
> lines
>                 let newAllCode =
>                     if isReal
>                     then $"{allCodeReal}\n\n{cellCode}"
>                     else $"{allCode}\n\n{cellCode}"
> 
>                 let buildBackends =
>                     if builderCommands.Length = 0
>                     then [[| Supervisor.Fsharp |]]
>                     else
>                         builderCommands
>                         |> Array.map (fun x ->
>                             if x |> SpiralSm.starts_with "cuda"
>                             then Supervisor.Cuda
>                             else Supervisor.Fsharp
>                         )
>                         |> Array.distinct
> 
>                 trace Verbose
>                     (fun () -> $"Eval.eval")
>                     (fun () -> $"lastTopLevelIndex: {lastTopLevelIndex} / 
> builderCommands: %A{builderCommands} / buildBackends: %A{buildBackends} / 
> isReal: {isReal} / {_locals ()}")
> 
>                 let! buildCodeResults =
>                     buildBackends
>                     |> Array.map (fun backend -> async {
>                         let! result =
>                             if isReal
>                             then Supervisor.Spir newAllCode
>                             else
>                                 Supervisor.Spi
>                                     (newAllCode, if allCodeReal = "" then None 
> else Some allCodeReal)
>                             |> Supervisor.buildCode backend isCache timeout 
> cancellationToken
>                         return backend, result
>                     })
>                     |> Async.Parallel
>                     |> Async.catch
>                     |> Async.runWithTimeoutAsync timeout
> 
>                 match buildCodeResults with
>                 | Some (Ok buildCodeResults) ->
>                     let! result, errors =
>                         ((Ok [[]], [[||]]), buildCodeResults)
>                         ||> Async.fold (fun acc buildCodeResult -> async {
>                             match buildCodeResult with
>                             | backend, (_, (outputPath, Some code), 
> spiralErrors) ->
>                                 let spiralErrors =
>                                     mapErrors (Warning, spiralErrors, 
> lastTopLevelIndex) allCode
>                                 let! result =
>                                     processSpiralOutput
>                                         {|
>                                             printCode = printCode
>                                             traceLevel = traceLevel
>                                             builderCommands = builderCommands
>                                             lastTopLevelIndex = 
> lastTopLevelIndex
>                                             backend = backend
>                                             cancellationToken = 
> cancellationToken
>                                             spiralErrors = spiralErrors
>                                             code = code
>                                             outputPath = outputPath
>                                             isReal = isReal
>                                         |}
>                                 match result, acc with
>                                 | (Ok code, errors), (Ok acc_code, acc_errors) 
> ->
>                                     return Ok (acc_code @ code), acc_errors |> 
> Array.append errors
>                                 | (Error ex, errors), _ | _, (Error ex, errors) 
> ->
>                                     return Error ex, errors |> Array.append 
> errors
>                             | _, (_, _, errors) when errors |> List.isEmpty |> 
> not ->
>                                 return errors.[[0]] |> fst |> Exception |> 
> Error,
>                                 mapErrors (TraceLevel.Critical, errors, 
> lastTopLevelIndex) allCode
>                             | _ -> return acc
>                         })
>                     let cancellationToken = defaultArg cancellationToken 
> System.Threading.CancellationToken.None
>                     match result, errors with
>                     | Ok code, [[||]] ->
>                         let code, eval =
>                             code
>                             |> List.map (fun (code, eval) ->
>                                 if eval
>                                 then None, Some code
>                                 else Some code, None
>                             )
>                             |> List.unzip
>                         let code = code |> List.choose id
>                         let eval = eval |> List.choose id
> 
>                         trace Debug
>                             (fun () -> $"Eval.eval")
>                             (fun () -> $"eval: {eval |> 
> FSharp.Json.Json.serialize |> SpiralSm.ellipsis_end 400} / code: {code |> 
> FSharp.Json.Json.serialize |> SpiralSm.ellipsis_end 400} / {_locals ()}")
> 
>                         let ch, errors =
>                             match eval, code with
>                             | [[]], [[]] ->
>                                 Choice2Of2 (Exception $"Eval.eval / eval=[[]] / 
> code=[[]] / buildCodeResults: %A{buildCodeResults} / code: %A{code}"), errors
>                             | [[ eval ]], [[]] ->
>                                 let ch, errors2 = fsi_eval eval 
> cancellationToken
>                                 let errors =
>                                     errors2
>                                     // |> Array.map (fun (e1, e2, e3, _) ->
>                                     //     (e1, e2, e3, ("", (0, 0), (0, 0)))
>                                     // )
>                                     |> Array.append errors
>                                 ch, errors
>                             | [[]], _ ->
>                                 let code = code |> List.rev |> String.concat 
> "\n\n"
>                                 let code =
>                                     if printCode
>                                     then $"\"\"\"{code}\n\n\"\"\""
>                                     else $"\"\"\"{code}\n\"\"\""
>                                 let ch, errors2 = fsi_eval code 
> cancellationToken
>                                 let errors =
>                                     errors2
>                                     // |> Array.map (fun (e1, e2, e3, _) ->
>                                     //     (e1, e2, e3, ("", (0, 0), (0, 0)))
>                                     // )
>                                     |> Array.append errors
>                                 ch, errors
>                             | _ ->
>                                 let code, errors =
>                                     ((Ok (code |> List.rev), [[||]]), eval)
>                                     ||> List.fold (fun (acc, acc_errors) eval ->
>                                         match acc with
>                                         | Error x -> Error x, acc_errors
>                                         | Ok acc ->
>                                             let ch, errors = fsi_eval eval 
> cancellationToken
>                                             let errors =
>                                                 errors
>                                                 // |> Array.map (fun (e1, e2, 
> e3, _) ->
>                                                 //     (e1, e2, e3, ("", (0, 0),
> (0, 0)))
>                                                 // )
>                                                 |> Array.append acc_errors
>                                             match ch with
>                                             | Choice1Of2 v ->
>                                                 let v =
>                                                     v
>                                                     |> tryGetPropertyValue 
> "ReflectionValue"
>                                                     |> Option.map (fun x -> 
> $"%A{x}")
>                                                     |> Option.defaultValue ""
>                                                 Ok (v :: acc), errors
>                                             | Choice2Of2 ex ->
>                                                 trace Critical (fun () -> 
> $"Eval.eval / fsi_eval fold Choice error / buildCodeResults: 
> %A{buildCodeResults} / ex: {ex |> SpiralSm.format_exception}") _locals
>                                                 Error ch, errors
>                                     )
>                                 match code with
>                                 | Error ch -> ch, errors
>                                 | Ok code ->
>                                     let code =
>                                         code
>                                         |> List.filter ((<>) "")
>                                         |> String.concat "\n\n"
> 
>                                     let code =
>                                         if builderCommands.Length > 0 && 
> eval.Length = 0
>                                         then code
>                                         elif code |> SpiralSm.contains "\n\n\n"
>                                         then $"{code}\n\n"
>                                         else $"{code}\n"
> 
>                                     let code =
>                                         if printCode
>                                         then $"\"\"\"{code}\n\n\n\"\"\""
>                                         else $"\"\"\"{code}\n\"\"\""
>                                     let ch, errors2 = fsi_eval code 
> cancellationToken
>                                     let errors =
>                                         errors2
>                                         // |> Array.map (fun (e1, e2, e3, _) ->
>                                         //     (e1, e2, e3, ("", (0, 0), (0, 
> 0)))
>                                         // )
>                                         |> Array.append errors
>                                     ch, errors
>                         match ch with
>                         | Choice1Of2 v ->
>                             if isReal
>                             then allCodeReal <- newAllCode
>                             else allCode <- newAllCode
>                             return Ok(v), errors
>                         | Choice2Of2 ex ->
>                             return Error ex, errors
>                     | Ok code, errors ->
>                         return Error (Exception "Eval.eval / errors / 
> buildCodeResults: %A{buildCodeResults} / code: %A{code}"), errors
>                     | Error error, errors ->
>                         return Error error, errors
>                 | Some (Error ex) ->
>                     trace Critical (fun () -> $"Eval.eval / buildCodeResults 
> Error / buildCodeResults: %A{buildCodeResults} / ex: {ex |> 
> SpiralSm.format_exception}") _locals
>                     return Error (Exception $"Eval.eval / buildCodeResults Error
> / Exception / buildCodeResults: %A{buildCodeResults} / ex: {ex |> 
> SpiralSm.format_exception}"),
>                     [[|
>                         (
>                             TraceLevel.Critical, $"Eval.eval / buildCodeResults 
> Error / errors[[0]] / buildCodeResults: %A{buildCodeResults} / ex: {ex |> 
> SpiralSm.format_exception}", 0, ("", (0, 0), (0, 0))
>                         )
>                     |]]
>                 | _ ->
>                     return Error (Exception $"Eval.eval / buildCodeResults / 
> Exception / buildCodeResults: %A{buildCodeResults}"),
>                     [[|
>                         (
>                             TraceLevel.Critical, $"Eval.eval / buildCodeResults 
> / errors[[0]] / buildCodeResults: %A{buildCodeResults}", 0, ("", (0, 0), (0, 0))
>                         )
>                     |]]
>             with ex ->
>                 trace Critical (fun () -> $"Eval.eval / try 1 ex / lines : 
> %A{lines} / ex: {ex |> SpiralSm.format_exception}") _locals
>                 return Error (Exception $"Eval.eval / try 1 ex / Exception / 
> %A{lines} / ex: {ex |> SpiralSm.format_exception}"),
>                 [[|
>                     (
>                         TraceLevel.Critical, $"Eval.eval / try 1 ex / 
> errors[[0]] / %A{lines} / ex: {ex |> SpiralSm.format_exception}", 0, ("", (0, 
> 0), (0, 0))
>                     )
>                 |]]
>         }
>         |> Async.runWithTimeout timeout
>         |> Option.defaultValue (
>             Error (Exception $"Eval.eval / Async.runWithTimeout / Exception / 
> timeout: {timeout} / %A{lines}"),
>             [[|
>                 (
>                     TraceLevel.Critical, $"Eval.eval / Async.runWithTimeout / 
> errors[[0]] / timeout: {timeout} / %A{lines}", 0, ("", (0, 0), (0, 0))
>                 )
>             |]]
>         )
00:00:45 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 48653 }
00:00:45   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/apps/spiral/Eval.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/apps/spiral/Eval.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:46 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/apps/spiral/Eval.dib.ipynb to html
00:00:46 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:46 verbose #7 !   validate(nb)
00:00:48 verbose #8 ! [NbConvertApp] Writing 440749 bytes to c:\home\git\polyglot\apps\spiral\Eval.dib.html
00:00:49 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 641 }
00:00:49   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 641 }
00:00:49   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/apps/spiral/Eval.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/apps/spiral/Eval.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:50 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:00:50   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:00:50   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 49353 }
00:00:00   debug #1 writeDibCode / output: Fs / path: Eval.dib
00:00:00   debug #2 parseDibCode / output: Fs / file: Eval.dib
In [ ]:
{ pwsh ../apps/spiral/builder/build.ps1 } | Invoke-Block
00:00:00 verbose #1 async.run_with_timeout_async / { timeout = 180 }
00:00:00   debug #1 runtime.execute_with_options_async / { options = { command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = Some <fun:main@570-7>; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot" } }
00:00:00 verbose #2 > 00:00:00   debug #1 pwd: C:\home\git\polyglot
00:00:00 verbose #3 > 00:00:00   debug #2 dllPath: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:00 verbose #4 > 00:00:00   debug #3 targetDir: C:\home\git\polyglot\target/spiral_Eval
00:00:01 verbose #2 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #3 networking.wait_for_port_access / { port = 13805; retry = 0; timeout = Some 100; status = true }
00:00:01 verbose #4 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #5 > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:01 verbose #5 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #1 Supervisor.sendJson / port: 13805 / json: {"Ping":true} / result:
00:00:01 verbose #2 awaitCompiler / Ping / result: 'Some(null)' / port: 13805 / retry: 0
00:00:01 verbose #6 > Server bound to: http://localhost:13805
00:00:01   debug #7 runtime.execute_with_options_async / { options = { command = ../../../workspace/target/release/spiral_builder.exe dib --path spiral_builder.dib; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:01 verbose #8 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "spiral_builder.dib"])) }
00:00:01 verbose #9 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/apps/spiral/builder/spiral_builder.dib", "--output-path", "c:/home/git/polyglot/apps/spiral/builder/spiral_builder.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/apps/spiral/builder/spiral_builder.dib" --output-path "c:/home/git/polyglot/apps/spiral/builder/spiral_builder.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:00:03 verbose #10 > >
00:00:03 verbose #11 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:03 verbose #12 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:03 verbose #13 > > │ # spiral_builder                                                             │
00:00:03 verbose #14 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 verbose #15 > >
00:00:07 verbose #16 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 verbose #17 > > open file_system_operators
00:00:07 verbose #18 > > open rust_operators
00:00:07 verbose #19 > > open sm'_operators
00:00:08 verbose #20 > 00:00:07   debug #4 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/334788d37a9310c66df6ce94e91bc47bbc93fafb87f719eaf4f0b5e7299dadee/main.spi
00:00:10 verbose #21 > >
00:00:10 verbose #22 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 verbose #23 > > //// test
00:00:10 verbose #24 > >
00:00:10 verbose #25 > > open testing
00:00:11 verbose #26 > 00:00:10   debug #5 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d26d3696588afce281a1e5a0ed1d4ba22d942f2c76526c72d75478ef40d8c827/main.spi
00:00:11 verbose #27 > >
00:00:11 verbose #28 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 verbose #29 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 verbose #30 > > │ ## types                                                                     │
00:00:11 verbose #31 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 verbose #32 > >
00:00:11 verbose #33 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 verbose #34 > > inl types () =
00:00:11 verbose #35 > >     env.types ()
00:00:11 verbose #36 > >     file_system.types ()
00:00:11 verbose #37 > >     runtime.types ()
00:00:11 verbose #38 > >     rust.types ()
00:00:11 verbose #39 > >     sm'.types ()
00:00:11 verbose #40 > >     crypto.types ()
00:00:11 verbose #41 > 00:00:10   debug #6 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/17051516cdd79d495ce9170b3a0155d0b2e504bb18f68cc01a55c8691e0c29d1/main.spi
00:00:11 verbose #42 > >
00:00:11 verbose #43 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 verbose #44 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 verbose #45 > > │ ## get_args                                                                  │
00:00:11 verbose #46 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 verbose #47 > >
00:00:11 verbose #48 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 verbose #49 > > inl get_args () =
00:00:11 verbose #50 > >     {
00:00:11 verbose #51 > >         fsharp = "fsharp", {
00:00:11 verbose #52 > >             spi_path = "spi-path", 's'
00:00:11 verbose #53 > >         }
00:00:11 verbose #54 > >         cuda = "cuda", {
00:00:11 verbose #55 > >             py_path = "py-path", 'p'
00:00:11 verbose #56 > >             env = "env", 'e'
00:00:11 verbose #57 > >             deps = "deps", 'd'
00:00:11 verbose #58 > >         }
00:00:11 verbose #59 > >         fable = "fable", {
00:00:11 verbose #60 > >             fs_path = "fs-path", 'f'
00:00:11 verbose #61 > >             command = "command", 'c'
00:00:11 verbose #62 > >         }
00:00:11 verbose #63 > >         rust = "rust", {
00:00:11 verbose #64 > >             fs_path = "fs-path", 'f'
00:00:11 verbose #65 > >             deps = "deps", 'd'
00:00:11 verbose #66 > >         }
00:00:11 verbose #67 > >         typescript = "typescript", {
00:00:11 verbose #68 > >             fs_path = "fs-path", 'f'
00:00:11 verbose #69 > >             deps = "deps", 'd'
00:00:11 verbose #70 > >         }
00:00:11 verbose #71 > >         python = "python", {
00:00:11 verbose #72 > >             fs_path = "fs-path", 'f'
00:00:11 verbose #73 > >             deps = "deps", 'd'
00:00:11 verbose #74 > >         }
00:00:11 verbose #75 > >         dib = "dib", {
00:00:11 verbose #76 > >             path = "path", 'p'
00:00:11 verbose #77 > >             retries = "retries", 'r'
00:00:11 verbose #78 > >             working_directory = "working-directory", 'w'
00:00:11 verbose #79 > >         }
00:00:11 verbose #80 > >     }
00:00:11 verbose #81 > 00:00:11   debug #7 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/19f183cd8828e71dcd4921863726a028e85c9722296067d1797776bf9b7fa5cc/main.spi
00:00:12 verbose #82 > >
00:00:12 verbose #83 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 verbose #84 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 verbose #85 > > │ ## cuda_env                                                                  │
00:00:12 verbose #86 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 verbose #87 > >
00:00:12 verbose #88 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 verbose #89 > > union cuda_env =
00:00:12 verbose #90 > >     | Pip
00:00:12 verbose #91 > >     | Poetry
00:00:12 verbose #92 > 00:00:11   debug #8 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9396c030846aefdd5969d27002c02bbf51f9fc06a7cc124c76881a525df5cc1b/main.spi
00:00:12 verbose #93 > >
00:00:12 verbose #94 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 verbose #95 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 verbose #96 > > │ ## get_command                                                               │
00:00:12 verbose #97 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 verbose #98 > >
00:00:12 verbose #99 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 verbose #100 > > let get_command () =
00:00:12 verbose #101 > >     ##"command"
00:00:12 verbose #102 > >     |> runtime.new_command
00:00:12 verbose #103 > >     |> runtime.command_subcommand_required true
00:00:12 verbose #104 > >     |> runtime.command_subcommand (
00:00:12 verbose #105 > >         ##(get_args () .fsharp |> fst)
00:00:12 verbose #106 > >         |> runtime.new_command
00:00:12 verbose #107 > >         |> runtime.command_init_arg ((get_args () .fsharp |> snd).spi_path) (
00:00:12 verbose #108 > >             runtime.arg_required true
00:00:12 verbose #109 > >         )
00:00:12 verbose #110 > >     )
00:00:12 verbose #111 > >     |> runtime.command_subcommand (
00:00:12 verbose #112 > >         ##(get_args () .cuda |> fst)
00:00:12 verbose #113 > >         |> runtime.new_command
00:00:12 verbose #114 > >         |> runtime.command_init_arg ((get_args () .cuda |> snd).py_path) (
00:00:12 verbose #115 > >             runtime.arg_required true
00:00:12 verbose #116 > >         )
00:00:12 verbose #117 > >         |> runtime.command_init_arg ((get_args () .cuda |> snd).env) (
00:00:12 verbose #118 > >             real runtime.arg_union `cuda_env ignore
00:00:12 verbose #119 > >         )
00:00:12 verbose #120 > >         |> runtime.command_init_arg ((get_args () .cuda |> snd).deps) (
00:00:12 verbose #121 > >             runtime.arg_value_names ;[[ ##"NAME"; ##"VERSION" ]]
00:00:12 verbose #122 > >             >> runtime.arg_num_args_range (
00:00:12 verbose #123 > >                 runtime.new_value_range
00:00:12 verbose #124 > >                     (am'.Start (1i32 |> convert : unativeint))
00:00:12 verbose #125 > >                     (am'.End id)
00:00:12 verbose #126 > >             )
00:00:12 verbose #127 > >             >> runtime.arg_action runtime.Append
00:00:12 verbose #128 > >         )
00:00:12 verbose #129 > >     )
00:00:12 verbose #130 > >     |> runtime.command_subcommand (
00:00:12 verbose #131 > >         ##(get_args () .fable |> fst)
00:00:12 verbose #132 > >         |> runtime.new_command
00:00:12 verbose #133 > >         |> runtime.command_init_arg ((get_args () .fable |> snd).fs_path) (
00:00:12 verbose #134 > >             runtime.arg_required true
00:00:12 verbose #135 > >         )
00:00:12 verbose #136 > >         |> runtime.command_init_arg ((get_args () .fable |> snd).command) (
00:00:12 verbose #137 > >             id
00:00:12 verbose #138 > >         )
00:00:12 verbose #139 > >     )
00:00:12 verbose #140 > >     |> runtime.command_subcommand (
00:00:12 verbose #141 > >         ##(get_args () .rust |> fst)
00:00:12 verbose #142 > >         |> runtime.new_command
00:00:12 verbose #143 > >         |> runtime.command_init_arg ((get_args () .rust |> snd).fs_path) (
00:00:12 verbose #144 > >             runtime.arg_required true
00:00:12 verbose #145 > >         )
00:00:12 verbose #146 > >         |> runtime.command_init_arg ((get_args () .rust |> snd).deps) (
00:00:12 verbose #147 > >             runtime.arg_value_names ;[[ ##"NAME"; ##"VERSION" ]]
00:00:12 verbose #148 > >             >> runtime.arg_num_args_range (
00:00:12 verbose #149 > >                 runtime.new_value_range
00:00:12 verbose #150 > >                     (am'.Start (1i32 |> convert : unativeint))
00:00:12 verbose #151 > >                     (am'.End id)
00:00:12 verbose #152 > >             )
00:00:12 verbose #153 > >             >> runtime.arg_action runtime.Append
00:00:12 verbose #154 > >         )
00:00:12 verbose #155 > >     )
00:00:12 verbose #156 > >     |> runtime.command_subcommand (
00:00:12 verbose #157 > >         ##(get_args () .typescript |> fst)
00:00:12 verbose #158 > >         |> runtime.new_command
00:00:12 verbose #159 > >         |> runtime.command_init_arg ((get_args () .typescript |> snd).fs_path) (
00:00:12 verbose #160 > >             runtime.arg_required true
00:00:12 verbose #161 > >         )
00:00:12 verbose #162 > >         |> runtime.command_init_arg ((get_args () .typescript |> snd).deps) (
00:00:12 verbose #163 > >             runtime.arg_value_names ;[[ ##"NAME"; ##"VERSION" ]]
00:00:12 verbose #164 > >             >> runtime.arg_num_args_range (
00:00:12 verbose #165 > >                 runtime.new_value_range
00:00:12 verbose #166 > >                     (am'.Start (1i32 |> convert : unativeint))
00:00:12 verbose #167 > >                     (am'.End id)
00:00:12 verbose #168 > >             )
00:00:12 verbose #169 > >             >> runtime.arg_action runtime.Append
00:00:12 verbose #170 > >         )
00:00:12 verbose #171 > >     )
00:00:12 verbose #172 > >     |> runtime.command_subcommand (
00:00:12 verbose #173 > >         ##(get_args () .python |> fst)
00:00:12 verbose #174 > >         |> runtime.new_command
00:00:12 verbose #175 > >         |> runtime.command_init_arg ((get_args () .python |> snd).fs_path) (
00:00:12 verbose #176 > >             runtime.arg_required true
00:00:12 verbose #177 > >         )
00:00:12 verbose #178 > >         |> runtime.command_init_arg ((get_args () .python |> snd).deps) (
00:00:12 verbose #179 > >             runtime.arg_value_names ;[[ ##"NAME"; ##"VERSION" ]]
00:00:12 verbose #180 > >             >> runtime.arg_num_args_range (
00:00:12 verbose #181 > >                 runtime.new_value_range
00:00:12 verbose #182 > >                     (am'.Start (1i32 |> convert : unativeint))
00:00:12 verbose #183 > >                     (am'.End id)
00:00:12 verbose #184 > >             )
00:00:12 verbose #185 > >             >> runtime.arg_action runtime.Append
00:00:12 verbose #186 > >         )
00:00:12 verbose #187 > >     )
00:00:12 verbose #188 > >     |> runtime.command_subcommand (
00:00:12 verbose #189 > >         ##(get_args () .dib |> fst)
00:00:12 verbose #190 > >         |> runtime.new_command
00:00:12 verbose #191 > >         |> runtime.command_init_arg ((get_args () .dib |> snd).path) (
00:00:12 verbose #192 > >             runtime.arg_required true
00:00:12 verbose #193 > >             // >> runtime.arg_value_parser (runtime.value_parser_path_buf ())
00:00:12 verbose #194 > >         )
00:00:12 verbose #195 > >         |> runtime.command_init_arg ((get_args () .dib |> snd).retries) (
00:00:12 verbose #196 > >             runtime.arg_value_parser (runtime.value_parser_expr "u8")
00:00:12 verbose #197 > >         )
00:00:12 verbose #198 > >         |> runtime.command_init_arg ((get_args () .dib |>
00:00:12 verbose #199 > > snd).working_directory) (
00:00:12 verbose #200 > >             id
00:00:12 verbose #201 > >         )
00:00:12 verbose #202 > >     )
00:00:12 verbose #203 > 00:00:11   debug #9 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/72805f98bc996efe3d43eef71a2cb887d34e1b14b55d3810ceb71c2a74b7a3a7/main.spi
00:00:13 verbose #204 > >
00:00:13 verbose #205 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 verbose #206 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 verbose #207 > > │ ## fable                                                                     │
00:00:13 verbose #208 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 verbose #209 > >
00:00:13 verbose #210 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 verbose #211 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 verbose #212 > > │ ### fable_target                                                             │
00:00:13 verbose #213 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 verbose #214 > >
00:00:13 verbose #215 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 verbose #216 > > union fable_target =
00:00:13 verbose #217 > >     | Rust
00:00:13 verbose #218 > >     | TypeScript
00:00:13 verbose #219 > >     | Python
00:00:13 verbose #220 > 00:00:12   debug #10 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2a931014ecb154601025c1e96c9d955695a925b8752812c737b54812dc159fb6/main.spi
00:00:13 verbose #221 > >
00:00:13 verbose #222 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 verbose #223 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 verbose #224 > > │ ### execute_dotnet_fable                                                     │
00:00:13 verbose #225 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 verbose #226 > >
00:00:13 verbose #227 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 verbose #228 > > let execute_dotnet_fable { workspace_root_external fsproj_path extension
00:00:13 verbose #229 > > package_dir } =
00:00:13 verbose #230 > >     runtime.execution_options fun x => { x with
00:00:13 verbose #231 > >         command =
00:00:13 verbose #232 > >             inl platform =
00:00:13 verbose #233 > >                 if platform.is_windows ()
00:00:13 verbose #234 > >                 then "_WINDOWS"
00:00:13 verbose #235 > >                 else "_LINUX"
00:00:13 verbose #236 > >             $'$"dotnet fable \\\"{!fsproj_path}\\\" --optimize --lang
00:00:13 verbose #237 > > {!extension} --extension .{!extension} --outDir \\\"{!package_dir}\\\" --define
00:00:13 verbose #238 > > {!platform}"'
00:00:13 verbose #239 > >         working_directory = workspace_root_external |> resultm.box |>
00:00:13 verbose #240 > > resultm.ok'
00:00:13 verbose #241 > >     }
00:00:13 verbose #242 > >     |> runtime.execute_retry 3u8
00:00:13 verbose #243 > 00:00:12   debug #11 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f7833267a34183f18488b50ea6eaa84f08fcf210e840e8e3f31bfa2ac520a5f8/main.spi
00:00:13 verbose #244 > >
00:00:13 verbose #245 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 verbose #246 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 verbose #247 > > │ ### get_package_dir                                                          │
00:00:13 verbose #248 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 verbose #249 > >
00:00:13 verbose #250 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 verbose #251 > > inl get_package_dir { workspace_root target name hash } =
00:00:13 verbose #252 > >     inl dir = workspace_root </> "target/spiral_builder" </> name
00:00:13 verbose #253 > >     match hash, (target : option fable_target) with
00:00:13 verbose #254 > >     | Some hash, Some target => dir </> "packages" </> (target |>
00:00:13 verbose #255 > > reflection.union_to_string) </> hash
00:00:13 verbose #256 > >     | _ => dir
00:00:14 verbose #257 > 00:00:13   debug #12 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2cbbdb6d8a68441c3a1ea0b8a1849ed26041046d32899ef2ac534eef9c8a181b/main.spi
00:00:14 verbose #258 > >
00:00:14 verbose #259 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 verbose #260 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 verbose #261 > > │ ### persist_code_project                                                     │
00:00:14 verbose #262 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 verbose #263 > >
00:00:14 verbose #264 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 verbose #265 > > inl persist_code_project { workspace_root package_dir packages modules name code
00:00:14 verbose #266 > > } =
00:00:14 verbose #267 > >     package_dir |> file_system.create_dir |> ignore
00:00:14 verbose #268 > >
00:00:14 verbose #269 > >     inl fs_path = package_dir </> $'$"{!name}.fs"' |> file_system.normalize_path
00:00:14 verbose #270 > >     code |> file_system.write_all_text_exists fs_path
00:00:14 verbose #271 > >
00:00:14 verbose #272 > >     inl modules_code =
00:00:14 verbose #273 > >         modules
00:00:14 verbose #274 > >         |> listm.map fun path =>
00:00:14 verbose #275 > >             inl path = workspace_root </> path
00:00:14 verbose #276 > >             $'$"<Compile Include=\\\"{!path}\\\" />"' : string
00:00:14 verbose #277 > >         |> listm'.box
00:00:14 verbose #278 > >         |> seq.of_list'
00:00:14 verbose #279 > >         |> sm'.concat "\\n        "
00:00:14 verbose #280 > >
00:00:14 verbose #281 > >     inl packages_code =
00:00:14 verbose #282 > >         packages
00:00:14 verbose #283 > >         |> listm.map fun (package : string) =>
00:00:14 verbose #284 > >             $'$"<PackageReference Include=\\\"{!package}\\\" Version=\\\"*\\\"
00:00:14 verbose #285 > > />"' : string
00:00:14 verbose #286 > >         |> listm'.box
00:00:14 verbose #287 > >         |> seq.of_list'
00:00:14 verbose #288 > >         |> sm'.concat "\\n        "
00:00:14 verbose #289 > >
00:00:14 verbose #290 > >     inl fsproj_path = package_dir </> $'$"{!name}.fsproj"' |>
00:00:14 verbose #291 > > file_system.normalize_path
00:00:14 verbose #292 > >     inl fsproj_code : string =
00:00:14 verbose #293 > >         $'$"<Project Sdk=\\\"Microsoft.NET.Sdk\\\">"'
00:00:14 verbose #294 > >         +#. $'$"<PropertyGroup>"'
00:00:14 verbose #295 > >         +#. $'$"    <TargetFramework>net9.0</TargetFramework>"'
00:00:14 verbose #296 > >         +#. $'$"    <LangVersion>preview</LangVersion>"'
00:00:14 verbose #297 > >         +#. $'$"    <RollForward>Major</RollForward>"'
00:00:14 verbose #298 > >         +#. $'$"    <TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>"'
00:00:14 verbose #299 > >         +#. $'$"    <PublishAot>false</PublishAot>"'
00:00:14 verbose #300 > >         +#. $'$"    <PublishTrimmed>false</PublishTrimmed>"'
00:00:14 verbose #301 > >         +#. $'$"    <PublishSingleFile>true</PublishSingleFile>"'
00:00:14 verbose #302 > >         +#. $'$"    <SelfContained>true</SelfContained>"'
00:00:14 verbose #303 > >         +#. $'$"    <Version>0.0.1-alpha.1</Version>"'
00:00:14 verbose #304 > >         +#. $'$"    <OutputType>Exe</OutputType>"'
00:00:14 verbose #305 > >         +#. $'$"</PropertyGroup>"'
00:00:14 verbose #306 > >
00:00:14 verbose #307 > >         +#. $'$"<PropertyGroup
00:00:14 verbose #308 > > Condition=\\\"$([[MSBuild]]::IsOSPlatform(\'FreeBSD\'))\\\">"'
00:00:14 verbose #309 > >         +#. $'$"    <DefineConstants>_FREEBSD</DefineConstants>"'
00:00:14 verbose #310 > >         +#. $'$"</PropertyGroup>"'
00:00:14 verbose #311 > >
00:00:14 verbose #312 > >         +#. $'$"<PropertyGroup
00:00:14 verbose #313 > > Condition=\\\"$([[MSBuild]]::IsOSPlatform(\'Linux\'))\\\">"'
00:00:14 verbose #314 > >         +#. $'$"    <DefineConstants>_LINUX</DefineConstants>"'
00:00:14 verbose #315 > >         +#. $'$"</PropertyGroup>"'
00:00:14 verbose #316 > >
00:00:14 verbose #317 > >         +#. $'$"<PropertyGroup
00:00:14 verbose #318 > > Condition=\\\"$([[MSBuild]]::IsOSPlatform(\'OSX\'))\\\">"'
00:00:14 verbose #319 > >         +#. $'$"    <DefineConstants>_OSX</DefineConstants>"'
00:00:14 verbose #320 > >         +#. $'$"</PropertyGroup>"'
00:00:14 verbose #321 > >
00:00:14 verbose #322 > >         +#. $'$"<PropertyGroup
00:00:14 verbose #323 > > Condition=\\\"$([[MSBuild]]::IsOSPlatform(\'Windows\'))\\\">"'
00:00:14 verbose #324 > >         +#. $'$"    <DefineConstants>_WINDOWS</DefineConstants>"'
00:00:14 verbose #325 > >         +#. $'$"</PropertyGroup>"'
00:00:14 verbose #326 > >
00:00:14 verbose #327 > >         +#. $'$"<ItemGroup>"'
00:00:14 verbose #328 > >         +#. $'$"    {!modules_code}"'
00:00:14 verbose #329 > >         +#. $'$"    <Compile Include=\\\"{!fs_path}\\\" />"'
00:00:14 verbose #330 > >         +#. $'$"</ItemGroup>"'
00:00:14 verbose #331 > >
00:00:14 verbose #332 > >         +#. $'$"<ItemGroup>"'
00:00:14 verbose #333 > >         +#. $'$"    {!packages_code}"'
00:00:14 verbose #334 > >         +#. $'$"</ItemGroup>"'
00:00:14 verbose #335 > >
00:00:14 verbose #336 > >         +#. $'$"</Project>"'
00:00:14 verbose #337 > >
00:00:14 verbose #338 > >     fsproj_code |> file_system.write_all_text_exists fsproj_path
00:00:14 verbose #339 > >
00:00:14 verbose #340 > >     fsproj_path
00:00:14 verbose #341 > 00:00:13   debug #13 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9d80634e6761704baf7794ed001ed8cd6027df6bd35a5632789b4ed5392887eb/main.spi
00:00:14 verbose #342 > >
00:00:14 verbose #343 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 verbose #344 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 verbose #345 > > │ ### build_project                                                            │
00:00:14 verbose #346 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 verbose #347 > >
00:00:14 verbose #348 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 verbose #349 > > inl build_project runtime' output_dir path =
00:00:14 verbose #350 > >     inl full_path = path |> file_system.get_full_path
00:00:14 verbose #351 > >     inl file_dir = full_path |> file_system.get_directory_name
00:00:14 verbose #352 > >     inl extension = full_path |> file_system.get_extension
00:00:14 verbose #353 > >
00:00:14 verbose #354 > >     trace Debug
00:00:14 verbose #355 > >         fun () => "build_project"
00:00:14 verbose #356 > >         fun () => { full_path }
00:00:14 verbose #357 > >
00:00:14 verbose #358 > >     match extension with
00:00:14 verbose #359 > >     | "fsproj" => ()
00:00:14 verbose #360 > >     | _ => failwith $'$"spiral_builder.build_project / Invalid project file
00:00:14 verbose #361 > > extension: {!extension}"'
00:00:14 verbose #362 > >
00:00:14 verbose #363 > >     inl runtimes =
00:00:14 verbose #364 > >         runtime'
00:00:14 verbose #365 > >         |> optionm.map listm.singleton
00:00:14 verbose #366 > >         |> optionm'.default_value [[ "linux-x64"; "win-x64" ]]
00:00:14 verbose #367 > >
00:00:14 verbose #368 > >     inl output_dir = output_dir |> optionm'.default_value "dist"
00:00:14 verbose #369 > >
00:00:14 verbose #370 > >     runtimes
00:00:14 verbose #371 > >     |> listm.map fun runtime' =>
00:00:14 verbose #372 > >         runtime.execution_options fun x => { x with
00:00:14 verbose #373 > >             command = $'$@@"dotnet publish \"\"{!path}\"\" --configuration
00:00:14 verbose #374 > > Release --output \"\"{!output_dir}\"\" --runtime {!runtime'}"'
00:00:14 verbose #375 > >             working_directory = file_dir |> Some |> optionm'.box
00:00:14 verbose #376 > >         }
00:00:14 verbose #377 > >         |> runtime.execute_with_options
00:00:14 verbose #378 > >         |> fst
00:00:14 verbose #379 > >     |> listm'.sum
00:00:14 verbose #380 > 00:00:14   debug #14 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a196865720d0dc0b3f31dc9cd77c3d763beb2cdba5531cced87a6b26eeb9845b/main.spi
00:00:15 verbose #381 > >
00:00:15 verbose #382 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 verbose #383 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 verbose #384 > > │ ### build_code                                                               │
00:00:15 verbose #385 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 verbose #386 > >
00:00:15 verbose #387 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 verbose #388 > > inl build_code { workspace_root runtime packages modules output_dir name code }
00:00:15 verbose #389 > > =
00:00:15 verbose #390 > >     inl package_dir = get_package_dir { workspace_root name target = None; hash
00:00:15 verbose #391 > > = None }
00:00:15 verbose #392 > >     inl fsproj_path = persist_code_project { workspace_root package_dir packages
00:00:15 verbose #393 > > modules name code }
00:00:15 verbose #394 > >     inl exit_code = fsproj_path |> build_project runtime output_dir
00:00:15 verbose #395 > >     if exit_code <>. 0 then
00:00:15 verbose #396 > >         inl fsproj_text = fsproj_path |> file_system.read_all_text
00:00:15 verbose #397 > >         trace Critical
00:00:15 verbose #398 > >             fun () => "build_code"
00:00:15 verbose #399 > >             fun () => { code = code |> sm'.ellipsis_end 400; fsproj_text }
00:00:15 verbose #400 > >     exit_code
00:00:15 verbose #401 > 00:00:14   debug #15 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/80e3ebcfccd3da2b2c37990e91452f74031ee37c48cbb12774085d7a71daacc3/main.spi
00:00:15 verbose #402 > >
00:00:15 verbose #403 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 verbose #404 > > //// test
00:00:15 verbose #405 > > ///! rust -d encoding_rs encoding_rs_io regex
00:00:15 verbose #406 > >
00:00:15 verbose #407 > > types ()
00:00:15 verbose #408 > >
00:00:15 verbose #409 > > build_code
00:00:15 verbose #410 > >     {
00:00:15 verbose #411 > >         workspace_root = file_system.get_workspace_root ()
00:00:15 verbose #412 > >         runtime = None
00:00:15 verbose #413 > >         packages = [[]]
00:00:15 verbose #414 > >         modules = [[]]
00:00:15 verbose #415 > >         output_dir = None
00:00:15 verbose #416 > >         name = "test1"
00:00:15 verbose #417 > >         code = "1 + 1 |> ignore"
00:00:15 verbose #418 > >     }
00:00:15 verbose #419 > > |> _assert_eq 0
00:00:15 verbose #420 > 00:00:15   debug #16 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2652f44042f2bc57463197cb1483aa0b84ef378e3ce9d03c112f475839920ece/main.spi
00:00:36 verbose #421 > >
00:00:36 verbose #422 > > ╭─[ 20.58s - return value ]────────────────────────────────────────────────────╮
00:00:36 verbose #423 > > │ 00:00:00 verbose #1 file_system.create_dir / { dir =                   │
00:00:36 verbose #424 > > │ c:\home\git\polyglot\target/spiral_builder\test1 }                           │
00:00:36 verbose #425 > > │ 00:00:00   debug #2 build_project / { full_path =                      │
00:00:36 verbose #426 > > │ \\?\C:\home\git\polyglot\target\spiral_builder\test1\test1.fsproj }          │
00:00:36 verbose #427 > > │ 00:00:00   debug #3 runtime.execute_with_options / { file_name =       │
00:00:36 verbose #428 > > │ dotnet; arguments = ["publish",                                              │
00:00:36 verbose #429 > > │ "c:/home/git/polyglot/target/spiral_builder/test1/test1.fsproj",             │
00:00:36 verbose #430 > > │ "--configuration", "Release", "--output", "dist", "--runtime", "win-x64"];   │
00:00:36 verbose #431 > > │ options = { command = dotnet publish                                         │
00:00:36 verbose #432 > > │ "c:/home/git/polyglot/target/spiral_builder/test1/test1.fsproj"              │
00:00:36 verbose #433 > > │ --configuration Release --output "dist" --runtime win-x64;                   │
00:00:36 verbose #434 > > │ cancellation_token = None; environment_variables = Array(MutCell([]));       │
00:00:36 verbose #435 > > │ on_line = None; stdin = None; trace = true; working_directory =              │
00:00:36 verbose #436 > > │ Some("\\?\C:\home\git\polyglot\target\spiral_builder\test1") } }             │
00:00:36 verbose #437 > > │ 00:00:00 verbose #4 > MSBuild version                                  │
00:00:36 verbose #438 > > │ 17.10.0-preview-24101-01+07fd5d51f for .NET                                  │
00:00:36 verbose #439 > > │ 00:00:00 verbose #5 >   Determining projects to restore...             │
00:00:36 verbose #440 > > │ 00:00:01 verbose #6 >   Restored                                       │
00:00:36 verbose #441 > > │ c:\home\git\polyglot\target\spiral_builder\test1\test1.fsproj (in 333 ms).   │
00:00:36 verbose #442 > > │ 00:00:01 verbose #7 >                                                  │
00:00:36 verbose #443 > > │ C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.2 │
00:00:36 verbose #444 > > │ 4101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInferen │
00:00:36 verbose #445 > > │ ce.targets(313,5): message NETSDK1057: You are using a preview version of    │
00:00:36 verbose #446 > > │ .NET. See: https://aka.ms/dotnet-support-policy [                            │
00:00:36 verbose #447 > > │ c:\home\git\polyglot\target\spiral_builder\test1\test1.fsproj]               │
00:00:36 verbose #448 > > │ 0...er/test1/test1.fsproj", "--configuration", "Release", "--output",        │
00:00:36 verbose #449 > > │ "dist", "--runtime", "linux-x64"]; options = { command = dotnet publish      │
00:00:36 verbose #450 > > │ "c:/home/git/polyglot/target/spiral_builder/test1/test1.fsproj"              │
00:00:36 verbose #451 > > │ --configuration Release --output "dist" --runtime linux-x64;                 │
00:00:36 verbose #452 > > │ cancellation_token = None; environment_variables = Array(MutCell([]));       │
00:00:36 verbose #453 > > │ on_line = None; stdin = None; trace = true; working_directory =              │
00:00:36 verbose #454 > > │ Some("\\?\C:\home\git\polyglot\target\spiral_builder\test1") } }             │
00:00:36 verbose #455 > > │ 00:00:05 verbose #12 > MSBuild version                                 │
00:00:36 verbose #456 > > │ 17.10.0-preview-24101-01+07fd5d51f for .NET                                  │
00:00:36 verbose #457 > > │ 00:00:05 verbose #13 >   Determining projects to restore...            │
00:00:36 verbose #458 > > │ 00:00:06 verbose #14 >   Restored                                      │
00:00:36 verbose #459 > > │ c:\home\git\polyglot\target\spiral_builder\test1\test1.fsproj (in 316 ms).   │
00:00:36 verbose #460 > > │ 00:00:06 verbose #15 >                                                 │
00:00:36 verbose #461 > > │ C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.2 │
00:00:36 verbose #462 > > │ 4101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInferen │
00:00:36 verbose #463 > > │ ce.targets(313,5): message NETSDK1057: You are using a preview version of    │
00:00:36 verbose #464 > > │ .NET. See: https://aka.ms/dotnet-support-policy [                            │
00:00:36 verbose #465 > > │ c:\home\git\polyglot\target\spiral_builder\test1\test1.fsproj]               │
00:00:36 verbose #466 > > │ 00:00:07 verbose #16 >   test1 ->                                      │
00:00:36 verbose #467 > > │ c:\home\git\polyglot\target\spiral_builder\test1\bin\Release\net9.0\linux-x6 │
00:00:36 verbose #468 > > │ 4\test1.dll                                                                  │
00:00:36 verbose #469 > > │ 00:00:08 verbose #17 >   test1 ->                                      │
00:00:36 verbose #470 > > │ \\?\C:\home\git\polyglot\target\spiral_builder\test1\dist\                   │
00:00:36 verbose #471 > > │ 00:00:08 verbose #18 runtime.execute_with_options / result / {         │
00:00:36 verbose #472 > > │ exit_code = 0; std_trace_length = 689 }                                      │
00:00:36 verbose #473 > > │ assert_eq / actual: 0 / expected: 0                                          │
00:00:36 verbose #474 > > │                                                                              │
00:00:36 verbose #475 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:36 verbose #476 > >
00:00:36 verbose #477 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:36 verbose #478 > > //// test
00:00:36 verbose #479 > > ///! rust -d encoding_rs encoding_rs_io regex
00:00:36 verbose #480 > >
00:00:36 verbose #481 > > types ()
00:00:36 verbose #482 > >
00:00:36 verbose #483 > > build_code
00:00:36 verbose #484 > >     {
00:00:36 verbose #485 > >         workspace_root = file_system.get_workspace_root ()
00:00:36 verbose #486 > >         runtime = None
00:00:36 verbose #487 > >         packages = [[]]
00:00:36 verbose #488 > >         modules = [[]]
00:00:36 verbose #489 > >         output_dir = None
00:00:36 verbose #490 > >         name = "test2"
00:00:36 verbose #491 > >         code = "1 + a |> ignore"
00:00:36 verbose #492 > >     }
00:00:36 verbose #493 > > |> _assert_eq 2
00:00:36 verbose #494 > 00:00:35   debug #17 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9b532c7a20bf75f09065a26c6cc5c010fddb49885f73bd9c9e56d539ebd04efd/main.spi
00:00:49 verbose #495 > >
00:00:49 verbose #496 > > ╭─[ 12.96s - return value ]────────────────────────────────────────────────────╮
00:00:49 verbose #497 > > │ 00:00:00 verbose #1 file_system.create_dir / { dir =                   │
00:00:49 verbose #498 > > │ c:\home\git\polyglot\target/spiral_builder\test2 }                           │
00:00:49 verbose #499 > > │ 00:00:00   debug #2 build_project / { full_path =                      │
00:00:49 verbose #500 > > │ \\?\C:\home\git\polyglot\target\spiral_builder\test2\test2.fsproj }          │
00:00:49 verbose #501 > > │ 00:00:00   debug #3 runtime.execute_with_options / { file_name =       │
00:00:49 verbose #502 > > │ dotnet; arguments = ["publish",                                              │
00:00:49 verbose #503 > > │ "c:/home/git/polyglot/target/spiral_builder/test2/test2.fsproj",             │
00:00:49 verbose #504 > > │ "--configuration", "Release", "--output", "dist", "--runtime", "win-x64"];   │
00:00:49 verbose #505 > > │ options = { command = dotnet publish                                         │
00:00:49 verbose #506 > > │ "c:/home/git/polyglot/target/spiral_builder/test2/test2.fsproj"              │
00:00:49 verbose #507 > > │ --configuration Release --output "dist" --runtime win-x64;                   │
00:00:49 verbose #508 > > │ cancellation_token = None; environment_variables = Array(MutCell([]));       │
00:00:49 verbose #509 > > │ on_line = None; stdin = None; trace = true; working_directory =              │
00:00:49 verbose #510 > > │ Some("\\?\C:\home\git\polyglot\target\spiral_builder\test2") } }             │
00:00:49 verbose #511 > > │ 00:00:00 verbose #4 > MSBuild version                                  │
00:00:49 verbose #512 > > │ 17.10.0-preview-24101-01+07fd5d51f for .NET                                  │
00:00:49 verbose #513 > > │ 00:00:00 verbose #5 >   Determining projects to restore...             │
00:00:49 verbose #514 > > │ 00:00:01 verbose #6 >   Restored                                       │
00:00:49 verbose #515 > > │ c:\home\git\polyglot\target\spiral_builder\test2\test2.fsproj (in 314 ms).   │
00:00:49 verbose #516 > > │ 00:00:01 verbose #7 >                                                  │
00:00:49 verbose #517 > > │ C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.2 │
00:00:49 verbose #518 > > │ 4101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInferen │
00:00:49 verbose #519 > > │ ce.targets(313,5): message NETSDK1057: You are using a preview version of    │
00:00:49 verbose #520 > > │ .NET. See: https://aka.ms/dotnet-support-policy [                            │
00:00:49 verbose #521 > > │ c:\home\git\polyglot\target\spiral_builder\test2\test2.fsproj]               │
00:00:49 verbose #522 > > │ 0... The value or constructor 'a' is not defined. [                          │
00:00:49 verbose #523 > > │ c:\home\git\polyglot\target\spiral_builder\test2\test2.fsproj]               │
00:00:49 verbose #524 > > │ 00:00:06 verbose #16 runtime.execute_with_options / result / {         │
00:00:49 verbose #525 > > │ exit_code = 1; std_trace_length = 707 }                                      │
00:00:49 verbose #526 > > │ 00:00:06 critical #17 build_code / { code = 1 + a |> ignore;           │
00:00:49 verbose #527 > > │ fsproj_text = <Project Sdk="Microsoft.NET.Sdk">                              │
00:00:49 verbose #528 > > │ <PropertyGroup>                                                              │
00:00:49 verbose #529 > > │     <TargetFramework>net9.0</TargetFramework>                                │
00:00:49 verbose #530 > > │     <LangVersion>preview</LangVersion>                                       │
00:00:49 verbose #531 > > │     <RollForward>Major</RollForward>                                         │
00:00:49 verbose #532 > > │     <TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>                │
00:00:49 verbose #533 > > │     <PublishAot>false</PublishAot>                                           │
00:00:49 verbose #534 > > │     <PublishTrimmed>false</PublishTrimmed>                                   │
00:00:49 verbose #535 > > │     <PublishSingleFile>true</PublishSingleFile>                              │
00:00:49 verbose #536 > > │     <SelfContained>true</SelfContained>                                      │
00:00:49 verbose #537 > > │     <Version>0.0.1-alpha.1</Version>                                         │
00:00:49 verbose #538 > > │     <OutputType>Exe</OutputType>                                             │
00:00:49 verbose #539 > > │ </PropertyGroup>                                                             │
00:00:49 verbose #540 > > │ <PropertyGroup Condition="$([MSBuild]::IsOSPlatform('FreeBSD'))">            │
00:00:49 verbose #541 > > │     <DefineConstants>_FREEBSD</DefineConstants>                              │
00:00:49 verbose #542 > > │ </PropertyGroup>                                                             │
00:00:49 verbose #543 > > │ <PropertyGroup Condition="$([MSBuild]::IsOSPlatform('Linux'))">              │
00:00:49 verbose #544 > > │     <DefineConstants>_LINUX</DefineConstants>                                │
00:00:49 verbose #545 > > │ </PropertyGroup>                                                             │
00:00:49 verbose #546 > > │ <PropertyGroup Condition="$([MSBuild]::IsOSPlatform('OSX'))">                │
00:00:49 verbose #547 > > │     <DefineConstants>_OSX</DefineConstants>                                  │
00:00:49 verbose #548 > > │ </PropertyGroup>                                                             │
00:00:49 verbose #549 > > │ <PropertyGroup Condition="$([MSBuild]::IsOSPlatform('Windows'))">            │
00:00:49 verbose #550 > > │     <DefineConstants>_WINDOWS</DefineConstants>                              │
00:00:49 verbose #551 > > │ </PropertyGroup>                                                             │
00:00:49 verbose #552 > > │ <ItemGroup>                                                                  │
00:00:49 verbose #553 > > │                                                                              │
00:00:49 verbose #554 > > │     <Compile                                                                 │
00:00:49 verbose #555 > > │ Include="c:/home/git/polyglot/target/spiral_builder/test2/test2.fs" />       │
00:00:49 verbose #556 > > │ </ItemGroup>                                                                 │
00:00:49 verbose #557 > > │ <ItemGroup>                                                                  │
00:00:49 verbose #558 > > │                                                                              │
00:00:49 verbose #559 > > │ </ItemGroup>                                                                 │
00:00:49 verbose #560 > > │ </Project> }                                                                 │
00:00:49 verbose #561 > > │ assert_eq / actual: 2 / expected: 2                                          │
00:00:49 verbose #562 > > │                                                                              │
00:00:49 verbose #563 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:49 verbose #564 > >
00:00:49 verbose #565 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:49 verbose #566 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:49 verbose #567 > > │ ### read_file                                                                │
00:00:49 verbose #568 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:49 verbose #569 > >
00:00:49 verbose #570 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:49 verbose #571 > > inl read_file path =
00:00:49 verbose #572 > >     inl code =
00:00:49 verbose #573 > >         path
00:00:49 verbose #574 > >         |> file_system.read_all_text
00:00:49 verbose #575 > >         |> sm'.replace_regex $'@@"(?P<a> *)(?P<b>let\\s+main\\s+.*?\\s*=)"'
00:00:49 verbose #576 > > "$a[[<EntryPoint>]]\n$a$b"
00:00:49 verbose #577 > >
00:00:49 verbose #578 > >     inl code_trim = code |> sm'.trim_end [[]]
00:00:49 verbose #579 > >     if code_trim |> sm'.ends_with "\\n()"
00:00:49 verbose #580 > >     then code_trim |> sm'.slice 0i64 ((code_trim |> sm'.length) - 3)
00:00:49 verbose #581 > >     else code
00:00:49 verbose #582 > 00:00:48   debug #18 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d9ac9757e9ce8ef1d9fae4ac22570dd5205b0c75fe6293c3e51098698ca5868b/main.spi
00:00:49 verbose #583 > >
00:00:49 verbose #584 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:49 verbose #585 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:49 verbose #586 > > │ ### persist_file                                                             │
00:00:49 verbose #587 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:49 verbose #588 > >
00:00:49 verbose #589 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:49 verbose #590 > > inl persist_file { workspace_root package_dir packages modules path } =
00:00:49 verbose #591 > >     inl full_path = path |> file_system.get_full_path
00:00:49 verbose #592 > >     inl name = full_path |> file_system.get_file_name_without_extension
00:00:49 verbose #593 > >     inl code = full_path |> read_file
00:00:49 verbose #594 > >     persist_code_project { workspace_root package_dir packages modules name code
00:00:49 verbose #595 > > }
00:00:49 verbose #596 > 00:00:49   debug #19 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6d7bc489f6cae01cf69918e0d808cf620d582f1ed89eef13c8273ffef5bc10d9/main.spi
00:00:49 verbose #597 > >
00:00:49 verbose #598 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:49 verbose #599 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:49 verbose #600 > > │ ### build_file                                                               │
00:00:49 verbose #601 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:49 verbose #602 > >
00:00:49 verbose #603 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:49 verbose #604 > > inl build_file { workspace_root runtime packages modules path } =
00:00:49 verbose #605 > >     inl full_path = path |> file_system.get_full_path
00:00:49 verbose #606 > >     inl dir = full_path |> file_system.get_directory_name
00:00:49 verbose #607 > >     build_code
00:00:49 verbose #608 > >         {
00:00:49 verbose #609 > >             workspace_root
00:00:49 verbose #610 > >             runtime
00:00:49 verbose #611 > >             packages
00:00:49 verbose #612 > >             modules
00:00:49 verbose #613 > >             output_dir = dir </> "dist" |> Some
00:00:49 verbose #614 > >             name = full_path |> file_system.get_file_name_without_extension
00:00:49 verbose #615 > >             code = full_path |> read_file
00:00:49 verbose #616 > >         }
00:00:50 verbose #617 > 00:00:49   debug #20 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0700c0bbb3f6cc48beea5adaeb2f99b8b44369f0372fd9e636a8d7fcaaea57be/main.spi
00:00:50 verbose #618 > >
00:00:50 verbose #619 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:50 verbose #620 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:50 verbose #621 > > │ ## rust                                                                      │
00:00:50 verbose #622 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:50 verbose #623 > >
00:00:50 verbose #624 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:50 verbose #625 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:50 verbose #626 > > │ ### get_workspace_cargo_toml_content                                         │
00:00:50 verbose #627 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:50 verbose #628 > >
00:00:50 verbose #629 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:50 verbose #630 > > inl get_workspace_cargo_toml_content { workspace_root } : string =
00:00:50 verbose #631 > >     inl workspace_root = workspace_root |> file_system.normalize_path
00:00:50 verbose #632 > >     $'$"[[workspace]]"'
00:00:50 verbose #633 > >     +#. $'$"resolver = \\\"2\\\""'
00:00:50 verbose #634 > >     +#. $'$"members = [[\\\"packages/Rust/*\\\"]]"'
00:00:50 verbose #635 > >     +#. $'$""'
00:00:50 verbose #636 > >     +#. $'$"[[workspace.dependencies.fable_library_rust]]"'
00:00:50 verbose #637 > >     +#. $'$"path =
00:00:50 verbose #638 > > \\\"{!workspace_root}/lib/rust/fable/fable_modules/fable-library-rust\\\""'
00:00:50 verbose #639 > >     +#. $'$"default-features = false"'
00:00:50 verbose #640 > >     +#. $'$"features = [[\\\"static_do_bindings\\\", \\\"datetime\\\",
00:00:50 verbose #641 > > \\\"guid\\\", \\\"threaded\\\"]]"'
00:00:50 verbose #642 > >     +#. $'$""'
00:00:50 verbose #643 > >     +#. $'$"[[workspace.dependencies]]"'
00:00:50 verbose #644 > >     +#. $'$"inline_colorization = \\\"~0.1\\\""'
00:00:50 verbose #645 > 00:00:49   debug #21 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3dc192837957aa76608250b845b633e025ebced0a5dbc02048d6400c5c0324e7/main.spi
00:00:50 verbose #646 > >
00:00:50 verbose #647 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:50 verbose #648 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:50 verbose #649 > > │ ### get_cargo_toml_content                                                   │
00:00:50 verbose #650 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:50 verbose #651 > >
00:00:50 verbose #652 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:50 verbose #653 > > inl get_cargo_toml_content { hash_hex deps } : string =
00:00:50 verbose #654 > >     $'$"[[package]]"'
00:00:50 verbose #655 > >     +#. $'$"name = \\\"spiral_builder_{!hash_hex}\\\""'
00:00:50 verbose #656 > >     +#. $'$"version = \\\"0.0.1\\\""'
00:00:50 verbose #657 > >     +#. $'$"edition = \\\"2021\\\""'
00:00:50 verbose #658 > >     +#. $'$""'
00:00:50 verbose #659 > >     +#. $'$"[[dependencies]]"'
00:00:50 verbose #660 > >     +#. $'$"fable_library_rust = {{ workspace = true }}"'
00:00:50 verbose #661 > >     +#. $'$"inline_colorization = {{ workspace = true }}"'
00:00:50 verbose #662 > >     +#. $'$"{!deps}"'
00:00:50 verbose #663 > >     +#. $'$""'
00:00:50 verbose #664 > >     +#. $'$"[[[[bin]]]]"'
00:00:50 verbose #665 > >     +#. $'$"name = \\\"spiral_builder_{!hash_hex}\\\""'
00:00:50 verbose #666 > >     +#. $'$"path = \\\"spiral_builder.rs\\\" "'
00:00:51 verbose #667 > 00:00:50   debug #22 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5cc7d70c475bde412c04d26eca1c626b50047882ab46bf6258d08ddc5cd661f4/main.spi
00:00:51 verbose #668 > >
00:00:51 verbose #669 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:51 verbose #670 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:51 verbose #671 > > │ ### get_empty_cargo_toml_content                                             │
00:00:51 verbose #672 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:51 verbose #673 > >
00:00:51 verbose #674 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:51 verbose #675 > > inl get_empty_cargo_toml_content () =
00:00:51 verbose #676 > >     inl guid = date_time.now () |> date_time.new_guid_from_date_time |>
00:00:51 verbose #677 > > sm'.obj_to_string
00:00:51 verbose #678 > >     $'$"[[package]]"'
00:00:51 verbose #679 > >     +#. $'$"name = \\\"spiral_builder_{!guid}\\\""'
00:00:51 verbose #680 > >     +#. $'$"version = \\\"0.0.1\\\""'
00:00:51 verbose #681 > >     +#. $'$"edition = \\\"2021\\\""'
00:00:51 verbose #682 > >     +#. $'$""'
00:00:51 verbose #683 > >     +#. $'$"[[[[bin]]]]"'
00:00:51 verbose #684 > >     +#. $'$"name = \\\"spiral_builder_{!guid}\\\""'
00:00:51 verbose #685 > >     +#. $'$"path = \\\"spiral_builder.rs\\\""'
00:00:51 verbose #686 > 00:00:50   debug #23 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ff02f4147cbf601ed06e66c2bb7daa5625b68a4e9788b3b43bb7396fbebf81d1/main.spi
00:00:51 verbose #687 > >
00:00:51 verbose #688 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:51 verbose #689 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:51 verbose #690 > > │ ### process_rust                                                             │
00:00:51 verbose #691 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:51 verbose #692 > >
00:00:51 verbose #693 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:51 verbose #694 > > inl process_rust { fs_path deps trace_level } =
00:00:51 verbose #695 > >     inl is_trace = trace_level = Verbose
00:00:51 verbose #696 > >     inl _trace (fn : () -> string) =
00:00:51 verbose #697 > >         if is_trace
00:00:51 verbose #698 > >         then trace Info (fun () => $'$"spiral_builder.process_rust / {!fn ()}"')
00:00:51 verbose #699 > > id
00:00:51 verbose #700 > >         else fn () |> console.write_line
00:00:51 verbose #701 > >
00:00:51 verbose #702 > >     inl extension = "rs"
00:00:51 verbose #703 > >     inl code = fs_path |> file_system.read_all_text
00:00:51 verbose #704 > >
00:00:51 verbose #705 > >     inl hash_hex = (extension, code) |> sm'.format_debug |> crypto.hash_text
00:00:51 verbose #706 > >
00:00:51 verbose #707 > >     inl workspace_name = "spiral_builder"
00:00:51 verbose #708 > >
00:00:51 verbose #709 > >     inl workspace_root_external = file_system.get_workspace_root_external ()
00:00:51 verbose #710 > >     inl workspace_root = workspace_root_external |> resultm.box |>
00:00:51 verbose #711 > > resultm.unwrap_or_else id
00:00:51 verbose #712 > >
00:00:51 verbose #713 > >     inl package_dir =
00:00:51 verbose #714 > >         get_package_dir { workspace_root name = workspace_name; target = Some
00:00:51 verbose #715 > > Rust; hash = Some hash_hex }
00:00:51 verbose #716 > >
00:00:51 verbose #717 > >     inl fsproj_path =
00:00:51 verbose #718 > >         persist_code_project
00:00:51 verbose #719 > >             {
00:00:51 verbose #720 > >                 workspace_root
00:00:51 verbose #721 > >                 package_dir
00:00:51 verbose #722 > >                 packages = [[ "Fable.Core" ]]
00:00:51 verbose #723 > >                 modules = [[]]
00:00:51 verbose #724 > >                 name = workspace_name
00:00:51 verbose #725 > >                 code
00:00:51 verbose #726 > >             }
00:00:51 verbose #727 > >
00:00:51 verbose #728 > >     inl workspace_dir = package_dir </> "../../.."
00:00:51 verbose #729 > >     inl workspace_cargo_toml_path = workspace_dir </> "Cargo.toml"
00:00:51 verbose #730 > >
00:00:51 verbose #731 > >     if workspace_cargo_toml_path |> file_system.file_exists |> not
00:00:51 verbose #732 > >     then get_empty_cargo_toml_content () |> file_system.write_all_text
00:00:51 verbose #733 > > workspace_cargo_toml_path
00:00:51 verbose #734 > >
00:00:51 verbose #735 > >     inl cargo_toml_path = package_dir </> "Cargo.toml"
00:00:51 verbose #736 > >
00:00:51 verbose #737 > >     if cargo_toml_path |> file_system.file_exists |> not
00:00:51 verbose #738 > >     then get_empty_cargo_toml_content () |> file_system.write_all_text
00:00:51 verbose #739 > > cargo_toml_path
00:00:51 verbose #740 > >
00:00:51 verbose #741 > >     inl lib_link_target_path = workspace_root </>
00:00:51 verbose #742 > > "lib/rust/fable/fable_modules/fable-library-rust"
00:00:51 verbose #743 > >     inl lib_link_path = package_dir </> "fable_modules/fable-library-rust"
00:00:51 verbose #744 > >
00:00:51 verbose #745 > >     lib_link_path |> file_system.link_directory lib_link_target_path
00:00:51 verbose #746 > >
00:00:51 verbose #747 > >     inl exit_code, dotnet_fable_result =
00:00:51 verbose #748 > >         execute_dotnet_fable { workspace_root_external fsproj_path extension
00:00:51 verbose #749 > > package_dir }
00:00:51 verbose #750 > >
00:00:51 verbose #751 > >     if exit_code <>. 0 then
00:00:51 verbose #752 > >         trace Critical
00:00:51 verbose #753 > >             fun () => "spiral_builder.process_rust / dotnet fable error"
00:00:51 verbose #754 > >             fun () => { exit_code dotnet_fable_result }
00:00:51 verbose #755 > >         { extension = Some extension; code = None; output = Some
00:00:51 verbose #756 > > dotnet_fable_result }
00:00:51 verbose #757 > >     else
00:00:51 verbose #758 > >         inl deps =
00:00:51 verbose #759 > >             deps
00:00:51 verbose #760 > >             |> am'.vec_map fun dep =>
00:00:51 verbose #761 > >                 inl dep = dep |> sm'.from_std_string
00:00:51 verbose #762 > >                 if dep |> sm'.contains "="
00:00:51 verbose #763 > >                 then dep
00:00:51 verbose #764 > >                 elif dep |> sm'.ends_with "]]"
00:00:51 verbose #765 > >                 then dep |> sm'.replace "[[" $'$"={{version=\'*\',features=[["'
00:00:51 verbose #766 > > |> fun x => $'$"{!x}}}"'
00:00:51 verbose #767 > >                 else $'$"{!dep}=\'*\'"'
00:00:51 verbose #768 > >             |> am'.from_vec
00:00:51 verbose #769 > >             |> fun x => x : _ i32 _
00:00:51 verbose #770 > >             |> seq.of_array'
00:00:51 verbose #771 > >             |> sm'.concat "\n"
00:00:51 verbose #772 > >
00:00:51 verbose #773 > >         inl cargo_toml_content = get_cargo_toml_content { hash_hex deps }
00:00:51 verbose #774 > >         inl workspace_cargo_toml_content = get_workspace_cargo_toml_content {
00:00:51 verbose #775 > > workspace_root }
00:00:51 verbose #776 > >
00:00:51 verbose #777 > >         cargo_toml_content |> file_system.write_all_text_exists cargo_toml_path
00:00:51 verbose #778 > >
00:00:51 verbose #779 > >         workspace_cargo_toml_content |> file_system.write_all_text_exists
00:00:51 verbose #780 > > workspace_cargo_toml_path
00:00:51 verbose #781 > >
00:00:51 verbose #782 > >         inl range_rs_path = lib_link_path </> "src/Range.rs"
00:00:51 verbose #783 > >         if range_rs_path |> file_system.file_exists then
00:00:51 verbose #784 > >             inl text = range_rs_path |> file_system.read_all_text
00:00:51 verbose #785 > >             text
00:00:51 verbose #786 > >             |> sm'.replace "use crate::String_::fromCharCode;" "use
00:00:51 verbose #787 > > crate::String_::fromChar;"
00:00:51 verbose #788 > >             |> sm'.replace "fromCharCode(c)" "std::char::from_u32(c).unwrap()"
00:00:51 verbose #789 > >             |> file_system.write_all_text_exists range_rs_path
00:00:51 verbose #790 > >
00:00:51 verbose #791 > >         inl exit_code, cargo_fmt_result =
00:00:51 verbose #792 > >             fun () =>
00:00:51 verbose #793 > >                 inl exit_code, result =
00:00:51 verbose #794 > >                     runtime.execution_options fun x => { x with
00:00:51 verbose #795 > >                         command = $'$"cargo fmt --manifest-path
00:00:51 verbose #796 > > \\\"{!cargo_toml_path}\\\" --"'
00:00:51 verbose #797 > >                         working_directory = workspace_root_external |>
00:00:51 verbose #798 > > resultm.box |> resultm.ok'
00:00:51 verbose #799 > >                     }
00:00:51 verbose #800 > >                     |> runtime.execute_with_options
00:00:51 verbose #801 > >
00:00:51 verbose #802 > >                 inl return () =
00:00:51 verbose #803 > >                     if exit_code = 0
00:00:51 verbose #804 > >                     then Ok (exit_code, result)
00:00:51 verbose #805 > >                     else Error (exit_code, result)
00:00:51 verbose #806 > >
00:00:51 verbose #807 > >                 if result |> sm'.contains "failed to load manifest for workspace
00:00:51 verbose #808 > > member" |> not
00:00:51 verbose #809 > >                 then return ()
00:00:51 verbose #810 > >                 else
00:00:51 verbose #811 > >                     inl missing_toml_path =
00:00:51 verbose #812 > >                         "failed to read `(?<a>.*?Cargo.toml)`"
00:00:51 verbose #813 > >                         |> sm'.new_regex
00:00:51 verbose #814 > >                         |> resultm.unwrap'
00:00:51 verbose #815 > >                         |> sm'.regex_captures result
00:00:51 verbose #816 > >                         |> am'.from_vec
00:00:51 verbose #817 > >                         |> fun x => x : _ i32 _
00:00:51 verbose #818 > >                         |> am'.try_item 0
00:00:51 verbose #819 > >                         |> optionm.map (mapm.get "a" >> optionm'.unbox)
00:00:51 verbose #820 > >                         |> optionm'.flatten
00:00:51 verbose #821 > >
00:00:51 verbose #822 > >                     match missing_toml_path with
00:00:51 verbose #823 > >                     | None => Error (exit_code, result)
00:00:51 verbose #824 > >                     | Some missing_toml_path =>
00:00:51 verbose #825 > >                         if missing_toml_path |> file_system.file_exists |> not
00:00:51 verbose #826 > > then
00:00:51 verbose #827 > >                             missing_toml_path
00:00:51 verbose #828 > >                             |> file_system.get_directory_name
00:00:51 verbose #829 > >                             |> file_system.create_dir
00:00:51 verbose #830 > >                             |> ignore
00:00:51 verbose #831 > >
00:00:51 verbose #832 > >                             get_empty_cargo_toml_content ()
00:00:51 verbose #833 > >                             |> file_system.write_all_text missing_toml_path
00:00:51 verbose #834 > >                         return ()
00:00:51 verbose #835 > >             |> retry_fn' 3u8
00:00:51 verbose #836 > >
00:00:51 verbose #837 > >         if exit_code <>. 0 then
00:00:51 verbose #838 > >             trace Critical
00:00:51 verbose #839 > >                 fun () => "spiral_builder.process_rust / cargo fmt error"
00:00:51 verbose #840 > >                 fun () => { exit_code cargo_fmt_result }
00:00:51 verbose #841 > >
00:00:51 verbose #842 > >         inl new_code_path = package_dir </> $'$"{!workspace_name}.{!extension}"'
00:00:51 verbose #843 > >         inl new_code = new_code_path |> file_system.read_all_text
00:00:51 verbose #844 > >
00:00:51 verbose #845 > >         inl main_code_header =
00:00:51 verbose #846 > >             "pub fn main() -> Result<(), String> " +. !\($'"\\\"{\\\".into()"')
00:00:51 verbose #847 > >         inl main_code = $'$"{!main_code_header} Ok(()) }}"' : string
00:00:51 verbose #848 > >
00:00:51 verbose #849 > >         inl cached = new_code |> sm'.contains main_code_header
00:00:51 verbose #850 > >
00:00:51 verbose #851 > >         inl new_code =
00:00:51 verbose #852 > >             if cached
00:00:51 verbose #853 > >             then new_code
00:00:51 verbose #854 > >             else
00:00:51 verbose #855 > >                 new_code
00:00:51 verbose #856 > >                 |> sm'.replace
00:00:51 verbose #857 > >                     ("),)" +. !\($'"\\\";\\\".into()"'))
00:00:51 verbose #858 > >                     "));"
00:00:51 verbose #859 > >                 |> sm'.replace
00:00:51 verbose #860 > >                     ("},)" +. !\($'"\\\";\\\".into()"'))
00:00:51 verbose #861 > >                     "});"
00:00:51 verbose #862 > >                 |> sm'.replace_regex
00:00:51 verbose #863 > >                     "\\s\\sdefaultOf\\(\\);"
00:00:51 verbose #864 > >                     " defaultOf::<()>();"
00:00:51 verbose #865 > >                 |> sm'.replace
00:00:51 verbose #866 > >                     "::Slice'_"
00:00:51 verbose #867 > >                     "::Slice__"
00:00:51 verbose #868 > >                 |> sm'.replace
00:00:51 verbose #869 > >                     ("defaultOf()" +. !\($'"\\\",\\\".into()"'))
00:00:51 verbose #870 > >                     "defaultOf::<std::sync::Arc<dyn IDisposable>>(),"
00:00:51 verbose #871 > >                 |> sm'.replace
00:00:51 verbose #872 > >                     ("_self" +. !\($'"\\\"_.\\\".into()"'))
00:00:51 verbose #873 > >                     "self."
00:00:51 verbose #874 > >                 |> sm'.replace
00:00:51 verbose #875 > >                     ("get_or_insert_wit" +. !\($'"\\\"h\\\".into()"'))
00:00:51 verbose #876 > >                     "get_or_init"
00:00:51 verbose #877 > >                 |> sm'.replace
00:00:51 verbose #878 > >                     ("use
00:00:51 verbose #879 > > fable_library_rust::System::Collections::Concurrent::ConcurrentStack_1" +.
00:00:51 verbose #880 > > !\($'"\\\";\\\".into()"'))
00:00:51 verbose #881 > >                     "type ConcurrentStack_1<T> = T;"
00:00:51 verbose #882 > >                 |> sm'.replace
00:00:51 verbose #883 > >                     ("use
00:00:51 verbose #884 > > fable_library_rust::System::Threading::CancellationToken" +.
00:00:51 verbose #885 > > !\($'"\\\";\\\".into()"'))
00:00:51 verbose #886 > >                     "type CancellationToken = ();"
00:00:51 verbose #887 > >                 |> sm'.replace
00:00:51 verbose #888 > >                     ("use fable_library_rust::System::TimeZoneInfo" +.
00:00:51 verbose #889 > > !\($'"\\\";\\\".into()"'))
00:00:51 verbose #890 > >                     "type TimeZoneInfo = i64;"
00:00:51 verbose #891 > >                 |> sm'.replace
00:00:51 verbose #892 > >                     ("use
00:00:51 verbose #893 > > fable_library_rust::System::Threading::Tasks::TaskCanceledException" +.
00:00:51 verbose #894 > > !\($'"\\\";\\\".into()"'))
00:00:51 verbose #895 > >                     "type TaskCanceledException = ();"
00:00:51 verbose #896 > >
00:00:51 verbose #897 > >         if not cached
00:00:51 verbose #898 > >         then
00:00:51 verbose #899 > >             $'$"{!new_code}\\n\\n{!main_code}\\n"'
00:00:51 verbose #900 > >             |> file_system.write_all_text_exists new_code_path
00:00:51 verbose #901 > >
00:00:51 verbose #902 > >         inl command = $'$"cargo +nightly run --manifest-path
00:00:51 verbose #903 > > \\\"{!cargo_toml_path}\\\""'
00:00:51 verbose #904 > >         inl environment_variables =
00:00:51 verbose #905 > >             inl fast = false
00:00:51 verbose #906 > >             ;[[
00:00:51 verbose #907 > >                 "TRACE_LEVEL", "Verbose"
00:00:51 verbose #908 > >                 "RUSTC_WRAPPER", "sccache"
00:00:51 verbose #909 > >                 "RUSTFLAGS",
00:00:51 verbose #910 > >                 if fast
00:00:51 verbose #911 > >                 then "-C prefer-dynamic -C strip=symbols -C link-arg=-s -C
00:00:51 verbose #912 > > debuginfo=0"
00:00:51 verbose #913 > >                 else "-C prefer-dynamic"
00:00:51 verbose #914 > >             ]]
00:00:51 verbose #915 > >         inl exit_code, cargo_run_result =
00:00:51 verbose #916 > >             runtime.execution_options fun x => { x with
00:00:51 verbose #917 > >                 command
00:00:51 verbose #918 > >                 environment_variables
00:00:51 verbose #919 > >                 working_directory = workspace_root_external |> resultm.box |>
00:00:51 verbose #920 > > resultm.ok'
00:00:51 verbose #921 > >             }
00:00:51 verbose #922 > >             |> runtime.execute_with_options
00:00:51 verbose #923 > >
00:00:51 verbose #924 > >         inl cleanup =
00:00:51 verbose #925 > >             [[ ".d"; ".exe"; ".pdb"; "" ]]
00:00:51 verbose #926 > >             |> listm.map fun ext => workspace_dir </>
00:00:51 verbose #927 > > $'$"target/debug/spiral_builder_{!hash_hex}{!ext}"'
00:00:51 verbose #928 > >             |> listm.map fun path => path, path |> file_system.file_exists
00:00:51 verbose #929 > >
00:00:51 verbose #930 > >         trace Verbose
00:00:51 verbose #931 > >             fun () => "spiral_builder.process_rust"
00:00:51 verbose #932 > >             fun () => { new_code_path cleanup }
00:00:51 verbose #933 > >
00:00:51 verbose #934 > >         cleanup
00:00:51 verbose #935 > >         |> listm'.filter snd
00:00:51 verbose #936 > >         |> listm.iter (fst >> file_system.file_delete)
00:00:51 verbose #937 > >
00:00:51 verbose #938 > >         inl external_command =
00:00:51 verbose #939 > >             inl vars =
00:00:51 verbose #940 > >                 a environment_variables
00:00:51 verbose #941 > >                 |> am.map fun k, v => $'$"$env:{!k}=\'\'{!v}\'\'"' : string
00:00:51 verbose #942 > >                 |> fun x => x : _ i32 _
00:00:51 verbose #943 > >                 |> seq.of_array
00:00:51 verbose #944 > >                 |> sm'.concat ";"
00:00:51 verbose #945 > >             $'$"pwsh -c \'{!vars}; {!command}\'"' : string
00:00:51 verbose #946 > >         if exit_code = 0 then
00:00:51 verbose #947 > >             inl output =
00:00:51 verbose #948 > >                 try
00:00:51 verbose #949 > >                     fun () =>
00:00:51 verbose #950 > >                         cargo_run_result
00:00:51 verbose #951 > >                         |> sm'.split "\n"
00:00:51 verbose #952 > >                         |> fun x => a x : _ i32 _
00:00:51 verbose #953 > >                         |> am'.skip_while fun line =>
00:00:51 verbose #954 > >                             (line |> sm'.contains "profile [[optimized]] target"
00:00:51 verbose #955 > > |> not)
00:00:51 verbose #956 > >                                 && (line |> sm'.contains "profile
00:00:51 verbose #957 > > [[unoptimized]] target" |> not)
00:00:51 verbose #958 > >                                 && (line |> sm'.contains "profile [[unoptimized
00:00:51 verbose #959 > > + debuginfo]] target" |> not)
00:00:51 verbose #960 > >                         |> am'.skip 2
00:00:51 verbose #961 > >                         |> seq.of_array
00:00:51 verbose #962 > >                         |> sm'.concat "\n"
00:00:51 verbose #963 > >                     fun ex =>
00:00:51 verbose #964 > >                         trace Critical
00:00:51 verbose #965 > >                             fun () => "spiral_builder.process_rust / Exception"
00:00:51 verbose #966 > >                             fun () => { ex cargo_run_result new_code_path
00:00:51 verbose #967 > > external_command }
00:00:51 verbose #968 > >                         None
00:00:51 verbose #969 > >                 |> optionm'.box
00:00:51 verbose #970 > >                 |> optionm'.unwrap
00:00:51 verbose #971 > >
00:00:51 verbose #972 > >             { extension = Some extension; code = Some new_code; output = Some
00:00:51 verbose #973 > > output }
00:00:51 verbose #974 > >         else
00:00:51 verbose #975 > >             trace Critical
00:00:51 verbose #976 > >                 fun () => "spiral_builder.process_rust / error"
00:00:51 verbose #977 > >                 fun () => { exit_code cargo_run_result new_code_path
00:00:51 verbose #978 > > external_command }
00:00:51 verbose #979 > >             { extension = Some extension; code = None; output = None }
00:00:51 verbose #980 > 00:00:51   debug #24 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2627f31cfb0b13b0f3b744d195d5a37d05038c90ffa8eeed14a5436a741c6459/main.spi
00:00:52 verbose #981 > >
00:00:52 verbose #982 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:52 verbose #983 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:52 verbose #984 > > │ ## dib                                                                       │
00:00:52 verbose #985 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:52 verbose #986 > >
00:00:52 verbose #987 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:52 verbose #988 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:52 verbose #989 > > │ ### process_dib                                                              │
00:00:52 verbose #990 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:52 verbose #991 > >
00:00:52 verbose #992 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:52 verbose #993 > > inl process_dib { path retries working_directory } =
00:00:52 verbose #994 > >     inl exit_code, repl_result =
00:00:52 verbose #995 > >         let rec loop retry =
00:00:52 verbose #996 > >             inl exit_code, repl_result =
00:00:52 verbose #997 > >                 runtime.execution_options fun x => { x with
00:00:52 verbose #998 > >                     command = $'$"dotnet repl --exit-after-run --run
00:00:52 verbose #999 > > \\\"{!path}\\\" --output-path \\\"{!path}.ipynb\\\""'
00:00:52 verbose #1000 > >                     environment_variables = ;[[
00:00:52 verbose #1001 > >                         "TRACE_LEVEL", "Verbose"
00:00:52 verbose #1002 > >                         "AUTOMATION", "True"
00:00:52 verbose #1003 > >                     ]]
00:00:52 verbose #1004 > >                     trace = false
00:00:52 verbose #1005 > >                     working_directory
00:00:52 verbose #1006 > >                 }
00:00:52 verbose #1007 > >                 |> runtime.execute_with_options
00:00:52 verbose #1008 > >
00:00:52 verbose #1009 > >             if exit_code = 0 || retry >= retries
00:00:52 verbose #1010 > >             then exit_code, repl_result
00:00:52 verbose #1011 > >             else
00:00:52 verbose #1012 > >                 trace Debug
00:00:52 verbose #1013 > >                     fun () => $'"spiral_builder.run / repl error"'
00:00:52 verbose #1014 > >                     fun () => { exit_code repl_result retry =
00:00:52 verbose #1015 > > $'$"{!retry}/{!retries}"' : string }
00:00:52 verbose #1016 > >                 loop (retry + 1)
00:00:52 verbose #1017 > >         loop 1
00:00:52 verbose #1018 > >
00:00:52 verbose #1019 > >     inl exit_code, result =
00:00:52 verbose #1020 > >         if exit_code <>. 0
00:00:52 verbose #1021 > >         then exit_code, repl_result
00:00:52 verbose #1022 > >         else
00:00:52 verbose #1023 > >             inl exit_code, jupyter_result =
00:00:52 verbose #1024 > >                 runtime.execution_options fun x => { x with
00:00:52 verbose #1025 > >                     command = $'$"jupyter nbconvert \\\"{!path}.ipynb\\\" --to
00:00:52 verbose #1026 > > html --HTMLExporter.theme=dark"'
00:00:52 verbose #1027 > >                 }
00:00:52 verbose #1028 > >                 |> runtime.execute_with_options
00:00:52 verbose #1029 > >
00:00:52 verbose #1030 > >             trace Debug
00:00:52 verbose #1031 > >                 fun () => $'"spiral_builder.run / dib / jupyter nbconvert"'
00:00:52 verbose #1032 > >                 fun () => { exit_code jupyter_result_length = jupyter_result |>
00:00:52 verbose #1033 > > sm'.length : i32 }
00:00:52 verbose #1034 > >
00:00:52 verbose #1035 > >             if exit_code <>. 0
00:00:52 verbose #1036 > >             then exit_code, $'$"repl_result: {!repl_result}\n\njupyter_result:
00:00:52 verbose #1037 > > {!jupyter_result}"'
00:00:52 verbose #1038 > >             else
00:00:52 verbose #1039 > >                 inl exit_code, pwsh_replace_html_result =
00:00:52 verbose #1040 > >                     inl path = path |> sm'.replace "'" "''"
00:00:52 verbose #1041 > >                     runtime.execution_options fun x => { x with
00:00:52 verbose #1042 > >                         command = $'$"pwsh -c \\\"$counter = 1; $path =
00:00:52 verbose #1043 > > \'{!path}.html\'; (Get-Content $path -Raw) -replace
00:00:52 verbose #1044 > > \'(id=\\\\\\"cell-id=)[[a-fA-F0-9]]{{8}}\', {{ $_.Groups[[1]].Value + $counter++
00:00:52 verbose #1045 > > }} | Set-Content $path\\\""'
00:00:52 verbose #1046 > >                     }
00:00:52 verbose #1047 > >                     |> runtime.execute_with_options
00:00:52 verbose #1048 > >
00:00:52 verbose #1049 > >                 trace Debug
00:00:52 verbose #1050 > >                     fun () => $'"spiral_builder.run / dib / html cell ids"'
00:00:52 verbose #1051 > >                     fun () => { exit_code pwsh_replace_html_result_length =
00:00:52 verbose #1052 > > pwsh_replace_html_result |> sm'.length : i32 }
00:00:52 verbose #1053 > >
00:00:52 verbose #1054 > >                 $'$"{!path}.html"'
00:00:52 verbose #1055 > >                 |> file_system.read_all_text
00:00:52 verbose #1056 > >                 |> sm'.replace "\r\n" "\n"
00:00:52 verbose #1057 > >                 |> file_system.write_all_text $'$"{!path}.html"'
00:00:52 verbose #1058 > >
00:00:52 verbose #1059 > >                 $'$"{!path}.ipynb"'
00:00:52 verbose #1060 > >                 |> file_system.read_all_text
00:00:52 verbose #1061 > >                 |> sm'.replace "\r\n" "\n"
00:00:52 verbose #1062 > >                 |> sm'.replace "\\r\\n" "\\n"
00:00:52 verbose #1063 > >                 |> file_system.write_all_text $'$"{!path}.ipynb"'
00:00:52 verbose #1064 > >
00:00:52 verbose #1065 > >                 exit_code, $'$"repl_result: {!repl_result}\n\njupyter_result:
00:00:52 verbose #1066 > > {!jupyter_result}\n\npwsh_replace_html_result: {!pwsh_replace_html_result}"'
00:00:52 verbose #1067 > >
00:00:52 verbose #1068 > >     trace Debug
00:00:52 verbose #1069 > >         fun () => $'"spiral_builder.run / dib"'
00:00:52 verbose #1070 > >         fun () => { exit_code result_length = result |> sm'.length : i32 }
00:00:52 verbose #1071 > >
00:00:52 verbose #1072 > >     if exit_code <>. 0
00:00:52 verbose #1073 > >     then failwith $'$"spiral_builder.run / dib / exit_code: {!exit_code}
00:00:52 verbose #1074 > > result: {!result}"'
00:00:52 verbose #1075 > >     ;[[
00:00:52 verbose #1076 > >         "stdio",
00:00:52 verbose #1077 > >         result
00:00:52 verbose #1078 > >     ]]
00:00:52 verbose #1079 > 00:00:51   debug #25 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1c17ae7d6739aa5d492ae7be41aa74a4310e19160150172f325f5447a85a3e41/main.spi
00:00:52 verbose #1080 > >
00:00:52 verbose #1081 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:52 verbose #1082 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:52 verbose #1083 > > │ ## typescript                                                                │
00:00:52 verbose #1084 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:52 verbose #1085 > >
00:00:52 verbose #1086 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:52 verbose #1087 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:52 verbose #1088 > > │ ### process_typescript                                                       │
00:00:52 verbose #1089 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:52 verbose #1090 > >
00:00:52 verbose #1091 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:52 verbose #1092 > > inl process_typescript { fs_path deps trace_level } =
00:00:52 verbose #1093 > >     inl extension = "ts"
00:00:52 verbose #1094 > >     inl is_trace = trace_level = Verbose
00:00:52 verbose #1095 > >     inl _trace (fn : () -> string) =
00:00:52 verbose #1096 > >         if is_trace
00:00:52 verbose #1097 > >         then trace Info (fun () => $'$"spiral_builder.process_typescript / {!fn
00:00:52 verbose #1098 > > ()}"') id
00:00:52 verbose #1099 > >         else fn () |> console.write_line
00:00:52 verbose #1100 > >
00:00:52 verbose #1101 > >     inl code = fs_path |> file_system.read_all_text
00:00:52 verbose #1102 > >
00:00:52 verbose #1103 > >     inl hash_hex = (extension, code) |> sm'.format_debug |> crypto.hash_text
00:00:52 verbose #1104 > >
00:00:52 verbose #1105 > >     inl workspace_name = "spiral_builder"
00:00:52 verbose #1106 > >
00:00:52 verbose #1107 > >     inl workspace_root_external = file_system.get_workspace_root_external ()
00:00:52 verbose #1108 > >     inl workspace_root = workspace_root_external |> resultm.box |>
00:00:52 verbose #1109 > > resultm.unwrap_or_else id
00:00:52 verbose #1110 > >
00:00:52 verbose #1111 > >     inl package_dir =
00:00:52 verbose #1112 > >         get_package_dir
00:00:52 verbose #1113 > >             { workspace_root name = workspace_name; target = Some TypeScript;
00:00:52 verbose #1114 > > hash = Some hash_hex }
00:00:52 verbose #1115 > >
00:00:52 verbose #1116 > >     inl fsproj_path =
00:00:52 verbose #1117 > >         persist_code_project
00:00:52 verbose #1118 > >             {
00:00:52 verbose #1119 > >                 workspace_root
00:00:52 verbose #1120 > >                 package_dir
00:00:52 verbose #1121 > >                 packages = [[ "Fable.Core" ]]
00:00:52 verbose #1122 > >                 modules = [[]]
00:00:52 verbose #1123 > >                 name = workspace_name
00:00:52 verbose #1124 > >                 code
00:00:52 verbose #1125 > >             }
00:00:52 verbose #1126 > >
00:00:52 verbose #1127 > >     inl lib_path = workspace_root </> "lib/typescript/fable/fable_modules"
00:00:52 verbose #1128 > >
00:00:52 verbose #1129 > >     inl versions =
00:00:52 verbose #1130 > >         lib_path
00:00:52 verbose #1131 > >         |> file_system.new_walk_dir
00:00:52 verbose #1132 > >         |> file_system.walk_dir_filter fun entry => async.future_init_send (2,
00:00:52 verbose #1133 > > 1) 1 fun () =>
00:00:52 verbose #1134 > >             entry
00:00:52 verbose #1135 > >             |> file_system.dir_entry_file_type
00:00:52 verbose #1136 > >             |> async.await_send
00:00:52 verbose #1137 > >             |> resultm.map_error' sm'.format'
00:00:52 verbose #1138 > >             |> resultm.unbox
00:00:52 verbose #1139 > >             |> function
00:00:52 verbose #1140 > >                 | Ok file_type when file_type |> file_system.file_type_is_dir |>
00:00:52 verbose #1141 > > not => file_system.Ignore
00:00:52 verbose #1142 > >                 | _ => file_system.Continue
00:00:52 verbose #1143 > >         |> file_system.stream_filter_map fun entry =>
00:00:52 verbose #1144 > >             inl entry = entry |> resultm.map_error' sm'.format' |> resultm.unbox
00:00:52 verbose #1145 > >             match entry with
00:00:52 verbose #1146 > >             | Ok entry =>
00:00:52 verbose #1147 > >                 inl path =
00:00:52 verbose #1148 > >                     entry
00:00:52 verbose #1149 > >                     |> file_system.dir_entry_path
00:00:52 verbose #1150 > >                     |> file_system.path_buf_display
00:00:52 verbose #1151 > >                     |> sm'.format'
00:00:52 verbose #1152 > >                     |> sm'.from_std_string
00:00:52 verbose #1153 > >                 inl version =
00:00:52 verbose #1154 > >                     $'$"fable-library-{!extension}\\.(?<a>[[\\d.]]+)$"'
00:00:52 verbose #1155 > >                     |> sm'.new_regex
00:00:52 verbose #1156 > >                     |> resultm.unwrap'
00:00:52 verbose #1157 > >                     |> sm'.regex_captures path
00:00:52 verbose #1158 > >                     |> am'.from_vec
00:00:52 verbose #1159 > >                     |> fun x => x : _ i32 _
00:00:52 verbose #1160 > >                     |> am'.try_item 0
00:00:52 verbose #1161 > >                     |> optionm.map (mapm.get "a" >> optionm'.unbox)
00:00:52 verbose #1162 > >                     |> optionm'.flatten
00:00:52 verbose #1163 > >                 match version with
00:00:52 verbose #1164 > >                 | None => None
00:00:52 verbose #1165 > >                 | Some version => Some (path, version)
00:00:52 verbose #1166 > >             | Error error =>
00:00:52 verbose #1167 > >                 trace Critical
00:00:52 verbose #1168 > >                     fun () => $'"spiral_builder.process_typescript
00:00:52 verbose #1169 > > stream_filter_map"'
00:00:52 verbose #1170 > >                     fun () => { error }
00:00:52 verbose #1171 > >                 None
00:00:52 verbose #1172 > >             |> optionm'.box
00:00:52 verbose #1173 > >         |> async.into_par_iter
00:00:52 verbose #1174 > >         |> async.par_map fun file =>
00:00:52 verbose #1175 > >             file
00:00:52 verbose #1176 > >         |> async.par_collect
00:00:52 verbose #1177 > >
00:00:52 verbose #1178 > >     inl version =
00:00:52 verbose #1179 > >         versions
00:00:52 verbose #1180 > >         |> am'.from_vec
00:00:52 verbose #1181 > >         |> fun x => x : _ i32 _
00:00:52 verbose #1182 > >         |> am'.try_item 0
00:00:52 verbose #1183 > >
00:00:52 verbose #1184 > >     trace Debug
00:00:52 verbose #1185 > >         fun () => $'"spiral_builder.process_typescript"'
00:00:52 verbose #1186 > >         fun () => { version = version |> sm'.format_pretty' }
00:00:52 verbose #1187 > >
00:00:52 verbose #1188 > >     match version with
00:00:52 verbose #1189 > >     | None => ()
00:00:52 verbose #1190 > >     | Some (_path, version) =>
00:00:52 verbose #1191 > >         inl lib_link_target_path = lib_path </>
00:00:52 verbose #1192 > > $'$"fable-library-{!extension}.{!version}"'
00:00:52 verbose #1193 > >         inl lib_link_path = package_dir </>
00:00:52 verbose #1194 > > $'$"fable_modules/fable-library-{!extension}.{!version}"'
00:00:52 verbose #1195 > >
00:00:52 verbose #1196 > >         lib_link_path |> file_system.link_directory lib_link_target_path
00:00:52 verbose #1197 > >
00:00:52 verbose #1198 > >     inl exit_code, dotnet_fable_result =
00:00:52 verbose #1199 > >         execute_dotnet_fable { workspace_root_external fsproj_path extension
00:00:52 verbose #1200 > > package_dir }
00:00:52 verbose #1201 > >
00:00:52 verbose #1202 > >     if exit_code <>. 0 then
00:00:52 verbose #1203 > >         trace Critical
00:00:52 verbose #1204 > >             fun () => $'$"spiral_builder.process_typescript"'
00:00:52 verbose #1205 > >             fun () => { exit_code dotnet_fable_result }
00:00:52 verbose #1206 > >         { extension = Some extension; code = None; output = Some
00:00:52 verbose #1207 > > dotnet_fable_result }
00:00:52 verbose #1208 > >     else
00:00:52 verbose #1209 > >         inl deps =
00:00:52 verbose #1210 > >             deps
00:00:52 verbose #1211 > >             |> am'.vec_map fun dep =>
00:00:52 verbose #1212 > >                 inl dep = dep |> sm'.from_std_string
00:00:52 verbose #1213 > >                 if dep |> sm'.contains "="
00:00:52 verbose #1214 > >                 then dep
00:00:52 verbose #1215 > >                 else $'$"\\"{!dep}\\":\\"*\\""'
00:00:52 verbose #1216 > >             |> am'.from_vec
00:00:52 verbose #1217 > >             |> fun x => x : _ i32 _
00:00:52 verbose #1218 > >             |> seq.of_array'
00:00:52 verbose #1219 > >             |> sm'.concat ",\n"
00:00:52 verbose #1220 > >
00:00:52 verbose #1221 > >         inl package_json_content =
00:00:52 verbose #1222 > >             $'$"{{"'
00:00:52 verbose #1223 > >             +. $'$"  \\\"name\\\": \\\"spiral_builder_{!hash_hex}\\\","'
00:00:52 verbose #1224 > >             +. $'$"  \\\"dependencies\\\": {{"'
00:00:52 verbose #1225 > >             +. deps
00:00:52 verbose #1226 > >             +. $'$"  }},"'
00:00:52 verbose #1227 > >             +. $'$"    \\\"devDependencies\\\": {{"'
00:00:52 verbose #1228 > >             +. $'$"  }},"'
00:00:52 verbose #1229 > >             +. $'$"}}"'
00:00:52 verbose #1230 > >
00:00:52 verbose #1231 > >         inl workspace_package_json_content =
00:00:52 verbose #1232 > >             ""
00:00:52 verbose #1233 > >
00:00:52 verbose #1234 > >         inl package_json_path = package_dir </> "package.json"
00:00:52 verbose #1235 > >
00:00:52 verbose #1236 > >         inl workspace_dir = package_dir </> "../.."
00:00:52 verbose #1237 > >         inl workspace_package_json_path = workspace_dir </> "package.json"
00:00:52 verbose #1238 > >
00:00:52 verbose #1239 > >         package_json_content |> file_system.write_all_text_exists
00:00:52 verbose #1240 > > package_json_path
00:00:52 verbose #1241 > >
00:00:52 verbose #1242 > >         workspace_package_json_content |> file_system.write_all_text_exists
00:00:52 verbose #1243 > > workspace_package_json_path
00:00:52 verbose #1244 > >
00:00:52 verbose #1245 > >         inl new_code_path = package_dir </> $'$"{!workspace_name}.{!extension}"'
00:00:52 verbose #1246 > >         trace Debug
00:00:52 verbose #1247 > >             fun () => $'"spiral_builder.process_typescript"'
00:00:52 verbose #1248 > >             fun () => { new_code_path }
00:00:52 verbose #1249 > >         inl new_code = new_code_path |> file_system.read_all_text
00:00:52 verbose #1250 > >
00:00:52 verbose #1251 > >         inl main_code_header =
00:00:52 verbose #1252 > >             "// spiral_builder.process_typescript"
00:00:52 verbose #1253 > >         inl main_code = "// spiral_builder.process_typescript"
00:00:52 verbose #1254 > >
00:00:52 verbose #1255 > >         inl cached = new_code |> sm'.contains main_code_header
00:00:52 verbose #1256 > >
00:00:52 verbose #1257 > >         inl new_code =
00:00:52 verbose #1258 > >             if cached
00:00:52 verbose #1259 > >             then new_code
00:00:52 verbose #1260 > >             else
00:00:52 verbose #1261 > >                 new_code
00:00:52 verbose #1262 > >                 |> sm'.replace
00:00:52 verbose #1263 > >                     $'$"\\\"./fable_modules/fable-library-ts.{!version}/"'
00:00:52 verbose #1264 > >
00:00:52 verbose #1265 > > $'$"\\\"{!workspace_root}/lib/typescript/fable/fable_modules/fable-library-ts.{!
00:00:52 verbose #1266 > > version}/"'
00:00:52 verbose #1267 > >                 |> sm'.replace_regex
00:00:52 verbose #1268 > >                     "\\s\\sdefaultOf\\(\\);"
00:00:52 verbose #1269 > >                     " defaultOf::<()>();"
00:00:52 verbose #1270 > >
00:00:52 verbose #1271 > >         if not cached then
00:00:52 verbose #1272 > >             $'$"{!new_code}\\n\\n{!main_code}\\n"'
00:00:52 verbose #1273 > >             |> file_system.write_all_text_exists new_code_path
00:00:52 verbose #1274 > >
00:00:52 verbose #1275 > >         inl command = $'$"bun run \\\"{!new_code_path}\\\""'
00:00:52 verbose #1276 > >         inl environment_variables =
00:00:52 verbose #1277 > >             match "~/.bun/bin" |> env.append_path with
00:00:52 verbose #1278 > >             | Some path => [[ "PATH", path ]]
00:00:52 verbose #1279 > >             | None => [[]]
00:00:52 verbose #1280 > >             ++ [[
00:00:52 verbose #1281 > >                 "TRACE_LEVEL", "Verbose"
00:00:52 verbose #1282 > >             ]]
00:00:52 verbose #1283 > >             |> listm'.box
00:00:52 verbose #1284 > >             |> listm'.to_array'
00:00:52 verbose #1285 > >         inl exit_code, run_result =
00:00:52 verbose #1286 > >             runtime.execution_options fun x => { x with
00:00:52 verbose #1287 > >                 command
00:00:52 verbose #1288 > >                 environment_variables
00:00:52 verbose #1289 > >                 working_directory = workspace_root_external |> resultm.box |>
00:00:52 verbose #1290 > > resultm.ok'
00:00:52 verbose #1291 > >             }
00:00:52 verbose #1292 > >             |> runtime.execute_with_options
00:00:52 verbose #1293 > >
00:00:52 verbose #1294 > >         inl external_command =
00:00:52 verbose #1295 > >             inl vars =
00:00:52 verbose #1296 > >                 a environment_variables
00:00:52 verbose #1297 > >                 |> am.map fun k, v => $'$"$env:{!k}=\'\'{!v}\'\'"' : string
00:00:52 verbose #1298 > >                 |> fun x => x : _ i32 _
00:00:52 verbose #1299 > >                 |> seq.of_array
00:00:52 verbose #1300 > >                 |> sm'.concat ";"
00:00:52 verbose #1301 > >             $'$"pwsh -c \'{!vars}; {!command}\'"' : string
00:00:52 verbose #1302 > >         if exit_code = 0 then
00:00:52 verbose #1303 > >             inl output =
00:00:52 verbose #1304 > >                 try
00:00:52 verbose #1305 > >                     fun () =>
00:00:52 verbose #1306 > >                         run_result
00:00:52 verbose #1307 > >                         |> sm'.split "\n"
00:00:52 verbose #1308 > >                         |> fun x => a x : _ i32 _
00:00:52 verbose #1309 > >                         |> seq.of_array
00:00:52 verbose #1310 > >                         |> sm'.concat "\n"
00:00:52 verbose #1311 > >                     fun ex =>
00:00:52 verbose #1312 > >                         trace Critical
00:00:52 verbose #1313 > >                             fun () => "spiral_builder.process_typescript
00:00:52 verbose #1314 > > Exception"
00:00:52 verbose #1315 > >                             fun () => { ex new_code_path external_command
00:00:52 verbose #1316 > > run_result }
00:00:52 verbose #1317 > >                         None
00:00:52 verbose #1318 > >                 |> optionm'.box
00:00:52 verbose #1319 > >                 |> optionm'.unwrap
00:00:52 verbose #1320 > >
00:00:52 verbose #1321 > >             { extension = Some extension; code = Some new_code; output = Some
00:00:52 verbose #1322 > > output }
00:00:52 verbose #1323 > >         else
00:00:52 verbose #1324 > >             trace Critical
00:00:52 verbose #1325 > >                 fun () => "spiral_builder.process_typescript / error"
00:00:52 verbose #1326 > >                 fun () => { exit_code run_result new_code_path external_command
00:00:52 verbose #1327 > > }
00:00:52 verbose #1328 > >             { extension = Some extension; code = None; output = None }
00:00:52 verbose #1329 > 00:00:51   debug #26 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5b9ca6128f994ea1a885e3552bb2f5a08fb0017b4e8abed8a97b34fbe332e827/main.spi
00:00:52 verbose #1330 > >
00:00:52 verbose #1331 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:52 verbose #1332 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:52 verbose #1333 > > │ ## python                                                                    │
00:00:52 verbose #1334 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:52 verbose #1335 > >
00:00:52 verbose #1336 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:52 verbose #1337 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:52 verbose #1338 > > │ ### process_python                                                           │
00:00:52 verbose #1339 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:52 verbose #1340 > >
00:00:52 verbose #1341 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:52 verbose #1342 > > inl process_python { fs_path deps trace_level } =
00:00:52 verbose #1343 > >     inl extension = "py"
00:00:52 verbose #1344 > >     inl is_trace = trace_level = Verbose
00:00:52 verbose #1345 > >     inl _trace (fn : () -> string) =
00:00:52 verbose #1346 > >         if is_trace
00:00:52 verbose #1347 > >         then trace Info (fun () => $'$"spiral_builder.process_python / {!fn
00:00:52 verbose #1348 > > ()}"') id
00:00:52 verbose #1349 > >         else fn () |> console.write_line
00:00:52 verbose #1350 > >
00:00:52 verbose #1351 > >     inl code = fs_path |> file_system.read_all_text
00:00:52 verbose #1352 > >
00:00:52 verbose #1353 > >     inl hash_hex = (extension, code) |> sm'.format_debug |> crypto.hash_text
00:00:52 verbose #1354 > >
00:00:52 verbose #1355 > >     inl workspace_name = "spiral_builder"
00:00:52 verbose #1356 > >
00:00:52 verbose #1357 > >     inl workspace_root_external = file_system.get_workspace_root_external ()
00:00:52 verbose #1358 > >     inl workspace_root = workspace_root_external |> resultm.box |>
00:00:52 verbose #1359 > > resultm.unwrap_or_else id
00:00:52 verbose #1360 > >
00:00:52 verbose #1361 > >     inl package_dir =
00:00:52 verbose #1362 > >         get_package_dir { workspace_root name = workspace_name; target = Some
00:00:52 verbose #1363 > > Python; hash = Some hash_hex }
00:00:52 verbose #1364 > >
00:00:52 verbose #1365 > >     inl fsproj_path =
00:00:52 verbose #1366 > >         persist_code_project
00:00:52 verbose #1367 > >             {
00:00:52 verbose #1368 > >                 workspace_root
00:00:52 verbose #1369 > >                 package_dir
00:00:52 verbose #1370 > >                 packages = [[ "Fable.Core" ]]
00:00:52 verbose #1371 > >                 modules = [[]]
00:00:52 verbose #1372 > >                 name = workspace_name
00:00:52 verbose #1373 > >                 code
00:00:52 verbose #1374 > >             }
00:00:52 verbose #1375 > >
00:00:52 verbose #1376 > >     inl lib_path = workspace_root </> "lib/python/fable/fable_modules"
00:00:52 verbose #1377 > >
00:00:52 verbose #1378 > >     inl lib_link_target_path = lib_path </> $'$"fable_library"'
00:00:52 verbose #1379 > >     inl lib_link_path = package_dir </> $'$"fable_modules/fable_library"'
00:00:52 verbose #1380 > >
00:00:52 verbose #1381 > >     lib_link_path |> file_system.link_directory lib_link_target_path
00:00:52 verbose #1382 > >
00:00:52 verbose #1383 > >     inl exit_code, dotnet_fable_result =
00:00:52 verbose #1384 > >         execute_dotnet_fable { workspace_root_external fsproj_path extension
00:00:52 verbose #1385 > > package_dir }
00:00:52 verbose #1386 > >
00:00:52 verbose #1387 > >     if exit_code <>. 0 then
00:00:52 verbose #1388 > >         trace Critical
00:00:52 verbose #1389 > >             fun () => $'$"spiral_builder.process_python"'
00:00:52 verbose #1390 > >             fun () => { exit_code dotnet_fable_result }
00:00:52 verbose #1391 > >         { extension = Some extension; code = None; output = Some
00:00:52 verbose #1392 > > dotnet_fable_result }
00:00:52 verbose #1393 > >     else
00:00:52 verbose #1394 > >         inl deps =
00:00:52 verbose #1395 > >             deps
00:00:52 verbose #1396 > >             |> am'.vec_map fun dep =>
00:00:52 verbose #1397 > >                 inl dep = dep |> sm'.from_std_string
00:00:52 verbose #1398 > >                 if dep |> sm'.contains "="
00:00:52 verbose #1399 > >                 then dep
00:00:52 verbose #1400 > >                 else $'$"\\"{!dep}\\":\\"*\\""'
00:00:52 verbose #1401 > >             |> am'.from_vec
00:00:52 verbose #1402 > >             |> fun x => x : _ i32 _
00:00:52 verbose #1403 > >             |> seq.of_array'
00:00:52 verbose #1404 > >             |> sm'.concat ",\n"
00:00:52 verbose #1405 > >
00:00:52 verbose #1406 > >         inl package_json_content =
00:00:52 verbose #1407 > >             $'$"{{"'
00:00:52 verbose #1408 > >             +. $'$"  \\\"name\\\": \\\"spiral_builder_{!hash_hex}\\\","'
00:00:52 verbose #1409 > >             +. $'$"  \\\"dependencies\\\": {{"'
00:00:52 verbose #1410 > >             +. deps
00:00:52 verbose #1411 > >             +. $'$"  }},"'
00:00:52 verbose #1412 > >             +. $'$"    \\\"devDependencies\\\": {{"'
00:00:52 verbose #1413 > >             +. $'$"  }},"'
00:00:52 verbose #1414 > >             +. $'$"}}"'
00:00:52 verbose #1415 > >
00:00:52 verbose #1416 > >         inl workspace_package_json_content =
00:00:52 verbose #1417 > >             ""
00:00:52 verbose #1418 > >
00:00:52 verbose #1419 > >         inl package_json_path = package_dir </> "package.json"
00:00:52 verbose #1420 > >
00:00:52 verbose #1421 > >         inl workspace_dir = package_dir </> "../.."
00:00:52 verbose #1422 > >         inl workspace_package_json_path = workspace_dir </> "package.json"
00:00:52 verbose #1423 > >
00:00:52 verbose #1424 > >         package_json_content |> file_system.write_all_text_exists
00:00:52 verbose #1425 > > package_json_path
00:00:52 verbose #1426 > >
00:00:52 verbose #1427 > >         workspace_package_json_content |> file_system.write_all_text_exists
00:00:52 verbose #1428 > > workspace_package_json_path
00:00:52 verbose #1429 > >
00:00:52 verbose #1430 > >         inl new_code_path = package_dir </> $'$"{!workspace_name}.{!extension}"'
00:00:52 verbose #1431 > >         trace Debug
00:00:52 verbose #1432 > >             fun () => $'"spiral_builder.process_python"'
00:00:52 verbose #1433 > >             fun () => { new_code_path }
00:00:52 verbose #1434 > >         inl new_code = new_code_path |> file_system.read_all_text
00:00:52 verbose #1435 > >
00:00:52 verbose #1436 > >         inl main_code_header =
00:00:52 verbose #1437 > >             "# spiral_builder.process_python"
00:00:52 verbose #1438 > >         inl main_code = "# spiral_builder.process_python"
00:00:52 verbose #1439 > >
00:00:52 verbose #1440 > >         inl cached = new_code |> sm'.contains main_code_header
00:00:52 verbose #1441 > >
00:00:52 verbose #1442 > >         inl new_code =
00:00:52 verbose #1443 > >             if cached
00:00:52 verbose #1444 > >             then new_code
00:00:52 verbose #1445 > >             else
00:00:52 verbose #1446 > >                 new_code
00:00:52 verbose #1447 > >                 |> sm'.replace
00:00:52 verbose #1448 > >                     ("),)" +. !\($'"\\\";\\\".into()"'))
00:00:52 verbose #1449 > >                     "));"
00:00:52 verbose #1450 > >                 |> sm'.replace_regex
00:00:52 verbose #1451 > >                     "\\s\\sdefaultOf\\(\\);"
00:00:52 verbose #1452 > >                     " defaultOf::<()>();"
00:00:52 verbose #1453 > >
00:00:52 verbose #1454 > >         if not cached
00:00:52 verbose #1455 > >         then
00:00:52 verbose #1456 > >             $'$"{!new_code}\\n\\n{!main_code}\\n"'
00:00:52 verbose #1457 > >             |> file_system.write_all_text_exists new_code_path
00:00:52 verbose #1458 > >
00:00:52 verbose #1459 > >         inl command = $'$"python \\\"{!new_code_path}\\\""'
00:00:52 verbose #1460 > >         inl environment_variables =
00:00:52 verbose #1461 > >             ;[[
00:00:52 verbose #1462 > >                 "TRACE_LEVEL", "Verbose"
00:00:52 verbose #1463 > >             ]]
00:00:52 verbose #1464 > >         inl exit_code, run_result =
00:00:52 verbose #1465 > >             runtime.execution_options fun x => { x with
00:00:52 verbose #1466 > >                 command
00:00:52 verbose #1467 > >                 environment_variables
00:00:52 verbose #1468 > >                 working_directory = workspace_root_external |> resultm.box |>
00:00:52 verbose #1469 > > resultm.ok'
00:00:52 verbose #1470 > >             }
00:00:52 verbose #1471 > >             |> runtime.execute_with_options
00:00:52 verbose #1472 > >
00:00:52 verbose #1473 > >         inl external_command =
00:00:52 verbose #1474 > >             inl vars =
00:00:52 verbose #1475 > >                 a environment_variables
00:00:52 verbose #1476 > >                 |> am.map fun k, v => $'$"$env:{!k}=\'\'{!v}\'\'"' : string
00:00:52 verbose #1477 > >                 |> fun x => x : _ i32 _
00:00:52 verbose #1478 > >                 |> seq.of_array
00:00:52 verbose #1479 > >                 |> sm'.concat ";"
00:00:52 verbose #1480 > >             $'$"pwsh -c \'{!vars}; {!command}\'"' : string
00:00:52 verbose #1481 > >         if exit_code = 0 then
00:00:52 verbose #1482 > >             inl output =
00:00:52 verbose #1483 > >                 try
00:00:52 verbose #1484 > >                     fun () =>
00:00:52 verbose #1485 > >                         run_result
00:00:52 verbose #1486 > >                         |> sm'.split "\n"
00:00:52 verbose #1487 > >                         |> fun x => a x : _ i32 _
00:00:52 verbose #1488 > >                         |> seq.of_array
00:00:52 verbose #1489 > >                         |> sm'.concat "\n"
00:00:52 verbose #1490 > >                     fun ex =>
00:00:52 verbose #1491 > >                         trace Critical
00:00:52 verbose #1492 > >                             fun () => "spiral_builder.process_python
00:00:52 verbose #1493 > > Exception"
00:00:52 verbose #1494 > >                             fun () => { ex run_result new_code_path
00:00:52 verbose #1495 > > external_command }
00:00:52 verbose #1496 > >                         None
00:00:52 verbose #1497 > >                 |> optionm'.box
00:00:52 verbose #1498 > >                 |> optionm'.unwrap
00:00:52 verbose #1499 > >
00:00:52 verbose #1500 > >             { extension = Some extension; code = Some new_code; output = Some
00:00:52 verbose #1501 > > output }
00:00:52 verbose #1502 > >         else
00:00:52 verbose #1503 > >             trace Critical
00:00:52 verbose #1504 > >                 fun () => "spiral_builder.process_python / error"
00:00:52 verbose #1505 > >                 fun () => { exit_code run_result new_code_path external_command
00:00:52 verbose #1506 > > }
00:00:52 verbose #1507 > >             { extension = Some extension; code = None; output = None }
00:00:53 verbose #1508 > 00:00:52   debug #27 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0459d642ab5fc55f262229451842c8fdba1067ede740272c2174be251a7a3bb2/main.spi
00:00:53 verbose #1509 > >
00:00:53 verbose #1510 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:53 verbose #1511 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:53 verbose #1512 > > │ ## cuda                                                                      │
00:00:53 verbose #1513 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:53 verbose #1514 > >
00:00:53 verbose #1515 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:53 verbose #1516 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:53 verbose #1517 > > │ ### process_cuda                                                             │
00:00:53 verbose #1518 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:53 verbose #1519 > >
00:00:53 verbose #1520 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:53 verbose #1521 > > inl process_cuda { py_path env deps } =
00:00:53 verbose #1522 > >     inl extension = "py"
00:00:53 verbose #1523 > >
00:00:53 verbose #1524 > >     inl new_code_path = py_path
00:00:53 verbose #1525 > >     inl new_code = new_code_path |> file_system.read_all_text
00:00:53 verbose #1526 > >
00:00:53 verbose #1527 > >     inl workspace_root_external = file_system.get_workspace_root_external ()
00:00:53 verbose #1528 > >     inl workspace_root = workspace_root_external |> resultm.box |>
00:00:53 verbose #1529 > > resultm.unwrap_or_else id
00:00:53 verbose #1530 > >
00:00:53 verbose #1531 > >     inl package_dir = new_code_path |> file_system.get_directory_name
00:00:53 verbose #1532 > >
00:00:53 verbose #1533 > >     inl manifest_path =
00:00:53 verbose #1534 > >         match env with
00:00:53 verbose #1535 > >         | Pip => package_dir </> "requirements.txt"
00:00:53 verbose #1536 > >         | Poetry => package_dir </> "pyproject.toml"
00:00:53 verbose #1537 > >
00:00:53 verbose #1538 > >     inl deps =
00:00:53 verbose #1539 > >         deps
00:00:53 verbose #1540 > >         |> am'.vec_map fun dep =>
00:00:53 verbose #1541 > >             inl dep = dep |> sm'.from_std_string
00:00:53 verbose #1542 > >             if dep |> sm'.contains "="
00:00:53 verbose #1543 > >             then dep
00:00:53 verbose #1544 > >             elif dep |> sm'.ends_with "]]"
00:00:53 verbose #1545 > >             then dep |> sm'.replace "[[" $'$"={{version=\'*\',features=[["' |>
00:00:53 verbose #1546 > > fun x => $'$"{!x}}}"'
00:00:53 verbose #1547 > >             else $'$"{!dep}=\'*\'"'
00:00:53 verbose #1548 > >         |> am'.from_vec
00:00:53 verbose #1549 > >         |> fun x => x : _ i32 _
00:00:53 verbose #1550 > >         |> seq.of_array'
00:00:53 verbose #1551 > >         |> sm'.concat "\n"
00:00:53 verbose #1552 > >
00:00:53 verbose #1553 > >     inl exit_code, run_result =
00:00:53 verbose #1554 > >         if deps = ""
00:00:53 verbose #1555 > >         then 0, ""
00:00:53 verbose #1556 > >         else
00:00:53 verbose #1557 > >             inl manifest =
00:00:53 verbose #1558 > >                 match env with
00:00:53 verbose #1559 > >                 | Pip =>
00:00:53 verbose #1560 > >                     deps
00:00:53 verbose #1561 > >                 | Poetry =>
00:00:53 verbose #1562 > >                     $'$"[[tool.poetry]]"'
00:00:53 verbose #1563 > >                     +#. $'$"name = \\\"test\\\""'
00:00:53 verbose #1564 > >                     +#. $'$"version = \\\"0.0.1\\\""'
00:00:53 verbose #1565 > >                     +#. $'$"description = \\\"\\\""'
00:00:53 verbose #1566 > >                     +#. $'$"authors = [[]]"'
00:00:53 verbose #1567 > >                     +#. $'$""'
00:00:53 verbose #1568 > >                     +#. $'$"[[tool.poetry.dependencies]]"'
00:00:53 verbose #1569 > >                     +#. $'$"python=\\\"~3.12\\\""'
00:00:53 verbose #1570 > >                     +#. $'$"{!deps}"'
00:00:53 verbose #1571 > >                     +#. $'$""'
00:00:53 verbose #1572 > >                     +#. $'$"[[build-system]]"'
00:00:53 verbose #1573 > >                     +#. $'$"requires = [[\\\"poetry-core\\\"]]"'
00:00:53 verbose #1574 > >                     +#. $'$"build-backend = \\\"poetry.core.masonry.api\\\""'
00:00:53 verbose #1575 > >
00:00:53 verbose #1576 > >             manifest |> file_system.write_all_text_exists manifest_path
00:00:53 verbose #1577 > >
00:00:53 verbose #1578 > >             runtime.execution_options fun x => { x with
00:00:53 verbose #1579 > >                 command =
00:00:53 verbose #1580 > >                     match env with
00:00:53 verbose #1581 > >                     | Pip => $'$"pip install -r requirements.txt"'
00:00:53 verbose #1582 > >                     | Poetry => $'$"poetry install"'
00:00:53 verbose #1583 > >                 working_directory = package_dir |> optionm'.some'
00:00:53 verbose #1584 > >             }
00:00:53 verbose #1585 > >             |> runtime.execute_with_options
00:00:53 verbose #1586 > >
00:00:53 verbose #1587 > >     if exit_code <>. 0 then
00:00:53 verbose #1588 > >         trace Critical
00:00:53 verbose #1589 > >             fun () => "spiral_builder.process_cuda / env install error"
00:00:53 verbose #1590 > >             fun () => { env exit_code run_result new_code_path }
00:00:53 verbose #1591 > >         { extension = Some extension; code = None; output = None }
00:00:53 verbose #1592 > >     else
00:00:53 verbose #1593 > >         inl command =
00:00:53 verbose #1594 > >             match env with
00:00:53 verbose #1595 > >             | Pip => $'$"python \\\"{!new_code_path}\\\""'
00:00:53 verbose #1596 > >             | Poetry => $'$"poetry run python \\\"{!new_code_path}\\\""'
00:00:53 verbose #1597 > >         inl environment_variables =
00:00:53 verbose #1598 > >             ;[[
00:00:53 verbose #1599 > >                 "TRACE_LEVEL", "Verbose"
00:00:53 verbose #1600 > >             ]]
00:00:53 verbose #1601 > >         inl exit_code, run_result =
00:00:53 verbose #1602 > >             runtime.execution_options fun x => { x with
00:00:53 verbose #1603 > >                 command
00:00:53 verbose #1604 > >                 environment_variables
00:00:53 verbose #1605 > >                 working_directory = package_dir |> optionm'.some'
00:00:53 verbose #1606 > >             }
00:00:53 verbose #1607 > >             |> runtime.execute_with_options
00:00:53 verbose #1608 > >
00:00:53 verbose #1609 > >         inl external_command =
00:00:53 verbose #1610 > >             inl vars =
00:00:53 verbose #1611 > >                 a environment_variables
00:00:53 verbose #1612 > >                 |> am.map fun k, v => $'$"$env:{!k}=\'\'{!v}\'\'"' : string
00:00:53 verbose #1613 > >                 |> fun x => x : _ i32 _
00:00:53 verbose #1614 > >                 |> seq.of_array
00:00:53 verbose #1615 > >                 |> sm'.concat ";"
00:00:53 verbose #1616 > >             $'$"pwsh -c \'{!vars}; {!command}\'"' : string
00:00:53 verbose #1617 > >         if exit_code = 0
00:00:53 verbose #1618 > >             || (run_result |> sm'.contains
00:00:53 verbose #1619 > > "cupy_backends.cuda.api.runtime.CUDARuntimeError: cudaErrorInsufficientDriver")
00:00:53 verbose #1620 > > then
00:00:53 verbose #1621 > >             inl output =
00:00:53 verbose #1622 > >                 try
00:00:53 verbose #1623 > >                     fun () =>
00:00:53 verbose #1624 > >                         run_result
00:00:53 verbose #1625 > >                         |> sm'.split "\n"
00:00:53 verbose #1626 > >                         |> fun x => a x : _ i32 _
00:00:53 verbose #1627 > >                         |> seq.of_array
00:00:53 verbose #1628 > >                         |> sm'.concat "\n"
00:00:53 verbose #1629 > >                     fun ex =>
00:00:53 verbose #1630 > >                         trace Critical
00:00:53 verbose #1631 > >                             fun () => "spiral_builder.process_cuda / Exception"
00:00:53 verbose #1632 > >                             fun () => { ex run_result new_code_path
00:00:53 verbose #1633 > > external_command }
00:00:53 verbose #1634 > >                         None
00:00:53 verbose #1635 > >                 |> optionm'.box
00:00:53 verbose #1636 > >                 |> optionm'.unwrap
00:00:53 verbose #1637 > >
00:00:53 verbose #1638 > >             { extension = Some extension; code = Some new_code; output = Some
00:00:53 verbose #1639 > > output }
00:00:53 verbose #1640 > >         else
00:00:53 verbose #1641 > >             trace Critical
00:00:53 verbose #1642 > >                 fun () => "spiral_builder.process_cuda / error"
00:00:53 verbose #1643 > >                 fun () => { exit_code run_result new_code_path external_command
00:00:53 verbose #1644 > > }
00:00:53 verbose #1645 > >             { extension = Some extension; code = None; output = None }
00:00:53 verbose #1646 > 00:00:52   debug #28 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5066b7f182e22c1f1468cb95c374c0f076ebae2194298b8ed8679e530c3c1f26/main.spi
00:00:53 verbose #1647 > >
00:00:53 verbose #1648 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:53 verbose #1649 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:53 verbose #1650 > > │ ## fsharp                                                                    │
00:00:53 verbose #1651 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:53 verbose #1652 > >
00:00:53 verbose #1653 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:53 verbose #1654 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:53 verbose #1655 > > │ ### process_fsharp                                                           │
00:00:53 verbose #1656 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:53 verbose #1657 > >
00:00:53 verbose #1658 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:53 verbose #1659 > > inl process_fsharp { spi_path } =
00:00:53 verbose #1660 > >     inl extension = "fsx"
00:00:53 verbose #1661 > >
00:00:53 verbose #1662 > >     inl new_code_path = spi_path
00:00:53 verbose #1663 > >     inl new_code = new_code_path |> file_system.read_all_text
00:00:53 verbose #1664 > >
00:00:53 verbose #1665 > >     inl workspace_root_external = file_system.get_workspace_root_external ()
00:00:53 verbose #1666 > >     inl workspace_root = workspace_root_external |> resultm.box |>
00:00:53 verbose #1667 > > resultm.unwrap_or_else id
00:00:53 verbose #1668 > >
00:00:53 verbose #1669 > >     inl supervisor_path = workspace_root </>
00:00:53 verbose #1670 > > $"apps/spiral/dist/Supervisor!(platform.get_executable_suffix ())"
00:00:53 verbose #1671 > >     inl code_dir = new_code_path |> file_system.get_directory_name
00:00:53 verbose #1672 > >     inl file_name = new_code_path |> file_system.get_file_name_without_extension
00:00:53 verbose #1673 > >     inl output_path = code_dir </> $'$"{!file_name}.{!extension}"'
00:00:53 verbose #1674 > >     inl command = $'$"{!supervisor_path} --build-file \\\"{!new_code_path}\\\"
00:00:53 verbose #1675 > > \\\"{!output_path}\\\""'
00:00:53 verbose #1676 > >     inl environment_variables =
00:00:53 verbose #1677 > >         ;[[
00:00:53 verbose #1678 > >             "TRACE_LEVEL", "Verbose"
00:00:53 verbose #1679 > >         ]]
00:00:53 verbose #1680 > >     inl exit_code, run_result =
00:00:53 verbose #1681 > >         runtime.execution_options fun x => { x with
00:00:53 verbose #1682 > >             command
00:00:53 verbose #1683 > >             environment_variables
00:00:53 verbose #1684 > >             working_directory = workspace_root_external |> resultm.box |>
00:00:53 verbose #1685 > > resultm.ok'
00:00:53 verbose #1686 > >         }
00:00:53 verbose #1687 > >         |> runtime.execute_with_options
00:00:53 verbose #1688 > >
00:00:53 verbose #1689 > >     inl external_command =
00:00:53 verbose #1690 > >         inl vars =
00:00:53 verbose #1691 > >             a environment_variables
00:00:53 verbose #1692 > >             |> am.map fun k, v => $'$"$env:{!k}=\'\'{!v}\'\'"' : string
00:00:53 verbose #1693 > >             |> fun x => x : _ i32 _
00:00:53 verbose #1694 > >             |> seq.of_array
00:00:53 verbose #1695 > >             |> sm'.concat ";"
00:00:53 verbose #1696 > >         $'$"pwsh -c \'{!vars}; {!command}\'"' : string
00:00:53 verbose #1697 > >     if exit_code = 0 then
00:00:53 verbose #1698 > >         inl output =
00:00:53 verbose #1699 > >             try
00:00:53 verbose #1700 > >                 fun () =>
00:00:53 verbose #1701 > >                     run_result
00:00:53 verbose #1702 > >                     |> sm'.split "\n"
00:00:53 verbose #1703 > >                     |> fun x => a x : _ i32 _
00:00:53 verbose #1704 > >                     |> seq.of_array
00:00:53 verbose #1705 > >                     |> sm'.concat "\n"
00:00:53 verbose #1706 > >                 fun ex =>
00:00:53 verbose #1707 > >                     trace Critical
00:00:53 verbose #1708 > >                         fun () => "spiral_builder.process_fsharp / Exception"
00:00:53 verbose #1709 > >                         fun () => { ex run_result new_code_path external_command
00:00:53 verbose #1710 > > }
00:00:53 verbose #1711 > >                     None
00:00:53 verbose #1712 > >             |> optionm'.box
00:00:53 verbose #1713 > >             |> optionm'.unwrap
00:00:53 verbose #1714 > >
00:00:53 verbose #1715 > >         { extension = Some extension; code = Some new_code; output = Some output
00:00:53 verbose #1716 > > }
00:00:53 verbose #1717 > >     else
00:00:53 verbose #1718 > >         trace Critical
00:00:53 verbose #1719 > >             fun () => "spiral_builder.process_fsharp / error"
00:00:53 verbose #1720 > >             fun () => { exit_code run_result new_code_path external_command }
00:00:53 verbose #1721 > >         { extension = Some extension; code = None; output = None }
00:00:54 verbose #1722 > 00:00:53   debug #29 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5e5e5c3fef32c0c2a1cf418d058f8721b9240391ca353a9a4aabe4a4d19a1f18/main.spi
00:00:54 verbose #1723 > >
00:00:54 verbose #1724 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:54 verbose #1725 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:54 verbose #1726 > > │ ## run                                                                       │
00:00:54 verbose #1727 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:54 verbose #1728 > >
00:00:54 verbose #1729 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:54 verbose #1730 > > let rec run trace_level (matches : runtime.arg_matches) : async.future_pin
00:00:54 verbose #1731 > > (resultm.result' string string) =
00:00:54 verbose #1732 > >     fun () =>
00:00:54 verbose #1733 > >         match matches |> runtime.matches_subcommand |> optionm'.unbox with
00:00:54 verbose #1734 > >         | Some (subcommand, arg_matches)
00:00:54 verbose #1735 > >                 when (subcommand |> sm'.from_std_string) = (get_args () .cuda |>
00:00:54 verbose #1736 > > fst) =>
00:00:54 verbose #1737 > >
00:00:54 verbose #1738 > >             inl py_path =
00:00:54 verbose #1739 > >                 arg_matches
00:00:54 verbose #1740 > >                 |> runtime.matches_get_one ((get_args () .cuda |> snd).py_path
00:00:54 verbose #1741 > > |> fst)
00:00:54 verbose #1742 > >                 |> optionm'.unbox
00:00:54 verbose #1743 > >                 |> optionm.value
00:00:54 verbose #1744 > >                 |> sm'.from_std_string
00:00:54 verbose #1745 > >
00:00:54 verbose #1746 > >             inl env =
00:00:54 verbose #1747 > >                 arg_matches
00:00:54 verbose #1748 > >                 |> runtime.matches_get_one ((get_args () .cuda |> snd).env |>
00:00:54 verbose #1749 > > fst)
00:00:54 verbose #1750 > >                 |> optionm'.unbox
00:00:54 verbose #1751 > >                 |> optionm.map (
00:00:54 verbose #1752 > >                     sm'.from_std_string
00:00:54 verbose #1753 > >                     >> reflection.union_try_pick
00:00:54 verbose #1754 > >                 )
00:00:54 verbose #1755 > >                 |> optionm'.flatten
00:00:54 verbose #1756 > >                 |> optionm'.default_value Pip
00:00:54 verbose #1757 > >
00:00:54 verbose #1758 > >             inl deps : am'.vec sm'.std_string =
00:00:54 verbose #1759 > >                 arg_matches
00:00:54 verbose #1760 > >                 |> runtime.matches_get_many ((get_args () .cuda |> snd).deps |>
00:00:54 verbose #1761 > > fst)
00:00:54 verbose #1762 > >                 |> optionm'.unbox
00:00:54 verbose #1763 > >                 |> optionm'.default_value (;[[]] |> am'.to_vec)
00:00:54 verbose #1764 > >
00:00:54 verbose #1765 > >             inl command_result =
00:00:54 verbose #1766 > >                 process_cuda { py_path env deps }
00:00:54 verbose #1767 > >                 |> fun { extension code output } =>
00:00:54 verbose #1768 > >                     ;[[
00:00:54 verbose #1769 > >                         "extension", extension |> optionm'.default_value ""
00:00:54 verbose #1770 > >                         "code", code |> optionm'.default_value ""
00:00:54 verbose #1771 > >                         "output", output |> optionm'.default_value ""
00:00:54 verbose #1772 > >                     ]]
00:00:54 verbose #1773 > >
00:00:54 verbose #1774 > >             ;[[
00:00:54 verbose #1775 > >                 "command_result",
00:00:54 verbose #1776 > >                 command_result
00:00:54 verbose #1777 > >                 |> am'.to_vec
00:00:54 verbose #1778 > >                 |> am'.vec_map' fun k, v =>
00:00:54 verbose #1779 > >                     new_pair (sm'.to_std_string k) (sm'.to_std_string v)
00:00:54 verbose #1780 > >                 |> mapm.b_tree_map_from_vec_pairs
00:00:54 verbose #1781 > >                 |> sm'.serialize
00:00:54 verbose #1782 > >                 |> resultm.unwrap'
00:00:54 verbose #1783 > >                 |> sm'.from_std_string
00:00:54 verbose #1784 > >             ]]
00:00:54 verbose #1785 > >
00:00:54 verbose #1786 > >         | Some (subcommand, arg_matches)
00:00:54 verbose #1787 > >                 when (subcommand |> sm'.from_std_string) = (get_args () .fable
00:00:54 verbose #1788 > > |> fst) =>
00:00:54 verbose #1789 > >
00:00:54 verbose #1790 > >             inl fs_path =
00:00:54 verbose #1791 > >                 arg_matches
00:00:54 verbose #1792 > >                 |> runtime.matches_get_one ((get_args () .fable |> snd).fs_path
00:00:54 verbose #1793 > > |> fst)
00:00:54 verbose #1794 > >                 |> optionm'.unbox
00:00:54 verbose #1795 > >                 |> optionm.value
00:00:54 verbose #1796 > >                 |> sm'.from_std_string
00:00:54 verbose #1797 > >
00:00:54 verbose #1798 > >             inl command =
00:00:54 verbose #1799 > >                 arg_matches
00:00:54 verbose #1800 > >                 |> runtime.matches_get_one ((get_args () .fable |> snd).command
00:00:54 verbose #1801 > > |> fst)
00:00:54 verbose #1802 > >                 |> optionm'.unbox
00:00:54 verbose #1803 > >                 |> optionm.map sm'.from_std_string
00:00:54 verbose #1804 > >
00:00:54 verbose #1805 > >             inl command_result =
00:00:54 verbose #1806 > >                 match command with
00:00:54 verbose #1807 > >                 | Some command =>
00:00:54 verbose #1808 > >                     get_command ()
00:00:54 verbose #1809 > >                     |> runtime.command_get_matches_from (
00:00:54 verbose #1810 > >                         $'$"_ {!command} --fs-path \\\"{!fs_path}\\\""' |>
00:00:54 verbose #1811 > > runtime.split_args |> resultm.get
00:00:54 verbose #1812 > >                     )
00:00:54 verbose #1813 > >                     |> run trace_level
00:00:54 verbose #1814 > >                     |> async.await
00:00:54 verbose #1815 > >                     |> resultm.unwrap'
00:00:54 verbose #1816 > >                 | None => "{}"
00:00:54 verbose #1817 > >
00:00:54 verbose #1818 > >             ;[[
00:00:54 verbose #1819 > >                 "command_result",
00:00:54 verbose #1820 > >                 command_result
00:00:54 verbose #1821 > >             ]]
00:00:54 verbose #1822 > >
00:00:54 verbose #1823 > >         | Some (subcommand, arg_matches)
00:00:54 verbose #1824 > >             when (subcommand |> sm'.from_std_string) = (get_args () .dib |> fst)
00:00:54 verbose #1825 > > =>
00:00:54 verbose #1826 > >
00:00:54 verbose #1827 > >             inl path =
00:00:54 verbose #1828 > >                 arg_matches
00:00:54 verbose #1829 > >                 |> runtime.matches_get_one ((get_args () .dib |> snd).path |>
00:00:54 verbose #1830 > > fst)
00:00:54 verbose #1831 > >                 |> optionm'.map'' (
00:00:54 verbose #1832 > >                     sm'.from_std_string
00:00:54 verbose #1833 > >                     >> file_system.absolute_path
00:00:54 verbose #1834 > >                 )
00:00:54 verbose #1835 > >                 |> optionm'.unwrap
00:00:54 verbose #1836 > >
00:00:54 verbose #1837 > >             inl retries =
00:00:54 verbose #1838 > >                 arg_matches
00:00:54 verbose #1839 > >                 |> runtime.matches_get_one ((get_args () .dib |> snd).retries |>
00:00:54 verbose #1840 > > fst)
00:00:54 verbose #1841 > >                 |> optionm'.default_value' 1u8
00:00:54 verbose #1842 > >
00:00:54 verbose #1843 > >             inl working_directory : optionm'.option' string =
00:00:54 verbose #1844 > >                 arg_matches
00:00:54 verbose #1845 > >                 |> runtime.matches_get_one ((get_args () .dib |>
00:00:54 verbose #1846 > > snd).working_directory |> fst)
00:00:54 verbose #1847 > >
00:00:54 verbose #1848 > >             process_dib { path retries working_directory }
00:00:54 verbose #1849 > >
00:00:54 verbose #1850 > >         | matches =>
00:00:54 verbose #1851 > >             match matches with
00:00:54 verbose #1852 > >             | Some (subcommand, arg_matches)
00:00:54 verbose #1853 > >                     when (subcommand |> sm'.from_std_string) = (get_args ()
00:00:54 verbose #1854 > > .rust |> fst) =>
00:00:54 verbose #1855 > >
00:00:54 verbose #1856 > >                 inl fs_path =
00:00:54 verbose #1857 > >                     arg_matches
00:00:54 verbose #1858 > >                     |> runtime.matches_get_one ((get_args () .rust |>
00:00:54 verbose #1859 > > snd).fs_path |> fst)
00:00:54 verbose #1860 > >                     |> optionm'.unbox
00:00:54 verbose #1861 > >                     |> optionm.value
00:00:54 verbose #1862 > >                     |> sm'.from_std_string
00:00:54 verbose #1863 > >
00:00:54 verbose #1864 > >                 inl deps : am'.vec sm'.std_string =
00:00:54 verbose #1865 > >                     arg_matches
00:00:54 verbose #1866 > >                     |> runtime.matches_get_many ((get_args () .rust |> snd).deps
00:00:54 verbose #1867 > > |> fst)
00:00:54 verbose #1868 > >                     |> optionm'.unbox
00:00:54 verbose #1869 > >                     |> optionm'.default_value (;[[]] |> am'.to_vec)
00:00:54 verbose #1870 > >
00:00:54 verbose #1871 > >                 process_rust { fs_path deps trace_level }
00:00:54 verbose #1872 > >
00:00:54 verbose #1873 > >             | Some (subcommand, arg_matches)
00:00:54 verbose #1874 > >                     when (subcommand |> sm'.from_std_string) = (get_args ()
00:00:54 verbose #1875 > > .typescript |> fst) =>
00:00:54 verbose #1876 > >
00:00:54 verbose #1877 > >                 inl fs_path =
00:00:54 verbose #1878 > >                     arg_matches
00:00:54 verbose #1879 > >                     |> runtime.matches_get_one ((get_args () .typescript |>
00:00:54 verbose #1880 > > snd).fs_path |> fst)
00:00:54 verbose #1881 > >                     |> optionm'.unbox
00:00:54 verbose #1882 > >                     |> optionm.value
00:00:54 verbose #1883 > >                     |> sm'.from_std_string
00:00:54 verbose #1884 > >
00:00:54 verbose #1885 > >                 inl deps : am'.vec sm'.std_string =
00:00:54 verbose #1886 > >                     arg_matches
00:00:54 verbose #1887 > >                     |> runtime.matches_get_many ((get_args () .typescript |>
00:00:54 verbose #1888 > > snd).deps |> fst)
00:00:54 verbose #1889 > >                     |> optionm'.unbox
00:00:54 verbose #1890 > >                     |> optionm'.default_value (;[[]] |> am'.to_vec)
00:00:54 verbose #1891 > >
00:00:54 verbose #1892 > >                 process_typescript { fs_path deps trace_level }
00:00:54 verbose #1893 > >
00:00:54 verbose #1894 > >             | Some (subcommand, arg_matches)
00:00:54 verbose #1895 > >                     when (subcommand |> sm'.from_std_string) = (get_args ()
00:00:54 verbose #1896 > > .python |> fst) =>
00:00:54 verbose #1897 > >                 inl fs_path =
00:00:54 verbose #1898 > >                     arg_matches
00:00:54 verbose #1899 > >                     |> runtime.matches_get_one ((get_args () .python |>
00:00:54 verbose #1900 > > snd).fs_path |> fst)
00:00:54 verbose #1901 > >                     |> optionm'.unbox
00:00:54 verbose #1902 > >                     |> optionm.value
00:00:54 verbose #1903 > >                     |> sm'.from_std_string
00:00:54 verbose #1904 > >
00:00:54 verbose #1905 > >                 inl deps : am'.vec sm'.std_string =
00:00:54 verbose #1906 > >                     arg_matches
00:00:54 verbose #1907 > >                     |> runtime.matches_get_many ((get_args () .python |>
00:00:54 verbose #1908 > > snd).deps |> fst)
00:00:54 verbose #1909 > >                     |> optionm'.unbox
00:00:54 verbose #1910 > >                     |> optionm'.default_value (;[[]] |> am'.to_vec)
00:00:54 verbose #1911 > >
00:00:54 verbose #1912 > >                 process_python { fs_path deps trace_level }
00:00:54 verbose #1913 > >
00:00:54 verbose #1914 > >             | Some (subcommand, arg_matches) =>
00:00:54 verbose #1915 > >                 trace Debug
00:00:54 verbose #1916 > >                     fun () => $'"spiral_builder.run / invalid subcommand"'
00:00:54 verbose #1917 > >                     fun () => { subcommand arg_matches }
00:00:54 verbose #1918 > >
00:00:54 verbose #1919 > >                 { extension = None; code = None; output = None }
00:00:54 verbose #1920 > >             | _ =>
00:00:54 verbose #1921 > >                 { extension = None; code = None; output = None }
00:00:54 verbose #1922 > >             |> fun { extension code output } =>
00:00:54 verbose #1923 > >                 ;[[
00:00:54 verbose #1924 > >                     "extension", extension |> optionm'.default_value ""
00:00:54 verbose #1925 > >                     "code", code |> optionm'.default_value ""
00:00:54 verbose #1926 > >                     "output", output |> optionm'.default_value ""
00:00:54 verbose #1927 > >                 ]]
00:00:54 verbose #1928 > >         |> am'.to_vec
00:00:54 verbose #1929 > >         |> am'.vec_map' fun k, v =>
00:00:54 verbose #1930 > >             new_pair (sm'.to_std_string k) (sm'.to_std_string v)
00:00:54 verbose #1931 > >         |> mapm.b_tree_map_from_vec_pairs
00:00:54 verbose #1932 > >         |> sm'.serialize
00:00:54 verbose #1933 > >         |> resultm.map_error' (sm'.format' >> sm'.from_std_string)
00:00:54 verbose #1934 > >         |> resultm.map' sm'.from_std_string
00:00:54 verbose #1935 > >     |> async.future_init (3, 2) 1
00:00:54 verbose #1936 > 00:00:53   debug #30 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/040bb75e18f99f9a6ab4b6d63be5bf8b26b1c792cf46970ed96f53d752c634ec/main.spi
00:00:54 verbose #1937 > >
00:00:54 verbose #1938 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:54 verbose #1939 > > //// test
00:00:54 verbose #1940 > > ///! rust -d async-walkdir chrono clap encoding_rs encoding_rs_io futures rand
00:00:54 verbose #1941 > > rayon regex serde_json sha2 tokio[['rt-multi-thread']] tokio-stream
00:00:54 verbose #1942 > >
00:00:54 verbose #1943 > > types ()
00:00:54 verbose #1944 > >
00:00:54 verbose #1945 > > inl file_name = "main.fs"
00:00:54 verbose #1946 > > inl code = "3 - 6 |> System.Console.WriteLine\n"
00:00:54 verbose #1947 > >
00:00:54 verbose #1948 > > inl temp_dir, disposable =
00:00:54 verbose #1949 > >     (file_name, code)
00:00:54 verbose #1950 > >     |> sm'.format_debug
00:00:54 verbose #1951 > >     |> crypto.hash_text
00:00:54 verbose #1952 > >     |> file_system.create_temp_dir'
00:00:54 verbose #1953 > > inl fs_path = temp_dir </> file_name
00:00:54 verbose #1954 > >
00:00:54 verbose #1955 > > code |> file_system.write_all_text fs_path
00:00:54 verbose #1956 > >
00:00:54 verbose #1957 > > get_command ()
00:00:54 verbose #1958 > > |> runtime.command_get_matches_from ($'$"_ fable -f \\\"{!fs_path}\\\" -c
00:00:54 verbose #1959 > > \\\"rust -d regex=\'*\'\\\""' |> runtime.split_args |> resultm.get)
00:00:54 verbose #1960 > > |> run Verbose
00:00:54 verbose #1961 > > |> async.block_on
00:00:54 verbose #1962 > > |> resultm.unwrap'
00:00:54 verbose #1963 > > |> sm'.deserialize
00:00:54 verbose #1964 > > |> resultm.unwrap'
00:00:54 verbose #1965 > > |> mapm.get ("command_result" |> sm'.to_std_string)
00:00:54 verbose #1966 > > |> optionm'.unwrap
00:00:54 verbose #1967 > > |> sm'.from_std_string
00:00:54 verbose #1968 > > |> sm'.deserialize
00:00:54 verbose #1969 > > |> resultm.unwrap'
00:00:54 verbose #1970 > > |> fun result =>
00:00:54 verbose #1971 > >     result
00:00:54 verbose #1972 > >     |> mapm.get ("extension" |> sm'.to_std_string)
00:00:54 verbose #1973 > >     |> optionm'.unwrap
00:00:54 verbose #1974 > >     |> sm'.from_std_string
00:00:54 verbose #1975 > >     |> _assert_eq "rs"
00:00:54 verbose #1976 > >     result
00:00:54 verbose #1977 > >     |> mapm.get ("output" |> sm'.to_std_string)
00:00:54 verbose #1978 > >     |> optionm'.unwrap
00:00:54 verbose #1979 > >     |> sm'.from_std_string
00:00:54 verbose #1980 > >     |> _assert_eq "-3"
00:00:54 verbose #1981 > >
00:00:54 verbose #1982 > > disposable |> use |> ignore
00:00:54 verbose #1983 > 00:00:54   debug #31 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7e0ecea49b5c9ae112244372ab3bc4aaf521e3bfa04593af17cb187dc9660802/main.spi
00:01:09 verbose #1984 > >
00:01:09 verbose #1985 > > ╭─[ 14.63s - return value ]────────────────────────────────────────────────────╮
00:01:09 verbose #1986 > > │ 00:00:00 verbose #1 file_system.create_dir / { dir =                   │
00:01:09 verbose #1987 > > │ C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\spiral_builder_c7b1d763 │
00:01:09 verbose #1988 > > │ 1270ddb3a88efbb5b3ed18e5c09e4ebdfb20fa4a30a8a4e65fd1acff\c6422374-71e4-07d4- │
00:01:09 verbose #1989 > > │ 0ba4-c3084b24fbba }                                                          │
00:01:09 verbose #1990 > > │ 00:00:00 verbose #2 file_system.create_dir / { dir =                   │
00:01:09 verbose #1991 > > │ c:\home\git\polyglot\target/spiral_builder\spiral_builder\packages\Rust\bbba │
00:01:09 verbose #1992 > > │ 338a47ca28119f39303b7763a976cf95da9c277df176e65d83bd5db52892 }               │
00:01:09 verbose #1993 > > │ 00:00:00   debug #3 runtime.execute_with_options / { file_name =       │
00:01:09 verbose #1994 > > │ dotnet; arguments = ["fable",                                                │
00:01:09 verbose #1995 > > │ "c:/home/git/polyglot/target/spiral_builder/spiral_builder/packages/Rust/bbb │
00:01:09 verbose #1996 > > │ a338a47ca28119f39303b7763a976cf95da9c277df176e65d83bd5db52892/spiral_builder │
00:01:09 verbose #1997 > > │ .fsproj", "--optimize", "--lang", "rs", "--extension", ".rs", "--outDir",    │
00:01:09 verbose #1998 > > │ "c:\\home\\git\\polyglot\\target/spiral_builder\\spiral_builder\\packages\\R │
00:01:09 verbose #1999 > > │ ust\\bbba338a47ca28119f39303b7763a976cf95da9c277df176e65d83bd5db52892",      │
00:01:09 verbose #2000 > > │ "--define", "_WINDOWS"]; options = { command = dotnet fable                  │
00:01:09 verbose #2001 > > │ "c:/home/git/polyglot/target/spiral_builder/spiral_builder/packages/Rust/bbb │
00:01:09 verbose #2002 > > │ a338a47ca28119f39303b7763a976cf95da9c277df176e65d83bd5db52892/spiral_builder │
00:01:09 verbose #2003 > > │ .fsproj" --optimize --lang rs --extension .rs --outDir                       │
00:01:09 verbose #2004 > > │ "c:\home\git\polyglot\target/spiral_builder\spiral_builder\packages\Rust\bbb │
00:01:09 verbose #2005 > > │ a338a47ca28119f39303b7763a976cf95da9c277df176e65d83bd5db52892" --define      │
00:01:09 verbose #2006 > > │ _WINDOWS; cancellation_token = None; environment_variables = Array(MutCell([ │
00:01:09 verbose #2007 > > │ ])); on_line = None; stdin = None; trace = true; working_directory = None }  │
00:01:09 verbose #2008 > > │ }                                                                            │
00:01:09 verbose #2009 > > │ 00:00:00 ...bose #21 > -3                                              │
00:01:09 verbose #2010 > > │ 00:00:02 verbose #22 runtime.execute_with_options / result / {         │
00:01:09 verbose #2011 > > │ exit_code = 0; std_trace_length = 513 }                                      │
00:01:09 verbose #2012 > > │ 00:00:02 verbose #23 spiral_builder.process_rust / { new_code_path =   │
00:01:09 verbose #2013 > > │ c:\home\git\polyglot\target/spiral_builder\spiral_builder\packages\Rust\bbba │
00:01:09 verbose #2014 > > │ 338a47ca28119f39303b7763a976cf95da9c277df176e65d83bd5db52892\spiral_builder. │
00:01:09 verbose #2015 > > │ rs; cleanup =                                                                │
00:01:09 verbose #2016 > > │ UH4_1("c:\home\git\polyglot\target/spiral_builder\spiral_builder\packages\Ru │
00:01:09 verbose #2017 > > │ st\bbba338a47ca28119f39303b7763a976cf95da9c277df176e65d83bd5db52892\../../.. │
00:01:09 verbose #2018 > > │ \target/debug/spiral_builder_bbba338a47ca28119f39303b7763a976cf95da9c277df17 │
00:01:09 verbose #2019 > > │ 6e65d83bd5db52892.d", true,                                                  │
00:01:09 verbose #2020 > > │ UH4_1("c:\home\git\polyglot\target/spiral_builder\spiral_builder\packages\Ru │
00:01:09 verbose #2021 > > │ st\bbba338a47ca28119f39303b7763a976cf95da9c277df176e65d83bd5db52892\../../.. │
00:01:09 verbose #2022 > > │ \target/debug/spiral_builder_bbba338a47ca28119f39303b7763a976cf95da9c277df17 │
00:01:09 verbose #2023 > > │ 6e65d83bd5db52892.exe", true,                                                │
00:01:09 verbose #2024 > > │ UH4_1("c:\home\git\polyglot\target/spiral_builder\spiral_builder\packages\Ru │
00:01:09 verbose #2025 > > │ st\bbba338a47ca28119f39303b7763a976cf95da9c277df176e65d83bd5db52892\../../.. │
00:01:09 verbose #2026 > > │ \target/debug/spiral_builder_bbba338a47ca28119f39303b7763a976cf95da9c277df17 │
00:01:09 verbose #2027 > > │ 6e65d83bd5db52892.pdb", true,                                                │
00:01:09 verbose #2028 > > │ UH4_1("c:\home\git\polyglot\target/spiral_builder\spiral_builder\packages\Ru │
00:01:09 verbose #2029 > > │ st\bbba338a47ca28119f39303b7763a976cf95da9c277df176e65d83bd5db52892\../../.. │
00:01:09 verbose #2030 > > │ \target/debug/spiral_builder_bbba338a47ca28119f39303b7763a976cf95da9c277df17 │
00:01:09 verbose #2031 > > │ 6e65d83bd5db52892", false, UH4_0)))) }                                       │
00:01:09 verbose #2032 > > │ assert_eq / actual: "rs" / expected: "rs"                                    │
00:01:09 verbose #2033 > > │ assert_eq / actual: "-3" / expected: "-3"                                    │
00:01:09 verbose #2034 > > │                                                                              │
00:01:09 verbose #2035 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:09 verbose #2036 > >
00:01:09 verbose #2037 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:09 verbose #2038 > > //// test
00:01:09 verbose #2039 > > ///! rust -d async-walkdir chrono clap encoding_rs encoding_rs_io futures rand
00:01:09 verbose #2040 > > rayon regex serde_json sha2 tokio[['rt-multi-thread']] tokio-stream
00:01:09 verbose #2041 > >
00:01:09 verbose #2042 > > types ()
00:01:09 verbose #2043 > >
00:01:09 verbose #2044 > > inl code = "3 - 6 |> System.Console.WriteLine\n"
00:01:09 verbose #2045 > > inl file_name = "main.fs"
00:01:09 verbose #2046 > >
00:01:09 verbose #2047 > > inl temp_dir, disposable =
00:01:09 verbose #2048 > >     (file_name, code)
00:01:09 verbose #2049 > >     |> sm'.format_debug
00:01:09 verbose #2050 > >     |> crypto.hash_text
00:01:09 verbose #2051 > >     |> file_system.create_temp_dir'
00:01:09 verbose #2052 > > inl fs_path = temp_dir </> file_name
00:01:09 verbose #2053 > >
00:01:09 verbose #2054 > > code |> file_system.write_all_text fs_path
00:01:09 verbose #2055 > >
00:01:09 verbose #2056 > > get_command ()
00:01:09 verbose #2057 > > |> runtime.command_get_matches_from ($'$"_ fable -f \\\"{!fs_path}\\\" -c
00:01:09 verbose #2058 > > \\\"typescript\\\""' |> runtime.split_args |> resultm.get)
00:01:09 verbose #2059 > > |> run Verbose
00:01:09 verbose #2060 > > |> async.block_on
00:01:09 verbose #2061 > > |> resultm.unwrap'
00:01:09 verbose #2062 > > |> sm'.deserialize
00:01:09 verbose #2063 > > |> resultm.unwrap'
00:01:09 verbose #2064 > > |> mapm.get ("command_result" |> sm'.to_std_string)
00:01:09 verbose #2065 > > |> optionm'.unwrap
00:01:09 verbose #2066 > > |> sm'.from_std_string
00:01:09 verbose #2067 > > |> sm'.deserialize
00:01:09 verbose #2068 > > |> resultm.unwrap'
00:01:09 verbose #2069 > > |> fun result =>
00:01:09 verbose #2070 > >     result
00:01:09 verbose #2071 > >     |> mapm.get ("extension" |> sm'.to_std_string)
00:01:09 verbose #2072 > >     |> optionm'.unwrap
00:01:09 verbose #2073 > >     |> sm'.from_std_string
00:01:09 verbose #2074 > >     |> _assert_eq "ts"
00:01:09 verbose #2075 > >     result
00:01:09 verbose #2076 > >     |> mapm.get ("output" |> sm'.to_std_string)
00:01:09 verbose #2077 > >     |> optionm'.unwrap
00:01:09 verbose #2078 > >     |> sm'.from_std_string
00:01:09 verbose #2079 > >     |> _assert_eq "-3"
00:01:09 verbose #2080 > >
00:01:09 verbose #2081 > > disposable |> use |> ignore
00:01:09 verbose #2082 > 00:01:08   debug #32 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b806254217632a10af21ce06cd511fa52d9c1e67781d70b1bcd5f145bfa55734/main.spi
00:01:23 verbose #2083 > >
00:01:23 verbose #2084 > > ╭─[ 13.93s - return value ]────────────────────────────────────────────────────╮
00:01:23 verbose #2085 > > │ 00:00:00 verbose #1 file_system.create_dir / { dir =                   │
00:01:23 verbose #2086 > > │ C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\spiral_builder_3d169206 │
00:01:23 verbose #2087 > > │ 37413eaba6b3dc70bd6870385248caf8efa323ff98e55b66365743a6\c6422374-71e4-07d4- │
00:01:23 verbose #2088 > > │ 0ba4-c3084b24fbba }                                                          │
00:01:23 verbose #2089 > > │ 00:00:00 verbose #2 file_system.create_dir / { dir =                   │
00:01:23 verbose #2090 > > │ c:\home\git\polyglot\target/spiral_builder\spiral_builder\packages\TypeScrip │
00:01:23 verbose #2091 > > │ t\702335b0756baa7db0d02dbbeaf9fc04cf2c3b7dbb45866c578c5109aaa8c4a8 }         │
00:01:23 verbose #2092 > > │ 00:00:00   debug #3 spiral_builder.process_typescript / { version =    │
00:01:23 verbose #2093 > > │ "US40_0(\n                                                                   │
00:01:23 verbose #2094 > > │ \"c:\\home\\git\\polyglot\\lib/typescript/fable/fable_modules\\fable-library │
00:01:23 verbose #2095 > > │ -ts.4.19.3\",\n    \"4.19.3\",\n)" }                                         │
00:01:23 verbose #2096 > > │ 00:00:00   debug #4 runtime.execute_with_options / { file_name =       │
00:01:23 verbose #2097 > > │ dotnet; arguments = ["fable",                                                │
00:01:23 verbose #2098 > > │ "c:/home/git/polyglot/target/spiral_builder/spiral_builder/packages/TypeScri │
00:01:23 verbose #2099 > > │ pt/702335b0756baa7db0d02dbbeaf9fc04cf2c3b7dbb45866c578c5109aaa8c4a8/spiral_b │
00:01:23 verbose #2100 > > │ uilder.fsproj", "--optimize", "--lang", "ts", "--extension", ".ts",          │
00:01:23 verbose #2101 > > │ "--outDir",                                                                  │
00:01:23 verbose #2102 > > │ "c:\\home\\git\\polyglot\\target/spiral_builder\\spiral_builder\\packages\\T │
00:01:23 verbose #2103 > > │ ypeScript\\702335b0756baa7db0d02dbbeaf9fc04cf2c3b7dbb45866c578c5109aaa8c4a8" │
00:01:23 verbose #2104 > > │ , "--define", "_WINDOWS"]; options = { command = dotnet fable                │
00:01:23 verbose #2105 > > │ "c:/home/git/polyglot/target/spiral_builder/spiral_builder/packages/TypeScri │
00:01:23 verbose #2106 > > │ pt/702335b0756baa7db0d02dbbeaf9fc04cf2c3b7dbb45866c578c5109aaa8c4a8/spiral_b │
00:01:23 verbose #2107 > > │ uilder.fsproj" --optimize --lang ts --extension .ts --outDir                 │
00:01:23 verbose #2108 > > │ "c:\home\git\polyglot\target/spiral_builder\spiral_builder\packages\TypeScri │
00:01:23 verbose #2109 > > │ pt\702335b0... Files\Intel\WirelessCommon\;C:\Program                        │
00:01:23 verbose #2110 > > │ Files\Perforce;C:\Users\i574n\scoop\apps\vscode-insiders\current\bin;C:\User │
00:01:23 verbose #2111 > > │ s\i574n\scoop\apps\elixir\current\bin;C:\Users\i574n\scoop\apps\python\curre │
00:01:23 verbose #2112 > > │ nt\Scripts;C:\Users\i574n\scoop\apps\rustup\current\.cargo\bin;C:\Users\i574 │
00:01:23 verbose #2113 > > │ n\scoop\apps\latex\current\texmfs\install\miktex\bin\x64;C:\Users\i574n\scoo │
00:01:23 verbose #2114 > > │ p\apps\dotnet-sdk-preview\current;C:\Users\i574n\scoop\apps\dotnet-sdk\curre │
00:01:23 verbose #2115 > > │ nt;C:\Users\i574n\scoop\apps\gsudo\current;C:\Users\i574n\scoop\apps\python\ │
00:01:23 verbose #2116 > > │ current;C:\Users\i574n\scoop\apps\nircmd\current;C:\Users\i574n\AppData\Loca │
00:01:23 verbose #2117 > > │ l\Microsoft\WindowsApps;C:\Users\i574n/scoop/buckets/mold/home/windows/path; │
00:01:23 verbose #2118 > > │ C:\Users\i574n/scoop/persist/rustup/.cargo/bin;C:\Users\i574n/scoop/apps/nvm │
00:01:23 verbose #2119 > > │ /current/nodejs/nodejs;C:\Users\i574n/scoop/apps/cygwin/current/root/bin;C:\ │
00:01:23 verbose #2120 > > │ Users\i574n\AppData\Local\Programs\Microsoft VS                              │
00:01:23 verbose #2121 > > │ Code\bin;C:\Users\i574n\AppData\Local\Microsoft\WindowsApps;C:\Users\i574n\. │
00:01:23 verbose #2122 > > │ bun\bin;C:\Users\i574n\.dotnet\tools;C:\Users\i574n\scoop\shims;C:\Users\i57 │
00:01:23 verbose #2123 > > │ 4n\.fly\bin;C:\Users\i574n/.cargo/bin;C:\Users\i574n/.bun/bin;C:\Users\i574n │
00:01:23 verbose #2124 > > │ /.cargo/bin;C:\Users\i574n/.bun/bin;C:\Users\i574n/.cargo/bin;C:\Users\i574n │
00:01:23 verbose #2125 > > │ /.bun/bin"), ("TRACE_LEVEL", "Verbose")])); on_line = None; stdin = None;    │
00:01:23 verbose #2126 > > │ trace = true; working_directory = None } }                                   │
00:01:23 verbose #2127 > > │ 00:00:01 verbose #19 > -3                                              │
00:01:23 verbose #2128 > > │ 00:00:01 verbose #20 runtime.execute_with_options / result / {         │
00:01:23 verbose #2129 > > │ exit_code = 0; std_trace_length = 2 }                                        │
00:01:23 verbose #2130 > > │ assert_eq / actual: "ts" / expected: "ts"                                    │
00:01:23 verbose #2131 > > │ assert_eq / actual: "-3" / expected: "-3"                                    │
00:01:23 verbose #2132 > > │                                                                              │
00:01:23 verbose #2133 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:23 verbose #2134 > >
00:01:23 verbose #2135 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:23 verbose #2136 > > //// test
00:01:23 verbose #2137 > > ///! rust -d async-walkdir chrono clap encoding_rs encoding_rs_io futures rand
00:01:23 verbose #2138 > > rayon regex serde_json sha2 tokio[['rt-multi-thread']] tokio-stream
00:01:23 verbose #2139 > >
00:01:23 verbose #2140 > > types ()
00:01:23 verbose #2141 > >
00:01:23 verbose #2142 > > inl file_name = "main.fs"
00:01:23 verbose #2143 > > inl code = "3 - 6 |> System.Console.WriteLine\n"
00:01:23 verbose #2144 > >
00:01:23 verbose #2145 > > inl temp_dir, disposable =
00:01:23 verbose #2146 > >     (file_name, code)
00:01:23 verbose #2147 > >     |> sm'.format_debug
00:01:23 verbose #2148 > >     |> crypto.hash_text
00:01:23 verbose #2149 > >     |> file_system.create_temp_dir'
00:01:23 verbose #2150 > > inl fs_path = temp_dir </> file_name
00:01:23 verbose #2151 > >
00:01:23 verbose #2152 > > code |> file_system.write_all_text fs_path
00:01:23 verbose #2153 > >
00:01:23 verbose #2154 > > get_command ()
00:01:23 verbose #2155 > > |> runtime.command_get_matches_from ($'$"_ fable -f \\\"{!fs_path}\\\" -c
00:01:23 verbose #2156 > > \\\"python\\\""' |> runtime.split_args |> resultm.get)
00:01:23 verbose #2157 > > |> run Verbose
00:01:23 verbose #2158 > > |> async.block_on
00:01:23 verbose #2159 > > |> resultm.unwrap'
00:01:23 verbose #2160 > > |> sm'.deserialize
00:01:23 verbose #2161 > > |> resultm.unwrap'
00:01:23 verbose #2162 > > |> mapm.get ("command_result" |> sm'.to_std_string)
00:01:23 verbose #2163 > > |> optionm'.unwrap
00:01:23 verbose #2164 > > |> sm'.from_std_string
00:01:23 verbose #2165 > > |> sm'.deserialize
00:01:23 verbose #2166 > > |> resultm.unwrap'
00:01:23 verbose #2167 > > |> fun result =>
00:01:23 verbose #2168 > >     result
00:01:23 verbose #2169 > >     |> mapm.get ("extension" |> sm'.to_std_string)
00:01:23 verbose #2170 > >     |> optionm'.unwrap
00:01:23 verbose #2171 > >     |> sm'.from_std_string
00:01:23 verbose #2172 > >     |> _assert_eq "py"
00:01:23 verbose #2173 > >     result
00:01:23 verbose #2174 > >     |> mapm.get ("output" |> sm'.to_std_string)
00:01:23 verbose #2175 > >     |> optionm'.unwrap
00:01:23 verbose #2176 > >     |> sm'.from_std_string
00:01:23 verbose #2177 > >     |> _assert_eq "-3"
00:01:23 verbose #2178 > >
00:01:23 verbose #2179 > > disposable |> use |> ignore
00:01:23 verbose #2180 > 00:01:22   debug #33 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ec03be027fdb0d7af4c9dadd31e8498ab698576909cae47dfc813516fd03359a/main.spi
00:01:36 verbose #2181 > >
00:01:36 verbose #2182 > > ╭─[ 13.24s - return value ]────────────────────────────────────────────────────╮
00:01:36 verbose #2183 > > │ 00:00:00 verbose #1 file_system.create_dir / { dir =                   │
00:01:36 verbose #2184 > > │ C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\spiral_builder_8ce8fd5f │
00:01:36 verbose #2185 > > │ 9864ad5f52b096b3b3bbc57f8d7952b8fe0f3fce8c112912199baa11\c6422374-71e4-07d4- │
00:01:36 verbose #2186 > > │ 0ba4-c3084b24fbba }                                                          │
00:01:36 verbose #2187 > > │ 00:00:00 verbose #2 file_system.create_dir / { dir =                   │
00:01:36 verbose #2188 > > │ c:\home\git\polyglot\target/spiral_builder\spiral_builder\packages\Python\cb │
00:01:36 verbose #2189 > > │ 8f3dd33197bb0bc95f09b3f3057a6844a0b70d75477350491883d14d8680ce }             │
00:01:36 verbose #2190 > > │ 00:00:00   debug #3 runtime.execute_with_options / { file_name =       │
00:01:36 verbose #2191 > > │ dotnet; arguments = ["fable",                                                │
00:01:36 verbose #2192 > > │ "c:/home/git/polyglot/target/spiral_builder/spiral_builder/packages/Python/c │
00:01:36 verbose #2193 > > │ b8f3dd33197bb0bc95f09b3f3057a6844a0b70d75477350491883d14d8680ce/spiral_build │
00:01:36 verbose #2194 > > │ er.fsproj", "--optimize", "--lang", "py", "--extension", ".py", "--outDir",  │
00:01:36 verbose #2195 > > │ "c:\\home\\git\\polyglot\\target/spiral_builder\\spiral_builder\\packages\\P │
00:01:36 verbose #2196 > > │ ython\\cb8f3dd33197bb0bc95f09b3f3057a6844a0b70d75477350491883d14d8680ce",    │
00:01:36 verbose #2197 > > │ "--define", "_WINDOWS"]; options = { command = dotnet fable                  │
00:01:36 verbose #2198 > > │ "c:/home/git/polyglot/target/spiral_builder/spiral_builder/packages/Python/c │
00:01:36 verbose #2199 > > │ b8f3dd33197bb0bc95f09b3f3057a6844a0b70d75477350491883d14d8680ce/spiral_build │
00:01:36 verbose #2200 > > │ er.fsproj" --optimize --lang py --extension .py --outDir                     │
00:01:36 verbose #2201 > > │ "c:\home\git\polyglot\target/spiral_builder\spiral_builder\packages\Python\c │
00:01:36 verbose #2202 > > │ b8f3dd33197bb0bc95f09b3f3057a6844a0b70d75477350491883d14d8680ce" --define    │
00:01:36 verbose #2203 > > │ _WINDOWS; cancellation_token = None; environment_variables = Array(MutCell([ │
00:01:36 verbose #2204 > > │ ])); on_line = None; stdin = None; trace = true; working_directory = None }  │
00:01:36 verbose #2205 > > │ }                                                                            │
00:01:36 verbose #2206 > > │ 00:0... in case of issues run `dotnet fable clean` or try `--noCache`        │
00:01:36 verbose #2207 > > │ option.                                                                      │
00:01:36 verbose #2208 > > │ 00:00:00 verbose #11 > Project and references (1 source files) parsed  │
00:01:36 verbose #2209 > > │ in 166ms                                                                     │
00:01:36 verbose #2210 > > │ 00:00:00 verbose #12 >                                                 │
00:01:36 verbose #2211 > > │ 00:00:00 verbose #13 > Skipped compilation because all generated files │
00:01:36 verbose #2212 > > │ are up-to-date!                                                              │
00:01:36 verbose #2213 > > │ 00:00:00 verbose #14 runtime.execute_with_options / result / {         │
00:01:36 verbose #2214 > > │ exit_code = 0; std_trace_length = 530 }                                      │
00:01:36 verbose #2215 > > │ 00:00:00   debug #15 spiral_builder.process_python / { new_code_path = │
00:01:36 verbose #2216 > > │ c:\home\git\polyglot\target/spiral_builder\spiral_builder\packages\Python\cb │
00:01:36 verbose #2217 > > │ 8f3dd33197bb0bc95f09b3f3057a6844a0b70d75477350491883d14d8680ce\spiral_builde │
00:01:36 verbose #2218 > > │ r.py }                                                                       │
00:01:36 verbose #2219 > > │ 00:00:00   debug #16 runtime.execute_with_options / { file_name =      │
00:01:36 verbose #2220 > > │ python; arguments = [                                                        │
00:01:36 verbose #2221 > > │ "c:\\home\\git\\polyglot\\target/spiral_builder\\spiral_builder\\packages\\P │
00:01:36 verbose #2222 > > │ ython\\cb8f3dd33197bb0bc95f09b3f3057a6844a0b70d75477350491883d14d8680ce\\spi │
00:01:36 verbose #2223 > > │ ral_builder.py"]; options = { command = python                               │
00:01:36 verbose #2224 > > │ "c:\home\git\polyglot\target/spiral_builder\spiral_builder\packages\Python\c │
00:01:36 verbose #2225 > > │ b8f3dd33197bb0bc95f09b3f3057a6844a0b70d75477350491883d14d8680ce\spiral_build │
00:01:36 verbose #2226 > > │ er.py"; cancellation_token = None; environment_variables = Array(MutCell([   │
00:01:36 verbose #2227 > > │ ("TRACE_LEVEL", "Verbose")])); on_line = None; stdin = None; trace = true;   │
00:01:36 verbose #2228 > > │ working_directory = None } }                                                 │
00:01:36 verbose #2229 > > │ 00:00:00 verbose #17 > -3                                              │
00:01:36 verbose #2230 > > │ 00:00:00 verbose #18 runtime.execute_with_options / result / {         │
00:01:36 verbose #2231 > > │ exit_code = 0; std_trace_length = 2 }                                        │
00:01:36 verbose #2232 > > │ assert_eq / actual: "py" / expected: "py"                                    │
00:01:36 verbose #2233 > > │ assert_eq / actual: "-3" / expected: "-3"                                    │
00:01:36 verbose #2234 > > │                                                                              │
00:01:36 verbose #2235 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:36 verbose #2236 > >
00:01:36 verbose #2237 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:36 verbose #2238 > > //// test
00:01:36 verbose #2239 > > ///! rust -d async-walkdir chrono clap encoding_rs encoding_rs_io rand rayon
00:01:36 verbose #2240 > > regex serde_json sha2 tokio[['rt-multi-thread']] tokio-stream
00:01:36 verbose #2241 > >
00:01:36 verbose #2242 > > types ()
00:01:36 verbose #2243 > >
00:01:36 verbose #2244 > > inl file_name = "test.dib"
00:01:36 verbose #2245 > > inl code =
00:01:36 verbose #2246 > >
00:01:36 verbose #2247 > > "#!meta\n\n{\"kernelInfo\":{\"defaultKernelName\":\"fsharp\",\"items\":[[]]}}\n\
00:01:36 verbose #2248 > > n#!fsharp\n\n3 - 6\n"
00:01:36 verbose #2249 > >
00:01:36 verbose #2250 > > inl temp_dir, disposable =
00:01:36 verbose #2251 > >     (file_name, code)
00:01:36 verbose #2252 > >     |> sm'.format_debug
00:01:36 verbose #2253 > >     |> crypto.hash_text
00:01:36 verbose #2254 > >     |> file_system.create_temp_dir'
00:01:36 verbose #2255 > > inl path = temp_dir </> file_name |> file_system.normalize_path
00:01:36 verbose #2256 > >
00:01:36 verbose #2257 > > code
00:01:36 verbose #2258 > > |> file_system.write_all_text path
00:01:36 verbose #2259 > >
00:01:36 verbose #2260 > > get_command ()
00:01:36 verbose #2261 > > |> runtime.command_get_matches_from ($'$"_ dib -p {!path}"' |>
00:01:36 verbose #2262 > > runtime.split_args |> resultm.get)
00:01:36 verbose #2263 > > |> run Verbose
00:01:36 verbose #2264 > > |> async.block_on
00:01:36 verbose #2265 > > |> resultm.unwrap'
00:01:36 verbose #2266 > > |> __assert_string_contains false "<pre>-3 "
00:01:36 verbose #2267 > >
00:01:36 verbose #2268 > > $'$"{!path}.html"'
00:01:36 verbose #2269 > > |> file_system.read_all_text
00:01:36 verbose #2270 > > |> __assert_string_contains false "\"cell-id=1\""
00:01:36 verbose #2271 > >
00:01:36 verbose #2272 > > disposable |> use |> ignore
00:01:36 verbose #2273 > 00:01:36   debug #34 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/49d9d79ce8bdecce66b57ac630d7f35d8b0b6d6ecf03411e67f19d3b870873ed/main.spi
00:02:01 verbose #2274 > >
00:02:01 verbose #2275 > > ╭─[ 24.62s - return value ]────────────────────────────────────────────────────╮
00:02:01 verbose #2276 > > │ 00:00:00 verbose #1 file_system.create_dir / { dir =                   │
00:02:01 verbose #2277 > > │ C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\spiral_builder_1930dcad │
00:02:01 verbose #2278 > > │ ba3b1729ff0ad6fed4503fb464bdc3b18676885480409a0d19efc230\af524e22-8e9a-5d18- │
00:02:01 verbose #2279 > > │ 99ed-bd86e1b74623 }                                                          │
00:02:01 verbose #2280 > > │ 00:00:00   debug #2 runtime.execute_with_options / { file_name =       │
00:02:01 verbose #2281 > > │ dotnet; arguments = ["repl", "--exit-after-run", "--run",                    │
00:02:01 verbose #2282 > > │ "c:/Users/i574n/AppData/Local/Temp/!create_temp_path_/spiral_builder_1930dca │
00:02:01 verbose #2283 > > │ dba3b1729ff0ad6fed4503fb464bdc3b18676885480409a0d19efc230/af524e22-8e9a-5d18 │
00:02:01 verbose #2284 > > │ -99ed-bd86e1b74623/test.dib", "--output-path",                               │
00:02:01 verbose #2285 > > │ "c:/Users/i574n/AppData/Local/Temp/!create_temp_path_/spiral_builder_1930dca │
00:02:01 verbose #2286 > > │ dba3b1729ff0ad6fed4503fb464bdc3b18676885480409a0d19efc230/af524e22-8e9a-5d18 │
00:02:01 verbose #2287 > > │ -99ed-bd86e1b74623/test.dib.ipynb"]; options = { command = dotnet repl       │
00:02:01 verbose #2288 > > │ --exit-after-run --run                                                       │
00:02:01 verbose #2289 > > │ "c:/Users/i574n/AppData/Local/Temp/!create_temp_path_/spiral_builder_1930dca │
00:02:01 verbose #2290 > > │ dba3b1729ff0ad6fed4503fb464bdc3b18676885480409a0d19efc230/af524e22-8e9a-5d18 │
00:02:01 verbose #2291 > > │ -99ed-bd86e1b74623/test.dib" --output-path                                   │
00:02:01 verbose #2292 > > │ "c:/Users/i574n/AppData/Local/Temp/!create_temp_path_/spiral_builder_1930dca │
00:02:01 verbose #2293 > > │ dba3b1729ff0ad6fed4503fb464bdc3b18676885480409a0d19efc230/af524e22-8e9a-5d18 │
00:02:01 verbose #2294 > > │ -99ed-bd86e1b74623/test.dib.ipynb"; cancellation_token = None;               │
00:02:01 verbose #2295 > > │ environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"),           │
00:02:01 verbose #2296 > > │ ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false;      │
00:02:01 verbose #2297 > > │ working_directory = None } }                                                 │
00:02:01 verbose #2298 > > │ >                                                                            │
00:02:01 verbose #2299 > > │ > ── fsharp                                                                  │
00:02:01 verbose #2300 > > │ ──────────────────────────────────────────────────────────────────────       │
00:02:01 verbose #2301 > > │ > 3 - 6                                                                      │
00:02:01 verbose #2302 > > │ >                                                                            │
00:02:01 verbose #2303 > > │ > ╭─[ 4.46s...39m #9 runtime.execute_with_options / result / { exit_code =   │
00:02:01 verbose #2304 > > │ 0; std_trace_length = 915 }                                                  │
00:02:01 verbose #2305 > > │ 00:00:09   debug #10 spiral_builder.run / dib / jupyter nbconvert / {  │
00:02:01 verbose #2306 > > │ exit_code = 0; jupyter_result_length = 915 }                                 │
00:02:01 verbose #2307 > > │ 00:00:09   debug #11 runtime.execute_with_options / { file_name =      │
00:02:01 verbose #2308 > > │ pwsh; arguments = ["-c", "$counter = 1; $path =                              │
00:02:01 verbose #2309 > > │ 'c:/Users/i574n/AppData/Local/Temp/!create_temp_path_/spiral_builder_1930dca │
00:02:01 verbose #2310 > > │ dba3b1729ff0ad6fed4503fb464bdc3b18676885480409a0d19efc230/af524e22-8e9a-5d18 │
00:02:01 verbose #2311 > > │ -99ed-bd86e1b74623/test.dib.html'; (Get-Content $path -Raw) -replace         │
00:02:01 verbose #2312 > > │ '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } |     │
00:02:01 verbose #2313 > > │ Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path =    │
00:02:01 verbose #2314 > > │ 'c:/Users/i574n/AppData/Local/Temp/!create_temp_path_/spiral_builder_1930dca │
00:02:01 verbose #2315 > > │ dba3b1729ff0ad6fed4503fb464bdc3b18676885480409a0d19efc230/af524e22-8e9a-5d18 │
00:02:01 verbose #2316 > > │ -99ed-bd86e1b74623/test.dib.html'; (Get-Content $path -Raw) -replace         │
00:02:01 verbose #2317 > > │ '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } |       │
00:02:01 verbose #2318 > > │ Set-Content $path"; cancellation_token = None; environment_variables =       │
00:02:01 verbose #2319 > > │ Array(MutCell([])); on_line = None; stdin = None; trace = true;              │
00:02:01 verbose #2320 > > │ working_directory = None } }                                                 │
00:02:01 verbose #2321 > > │ 00:00:10 verbose #12 runtime.execute_with_options / result / {         │
00:02:01 verbose #2322 > > │ exit_code = 0; std_trace_length = 0 }                                        │
00:02:01 verbose #2323 > > │ 00:00:10   debug #13 spiral_builder.run / dib / html cell ids / {      │
00:02:01 verbose #2324 > > │ exit_code = 0; pwsh_replace_html_result_length = 0 }                         │
00:02:01 verbose #2325 > > │ 00:00:11   debug #14 spiral_builder.run / dib / { exit_code = 0;       │
00:02:01 verbose #2326 > > │ result_length = 3897 }                                                       │
00:02:01 verbose #2327 > > │                                                                              │
00:02:01 verbose #2328 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:01 verbose #2329 > >
00:02:01 verbose #2330 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:01 verbose #2331 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:01 verbose #2332 > > │ ## tests                                                                     │
00:02:01 verbose #2333 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:01 verbose #2334 > >
00:02:01 verbose #2335 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:01 verbose #2336 > > inl tests () =
00:02:01 verbose #2337 > >     rust.run_tests [[
00:02:01 verbose #2338 > >         "verify_app", fun _ =>
00:02:01 verbose #2339 > >             get_command () |> runtime.command_debug_assert
00:02:01 verbose #2340 > >     ]]
00:02:01 verbose #2341 > 00:02:00   debug #35 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5f91ce0cd2205b29c4c428089a9701f997561115c7cb9a5a9533e7aa0df777ae/main.spi
00:02:01 verbose #2342 > >
00:02:01 verbose #2343 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:01 verbose #2344 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:01 verbose #2345 > > │ ## main                                                                      │
00:02:01 verbose #2346 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:01 verbose #2347 > >
00:02:01 verbose #2348 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:01 verbose #2349 > > ///!
00:02:01 verbose #2350 > >
00:02:01 verbose #2351 > > inl main (args : array_base string) =
00:02:01 verbose #2352 > >     inl trace_state = get_trace_state_or_init None
00:02:01 verbose #2353 > >
00:02:01 verbose #2354 > >     trace Debug
00:02:01 verbose #2355 > >         fun () => $'$"spiral_builder.main"'
00:02:01 verbose #2356 > >         fun () => { args }
00:02:01 verbose #2357 > >
00:02:01 verbose #2358 > >     inl command = get_command ()
00:02:01 verbose #2359 > >     inl arg_matches = command |> runtime.command_get_matches
00:02:01 verbose #2360 > >
00:02:01 verbose #2361 > >     inl trace_state_level = trace_state.level
00:02:01 verbose #2362 > >
00:02:01 verbose #2363 > >     inl result =
00:02:01 verbose #2364 > >         arg_matches
00:02:01 verbose #2365 > >         |> run *trace_state_level
00:02:01 verbose #2366 > >         |> async.block_on
00:02:01 verbose #2367 > >         |> resultm.unwrap'
00:02:01 verbose #2368 > >
00:02:01 verbose #2369 > >     if *trace_state_level = Info
00:02:01 verbose #2370 > >     then result |> console.write_line
00:02:01 verbose #2371 > >
00:02:01 verbose #2372 > >     0i32
00:02:01 verbose #2373 > >
00:02:01 verbose #2374 > > inl main () =
00:02:01 verbose #2375 > >     types ()
00:02:01 verbose #2376 > >     $'let tests () = !tests ()' : ()
00:02:01 verbose #2377 > >     $'let main args = !main args' : ()
00:02:02 verbose #2378 > 00:02:01   debug #36 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d4858355bce7a96d036f303bb2645b2f73f4ad8c2de00ef156c733fe07ea6272/main.spi
00:02:03 verbose #2379 > 00:02:02 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 101791 }
00:02:03 verbose #2380 > 00:02:02   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/apps/spiral/builder/spiral_builder.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/apps/spiral/builder/spiral_builder.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:02:05 verbose #2381 > 00:02:03 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/apps/spiral/builder/spiral_builder.dib.ipynb to html
00:02:05 verbose #2382 > 00:02:03 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:02:05 verbose #2383 > 00:02:03 verbose #7 !   validate(nb)
00:02:08 verbose #2384 > 00:02:06 verbose #8 ! [NbConvertApp] Writing 567388 bytes to c:\home\git\polyglot\apps\spiral\builder\spiral_builder.dib.html
00:02:08 verbose #2385 > 00:02:06 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 677 }
00:02:08 verbose #2386 > 00:02:06   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 677 }
00:02:08 verbose #2387 > 00:02:06   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/apps/spiral/builder/spiral_builder.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/apps/spiral/builder/spiral_builder.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:02:09 verbose #2388 > 00:02:07 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:02:09 verbose #2389 > 00:02:07   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:02:09 verbose #2390 > 00:02:07   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 102527 }
00:02:09   debug #2391 runtime.execute_with_options_async / { exit_code = 0; output_length = 109944 }
00:02:09   debug #3 main / executeCommand / exitCode: 0 / command: ../../../workspace/target/release/spiral_builder.exe dib --path spiral_builder.dib
00:02:09 verbose #6 networking.wait_for_port_access / { port = 13805; retry = 0; timeout = Some 100; status = false }
00:02:09 verbose #7 async.run_with_timeout_async / { timeout = 100 }
00:00:00   debug #1 writeDibCode / output: Spi / path: spiral_builder.dib
00:00:00   debug #2 parseDibCode / output: Spi / file: spiral_builder.dib
00:00:00 verbose #1 async.run_with_timeout_async / { timeout = 180 }
00:00:00   debug #1 runtime.execute_with_options_async / { options = { command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = Some <fun:main@570-7>; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot" } }
00:00:01 verbose #2 > 00:00:00   debug #1 pwd: C:\home\git\polyglot
00:00:01 verbose #3 > 00:00:00   debug #2 dllPath: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:01 verbose #4 > 00:00:00   debug #3 targetDir: C:\home\git\polyglot\target/spiral_Eval
00:00:01 verbose #2 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #3 networking.wait_for_port_access / { port = 13805; retry = 0; timeout = Some 100; status = true }
00:00:01 verbose #4 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #5 > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:01 verbose #5 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #1 Supervisor.sendJson / port: 13805 / json: {"Ping":true} / result:
00:00:01 verbose #2 awaitCompiler / Ping / result: 'Some(null)' / port: 13805 / retry: 0
00:00:01 verbose #6 > Server bound to: http://localhost:13805
00:00:02 verbose #6 async.run_with_timeout_async / { timeout = 180 }
00:00:02   debug #3 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:02   debug #4 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:02   debug #5 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:02 verbose #6 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # spiral_builder\nopen file_system_operators\nopen rust_operators\nopen ...ain args\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/apps/spiral/builder/spiral_builder.spi"}} / result:
00:00:02 verbose #7 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/apps/spiral/builder/spiral_builder.spi"}} / result:
00:00:02 verbose #7 > 00:00:01   debug #4 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/apps/spiral/builder/spiral_builder.spi
00:00:02   debug #8 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:02   debug #9 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:03   debug #10 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:03   debug #11 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:03   debug #12 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:03   debug #13 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:04   debug #14 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:04   debug #15 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:04   debug #16 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:04   debug #17 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:05   debug #18 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:05   debug #19 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:05   debug #20 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:05   debug #21 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:06   debug #22 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:06   debug #23 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:06   debug #24 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:06   debug #25 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:07   debug #26 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::env::VarError")>]
#endif
type std_env_VarError = class end
#if FABLE_COMPILER
[<Fable.Cor...0 v44
    0
let v420 : (unit -> unit) = closure0()
let tests () = v420 ()
let v421 : ((string []) -> int32) = closure1()
let main args = v421 args
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: spiral_builder.spi
00:00:07   debug #27 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::env::VarError")>]
#endif
type std_env_VarError = class end
#if FABLE_COMPILER
[<Fable.Cor...0 v44
    0
let v420 : (unit -> unit) = closure0()
let tests () = v420 ()
let v421 : ((string []) -> int32) = closure1()
let main args = v421 args
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: spiral_builder.spi
00:00:07   debug #28 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:07 verbose #7 networking.wait_for_port_access / { port = 13805; retry = 0; timeout = Some 100; status = false }
00:00:07 verbose #8 async.run_with_timeout_async / { timeout = 100 }
00:00:00   debug #1 persistCodeProject / packages: [Fable.Core] / modules: [lib/spiral/common.fsx; lib/spiral/sm.fsx; lib/spiral/crypto.fsx; ... ] / name: spiral_builder / hash:  / code.Length: 1267269
targetDir: C:\home\git\polyglot\target\Builder\spiral_builder
Fable 4.19.3: F# to Rust compiler (status: alpha)

Thanks to the contributor! @goswinr
Stand with Ukraine! https://standwithukraine.com.ua/

Parsing target\Builder\spiral_builder\spiral_builder.fsproj...
Retrieving project options from cache, in case of issues run `dotnet fable clean` or try `--noCache` option.
Project and references (14 source files) parsed in 179ms

Skipped compilation because all generated files are up-to-date!
   Compiling spiral_builder v0.0.1 (C:\home\git\polyglot\apps\spiral\builder)
    Finished `release` profile [optimized] target(s) in 19.41s
     Running unittests spiral_builder.rs (C:\home\git\polyglot\workspace\target\release\deps\spiral_builder-f43d88b7a5b1c176.exe)

running 1 test
test module_7e2cd9e0::Spiral_builder::verify_app ... ok

successes:

successes:
    module_7e2cd9e0::Spiral_builder::verify_app

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

   Compiling spiral_builder v0.0.1 (C:\home\git\polyglot\apps\spiral\builder)
error: failed to remove file `C:\home\git\polyglot\workspace\target\release\spiral_builder.exe`

Caused by:
  Access is denied. (os error 5)

# Invoke-Block / $retry: 1/1 / $Location:  / Get-Location: C:\home\git\polyglot\apps\spiral\builder / $OnError: Continue / $exitcode: 101 / $EnvVars: {
  "PATH": "C:\\Users\\i574n\\scoop\\apps\\pwsh\\current;C:\\Program Files\\NVIDIA\\CUDNN\\v9.1\\bin;C:\\ProgramData\\scoop\\shims;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\dotnet\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Intel\\WiFi\\bin\\;C:\\Program Files\\Common Files\\Intel\\WirelessCommon\\;C:\\Program Files\\Perforce;C:\\Users\\i574n\\scoop\\apps\\vscode-insiders\\current\\bin;C:\\Users\\i574n\\scoop\\apps\\elixir\\current\\bin;C:\\Users\\i574n\\scoop\\apps\\python\\current\\Scripts;C:\\Users\\i574n\\scoop\\apps\\rustup\\current\\.cargo\\bin;C:\\Users\\i574n\\scoop\\apps\\latex\\current\\texmfs\\install\\miktex\\bin\\x64;C:\\Users\\i574n\\scoop\\apps\\dotnet-sdk-preview\\current;C:\\Users\\i574n\\scoop\\apps\\dotnet-sdk\\current;C:\\Users\\i574n\\scoop\\apps\\gsudo\\current;C:\\Users\\i574n\\scoop\\apps\\python\\current;C:\\Users\\i574n\\scoop\\apps\\nircmd\\current;C:\\Users\\i574n\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\i574n/scoop/buckets/mold/home/windows/path;C:\\Users\\i574n/scoop/persist/rustup/.cargo/bin;C:\\Users\\i574n/scoop/apps/nvm/current/nodejs/nodejs;C:\\Users\\i574n/scoop/apps/cygwin/current/root/bin;C:\\Users\\i574n\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\i574n\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\i574n\\.bun\\bin;C:\\Users\\i574n\\.dotnet\\tools;C:\\Users\\i574n\\scoop\\shims;C:\\Users\\i574n\\.fly\\bin;C:\\Users\\i574n/.cargo/bin;C:\\Users\\i574n/.bun/bin;C:\\Users\\i574n/.cargo/bin;C:\\Users\\i574n/.bun/bin;C:\\Users\\i574n/.cargo/bin;C:\\Users\\i574n/.bun/bin"
} / $Error: '' / $ScriptBlock:
'cargo +nightly build --release'

In [ ]:
{ pwsh ../lib/fsharp/build.ps1 -sequential 1 } | Invoke-Block
00:00:00 verbose #1 async.run_with_timeout_async / { timeout = 180 }
00:00:00   debug #1 runtime.execute_with_options_async / { options = { command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = Some <fun:main@570-7>; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot" } }
00:00:00 verbose #2 > 00:00:00   debug #1 pwd: C:\home\git\polyglot
00:00:00 verbose #3 > 00:00:00   debug #2 dllPath: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:00 verbose #4 > 00:00:00   debug #3 targetDir: C:\home\git\polyglot\target/spiral_Eval
00:00:01 verbose #2 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #3 networking.wait_for_port_access / { port = 13805; retry = 0; timeout = Some 100; status = true }
00:00:01 verbose #4 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #5 > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:01 verbose #5 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #1 Supervisor.sendJson / port: 13805 / json: {"Ping":true} / result:
00:00:01 verbose #2 awaitCompiler / Ping / result: 'Some(null)' / port: 13805 / retry: 0
00:00:01 verbose #6 > Server bound to: http://localhost:13805
00:00:01   debug #7 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path Async.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:01 verbose #8 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "Async.dib", "--retries", "3"])) }
00:00:01 verbose #9 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/fsharp/Async.dib", "--output-path", "c:/home/git/polyglot/lib/fsharp/Async.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/fsharp/Async.dib" --output-path "c:/home/git/polyglot/lib/fsharp/Async.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:00:03 verbose #10 > >
00:00:03 verbose #11 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:03 verbose #12 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:03 verbose #13 > > │ # Async (Polyglot)                                                           │
00:00:03 verbose #14 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 verbose #15 > >
00:00:20 verbose #16 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:20 verbose #17 > > #if !INTERACTIVE
00:00:20 verbose #18 > > open Lib
00:00:20 verbose #19 > > #endif
00:00:20 verbose #20 > >
00:00:20 verbose #21 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:20 verbose #22 > > open Common
00:00:20 verbose #23 > >
00:00:20 verbose #24 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:20 verbose #25 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:20 verbose #26 > > │ ## choice                                                                    │
00:00:20 verbose #27 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 verbose #28 > >
00:00:20 verbose #29 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:20 verbose #30 > > let inline choice asyncs = async {
00:00:20 verbose #31 > >     let e = Event<_> ()
00:00:20 verbose #32 > >     use cts = new System.Threading.CancellationTokenSource ()
00:00:20 verbose #33 > >     let fn =
00:00:20 verbose #34 > >         asyncs
00:00:20 verbose #35 > >         |> Seq.map (fun a -> async {
00:00:20 verbose #36 > >             let! x = a
00:00:20 verbose #37 > >             e.Trigger x
00:00:20 verbose #38 > >         })
00:00:20 verbose #39 > >         |> Async.Parallel
00:00:20 verbose #40 > >         |> Async.Ignore
00:00:20 verbose #41 > >     Async.Start (fn, cts.Token)
00:00:20 verbose #42 > >     let! result = Async.AwaitEvent e.Publish
00:00:20 verbose #43 > >     cts.Cancel ()
00:00:20 verbose #44 > >     return result
00:00:20 verbose #45 > > }
00:00:20 verbose #46 > >
00:00:20 verbose #47 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:20 verbose #48 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:20 verbose #49 > > │ ## map                                                                       │
00:00:20 verbose #50 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 verbose #51 > >
00:00:20 verbose #52 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:20 verbose #53 > > let inline map fn a = async {
00:00:20 verbose #54 > >     let! x = a
00:00:20 verbose #55 > >     return fn x
00:00:20 verbose #56 > > }
00:00:20 verbose #57 > >
00:00:20 verbose #58 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:20 verbose #59 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:20 verbose #60 > > │ ## catch                                                                     │
00:00:20 verbose #61 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 verbose #62 > >
00:00:20 verbose #63 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:20 verbose #64 > > let inline catch a =
00:00:20 verbose #65 > >     a
00:00:20 verbose #66 > >     |> Async.Catch
00:00:20 verbose #67 > >     |> map (function
00:00:20 verbose #68 > >         | Choice1Of2 result -> Ok result
00:00:20 verbose #69 > >         | Choice2Of2 ex -> Error ex
00:00:20 verbose #70 > >     )
00:00:20 verbose #71 > >
00:00:20 verbose #72 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:20 verbose #73 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:20 verbose #74 > > │ ## runWithTimeoutChoiceAsync                                                 │
00:00:20 verbose #75 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 verbose #76 > >
00:00:20 verbose #77 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:20 verbose #78 > > let inline runWithTimeoutChoiceAsync (timeout : int) fn =
00:00:20 verbose #79 > >     let _locals () = $"timeout: {timeout} / {_locals ()}"
00:00:20 verbose #80 > >
00:00:20 verbose #81 > >     let timeoutTask = async {
00:00:20 verbose #82 > >         do! Async.Sleep timeout
00:00:20 verbose #83 > >         trace Debug (fun () -> "runWithTimeoutChoiceAsync") _locals
00:00:20 verbose #84 > >         return None
00:00:20 verbose #85 > >     }
00:00:20 verbose #86 > >
00:00:20 verbose #87 > >     let task = async {
00:00:20 verbose #88 > >         try
00:00:20 verbose #89 > >             let! result = fn
00:00:20 verbose #90 > >             return Some result
00:00:20 verbose #91 > >         with
00:00:20 verbose #92 > >         | :? System.AggregateException as ex when
00:00:20 verbose #93 > >             ex.InnerExceptions
00:00:20 verbose #94 > >             |> Seq.exists (function :?
00:00:20 verbose #95 > > System.Threading.Tasks.TaskCanceledException -> true | _ -> false)
00:00:20 verbose #96 > >             ->
00:00:20 verbose #97 > >             trace Warning
00:00:20 verbose #98 > >                 (fun () -> "runWithTimeoutChoiceAsync")
00:00:20 verbose #99 > >                 (fun () -> $"ex: {ex |> SpiralSm.format_exception} / {_locals
00:00:20 verbose #100 > > ()}")
00:00:20 verbose #101 > >             return None
00:00:20 verbose #102 > >         | ex ->
00:00:20 verbose #103 > >             trace Critical
00:00:20 verbose #104 > >                 (fun () -> "runWithTimeoutChoiceAsync")
00:00:20 verbose #105 > >                 (fun () -> $"ex: {ex |> SpiralSm.format_exception} / {_locals
00:00:20 verbose #106 > > ()}")
00:00:20 verbose #107 > >             return None
00:00:20 verbose #108 > >     }
00:00:20 verbose #109 > >
00:00:20 verbose #110 > >     [[ timeoutTask; task ]]
00:00:20 verbose #111 > >     |> choice
00:00:20 verbose #112 > >
00:00:20 verbose #113 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:20 verbose #114 > > let inline runWithTimeoutChoice timeout fn =
00:00:20 verbose #115 > >     fn
00:00:20 verbose #116 > >     |> runWithTimeoutChoiceAsync timeout
00:00:20 verbose #117 > >     |> Async.RunSynchronously
00:00:20 verbose #118 > >
00:00:20 verbose #119 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:20 verbose #120 > > //// test
00:00:20 verbose #121 > >
00:00:20 verbose #122 > > Async.Sleep 120
00:00:20 verbose #123 > > |> runWithTimeoutChoice 10
00:00:20 verbose #124 > > |> _assertEqual None
00:00:20 verbose #125 > >
00:00:20 verbose #126 > > ╭─[ 174.15ms - stdout ]────────────────────────────────────────────────────────╮
00:00:20 verbose #127 > > │ 00:00:00   debug #1 runWithTimeoutChoiceAsync / timeout: 10             │
00:00:20 verbose #128 > > │ <null>                                                                       │
00:00:20 verbose #129 > > │                                                                              │
00:00:20 verbose #130 > > │                                                                              │
00:00:20 verbose #131 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 verbose #132 > >
00:00:20 verbose #133 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:20 verbose #134 > > //// test
00:00:20 verbose #135 > >
00:00:20 verbose #136 > > Async.Sleep 10
00:00:20 verbose #137 > > |> runWithTimeoutChoice 60
00:00:20 verbose #138 > > |> _assertEqual (Some ())
00:00:21 verbose #139 > >
00:00:21 verbose #140 > > ╭─[ 151.95ms - stdout ]────────────────────────────────────────────────────────╮
00:00:21 verbose #141 > > │ Some ()                                                                      │
00:00:21 verbose #142 > > │                                                                              │
00:00:21 verbose #143 > > │                                                                              │
00:00:21 verbose #144 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 verbose #145 > >
00:00:21 verbose #146 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:21 verbose #147 > > //// test
00:00:21 verbose #148 > >
00:00:21 verbose #149 > > async {
00:00:21 verbose #150 > >     raise (exn "error")
00:00:21 verbose #151 > > }
00:00:21 verbose #152 > > |> runWithTimeoutChoice 60
00:00:21 verbose #153 > > |> _assertEqual None
00:00:21 verbose #154 > >
00:00:21 verbose #155 > > ╭─[ 149.48ms - stdout ]────────────────────────────────────────────────────────╮
00:00:21 verbose #156 > > │ 00:00:01 critical #2 runWithTimeoutChoiceAsync / ex: System.Exception:  │
00:00:21 verbose #157 > > │ error / timeout: 60                                                          │
00:00:21 verbose #158 > > │ <null>                                                                       │
00:00:21 verbose #159 > > │                                                                              │
00:00:21 verbose #160 > > │                                                                              │
00:00:21 verbose #161 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 verbose #162 > >
00:00:21 verbose #163 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:21 verbose #164 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:21 verbose #165 > > │ ## runWithTimeoutAsync                                                       │
00:00:21 verbose #166 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 verbose #167 > >
00:00:21 verbose #168 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:21 verbose #169 > > let inline runWithTimeoutAsync (timeout : int) fn = async {
00:00:21 verbose #170 > >     let _locals () = $"timeout: {timeout} / {_locals ()}"
00:00:21 verbose #171 > >     let! child = Async.StartChild (fn, timeout)
00:00:21 verbose #172 > >     return!
00:00:21 verbose #173 > >         child
00:00:21 verbose #174 > >         |> catch
00:00:21 verbose #175 > >         |> map (function
00:00:21 verbose #176 > >             | Ok result -> Some result
00:00:21 verbose #177 > >             | Error (:? System.TimeoutException as ex) ->
00:00:21 verbose #178 > >                 trace Debug (fun () -> $"runWithTimeoutAsync") _locals
00:00:21 verbose #179 > >                 None
00:00:21 verbose #180 > >             | Error ex ->
00:00:21 verbose #181 > >                 trace Critical (fun () -> $"runWithTimeoutAsync** / ex: %A{ex}")
00:00:21 verbose #182 > > _locals
00:00:21 verbose #183 > >                 None
00:00:21 verbose #184 > >         )
00:00:21 verbose #185 > > }
00:00:21 verbose #186 > >
00:00:21 verbose #187 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:21 verbose #188 > > let inline runWithTimeout timeout fn =
00:00:21 verbose #189 > >     fn
00:00:21 verbose #190 > >     |> runWithTimeoutAsync timeout
00:00:21 verbose #191 > >     |> Async.RunSynchronously
00:00:21 verbose #192 > >
00:00:21 verbose #193 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:21 verbose #194 > > //// test
00:00:21 verbose #195 > >
00:00:21 verbose #196 > > Async.Sleep 60
00:00:21 verbose #197 > > |> runWithTimeout 10
00:00:21 verbose #198 > > |> _assertEqual None
00:00:21 verbose #199 > >
00:00:21 verbose #200 > > ╭─[ 113.17ms - stdout ]────────────────────────────────────────────────────────╮
00:00:21 verbose #201 > > │ 00:00:01   debug #3 runWithTimeoutAsync / timeout: 10                   │
00:00:21 verbose #202 > > │ <null>                                                                       │
00:00:21 verbose #203 > > │                                                                              │
00:00:21 verbose #204 > > │                                                                              │
00:00:21 verbose #205 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 verbose #206 > >
00:00:21 verbose #207 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:21 verbose #208 > > //// test
00:00:21 verbose #209 > >
00:00:21 verbose #210 > > Async.Sleep 10
00:00:21 verbose #211 > > |> runWithTimeout 60
00:00:21 verbose #212 > > |> _assertEqual (Some ())
00:00:21 verbose #213 > >
00:00:21 verbose #214 > > ╭─[ 88.71ms - stdout ]─────────────────────────────────────────────────────────╮
00:00:21 verbose #215 > > │ Some ()                                                                      │
00:00:21 verbose #216 > > │                                                                              │
00:00:21 verbose #217 > > │                                                                              │
00:00:21 verbose #218 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 verbose #219 > >
00:00:21 verbose #220 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:21 verbose #221 > > //// test
00:00:21 verbose #222 > >
00:00:21 verbose #223 > > async {
00:00:21 verbose #224 > >     raise (exn "error")
00:00:21 verbose #225 > > }
00:00:21 verbose #226 > > |> runWithTimeout 60
00:00:21 verbose #227 > > |> _assertEqual None
00:00:21 verbose #228 > >
00:00:21 verbose #229 > > ╭─[ 100.05ms - stdout ]────────────────────────────────────────────────────────╮
00:00:21 verbose #230 > > │ 00:00:01 critical #4 runWithTimeoutAsync** / ex: System.Exception:      │
00:00:21 verbose #231 > > │ error                                                                        │
00:00:21 verbose #232 > > │    at FSI_0036.it@4-119.Invoke(Unit unitVar)                                 │
00:00:21 verbose #233 > > │    at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[               │
00:00:21 verbose #234 > > │ T,TResult](AsyncActivation`1 ctxt, TResult result1, FSharpFunc`2 part2) in   │
00:00:21 verbose #235 > > │ D:\a\_work\1\s\src\FSharp.Core\async.fs:line 510                             │
00:00:21 verbose #236 > > │    at Microsoft.FSharp.Control.Trampoline.Execute(FSharpFunc`2 firstAction)  │
00:00:21 verbose #237 > > │ in D:\a\_work\1\s\src\FSharp.Core\async.fs:line 112                          │
00:00:21 verbose #238 > > │ --- End of stack trace from previous location ---                            │
00:00:21 verbose #239 > > │    at Microsoft.FSharp.Control.AsyncResult`1.Commit() in                     │
00:00:21 verbose #240 > > │ D:\a\_work\1\s\src\FSharp.Core\async.fs:line 454                             │
00:00:21 verbose #241 > > │    at                                                                        │
00:00:21 verbose #242 > > │ <StartupCode$FSharp-Core>.$Async.AwaitAndBindChildResult@1962-4.Invoke(Unit  │
00:00:21 verbose #243 > > │ unitVar) in D:\a\_work\1\s\src\FSharp.Core\async.fs:line 1964                │
00:00:21 verbose #244 > > │    at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[               │
00:00:21 verbose #245 > > │ T,TResult](AsyncActivation`1 ctxt, TResult result1, FSharpFunc`2 part2) in   │
00:00:21 verbose #246 > > │ D:\a\_work\1\s\src\FSharp.Core\async.fs:line 510                             │
00:00:21 verbose #247 > > │    at Microsoft.FSharp.Control.Trampoline.Execute(FSharpFunc`2 firstAction)  │
00:00:21 verbose #248 > > │ in D:\a\_work\1\s\src\FSharp.Core\async.fs:line 112 / timeout: 60            │
00:00:21 verbose #249 > > │ <null>                                                                       │
00:00:21 verbose #250 > > │                                                                              │
00:00:21 verbose #251 > > │                                                                              │
00:00:21 verbose #252 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 verbose #253 > >
00:00:21 verbose #254 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:21 verbose #255 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:21 verbose #256 > > │ ## runWithTimeoutStrict                                                      │
00:00:21 verbose #257 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 verbose #258 > >
00:00:21 verbose #259 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:21 verbose #260 > > let inline runWithTimeoutStrict (timeout : int) fn =
00:00:21 verbose #261 > >     let _locals () = $"timeout: {timeout} / {_locals ()}"
00:00:21 verbose #262 > >
00:00:21 verbose #263 > >     let timeoutTask = async {
00:00:21 verbose #264 > >         do! Async.Sleep timeout
00:00:21 verbose #265 > >         return None, _locals
00:00:21 verbose #266 > >     }
00:00:21 verbose #267 > >
00:00:21 verbose #268 > >     let task = async {
00:00:21 verbose #269 > >         try
00:00:21 verbose #270 > >             return Async.RunSynchronously (fn, timeout) |> Some, _locals
00:00:21 verbose #271 > >         with
00:00:21 verbose #272 > >         | :? System.TimeoutException as ex ->
00:00:21 verbose #273 > >             let _locals () = $"ex: {ex |> SpiralSm.format_exception} / {_locals
00:00:21 verbose #274 > > ()}"
00:00:21 verbose #275 > >             return None, _locals
00:00:21 verbose #276 > >         | ex ->
00:00:21 verbose #277 > >             trace Critical
00:00:21 verbose #278 > >                 (fun () -> "runWithTimeoutStrict / async error")
00:00:21 verbose #279 > >                 (fun () -> $"ex: {ex |> SpiralSm.format_exception} / {_locals
00:00:21 verbose #280 > > ()}")
00:00:21 verbose #281 > >             return raise ex
00:00:21 verbose #282 > >     }
00:00:21 verbose #283 > >
00:00:21 verbose #284 > >     try
00:00:21 verbose #285 > >         [[| timeoutTask; task |]]
00:00:21 verbose #286 > >         |> Array.map Async.StartAsTask
00:00:21 verbose #287 > >         |> System.Threading.Tasks.Task.WhenAny
00:00:21 verbose #288 > >         |> fun task ->
00:00:21 verbose #289 > >             match task.Result.Result with
00:00:21 verbose #290 > >             | None, _locals ->
00:00:21 verbose #291 > >                 trace Debug (fun () -> "runWithTimeoutStrict") _locals
00:00:21 verbose #292 > >                 None
00:00:21 verbose #293 > >             | result, _ -> result
00:00:21 verbose #294 > >     with
00:00:21 verbose #295 > >     | :? System.AggregateException as ex when
00:00:21 verbose #296 > >         ex.InnerExceptions
00:00:21 verbose #297 > >         |> Seq.exists (function :? System.Threading.Tasks.TaskCanceledException
00:00:21 verbose #298 > > -> true | _ -> false)
00:00:21 verbose #299 > >         ->
00:00:21 verbose #300 > >         trace Warning
00:00:21 verbose #301 > >             (fun () -> "runWithTimeoutStrict")
00:00:21 verbose #302 > >             (fun () -> $"ex: {ex |> SpiralSm.format_exception} / {_locals ()}")
00:00:21 verbose #303 > >         None
00:00:21 verbose #304 > >     | ex ->
00:00:21 verbose #305 > >         trace Critical
00:00:21 verbose #306 > >             (fun () -> "runWithTimeoutStrict / task error")
00:00:21 verbose #307 > >             (fun () -> $"ex: {ex |> SpiralSm.format_exception} / {_locals ()}")
00:00:21 verbose #308 > >         None
00:00:21 verbose #309 > >
00:00:21 verbose #310 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:21 verbose #311 > > //// test
00:00:21 verbose #312 > >
00:00:21 verbose #313 > > Async.Sleep 60
00:00:21 verbose #314 > > |> runWithTimeoutStrict 10
00:00:21 verbose #315 > > |> _assertEqual None
00:00:21 verbose #316 > >
00:00:21 verbose #317 > > ╭─[ 122.50ms - stdout ]────────────────────────────────────────────────────────╮
00:00:21 verbose #318 > > │ 00:00:02   debug #5 runWithTimeoutStrict / timeout: 10                  │
00:00:21 verbose #319 > > │ <null>                                                                       │
00:00:21 verbose #320 > > │                                                                              │
00:00:21 verbose #321 > > │                                                                              │
00:00:21 verbose #322 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 verbose #323 > >
00:00:21 verbose #324 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:21 verbose #325 > > //// test
00:00:21 verbose #326 > >
00:00:21 verbose #327 > > Async.Sleep 10
00:00:21 verbose #328 > > |> runWithTimeoutStrict 60
00:00:21 verbose #329 > > |> _assertEqual (Some ())
00:00:22 verbose #330 > >
00:00:22 verbose #331 > > ╭─[ 123.46ms - stdout ]────────────────────────────────────────────────────────╮
00:00:22 verbose #332 > > │ Some ()                                                                      │
00:00:22 verbose #333 > > │                                                                              │
00:00:22 verbose #334 > > │                                                                              │
00:00:22 verbose #335 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 verbose #336 > >
00:00:22 verbose #337 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:22 verbose #338 > > //// test
00:00:22 verbose #339 > >
00:00:22 verbose #340 > > async {
00:00:22 verbose #341 > >     raise (exn "error")
00:00:22 verbose #342 > > }
00:00:22 verbose #343 > > |> runWithTimeoutStrict 60
00:00:22 verbose #344 > > |> _assertEqual None
00:00:22 verbose #345 > >
00:00:22 verbose #346 > > ╭─[ 138.87ms - stdout ]────────────────────────────────────────────────────────╮
00:00:22 verbose #347 > > │ 00:00:02 critical #6 runWithTimeoutStrict / async error / ex:           │
00:00:22 verbose #348 > > │ System.Exception: error / timeout: 60                                        │
00:00:22 verbose #349 > > │ 00:00:02 critical #7 runWithTimeoutStrict / task error / ex:            │
00:00:22 verbose #350 > > │ System.AggregateException: One or more errors occurred. (error) / timeout:   │
00:00:22 verbose #351 > > │ 60                                                                           │
00:00:22 verbose #352 > > │ <null>                                                                       │
00:00:22 verbose #353 > > │                                                                              │
00:00:22 verbose #354 > > │                                                                              │
00:00:22 verbose #355 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 verbose #356 > >
00:00:22 verbose #357 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:22 verbose #358 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:22 verbose #359 > > │ ## awaitValueTask                                                            │
00:00:22 verbose #360 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 verbose #361 > >
00:00:22 verbose #362 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:22 verbose #363 > > let inline awaitValueTaskUnit (task : System.Threading.Tasks.ValueTask) =
00:00:22 verbose #364 > >     task.AsTask () |> Async.AwaitTask
00:00:22 verbose #365 > >
00:00:22 verbose #366 > > let inline awaitValueTask (task : System.Threading.Tasks.ValueTask<_>) =
00:00:22 verbose #367 > >     task.AsTask () |> Async.AwaitTask
00:00:22 verbose #368 > >
00:00:22 verbose #369 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:22 verbose #370 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:22 verbose #371 > > │ ## init                                                                      │
00:00:22 verbose #372 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 verbose #373 > >
00:00:22 verbose #374 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:22 verbose #375 > > let inline init x = async {
00:00:22 verbose #376 > >     return x
00:00:22 verbose #377 > > }
00:00:22 verbose #378 > >
00:00:22 verbose #379 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:22 verbose #380 > > //// test
00:00:22 verbose #381 > >
00:00:22 verbose #382 > > init 1
00:00:22 verbose #383 > > |> Async.RunSynchronously
00:00:22 verbose #384 > > |> _assertEqual 1
00:00:22 verbose #385 > >
00:00:22 verbose #386 > > ╭─[ 30.81ms - stdout ]─────────────────────────────────────────────────────────╮
00:00:22 verbose #387 > > │ 1                                                                            │
00:00:22 verbose #388 > > │                                                                              │
00:00:22 verbose #389 > > │                                                                              │
00:00:22 verbose #390 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 verbose #391 > >
00:00:22 verbose #392 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:22 verbose #393 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:22 verbose #394 > > │ ## withCancellationToken                                                     │
00:00:22 verbose #395 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 verbose #396 > >
00:00:22 verbose #397 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:22 verbose #398 > > let inline withCancellationToken (ct : System.Threading.CancellationToken) fn =
00:00:22 verbose #399 > >     Async.StartImmediateAsTask (fn, ct)
00:00:22 verbose #400 > >     |> Async.AwaitTask
00:00:22 verbose #401 > >
00:00:22 verbose #402 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:22 verbose #403 > > //// test
00:00:22 verbose #404 > >
00:00:22 verbose #405 > > let cts = new System.Threading.CancellationTokenSource ()
00:00:22 verbose #406 > >
00:00:22 verbose #407 > > async {
00:00:22 verbose #408 > >     let run = async {
00:00:22 verbose #409 > >         do! Async.Sleep 100
00:00:22 verbose #410 > >         return 1
00:00:22 verbose #411 > >     }
00:00:22 verbose #412 > >
00:00:22 verbose #413 > >     let! child =
00:00:22 verbose #414 > >         run
00:00:22 verbose #415 > >         |> withCancellationToken cts.Token
00:00:22 verbose #416 > >         |> catch
00:00:22 verbose #417 > >         |> Async.StartChild
00:00:22 verbose #418 > >
00:00:22 verbose #419 > >     do! Async.Sleep 50
00:00:22 verbose #420 > >     cts.Cancel ()
00:00:22 verbose #421 > >     return! child
00:00:22 verbose #422 > > }
00:00:22 verbose #423 > > |> Async.RunSynchronously
00:00:22 verbose #424 > > |> Result.mapError _.Message
00:00:22 verbose #425 > > |> _assertEqual (Error ("A task was canceled."))
00:00:22 verbose #426 > >
00:00:22 verbose #427 > > ╭─[ 184.84ms - stdout ]────────────────────────────────────────────────────────╮
00:00:22 verbose #428 > > │ Error "A task was canceled."                                                 │
00:00:22 verbose #429 > > │                                                                              │
00:00:22 verbose #430 > > │                                                                              │
00:00:22 verbose #431 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 verbose #432 > >
00:00:22 verbose #433 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:22 verbose #434 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:22 verbose #435 > > │ ## retryAsync                                                                │
00:00:22 verbose #436 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 verbose #437 > >
00:00:22 verbose #438 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:22 verbose #439 > > let inline retryAsync retries fn =
00:00:22 verbose #440 > >     let rec loop retry lastError = async {
00:00:22 verbose #441 > >         try
00:00:22 verbose #442 > >             return!
00:00:22 verbose #443 > >                 if retry <= retries
00:00:22 verbose #444 > >                 then fn |> map Ok
00:00:22 verbose #445 > >                 else lastError |> Error |> init
00:00:22 verbose #446 > >         with ex ->
00:00:22 verbose #447 > >             trace Debug (fun () -> $"Async.retryAsync / retry: {retry}/{retries}
00:00:22 verbose #448 > > / ex: {ex |> SpiralSm.format_exception}") _locals
00:00:22 verbose #449 > >             do! Async.Sleep 1
00:00:22 verbose #450 > >             return! loop (retry + 1) (ex |> SpiralSm.format_exception)
00:00:22 verbose #451 > >     }
00:00:22 verbose #452 > >     loop 1 "Async.retryAsync / invalid retries / retries: {retries}"
00:00:22 verbose #453 > >
00:00:22 verbose #454 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:22 verbose #455 > > //// test
00:00:22 verbose #456 > >
00:00:22 verbose #457 > > let retry_fn_test = ref 0
00:00:22 verbose #458 > > async {
00:00:22 verbose #459 > >     retry_fn_test.Value <- retry_fn_test.Value + 1
00:00:22 verbose #460 > >     return retry_fn_test.Value
00:00:22 verbose #461 > > }
00:00:22 verbose #462 > > |> retryAsync 3
00:00:22 verbose #463 > > |> Async.RunSynchronously
00:00:22 verbose #464 > > |> _assertEqual (Ok 1)
00:00:22 verbose #465 > >
00:00:22 verbose #466 > > ╭─[ 104.10ms - stdout ]────────────────────────────────────────────────────────╮
00:00:22 verbose #467 > > │ Ok 1                                                                         │
00:00:22 verbose #468 > > │                                                                              │
00:00:22 verbose #469 > > │                                                                              │
00:00:22 verbose #470 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 verbose #471 > >
00:00:22 verbose #472 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:22 verbose #473 > > //// test
00:00:22 verbose #474 > >
00:00:22 verbose #475 > > let retry_fn_test = ref 0
00:00:22 verbose #476 > > async {
00:00:22 verbose #477 > >     return
00:00:22 verbose #478 > >         if retry_fn_test.Value >= 2
00:00:22 verbose #479 > >         then retry_fn_test.Value
00:00:22 verbose #480 > >         else
00:00:22 verbose #481 > >             retry_fn_test.Value <- retry_fn_test.Value + 1
00:00:22 verbose #482 > >             failwith "test"
00:00:22 verbose #483 > > }
00:00:22 verbose #484 > > |> retryAsync 3
00:00:22 verbose #485 > > |> Async.RunSynchronously
00:00:22 verbose #486 > > |> _assertEqual (Ok 2)
00:00:22 verbose #487 > >
00:00:22 verbose #488 > > ╭─[ 114.35ms - stdout ]────────────────────────────────────────────────────────╮
00:00:22 verbose #489 > > │ 00:00:02   debug #8 Async.retryAsync / retry: 1/3 / ex:                 │
00:00:22 verbose #490 > > │ System.Exception: test                                                       │
00:00:22 verbose #491 > > │ 00:00:02   debug #9 Async.retryAsync / retry: 2/3 / ex:                 │
00:00:22 verbose #492 > > │ System.Exception: test                                                       │
00:00:22 verbose #493 > > │ Ok 2                                                                         │
00:00:22 verbose #494 > > │                                                                              │
00:00:22 verbose #495 > > │                                                                              │
00:00:22 verbose #496 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 verbose #497 > >
00:00:22 verbose #498 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:22 verbose #499 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:22 verbose #500 > > │ ## fold                                                                      │
00:00:22 verbose #501 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 verbose #502 > >
00:00:22 verbose #503 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:22 verbose #504 > > let fold folder state array =
00:00:22 verbose #505 > >     let rec loop acc i =
00:00:22 verbose #506 > >         async {
00:00:22 verbose #507 > >             if i < Array.length array then
00:00:22 verbose #508 > >                 let! newAcc = folder acc array.[[i]]
00:00:22 verbose #509 > >                 return! loop newAcc (i + 1)
00:00:22 verbose #510 > >             else
00:00:22 verbose #511 > >                 return acc
00:00:22 verbose #512 > >         }
00:00:22 verbose #513 > >     loop state 0
00:00:23 verbose #514 > 00:00:21 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 21257 }
00:00:23 verbose #515 > 00:00:21   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/fsharp/Async.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/fsharp/Async.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:24 verbose #516 > 00:00:23 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/fsharp/Async.dib.ipynb to html
00:00:24 verbose #517 > 00:00:23 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:24 verbose #518 > 00:00:23 verbose #7 !   validate(nb)
00:00:26 verbose #519 > 00:00:24 verbose #8 ! [NbConvertApp] Writing 332760 bytes to c:\home\git\polyglot\lib\fsharp\Async.dib.html
00:00:26 verbose #520 > 00:00:24 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 641 }
00:00:26 verbose #521 > 00:00:24   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 641 }
00:00:26 verbose #522 > 00:00:24   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/fsharp/Async.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/fsharp/Async.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:27 verbose #523 > 00:00:25 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:00:27 verbose #524 > 00:00:25   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:00:27 verbose #525 > 00:00:25   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 21957 }
00:00:27   debug #526 runtime.execute_with_options_async / { exit_code = 0; output_length = 25573 }
00:00:27   debug #3 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path Async.dib --retries 3
00:00:27   debug #527 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path AsyncSeq.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:27 verbose #528 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "AsyncSeq.dib", "--retries", "3"])) }
00:00:27 verbose #529 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/fsharp/AsyncSeq.dib", "--output-path", "c:/home/git/polyglot/lib/fsharp/AsyncSeq.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/fsharp/AsyncSeq.dib" --output-path "c:/home/git/polyglot/lib/fsharp/AsyncSeq.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:00:29 verbose #530 > >
00:00:29 verbose #531 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:29 verbose #532 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:29 verbose #533 > > │ # AsyncSeq (Polyglot)                                                        │
00:00:29 verbose #534 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:46 verbose #535 > >
00:00:46 verbose #536 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:46 verbose #537 > > #r
00:00:46 verbose #538 > > @"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
00:00:46 verbose #539 > > dard2.1/FSharp.Control.AsyncSeq.dll"
00:00:46 verbose #540 > > #r
00:00:46 verbose #541 > > @"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
00:00:46 verbose #542 > > 0/System.Reactive.dll"
00:00:46 verbose #543 > > #r
00:00:46 verbose #544 > > @"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib
00:00:46 verbose #545 > > netstandard2.0/System.Reactive.Linq.dll"
00:00:46 verbose #546 > >
00:00:46 verbose #547 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:46 verbose #548 > > #if !INTERACTIVE
00:00:46 verbose #549 > > open Lib
00:00:46 verbose #550 > > #endif
00:00:46 verbose #551 > >
00:00:46 verbose #552 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:46 verbose #553 > > open Common
00:00:46 verbose #554 > >
00:00:46 verbose #555 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:46 verbose #556 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:46 verbose #557 > > │ ## subscribeEvent                                                            │
00:00:46 verbose #558 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:46 verbose #559 > >
00:00:46 verbose #560 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:46 verbose #561 > > let inline subscribeEvent (event: IEvent<'H, 'A>) map =
00:00:46 verbose #562 > >     let observable = System.Reactive.Linq.Observable.FromEventPattern<'H,
00:00:46 verbose #563 > > 'A>(event.AddHandler, event.RemoveHandler)
00:00:46 verbose #564 > >     System.Reactive.Linq.Observable.Select (observable, fun event -> map
00:00:46 verbose #565 > > event.EventArgs)
00:00:46 verbose #566 > >     |> FSharp.Control.AsyncSeq.ofObservableBuffered
00:00:47 verbose #567 > >
00:00:47 verbose #568 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:47 verbose #569 > > //// test
00:00:47 verbose #570 > >
00:00:47 verbose #571 > > type TestEvent () as self =
00:00:47 verbose #572 > >     member val Calls = [[]] with get, set
00:00:47 verbose #573 > >     member val Event = Event<ErrorEventHandler, ErrorEventArgs> () with get
00:00:47 verbose #574 > >
00:00:47 verbose #575 > >     member _.AddCall text =
00:00:47 verbose #576 > >         self.Calls <- self.Calls @ [[ text ]]
00:00:47 verbose #577 > >
00:00:47 verbose #578 > >     member _.EventInterface =
00:00:47 verbose #579 > >         { new IEvent<ErrorEventHandler, ErrorEventArgs> with
00:00:47 verbose #580 > >             member _.AddHandler handler =
00:00:47 verbose #581 > >                 self.AddCall "AddHandler"
00:00:47 verbose #582 > >                 self.Event.Publish.AddHandler handler
00:00:47 verbose #583 > >
00:00:47 verbose #584 > >             member _.RemoveHandler handler =
00:00:47 verbose #585 > >                 self.AddCall "RemoveHandler"
00:00:47 verbose #586 > >                 self.Event.Publish.RemoveHandler handler
00:00:47 verbose #587 > >
00:00:47 verbose #588 > >             member _.Subscribe observer =
00:00:47 verbose #589 > >                 self.AddCall "IObservable.Subscribe"
00:00:47 verbose #590 > >                 let disposable = self.Event.Publish.Subscribe observer
00:00:47 verbose #591 > >                 new_disposable (fun () ->
00:00:47 verbose #592 > >                     self.AddCall "IObservable.Dispose"
00:00:47 verbose #593 > >                     disposable.Dispose ()
00:00:47 verbose #594 > >                 )
00:00:47 verbose #595 > >         }
00:00:47 verbose #596 > >
00:00:47 verbose #597 > >     member _.Subscribe () =
00:00:47 verbose #598 > >         subscribeEvent
00:00:47 verbose #599 > >             self.EventInterface
00:00:47 verbose #600 > >             (fun args ->
00:00:47 verbose #601 > >                 let result = args.GetException () |> SpiralSm.format_exception
00:00:47 verbose #602 > >                 self.AddCall $"TestEvent.Subscribe({result})"
00:00:47 verbose #603 > >                 result
00:00:47 verbose #604 > >             )
00:00:47 verbose #605 > >
00:00:47 verbose #606 > >     member _.Iter subscription =
00:00:47 verbose #607 > >         subscription
00:00:47 verbose #608 > >         |> FSharp.Control.AsyncSeq.iteriAsync (fun i error -> async {
00:00:47 verbose #609 > >             self.AddCall $"TestEvent.Iter({i}: {error})"
00:00:47 verbose #610 > >         })
00:00:47 verbose #611 > >
00:00:47 verbose #612 > >     member _.WaitCall text = async {
00:00:47 verbose #613 > >         while self.Calls |> List.last <> text do
00:00:47 verbose #614 > >             do! Async.SwitchToThreadPool ()
00:00:47 verbose #615 > >     }
00:00:47 verbose #616 > >
00:00:47 verbose #617 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:47 verbose #618 > > //// test
00:00:47 verbose #619 > >
00:00:47 verbose #620 > > let testEvent = TestEvent ()
00:00:47 verbose #621 > >
00:00:47 verbose #622 > > async {
00:00:47 verbose #623 > >     testEvent.AddCall "1"
00:00:47 verbose #624 > >     let! child = testEvent.Subscribe () |> testEvent.Iter |> Async.StartChild
00:00:47 verbose #625 > >     do! testEvent.WaitCall "AddHandler"
00:00:47 verbose #626 > >     testEvent.AddCall "2"
00:00:47 verbose #627 > >     do! child
00:00:47 verbose #628 > >     testEvent.AddCall "3"
00:00:47 verbose #629 > > }
00:00:47 verbose #630 > > |> Async.runWithTimeout 300
00:00:47 verbose #631 > > |> _assertEqual None
00:00:47 verbose #632 > >
00:00:47 verbose #633 > > testEvent.Calls
00:00:47 verbose #634 > > |> Seq.toList
00:00:47 verbose #635 > > |> _assertEqual [[ "1"; "AddHandler"; "2"; "RemoveHandler" ]]
00:00:47 verbose #636 > >
00:00:47 verbose #637 > > ╭─[ 504.59ms - stdout ]────────────────────────────────────────────────────────╮
00:00:47 verbose #638 > > │ 00:00:01   debug #1 runWithTimeoutAsync / timeout: 300                  │
00:00:47 verbose #639 > > │ <null>                                                                       │
00:00:47 verbose #640 > > │                                                                              │
00:00:47 verbose #641 > > │ ["1"; "AddHandler"; "2"; "RemoveHandler"]                                    │
00:00:47 verbose #642 > > │                                                                              │
00:00:47 verbose #643 > > │                                                                              │
00:00:47 verbose #644 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:47 verbose #645 > >
00:00:47 verbose #646 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:47 verbose #647 > > //// test
00:00:47 verbose #648 > >
00:00:47 verbose #649 > > let testEvent = TestEvent ()
00:00:47 verbose #650 > >
00:00:47 verbose #651 > > async {
00:00:47 verbose #652 > >     testEvent.AddCall "1"
00:00:47 verbose #653 > >     let! child = testEvent.Subscribe () |> testEvent.Iter |> Async.StartChild
00:00:47 verbose #654 > >     do! testEvent.WaitCall "AddHandler"
00:00:47 verbose #655 > >     testEvent.AddCall "2"
00:00:47 verbose #656 > >     use _ = testEvent.EventInterface.Subscribe (fun args ->
00:00:47 verbose #657 > >         testEvent.AddCall $"testEvent.EventInterface.Subscribe({args})"
00:00:47 verbose #658 > >     )
00:00:47 verbose #659 > >     testEvent.AddCall "3"
00:00:47 verbose #660 > >     do! child
00:00:47 verbose #661 > >     testEvent.AddCall "4"
00:00:47 verbose #662 > > }
00:00:47 verbose #663 > > |> Async.runWithTimeout 300
00:00:47 verbose #664 > > |> _assertEqual None
00:00:47 verbose #665 > >
00:00:47 verbose #666 > > testEvent.Calls
00:00:47 verbose #667 > > |> _assertEqual [[ "1"; "AddHandler"; "2"; "IObservable.Subscribe"; "3";
00:00:47 verbose #668 > > "RemoveHandler"; "IObservable.Dispose" ]]
00:00:48 verbose #669 > >
00:00:48 verbose #670 > > ╭─[ 521.02ms - stdout ]────────────────────────────────────────────────────────╮
00:00:48 verbose #671 > > │ 00:00:02   debug #2 runWithTimeoutAsync / timeout: 300                  │
00:00:48 verbose #672 > > │ <null>                                                                       │
00:00:48 verbose #673 > > │                                                                              │
00:00:48 verbose #674 > > │ ["1"; "AddHandler"; "2"; "IObservable.Subscribe"; "3"; "RemoveHandler";      │
00:00:48 verbose #675 > > │ "IObservable.Dispose"]                                                       │
00:00:48 verbose #676 > > │                                                                              │
00:00:48 verbose #677 > > │                                                                              │
00:00:48 verbose #678 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:48 verbose #679 > >
00:00:48 verbose #680 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:48 verbose #681 > > //// test
00:00:48 verbose #682 > >
00:00:48 verbose #683 > > let testEvent = TestEvent ()
00:00:48 verbose #684 > >
00:00:48 verbose #685 > > async {
00:00:48 verbose #686 > >     testEvent.AddCall "1"
00:00:48 verbose #687 > >     let! child = testEvent.Subscribe () |> testEvent.Iter |> Async.StartChild
00:00:48 verbose #688 > >     do! testEvent.WaitCall "AddHandler"
00:00:48 verbose #689 > >     testEvent.AddCall "2"
00:00:48 verbose #690 > >     use _ = testEvent.EventInterface.Subscribe (fun args ->
00:00:48 verbose #691 > >         async {
00:00:48 verbose #692 > >             do! testEvent.WaitCall "TestEvent.Iter(0: System.Exception: error)"
00:00:48 verbose #693 > >             testEvent.AddCall
00:00:48 verbose #694 > > $"testEvent.EventInterface.Subscribe({args.GetException () |>
00:00:48 verbose #695 > > SpiralSm.format_exception})"
00:00:48 verbose #696 > >         }
00:00:48 verbose #697 > >         |> Async.RunSynchronously
00:00:48 verbose #698 > >     )
00:00:48 verbose #699 > >     testEvent.AddCall "3"
00:00:48 verbose #700 > >     testEvent.Event.Trigger (null, ErrorEventArgs (Exception "error"))
00:00:48 verbose #701 > >     testEvent.AddCall "4"
00:00:48 verbose #702 > >     do! child
00:00:48 verbose #703 > >     testEvent.AddCall "5"
00:00:48 verbose #704 > > }
00:00:48 verbose #705 > > |> Async.runWithTimeout 300
00:00:48 verbose #706 > > |> _assertEqual None
00:00:48 verbose #707 > >
00:00:48 verbose #708 > > testEvent.Calls
00:00:48 verbose #709 > > |> _assertEqual [[
00:00:48 verbose #710 > >     "1"
00:00:48 verbose #711 > >     "AddHandler"
00:00:48 verbose #712 > >     "2"
00:00:48 verbose #713 > >     "IObservable.Subscribe"
00:00:48 verbose #714 > >     "3"
00:00:48 verbose #715 > >     "TestEvent.Subscribe(System.Exception: error)"
00:00:48 verbose #716 > >     "TestEvent.Iter(0: System.Exception: error)"
00:00:48 verbose #717 > >     "testEvent.EventInterface.Subscribe(System.Exception: error)"
00:00:48 verbose #718 > >     "4"
00:00:48 verbose #719 > >     "RemoveHandler"
00:00:48 verbose #720 > >     "IObservable.Dispose"
00:00:48 verbose #721 > > ]]
00:00:48 verbose #722 > >
00:00:48 verbose #723 > > ╭─[ 452.24ms - stdout ]────────────────────────────────────────────────────────╮
00:00:48 verbose #724 > > │ 00:00:02   debug #3 runWithTimeoutAsync / timeout: 300                  │
00:00:48 verbose #725 > > │ <null>                                                                       │
00:00:48 verbose #726 > > │                                                                              │
00:00:48 verbose #727 > > │ ["1"; "AddHandler"; "2"; "IObservable.Subscribe"; "3";                       │
00:00:48 verbose #728 > > │ "TestEvent.Subscribe(System.Exception: error)";                              │
00:00:48 verbose #729 > > │  "TestEvent.Iter(0: System.Exception: error)";                               │
00:00:48 verbose #730 > > │ "testEvent.EventInterface.Subscribe(System.Exception: error)"; "4";          │
00:00:48 verbose #731 > > │  "RemoveHandler"; "IObservable.Dispose"]                                     │
00:00:48 verbose #732 > > │                                                                              │
00:00:48 verbose #733 > > │                                                                              │
00:00:48 verbose #734 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:48 verbose #735 > >
00:00:48 verbose #736 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:48 verbose #737 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:48 verbose #738 > > │ ## subscribeToken                                                            │
00:00:48 verbose #739 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:48 verbose #740 > >
00:00:48 verbose #741 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:48 verbose #742 > > let subscribeToken (token : System.Threading.CancellationToken) =
00:00:48 verbose #743 > >     let tcs = new System.Threading.Tasks.TaskCompletionSource ()
00:00:48 verbose #744 > >     System.Action tcs.SetResult |> token.Register |> ignore
00:00:48 verbose #745 > >     let start = System.DateTime.Now.Ticks
00:00:48 verbose #746 > >     FSharp.Control.AsyncSeq.unfoldAsync
00:00:48 verbose #747 > >         (fun () -> async {
00:00:48 verbose #748 > >             do! tcs.Task |> Async.AwaitTask
00:00:48 verbose #749 > >             return Some (System.DateTime.Now.Ticks - start, ())
00:00:48 verbose #750 > >         })
00:00:48 verbose #751 > >         ()
00:00:48 verbose #752 > >
00:00:48 verbose #753 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:48 verbose #754 > > //// test
00:00:48 verbose #755 > >
00:00:48 verbose #756 > > let cts = new System.Threading.CancellationTokenSource ()
00:00:48 verbose #757 > >
00:00:48 verbose #758 > > async {
00:00:48 verbose #759 > >     let! child =
00:00:48 verbose #760 > >         cts.Token
00:00:48 verbose #761 > >         |> subscribeToken
00:00:48 verbose #762 > >         |> FSharp.Control.AsyncSeq.tryFirst
00:00:48 verbose #763 > >         |> Async.StartChild
00:00:48 verbose #764 > >
00:00:48 verbose #765 > >     do! Async.Sleep 100
00:00:48 verbose #766 > >     cts.Cancel ()
00:00:48 verbose #767 > >     return! child
00:00:48 verbose #768 > > }
00:00:48 verbose #769 > > |> Async.RunSynchronously
00:00:48 verbose #770 > > |> Option.get
00:00:48 verbose #771 > > |> fun x -> x > 900000
00:00:48 verbose #772 > > |> _assertEqual true
00:00:48 verbose #773 > >
00:00:48 verbose #774 > > ╭─[ 177.50ms - stdout ]────────────────────────────────────────────────────────╮
00:00:48 verbose #775 > > │ true                                                                         │
00:00:48 verbose #776 > > │                                                                              │
00:00:48 verbose #777 > > │                                                                              │
00:00:48 verbose #778 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:49 verbose #779 > 00:00:21 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 9731 }
00:00:49 verbose #780 > 00:00:21   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/fsharp/AsyncSeq.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/fsharp/AsyncSeq.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:50 verbose #781 > 00:00:23 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/fsharp/AsyncSeq.dib.ipynb to html
00:00:50 verbose #782 > 00:00:23 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:50 verbose #783 > 00:00:23 verbose #7 !   validate(nb)
00:00:52 verbose #784 > 00:00:24 verbose #8 ! [NbConvertApp] Writing 302872 bytes to c:\home\git\polyglot\lib\fsharp\AsyncSeq.dib.html
00:00:52 verbose #785 > 00:00:24 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 647 }
00:00:52 verbose #786 > 00:00:24   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 647 }
00:00:52 verbose #787 > 00:00:24   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/fsharp/AsyncSeq.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/fsharp/AsyncSeq.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:53 verbose #788 > 00:00:25 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:00:53 verbose #789 > 00:00:25   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:00:53 verbose #790 > 00:00:25   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 10437 }
00:00:53   debug #791 runtime.execute_with_options_async / { exit_code = 0; output_length = 13569 }
00:00:53   debug #4 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path AsyncSeq.dib --retries 3
00:00:53   debug #792 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path Common.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:53 verbose #793 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "Common.dib", "--retries", "3"])) }
00:00:53 verbose #794 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/fsharp/Common.dib", "--output-path", "c:/home/git/polyglot/lib/fsharp/Common.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/fsharp/Common.dib" --output-path "c:/home/git/polyglot/lib/fsharp/Common.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:00:55 verbose #795 > >
00:00:55 verbose #796 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:55 verbose #797 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:55 verbose #798 > > │ # Common (Polyglot)                                                          │
00:00:55 verbose #799 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:12 verbose #800 > >
00:01:12 verbose #801 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:12 verbose #802 > > #if !INTERACTIVE
00:01:12 verbose #803 > > open Lib
00:01:12 verbose #804 > > #endif
00:01:12 verbose #805 > >
00:01:12 verbose #806 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:12 verbose #807 > > let nl = System.Environment.NewLine
00:01:12 verbose #808 > > let q = @""""
00:01:12 verbose #809 > >
00:01:12 verbose #810 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:12 verbose #811 > > let inline cons head tail = head :: tail
00:01:12 verbose #812 > >
00:01:12 verbose #813 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:12 verbose #814 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:12 verbose #815 > > │ ## memoize                                                                   │
00:01:12 verbose #816 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:12 verbose #817 > >
00:01:12 verbose #818 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:12 verbose #819 > > let inline memoize fn =
00:01:12 verbose #820 > >     let result = lazy fn ()
00:01:12 verbose #821 > >     fun () -> result.Value
00:01:12 verbose #822 > >
00:01:12 verbose #823 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:12 verbose #824 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:12 verbose #825 > > │ ## TraceLevel                                                                │
00:01:12 verbose #826 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:12 verbose #827 > >
00:01:12 verbose #828 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:12 verbose #829 > > type TraceLevel =
00:01:12 verbose #830 > >     | Verbose
00:01:12 verbose #831 > >     | Debug
00:01:12 verbose #832 > >     | Info
00:01:12 verbose #833 > >     | Warning
00:01:12 verbose #834 > >     | Critical
00:01:12 verbose #835 > >
00:01:12 verbose #836 > > let inline _locals () = ""
00:01:12 verbose #837 > >
00:01:12 verbose #838 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:12 verbose #839 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:12 verbose #840 > > │ ## trace                                                                     │
00:01:12 verbose #841 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:12 verbose #842 > >
00:01:12 verbose #843 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:12 verbose #844 > > let to_trace_level = function
00:01:12 verbose #845 > >     | Verbose -> SpiralTrace.TraceLevel.US0_0
00:01:12 verbose #846 > >     | Debug -> SpiralTrace.TraceLevel.US0_1
00:01:12 verbose #847 > >     | Info -> SpiralTrace.TraceLevel.US0_2
00:01:12 verbose #848 > >     | Warning -> SpiralTrace.TraceLevel.US0_3
00:01:12 verbose #849 > >     | Critical -> SpiralTrace.TraceLevel.US0_4
00:01:12 verbose #850 > >
00:01:12 verbose #851 > > let trace level fn locals =
00:01:12 verbose #852 > >     let level = level |> to_trace_level
00:01:12 verbose #853 > >     SpiralTrace.trace level fn locals
00:01:12 verbose #854 > >
00:01:12 verbose #855 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:12 verbose #856 > > //// test
00:01:12 verbose #857 > >
00:01:12 verbose #858 > > trace Debug (fun () -> "test") _locals
00:01:12 verbose #859 > >
00:01:12 verbose #860 > > ╭─[ 26.11ms - stdout ]─────────────────────────────────────────────────────────╮
00:01:12 verbose #861 > > │ 00:00:00   debug #1 test                                                │
00:01:12 verbose #862 > > │                                                                              │
00:01:12 verbose #863 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:12 verbose #864 > 00:00:18 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 2930 }
00:01:12 verbose #865 > 00:00:18   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/fsharp/Common.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/fsharp/Common.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:14 verbose #866 > 00:00:20 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/fsharp/Common.dib.ipynb to html
00:01:14 verbose #867 > 00:00:20 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:01:14 verbose #868 > 00:00:20 verbose #7 !   validate(nb)
00:01:15 verbose #869 > 00:00:21 verbose #8 ! [NbConvertApp] Writing 280734 bytes to c:\home\git\polyglot\lib\fsharp\Common.dib.html
00:01:15 verbose #870 > 00:00:22 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 643 }
00:01:15 verbose #871 > 00:00:22   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 643 }
00:01:15 verbose #872 > 00:00:22   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/fsharp/Common.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/fsharp/Common.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:16 verbose #873 > 00:00:22 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:01:16 verbose #874 > 00:00:22   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:01:17 verbose #875 > 00:00:23   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 3632 }
00:01:17   debug #876 runtime.execute_with_options_async / { exit_code = 0; output_length = 6385 }
00:01:17   debug #5 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path Common.dib --retries 3
00:01:17   debug #877 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path CommonFSharp.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:17 verbose #878 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "CommonFSharp.dib", "--retries", "3"])) }
00:01:17 verbose #879 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/fsharp/CommonFSharp.dib", "--output-path", "c:/home/git/polyglot/lib/fsharp/CommonFSharp.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/fsharp/CommonFSharp.dib" --output-path "c:/home/git/polyglot/lib/fsharp/CommonFSharp.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:01:19 verbose #880 > >
00:01:19 verbose #881 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:19 verbose #882 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:19 verbose #883 > > │ # CommonFSharp (Polyglot)                                                    │
00:01:19 verbose #884 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:36 verbose #885 > >
00:01:36 verbose #886 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:36 verbose #887 > > open Common
00:01:36 verbose #888 > >
00:01:36 verbose #889 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:36 verbose #890 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:36 verbose #891 > > │ ## getUnionCaseName                                                          │
00:01:36 verbose #892 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:36 verbose #893 > >
00:01:36 verbose #894 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:36 verbose #895 > > let inline getUnionCaseName<'T> (x: 'T) =
00:01:36 verbose #896 > >     match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with
00:01:36 verbose #897 > >     | case, _ -> case.Name
00:01:36 verbose #898 > >
00:01:36 verbose #899 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:36 verbose #900 > > //// test
00:01:36 verbose #901 > >
00:01:36 verbose #902 > > TraceLevel.Critical
00:01:36 verbose #903 > > |> getUnionCaseName
00:01:36 verbose #904 > > |> _assertEqual (nameof TraceLevel.Critical)
00:01:36 verbose #905 > >
00:01:36 verbose #906 > > ╭─[ 73.06ms - stdout ]─────────────────────────────────────────────────────────╮
00:01:36 verbose #907 > > │ "Critical"                                                                   │
00:01:36 verbose #908 > > │                                                                              │
00:01:36 verbose #909 > > │                                                                              │
00:01:36 verbose #910 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:37 verbose #911 > 00:00:19 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 1546 }
00:01:37 verbose #912 > 00:00:19   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/fsharp/CommonFSharp.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/fsharp/CommonFSharp.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:38 verbose #913 > 00:00:21 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/fsharp/CommonFSharp.dib.ipynb to html
00:01:38 verbose #914 > 00:00:21 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:01:38 verbose #915 > 00:00:21 verbose #7 !   validate(nb)
00:01:40 verbose #916 > 00:00:22 verbose #8 ! [NbConvertApp] Writing 275592 bytes to c:\home\git\polyglot\lib\fsharp\CommonFSharp.dib.html
00:01:40 verbose #917 > 00:00:23 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 655 }
00:01:40 verbose #918 > 00:00:23   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 655 }
00:01:40 verbose #919 > 00:00:23   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/fsharp/CommonFSharp.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/fsharp/CommonFSharp.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:41 verbose #920 > 00:00:24 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:01:41 verbose #921 > 00:00:24   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:01:41 verbose #922 > 00:00:24   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 2260 }
00:01:41   debug #923 runtime.execute_with_options_async / { exit_code = 0; output_length = 4991 }
00:01:41   debug #6 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path CommonFSharp.dib --retries 3
00:01:41   debug #924 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path FileSystem.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:41 verbose #925 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "FileSystem.dib", "--retries", "3"])) }
00:01:41 verbose #926 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/fsharp/FileSystem.dib", "--output-path", "c:/home/git/polyglot/lib/fsharp/FileSystem.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/fsharp/FileSystem.dib" --output-path "c:/home/git/polyglot/lib/fsharp/FileSystem.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:01:43 verbose #927 > >
00:01:43 verbose #928 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:43 verbose #929 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:43 verbose #930 > > │ # FileSystem (Polyglot)                                                      │
00:01:43 verbose #931 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:47 verbose #932 > >
00:01:47 verbose #933 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:47 verbose #934 > > #r
00:01:47 verbose #935 > > @"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
00:01:47 verbose #936 > > dard2.1/FSharp.Control.AsyncSeq.dll"
00:01:47 verbose #937 > > #r
00:01:47 verbose #938 > > @"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
00:01:47 verbose #939 > > 0/System.Reactive.dll"
00:01:47 verbose #940 > > #r
00:01:47 verbose #941 > > @"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib
00:01:47 verbose #942 > > netstandard2.0/System.Reactive.Linq.dll"
00:01:47 verbose #943 > > #r
00:01:47 verbose #944 > > @"../../../../../../../.nuget/packages/argu/6.2.4/lib/netstandard2.0/Argu.dll"
00:02:02 verbose #945 > >
00:02:02 verbose #946 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:02 verbose #947 > > #if !INTERACTIVE
00:02:02 verbose #948 > > open Lib
00:02:02 verbose #949 > > #endif
00:02:02 verbose #950 > >
00:02:02 verbose #951 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:02 verbose #952 > > open Common
00:02:02 verbose #953 > > open SpiralFileSystem.Operators
00:02:02 verbose #954 > >
00:02:02 verbose #955 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:02 verbose #956 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:02 verbose #957 > > │ ## watchDirectory                                                            │
00:02:02 verbose #958 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:02 verbose #959 > >
00:02:02 verbose #960 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:02 verbose #961 > > [[<RequireQualifiedAccess>]]
00:02:02 verbose #962 > > type FileSystemChangeType =
00:02:02 verbose #963 > >     | Failure
00:02:02 verbose #964 > >     | Changed
00:02:02 verbose #965 > >     | Created
00:02:02 verbose #966 > >     | Deleted
00:02:02 verbose #967 > >     | Renamed
00:02:02 verbose #968 > >
00:02:02 verbose #969 > > [[<RequireQualifiedAccess>]]
00:02:02 verbose #970 > > type FileSystemChange =
00:02:02 verbose #971 > >     | Failure of exn: exn
00:02:02 verbose #972 > >     | Changed of path: string * content: string option
00:02:02 verbose #973 > >     | Created of path: string * content: string option
00:02:02 verbose #974 > >     | Deleted of path: string
00:02:02 verbose #975 > >     | Renamed of oldPath: string * (string * string option)
00:02:02 verbose #976 > >
00:02:02 verbose #977 > >
00:02:02 verbose #978 > > let inline watchDirectoryWithFilter filter shouldReadContent path =
00:02:02 verbose #979 > >     let fullPath = path |> System.IO.Path.GetFullPath
00:02:02 verbose #980 > >     let _locals () = $"filter: {filter} / {_locals ()}"
00:02:02 verbose #981 > >
00:02:02 verbose #982 > >     let watcher =
00:02:02 verbose #983 > >         new System.IO.FileSystemWatcher (
00:02:02 verbose #984 > >             Path = fullPath,
00:02:02 verbose #985 > >             NotifyFilter = filter,
00:02:02 verbose #986 > >             EnableRaisingEvents = true,
00:02:02 verbose #987 > >             IncludeSubdirectories = true
00:02:02 verbose #988 > >         )
00:02:02 verbose #989 > >
00:02:02 verbose #990 > >     let inline getEventPath (path : string) =
00:02:02 verbose #991 > >         path |> SpiralSm.trim |> SpiralSm.replace fullPath "" |>
00:02:02 verbose #992 > > SpiralSm.trim_start [[| '/'; '\\' |]]
00:02:02 verbose #993 > >
00:02:02 verbose #994 > >     let inline ticks () =
00:02:02 verbose #995 > >         System.DateTime.UtcNow.Ticks
00:02:02 verbose #996 > >
00:02:02 verbose #997 > >     let changedStream =
00:02:02 verbose #998 > >         AsyncSeq.subscribeEvent
00:02:02 verbose #999 > >             watcher.Changed
00:02:02 verbose #1000 > >             (fun event ->
00:02:02 verbose #1001 > >                 ticks (),
00:02:02 verbose #1002 > >                 [[ FileSystemChange.Changed (getEventPath event.FullPath, None)
00:02:02 verbose #1003 > > ]]
00:02:02 verbose #1004 > >             )
00:02:02 verbose #1005 > >
00:02:02 verbose #1006 > >     let deletedStream =
00:02:02 verbose #1007 > >         AsyncSeq.subscribeEvent
00:02:02 verbose #1008 > >             watcher.Deleted
00:02:02 verbose #1009 > >             (fun event ->
00:02:02 verbose #1010 > >                 ticks (),
00:02:02 verbose #1011 > >                 [[ FileSystemChange.Deleted (getEventPath event.FullPath) ]]
00:02:02 verbose #1012 > >             )
00:02:02 verbose #1013 > >
00:02:02 verbose #1014 > >     let createdStream =
00:02:02 verbose #1015 > >         AsyncSeq.subscribeEvent
00:02:02 verbose #1016 > >             watcher.Created
00:02:02 verbose #1017 > >             (fun event ->
00:02:02 verbose #1018 > >                 let path = getEventPath event.FullPath
00:02:02 verbose #1019 > >                 ticks (), [[
00:02:02 verbose #1020 > >                     FileSystemChange.Created (path, None)
00:02:02 verbose #1021 > >                     if SpiralPlatform.is_windows () then
00:02:02 verbose #1022 > >                         FileSystemChange.Changed (path, None)
00:02:02 verbose #1023 > >                 ]])
00:02:02 verbose #1024 > >
00:02:02 verbose #1025 > >     let renamedStream =
00:02:02 verbose #1026 > >         AsyncSeq.subscribeEvent
00:02:02 verbose #1027 > >             watcher.Renamed
00:02:02 verbose #1028 > >             (fun event ->
00:02:02 verbose #1029 > >                 ticks (), [[
00:02:02 verbose #1030 > >                     FileSystemChange.Renamed (
00:02:02 verbose #1031 > >                         getEventPath event.OldFullPath,
00:02:02 verbose #1032 > >                         (getEventPath event.FullPath, None)
00:02:02 verbose #1033 > >                     )
00:02:02 verbose #1034 > >                 ]]
00:02:02 verbose #1035 > >             )
00:02:02 verbose #1036 > >
00:02:02 verbose #1037 > >     let failureStream =
00:02:02 verbose #1038 > >         AsyncSeq.subscribeEvent
00:02:02 verbose #1039 > >             watcher.Error
00:02:02 verbose #1040 > >             (fun event -> ticks (), [[ FileSystemChange.Failure
00:02:02 verbose #1041 > > (event.GetException ()) ]])
00:02:02 verbose #1042 > >
00:02:02 verbose #1043 > >     let stream =
00:02:02 verbose #1044 > >         [[
00:02:02 verbose #1045 > >             changedStream
00:02:02 verbose #1046 > >             deletedStream
00:02:02 verbose #1047 > >             createdStream
00:02:02 verbose #1048 > >             renamedStream
00:02:02 verbose #1049 > >             failureStream
00:02:02 verbose #1050 > >         ]]
00:02:02 verbose #1051 > >         |> FSharp.Control.AsyncSeq.mergeAll
00:02:02 verbose #1052 > >         |> FSharp.Control.AsyncSeq.map (fun (t, events) ->
00:02:02 verbose #1053 > >             events
00:02:02 verbose #1054 > >             |> List.fold
00:02:02 verbose #1055 > >                 (fun (i, events) event ->
00:02:02 verbose #1056 > >                     i + 1L,
00:02:02 verbose #1057 > >                     (t + i, event) :: events)
00:02:02 verbose #1058 > >                 (0L, [[]])
00:02:02 verbose #1059 > >             |> snd
00:02:02 verbose #1060 > >             |> List.rev
00:02:02 verbose #1061 > >         )
00:02:02 verbose #1062 > >         |> FSharp.Control.AsyncSeq.concatSeq
00:02:02 verbose #1063 > >         |> FSharp.Control.AsyncSeq.mapAsyncParallel (fun (t, event) -> async {
00:02:02 verbose #1064 > >             match shouldReadContent event, event with
00:02:02 verbose #1065 > >             | true, FileSystemChange.Changed (path, _) ->
00:02:02 verbose #1066 > >                 do! Async.Sleep 5
00:02:02 verbose #1067 > >                 let! content = fullPath </> path |>
00:02:02 verbose #1068 > > SpiralFileSystem.read_all_text_retry_async
00:02:02 verbose #1069 > >                 return t, FileSystemChange.Changed (path, content)
00:02:02 verbose #1070 > >             | true, FileSystemChange.Created (path, _) ->
00:02:02 verbose #1071 > >                 do! Async.Sleep 5
00:02:02 verbose #1072 > >                 let! content = fullPath </> path |>
00:02:02 verbose #1073 > > SpiralFileSystem.read_all_text_retry_async
00:02:02 verbose #1074 > >                 return t, FileSystemChange.Created (path, content)
00:02:02 verbose #1075 > >             | true, FileSystemChange.Renamed (oldPath, (newPath, _)) ->
00:02:02 verbose #1076 > >                 let! content = fullPath </> newPath |>
00:02:02 verbose #1077 > > SpiralFileSystem.read_all_text_retry_async
00:02:02 verbose #1078 > >                 return t, FileSystemChange.Renamed (oldPath, (newPath, content))
00:02:02 verbose #1079 > >             | _ -> return t, event
00:02:02 verbose #1080 > >         })
00:02:02 verbose #1081 > >
00:02:02 verbose #1082 > >     let disposable =
00:02:02 verbose #1083 > >         new_disposable (fun () ->
00:02:02 verbose #1084 > >             trace Debug (fun () -> "FileSystem.watchWithFilter / Disposing watch
00:02:02 verbose #1085 > > stream") _locals
00:02:02 verbose #1086 > >             watcher.EnableRaisingEvents <- false
00:02:02 verbose #1087 > >             watcher.Dispose ()
00:02:02 verbose #1088 > >         )
00:02:02 verbose #1089 > >
00:02:02 verbose #1090 > >     stream, disposable
00:02:02 verbose #1091 > >
00:02:02 verbose #1092 > > let inline watchDirectory path =
00:02:02 verbose #1093 > >     watchDirectoryWithFilter
00:02:02 verbose #1094 > >         (System.IO.NotifyFilters.FileName
00:02:02 verbose #1095 > >         // ||| System.IO.NotifyFilters.DirectoryName
00:02:02 verbose #1096 > >         // ||| System.IO.NotifyFilters.Attributes
00:02:02 verbose #1097 > >         //// ||| System.IO.NotifyFilters.Size
00:02:02 verbose #1098 > >         ||| System.IO.NotifyFilters.LastWrite
00:02:02 verbose #1099 > >         //// ||| System.IO.NotifyFilters.LastAccess
00:02:02 verbose #1100 > >         // ||| System.IO.NotifyFilters.CreationTime
00:02:02 verbose #1101 > >         // ||| System.IO.NotifyFilters.Security
00:02:02 verbose #1102 > >         )
00:02:02 verbose #1103 > >         path
00:02:02 verbose #1104 > >
00:02:02 verbose #1105 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:02 verbose #1106 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:02 verbose #1107 > > │ ### testEventsRaw (test)                                                     │
00:02:02 verbose #1108 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:02 verbose #1109 > >
00:02:02 verbose #1110 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:02 verbose #1111 > > //// test
00:02:02 verbose #1112 > >
00:02:02 verbose #1113 > > let inline testEventsRaw
00:02:02 verbose #1114 > >     (watchFn : (_ -> bool) -> string -> FSharp.Control.AsyncSeq<int64 *
00:02:02 verbose #1115 > > FileSystemChange> * IDisposable)
00:02:02 verbose #1116 > >     write
00:02:02 verbose #1117 > >     =
00:02:02 verbose #1118 > >     let struct (tempDir, tempDisposable) =
00:02:02 verbose #1119 > >         "FileSystem.testEventsRaw"
00:02:02 verbose #1120 > >         |> SpiralCrypto.hash_text
00:02:02 verbose #1121 > >         |> SpiralFileSystem.create_temp_dir'
00:02:02 verbose #1122 > >     let stream, disposable = watchFn (fun _ -> true) tempDir
00:02:02 verbose #1123 > >
00:02:02 verbose #1124 > >     let events = System.Collections.Concurrent.ConcurrentBag ()
00:02:02 verbose #1125 > >
00:02:02 verbose #1126 > >     let inline iter () =
00:02:02 verbose #1127 > >         stream
00:02:02 verbose #1128 > >         |> FSharp.Control.AsyncSeq.iterAsyncParallel (fun event -> async {
00:02:02 verbose #1129 > > events.Add event })
00:02:02 verbose #1130 > >
00:02:02 verbose #1131 > >     let run = async {
00:02:02 verbose #1132 > >         let! _ = iter () |> Async.StartChild
00:02:02 verbose #1133 > >         do! Async.Sleep 250
00:02:02 verbose #1134 > >         return! write tempDir
00:02:02 verbose #1135 > >     }
00:02:02 verbose #1136 > >
00:02:02 verbose #1137 > >     try
00:02:02 verbose #1138 > >         run
00:02:02 verbose #1139 > >         |> Async.runWithTimeout 60000
00:02:02 verbose #1140 > >         |> _assertEqual (Some ())
00:02:02 verbose #1141 > >     finally
00:02:02 verbose #1142 > >         disposable.Dispose ()
00:02:02 verbose #1143 > >         tempDisposable.Dispose ()
00:02:02 verbose #1144 > >
00:02:02 verbose #1145 > >     let eventsLog =
00:02:02 verbose #1146 > >         events
00:02:02 verbose #1147 > >         |> Seq.toList
00:02:02 verbose #1148 > >         |> List.sortBy fst
00:02:02 verbose #1149 > >         |> List.fold
00:02:02 verbose #1150 > >             (fun (prev, acc) (ticks, event) ->
00:02:02 verbose #1151 > >                 ticks, (ticks, (if prev = 0L then 0L else ticks - prev), event)
00:02:02 verbose #1152 > > :: acc
00:02:02 verbose #1153 > >             )
00:02:02 verbose #1154 > >             (0L, [[]])
00:02:02 verbose #1155 > >         |> snd
00:02:02 verbose #1156 > >         |> List.rev
00:02:02 verbose #1157 > >         |> List.map (fun (diff, n, event) -> $"{n} / {diff} / {event}" |>
00:02:02 verbose #1158 > > SpiralSm.ellipsis_end 100L)
00:02:02 verbose #1159 > >         |> SpiralSm.concat "\n"
00:02:02 verbose #1160 > >     let _locals () = $"eventsLog: \n{eventsLog} / {_locals ()}"
00:02:02 verbose #1161 > >     trace Debug (fun () -> "FileSystem.testEventsRaw") _locals
00:02:02 verbose #1162 > >
00:02:02 verbose #1163 > >     events
00:02:02 verbose #1164 > >     |> Seq.toList
00:02:02 verbose #1165 > >     |> List.sortBy fst
00:02:02 verbose #1166 > >     |> List.map snd
00:02:02 verbose #1167 > >     |> List.fold
00:02:02 verbose #1168 > >         (fun acc event ->
00:02:02 verbose #1169 > >             match acc, event with
00:02:02 verbose #1170 > >             | FileSystemChange.Changed (lastPath, Some lastContent) as lastEvent
00:02:02 verbose #1171 > > :: acc,
00:02:02 verbose #1172 > >                 FileSystemChange.Changed (path, Some content)
00:02:02 verbose #1173 > >                 when lastPath = path && content |> SpiralSm.starts_with
00:02:02 verbose #1174 > > lastContent
00:02:02 verbose #1175 > >                 ->
00:02:02 verbose #1176 > >                 event :: acc
00:02:02 verbose #1177 > >             | _ -> event :: acc
00:02:02 verbose #1178 > >         )
00:02:02 verbose #1179 > >         [[]]
00:02:02 verbose #1180 > >     |> List.rev
00:02:03 verbose #1181 > >
00:02:03 verbose #1182 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:03 verbose #1183 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:03 verbose #1184 > > │ #### fast (test)                                                             │
00:02:03 verbose #1185 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:03 verbose #1186 > >
00:02:03 verbose #1187 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:03 verbose #1188 > > //// test
00:02:03 verbose #1189 > >
00:02:03 verbose #1190 > > let inline write path = async {
00:02:03 verbose #1191 > >     let n = 2
00:02:03 verbose #1192 > >
00:02:03 verbose #1193 > >     for i = 1 to n do
00:02:03 verbose #1194 > >         do! $"a{i}" |> SpiralFileSystem.write_all_text_async (path </>
00:02:03 verbose #1195 > > $"file{i}.txt")
00:02:03 verbose #1196 > >
00:02:03 verbose #1197 > >     do! Async.Sleep 250
00:02:03 verbose #1198 > >
00:02:03 verbose #1199 > >     for i = 1 to n do
00:02:03 verbose #1200 > >         do! $"b{i}" |> SpiralFileSystem.write_all_text_async (path </>
00:02:03 verbose #1201 > > $"file{i}.txt")
00:02:03 verbose #1202 > >
00:02:03 verbose #1203 > >     do! Async.Sleep 250
00:02:03 verbose #1204 > >
00:02:03 verbose #1205 > >     for i = 1 to n do
00:02:03 verbose #1206 > >         do! path </> $"file{i}.txt" |> SpiralFileSystem.move_file_async (path
00:02:03 verbose #1207 > > </> $"file_{i}.txt") |> Async.Ignore
00:02:03 verbose #1208 > >
00:02:03 verbose #1209 > >     do! Async.Sleep 250
00:02:03 verbose #1210 > >
00:02:03 verbose #1211 > >     for i = 1 to n do
00:02:03 verbose #1212 > >         do! $"c{i}" |> SpiralFileSystem.write_all_text_async (path </>
00:02:03 verbose #1213 > > $"file_{i}.txt")
00:02:03 verbose #1214 > >
00:02:03 verbose #1215 > >     do! Async.Sleep 250
00:02:03 verbose #1216 > >
00:02:03 verbose #1217 > >     for i = 1 to n do
00:02:03 verbose #1218 > >         do! SpiralFileSystem.delete_file_async (path </> $"file_{i}.txt") |>
00:02:03 verbose #1219 > > Async.Ignore
00:02:03 verbose #1220 > >
00:02:03 verbose #1221 > >     do! Async.Sleep 250
00:02:03 verbose #1222 > > }
00:02:03 verbose #1223 > >
00:02:03 verbose #1224 > > let inline run () =
00:02:03 verbose #1225 > >     let events = testEventsRaw watchDirectory write
00:02:03 verbose #1226 > >
00:02:03 verbose #1227 > >     events
00:02:03 verbose #1228 > >     |> _sequenceEqual [[
00:02:03 verbose #1229 > >         FileSystemChange.Created ("file1.txt", Some "a1")
00:02:03 verbose #1230 > >         FileSystemChange.Changed ("file1.txt", Some "a1")
00:02:03 verbose #1231 > >         FileSystemChange.Created ("file2.txt", Some "a2")
00:02:03 verbose #1232 > >         FileSystemChange.Changed ("file2.txt", Some "a2")
00:02:03 verbose #1233 > >
00:02:03 verbose #1234 > >         FileSystemChange.Changed ("file1.txt", Some "b1")
00:02:03 verbose #1235 > >         FileSystemChange.Changed ("file2.txt", Some "b2")
00:02:03 verbose #1236 > >
00:02:03 verbose #1237 > >         FileSystemChange.Renamed ("file1.txt", ("file_1.txt", Some "b1"))
00:02:03 verbose #1238 > >         FileSystemChange.Renamed ("file2.txt", ("file_2.txt", Some "b2"))
00:02:03 verbose #1239 > >
00:02:03 verbose #1240 > >         FileSystemChange.Changed ("file_1.txt", Some "c1")
00:02:03 verbose #1241 > >         FileSystemChange.Changed ("file_2.txt", Some "c2")
00:02:03 verbose #1242 > >
00:02:03 verbose #1243 > >         FileSystemChange.Deleted "file_1.txt"
00:02:03 verbose #1244 > >         FileSystemChange.Deleted "file_2.txt"
00:02:03 verbose #1245 > >     ]]
00:02:03 verbose #1246 > >
00:02:03 verbose #1247 > > run
00:02:03 verbose #1248 > > |> retry_fn 3
00:02:03 verbose #1249 > > |> _assertEqual (Some ())
00:02:06 verbose #1250 > >
00:02:06 verbose #1251 > > ╭─[ 3.29s - stdout ]───────────────────────────────────────────────────────────╮
00:02:06 verbose #1252 > > │ Some ()                                                                      │
00:02:06 verbose #1253 > > │                                                                              │
00:02:06 verbose #1254 > > │ 00:00:05   debug #1 FileSystem.watchWithFilter / Disposing watch stream │
00:02:06 verbose #1255 > > │ / filter: FileName, LastWrite                                                │
00:02:06 verbose #1256 > > │ 00:00:05   debug #2 FileSystem.testEventsRaw / eventsLog:               │
00:02:06 verbose #1257 > > │ 0 / 638560894098972727 / Created ("file1.txt", Some "a1")                    │
00:02:06 verbose #1258 > > │ 1 / 638560894098972728 / Changed ("file1.txt", Some "a1")                    │
00:02:06 verbose #1259 > > │ 24613 / 638560894098997341 / Changed ("file1.txt", Some "a1")                │
00:02:06 verbose #1260 > > │ 968 / 638560894098998309 / Created ("file2.txt", Some "a2")                  │
00:02:06 verbose #1261 > > │ 1 / 638560894098998310 / Changed ("file2.txt", Some "a2")                    │
00:02:06 verbose #1262 > > │ 72 / 638560894098998382 / Changed ("file2.txt", Some "a2")                   │
00:02:06 verbose #1263 > > │ 2467646 / 638560894101466028 / Changed ("file1.txt", Some "b1")              │
00:02:06 verbose #1264 > > │ 5479 / 638560894101471507 / Changed ("file1.txt", Some "b1")                 │
00:02:06 verbose #1265 > > │ 23331 / 638560894101494838 / Changed ("file2.txt", Some "b2")                │
00:02:06 verbose #1266 > > │ 4967 / 638560894101499805 / Changed ("file2.txt", Some "b2")                 │
00:02:06 verbose #1267 > > │ 2609365 / 638560894104109170 / Renamed ("file1.txt", ("file_1.txt", Some     │
00:02:06 verbose #1268 > > │ "b1"))                                                                       │
00:02:06 verbose #1269 > > │ 24093 / 638560894104133263 / Renamed ("file2.txt", ("file_2.txt", Some       │
00:02:06 verbose #1270 > > │ "b2"))                                                                       │
00:02:06 verbose #1271 > > │ 2442615 / 638560894106575878 / Changed ("file_1.txt", Some "c1")             │
00:02:06 verbose #1272 > > │ 1791 / 638560894106577669 / Changed ("file_1.txt", Some "c1")                │
00:02:06 verbose #1273 > > │ 8116 / 638560894106585785 / Changed ("file_2.txt", Some "c2")                │
00:02:06 verbose #1274 > > │ 1689 / 638560894106587474 / Changed ("file_2.txt", Some "c2")                │
00:02:06 verbose #1275 > > │ 2599534 / 638560894109187008 / Deleted "file_1.txt"                          │
00:02:06 verbose #1276 > > │ 5207 / 638560894109192215 / Deleted "file_2.txt"                             │
00:02:06 verbose #1277 > > │ [Created ("file1.txt", Some "a1"); Changed ("file1.txt", Some "a1"); Created │
00:02:06 verbose #1278 > > │ ("file2.txt", Some "a2");                                                    │
00:02:06 verbose #1279 > > │  Changed ("file2.txt", Some "a2"); Changed ("file1.txt", Some "b1"); Changed │
00:02:06 verbose #1280 > > │ ("file2.txt", Some "b2");                                                    │
00:02:06 verbose #1281 > > │  Renamed ("file1.txt", ("file_1.txt", Some "b1")); Renamed ("file2.txt",     │
00:02:06 verbose #1282 > > │ ("file_2.txt", Some "b2"));                                                  │
00:02:06 verbose #1283 > > │  Changed ("file_1.txt", Some "c1"); Changed ("file_2.txt", Some "c2");       │
00:02:06 verbose #1284 > > │ Deleted "file_1.txt"; Deleted "file_2.txt"]                                  │
00:02:06 verbose #1285 > > │                                                                              │
00:02:06 verbose #1286 > > │ Some ()                                                                      │
00:02:06 verbose #1287 > > │                                                                              │
00:02:06 verbose #1288 > > │                                                                              │
00:02:06 verbose #1289 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:06 verbose #1290 > >
00:02:06 verbose #1291 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:06 verbose #1292 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:06 verbose #1293 > > │ #### slow (test)                                                             │
00:02:06 verbose #1294 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:06 verbose #1295 > >
00:02:06 verbose #1296 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:06 verbose #1297 > > //// test
00:02:06 verbose #1298 > >
00:02:06 verbose #1299 > > let inline write path = async {
00:02:06 verbose #1300 > >     let n = 2
00:02:06 verbose #1301 > >
00:02:06 verbose #1302 > >     let contents =
00:02:06 verbose #1303 > >         [[ 1 .. n ]]
00:02:06 verbose #1304 > >         |> List.map (string >> String.replicate 1_000_000)
00:02:06 verbose #1305 > >
00:02:06 verbose #1306 > >     for i = 1 to n do
00:02:06 verbose #1307 > >         do! $"{contents.[[i - 1]]}a" |> SpiralFileSystem.write_all_text_async
00:02:06 verbose #1308 > > (path </> $"file{i}.txt")
00:02:06 verbose #1309 > >
00:02:06 verbose #1310 > >     do! Async.Sleep 1500
00:02:06 verbose #1311 > >
00:02:06 verbose #1312 > >     for i = 1 to n do
00:02:06 verbose #1313 > >         do! $"{contents.[[i - 1]]}b" |> SpiralFileSystem.write_all_text_async
00:02:06 verbose #1314 > > (path </> $"file{i}.txt")
00:02:06 verbose #1315 > >
00:02:06 verbose #1316 > >     do! Async.Sleep 1500
00:02:06 verbose #1317 > >
00:02:06 verbose #1318 > >     for i = 1 to n do
00:02:06 verbose #1319 > >         do! path </> $"file{i}.txt" |> SpiralFileSystem.move_file_async (path
00:02:06 verbose #1320 > > </> $"file_{i}.txt") |> Async.Ignore
00:02:06 verbose #1321 > >
00:02:06 verbose #1322 > >     do! Async.Sleep 1500
00:02:06 verbose #1323 > >
00:02:06 verbose #1324 > >     for i = 1 to n do
00:02:06 verbose #1325 > >         do! $"{contents.[[i - 1]]}c" |> SpiralFileSystem.write_all_text_async
00:02:06 verbose #1326 > > (path </> $"file_{i}.txt")
00:02:06 verbose #1327 > >
00:02:06 verbose #1328 > >     do! Async.Sleep 1500
00:02:06 verbose #1329 > >
00:02:06 verbose #1330 > >     for i = 1 to n do
00:02:06 verbose #1331 > >         do! SpiralFileSystem.delete_file_async (path </> $"file_{i}.txt") |>
00:02:06 verbose #1332 > > Async.Ignore
00:02:06 verbose #1333 > >
00:02:06 verbose #1334 > >     do! Async.Sleep 1500
00:02:06 verbose #1335 > > }
00:02:06 verbose #1336 > >
00:02:06 verbose #1337 > > let inline run () =
00:02:06 verbose #1338 > >     let events =
00:02:06 verbose #1339 > >         testEventsRaw watchDirectory write
00:02:06 verbose #1340 > >         |> List.map (function
00:02:06 verbose #1341 > >             | FileSystemChange.Changed (path, Some content) ->
00:02:06 verbose #1342 > >                 FileSystemChange.Changed (path, content |> Seq.distinct |>
00:02:06 verbose #1343 > > Seq.map string |> SpiralSm.concat "" |> Some)
00:02:06 verbose #1344 > >             | FileSystemChange.Created (path, Some content) ->
00:02:06 verbose #1345 > >                 FileSystemChange.Created (path, content |> Seq.distinct |>
00:02:06 verbose #1346 > > Seq.map string |> SpiralSm.concat "" |> Some)
00:02:06 verbose #1347 > >             | FileSystemChange.Renamed (oldPath, (newPath, Some content)) ->
00:02:06 verbose #1348 > >                 FileSystemChange.Renamed (
00:02:06 verbose #1349 > >                     oldPath,
00:02:06 verbose #1350 > >                     (newPath, content |> Seq.distinct |> Seq.map string |>
00:02:06 verbose #1351 > > SpiralSm.concat "" |> Some)
00:02:06 verbose #1352 > >                 )
00:02:06 verbose #1353 > >             | event -> event
00:02:06 verbose #1354 > >         )
00:02:06 verbose #1355 > >
00:02:06 verbose #1356 > >     events
00:02:06 verbose #1357 > >     |> _sequenceEqual [[
00:02:06 verbose #1358 > >         FileSystemChange.Created ("file1.txt", Some "1a")
00:02:06 verbose #1359 > >         FileSystemChange.Changed ("file1.txt", Some "1a")
00:02:06 verbose #1360 > >         FileSystemChange.Created ("file2.txt", Some "2a")
00:02:06 verbose #1361 > >         FileSystemChange.Changed ("file2.txt", Some "2a")
00:02:06 verbose #1362 > >
00:02:06 verbose #1363 > >         FileSystemChange.Changed ("file1.txt", Some "1b")
00:02:06 verbose #1364 > >         FileSystemChange.Changed ("file2.txt", Some "2b")
00:02:06 verbose #1365 > >
00:02:06 verbose #1366 > >         FileSystemChange.Renamed ("file1.txt", ("file_1.txt", Some "1b"))
00:02:06 verbose #1367 > >         FileSystemChange.Renamed ("file2.txt", ("file_2.txt", Some "2b"))
00:02:06 verbose #1368 > >
00:02:06 verbose #1369 > >         FileSystemChange.Changed ("file_1.txt", Some "1c")
00:02:06 verbose #1370 > >         FileSystemChange.Changed ("file_2.txt", Some "2c")
00:02:06 verbose #1371 > >
00:02:06 verbose #1372 > >         FileSystemChange.Deleted "file_1.txt"
00:02:06 verbose #1373 > >         FileSystemChange.Deleted "file_2.txt"
00:02:06 verbose #1374 > >     ]]
00:02:06 verbose #1375 > >
00:02:06 verbose #1376 > > run
00:02:06 verbose #1377 > > |> retry_fn 5
00:02:06 verbose #1378 > > |> _assertEqual (Some ())
00:02:16 verbose #1379 > >
00:02:16 verbose #1380 > > ╭─[ 10.09s - stdout ]──────────────────────────────────────────────────────────╮
00:02:16 verbose #1381 > > │ Some ()                                                                      │
00:02:16 verbose #1382 > > │                                                                              │
00:02:16 verbose #1383 > > │ 00:00:15   debug #3 FileSystem.watchWithFilter / Disposing watch stream │
00:02:16 verbose #1384 > > │ / filter: FileName, LastWrite                                                │
00:02:16 verbose #1385 > > │ 00:00:15   debug #4 FileSystem.testEventsRaw / eventsLog:               │
00:02:16 verbose #1386 > > │ 0 / 638560894133560584 / Created                                             │
00:02:16 verbose #1387 > > │   ("file1.txt",                                                              │
00:02:16 verbose #1388 > > │  ...11111111111111111111111111111111111111111111111a")                       │
00:02:16 verbose #1389 > > │ 1 / 638560894133560585 / Changed                                             │
00:02:16 verbose #1390 > > │   ("file1.txt",                                                              │
00:02:16 verbose #1391 > > │  ...11111111111111111111111111111111111111111111111a")                       │
00:02:16 verbose #1392 > > │ 95705 / 638560894133656290 / Changed                                         │
00:02:16 verbose #1393 > > │   ("file1.txt...11111111111111111111111111111111111111111111111a")           │
00:02:16 verbose #1394 > > │ 18969 / 638560894133675259 / Created                                         │
00:02:16 verbose #1395 > > │   ("file2.txt...22222222222222222222222222222222222222222222222a")           │
00:02:16 verbose #1396 > > │ 1 / 638560894133675260 / Changed                                             │
00:02:16 verbose #1397 > > │   ("file2.txt",                                                              │
00:02:16 verbose #1398 > > │  ...22222222222222222222222222222222222222222222222a")                       │
00:02:16 verbose #1399 > > │ 91870 / 638560894133767130 / Changed                                         │
00:02:16 verbose #1400 > > │   ("file2.txt...22222222222222222222222222222222222222222222222a")           │
00:02:16 verbose #1401 > > │ 15165672 / 638560894148932802 / Changed                                      │
00:02:16 verbose #1402 > > │   ("file1....11111111111111111111111111111111111111111111111b")              │
00:02:16 verbose #1403 > > │ 57153 / 638560894148989955 / Changed                                         │
00:02:16 verbose #1404 > > │   ("file1.txt...11111111111111111111111111111111111111111111111b")           │
00:02:16 verbose #1405 > > │ 24958 / 638560894149014913 / Changed                                         │
00:02:16 verbose #1406 > > │   ("file2.txt...22222222222222222222222222222222222222222222222b")           │
00:02:16 verbose #1407 > > │ 70146 / 638560894149085059 / Changed                                         │
00:02:16 verbose #1408 > > │   ("file2.txt...22222222222222222222222222222222222222222222222b")           │
00:02:16 verbose #1409 > > │ 15008977 / 638560894164094036 / Renamed                                      │
00:02:16 verbose #1410 > > │   ("file1....1111111111111111111111111111111111111111111111b"))              │
00:02:16 verbose #1411 > > │ 1345 / 638560894164095381 / Renamed                                          │
00:02:16 verbose #1412 > > │   ("file2.txt"...2222222222222222222222222222222222222222222222b"))          │
00:02:16 verbose #1413 > > │ 15084518 / 638560894179179899 / Changed                                      │
00:02:16 verbose #1414 > > │   ("file_1...11111111111111111111111111111111111111111111111c")              │
00:02:16 verbose #1415 > > │ 198611 / 638560894179378510 / Changed                                        │
00:02:16 verbose #1416 > > │   ("file_1.t...11111111111111111111111111111111111111111111111c")            │
00:02:16 verbose #1417 > > │ 77135 / 638560894179455645 / Changed                                         │
00:02:16 verbose #1418 > > │   ("file_2.tx...22222222222222222222222222222222222222222222222c")           │
00:02:16 verbose #1419 > > │ 87784 / 638560894179543429 / Changed                                         │
00:02:16 verbose #1420 > > │   ("file_2.tx...22222222222222222222222222222222222222222222222c")           │
00:02:16 verbose #1421 > > │ 15087397 / 638560894194630826 / Deleted "file_1.txt"                         │
00:02:16 verbose #1422 > > │ 7693 / 638560894194638519 / Deleted "file_2.txt"                             │
00:02:16 verbose #1423 > > │ [Created ("file1.txt", Some "1a"); Changed ("file1.txt", Some "1a"); Created │
00:02:16 verbose #1424 > > │ ("file2.txt", Some "2a");                                                    │
00:02:16 verbose #1425 > > │  Changed ("file2.txt", Some "2a"); Changed ("file1.txt", Some "1b"); Changed │
00:02:16 verbose #1426 > > │ ("file2.txt", Some "2b");                                                    │
00:02:16 verbose #1427 > > │  Renamed ("file1.txt", ("file_1.txt", Some "1b")); Renamed ("file2.txt",     │
00:02:16 verbose #1428 > > │ ("file_2.txt", Some "2b"));                                                  │
00:02:16 verbose #1429 > > │  Changed ("file_1.txt", Some "1c"); Changed ("file_2.txt", Some "2c");       │
00:02:16 verbose #1430 > > │ Deleted "file_1.txt"; Deleted "file_2.txt"]                                  │
00:02:16 verbose #1431 > > │                                                                              │
00:02:16 verbose #1432 > > │ Some ()                                                                      │
00:02:16 verbose #1433 > > │                                                                              │
00:02:16 verbose #1434 > > │                                                                              │
00:02:16 verbose #1435 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:16 verbose #1436 > >
00:02:16 verbose #1437 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:16 verbose #1438 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:16 verbose #1439 > > │ ### testEventsSorted (test)                                                  │
00:02:16 verbose #1440 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:16 verbose #1441 > >
00:02:16 verbose #1442 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:16 verbose #1443 > > //// test
00:02:16 verbose #1444 > >
00:02:16 verbose #1445 > > let inline sortEvent event =
00:02:16 verbose #1446 > >     match event with
00:02:16 verbose #1447 > >     | FileSystemChange.Failure _ -> 0
00:02:16 verbose #1448 > >     | FileSystemChange.Created _ -> 1
00:02:16 verbose #1449 > >     | FileSystemChange.Changed _ -> 2
00:02:16 verbose #1450 > >     | FileSystemChange.Renamed (_oldPath, _) -> 3
00:02:16 verbose #1451 > >     | FileSystemChange.Deleted _ -> 4
00:02:16 verbose #1452 > >
00:02:16 verbose #1453 > > let inline formatEvents events =
00:02:16 verbose #1454 > >     events
00:02:16 verbose #1455 > >     |> Seq.toList
00:02:16 verbose #1456 > >     |> List.sortBy (snd >> sortEvent)
00:02:16 verbose #1457 > >     |> List.choose (fun (ticks, event) ->
00:02:16 verbose #1458 > >         match event with
00:02:16 verbose #1459 > >         | FileSystemChange.Failure _ ->
00:02:16 verbose #1460 > >             None
00:02:16 verbose #1461 > >         | FileSystemChange.Changed (path, _) ->
00:02:16 verbose #1462 > >             Some (ticks, System.IO.Path.GetFileName path, nameof
00:02:16 verbose #1463 > > FileSystemChangeType.Changed)
00:02:16 verbose #1464 > >         | FileSystemChange.Created (path, _) ->
00:02:16 verbose #1465 > >             Some (ticks, System.IO.Path.GetFileName path, nameof
00:02:16 verbose #1466 > > FileSystemChangeType.Created)
00:02:16 verbose #1467 > >         | FileSystemChange.Deleted path ->
00:02:16 verbose #1468 > >             Some (ticks, System.IO.Path.GetFileName path, nameof
00:02:16 verbose #1469 > > FileSystemChangeType.Deleted)
00:02:16 verbose #1470 > >         | FileSystemChange.Renamed (_oldPath, (path, _)) ->
00:02:16 verbose #1471 > >             Some (ticks, System.IO.Path.GetFileName path, nameof
00:02:16 verbose #1472 > > FileSystemChangeType.Renamed)
00:02:16 verbose #1473 > >     )
00:02:16 verbose #1474 > >     |> List.sortBy (fun (_, path, _) -> path)
00:02:16 verbose #1475 > >     |> List.distinctBy (fun (_, path, event) -> path, event)
00:02:16 verbose #1476 > >
00:02:16 verbose #1477 > > let inline testEventsSorted
00:02:16 verbose #1478 > >     (watchFn : string -> FSharp.Control.AsyncSeq<int64 * FileSystemChange> *
00:02:16 verbose #1479 > > IDisposable)
00:02:16 verbose #1480 > >     write
00:02:16 verbose #1481 > >     =
00:02:16 verbose #1482 > >     let struct (tempDir, tempDisposable) =
00:02:16 verbose #1483 > >         "FileSystem.testEventsSorted"
00:02:16 verbose #1484 > >         |> SpiralCrypto.hash_text
00:02:16 verbose #1485 > >         |> SpiralFileSystem.create_temp_dir'
00:02:16 verbose #1486 > >     let stream, disposable = watchFn tempDir
00:02:16 verbose #1487 > >
00:02:16 verbose #1488 > >     let events = System.Collections.Concurrent.ConcurrentBag ()
00:02:16 verbose #1489 > >
00:02:16 verbose #1490 > >     let inline iter () =
00:02:16 verbose #1491 > >         stream
00:02:16 verbose #1492 > >         |> FSharp.Control.AsyncSeq.iterAsyncParallel (fun event -> async {
00:02:16 verbose #1493 > > events.Add event })
00:02:16 verbose #1494 > >
00:02:16 verbose #1495 > >     let run = async {
00:02:16 verbose #1496 > >         let! _ = iter () |> Async.StartChild
00:02:16 verbose #1497 > >         do! Async.Sleep 250
00:02:16 verbose #1498 > >         return! write tempDir
00:02:16 verbose #1499 > >     }
00:02:16 verbose #1500 > >
00:02:16 verbose #1501 > >     try
00:02:16 verbose #1502 > >         run
00:02:16 verbose #1503 > >         |> Async.runWithTimeout 5000
00:02:16 verbose #1504 > >         |> _assertEqual (Some ())
00:02:16 verbose #1505 > >     finally
00:02:16 verbose #1506 > >         disposable.Dispose ()
00:02:16 verbose #1507 > >         tempDisposable.Dispose ()
00:02:16 verbose #1508 > >
00:02:16 verbose #1509 > >     let events = formatEvents events
00:02:16 verbose #1510 > >
00:02:16 verbose #1511 > >     let eventMap =
00:02:16 verbose #1512 > >         events
00:02:16 verbose #1513 > >         |> List.map (fun (ticks, path, event) -> path, (event, ticks))
00:02:16 verbose #1514 > >         |> List.groupBy fst
00:02:16 verbose #1515 > >         |> List.map (fun (path, events) ->
00:02:16 verbose #1516 > >             let event, _ticks =
00:02:16 verbose #1517 > >                 events
00:02:16 verbose #1518 > >                 |> List.map snd
00:02:16 verbose #1519 > >                 |> List.sortByDescending snd
00:02:16 verbose #1520 > >                 |> List.head
00:02:16 verbose #1521 > >
00:02:16 verbose #1522 > >             path, event
00:02:16 verbose #1523 > >         )
00:02:16 verbose #1524 > >         |> Map.ofList
00:02:16 verbose #1525 > >
00:02:16 verbose #1526 > >     let eventList =
00:02:16 verbose #1527 > >         events
00:02:16 verbose #1528 > >         |> List.map (fun (_ticks, path, event) -> path, event)
00:02:16 verbose #1529 > >
00:02:16 verbose #1530 > >     eventMap, eventList
00:02:16 verbose #1531 > >
00:02:16 verbose #1532 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:16 verbose #1533 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:16 verbose #1534 > > │ #### create and delete (test)                                                │
00:02:16 verbose #1535 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:16 verbose #1536 > >
00:02:16 verbose #1537 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:16 verbose #1538 > > //// test
00:02:16 verbose #1539 > >
00:02:16 verbose #1540 > > let inline write path = async {
00:02:16 verbose #1541 > >     let n = 3
00:02:16 verbose #1542 > >
00:02:16 verbose #1543 > >     for i = 1 to n do
00:02:16 verbose #1544 > >         do! $"{i}" |> SpiralFileSystem.write_all_text_async (path </>
00:02:16 verbose #1545 > > $"file{i}.txt")
00:02:16 verbose #1546 > >
00:02:16 verbose #1547 > >     for i = 1 to n do
00:02:16 verbose #1548 > >         do! SpiralFileSystem.delete_file_async (path </> $"file{i}.txt") |>
00:02:16 verbose #1549 > > Async.Ignore
00:02:16 verbose #1550 > >
00:02:16 verbose #1551 > >     do! Async.Sleep 150
00:02:16 verbose #1552 > > }
00:02:16 verbose #1553 > >
00:02:16 verbose #1554 > > let inline run () =
00:02:16 verbose #1555 > >     let eventMap, eventList = testEventsSorted (watchDirectory (fun _ -> false))
00:02:16 verbose #1556 > > write
00:02:16 verbose #1557 > >
00:02:16 verbose #1558 > >     [[
00:02:16 verbose #1559 > >         "file1.txt", nameof FileSystemChangeType.Created
00:02:16 verbose #1560 > >         "file1.txt", nameof FileSystemChangeType.Changed
00:02:16 verbose #1561 > >         "file1.txt", nameof FileSystemChangeType.Deleted
00:02:16 verbose #1562 > >
00:02:16 verbose #1563 > >         "file2.txt", nameof FileSystemChangeType.Created
00:02:16 verbose #1564 > >         "file2.txt", nameof FileSystemChangeType.Changed
00:02:16 verbose #1565 > >         "file2.txt", nameof FileSystemChangeType.Deleted
00:02:16 verbose #1566 > >
00:02:16 verbose #1567 > >         "file3.txt", nameof FileSystemChangeType.Created
00:02:16 verbose #1568 > >         "file3.txt", nameof FileSystemChangeType.Changed
00:02:16 verbose #1569 > >         "file3.txt", nameof FileSystemChangeType.Deleted
00:02:16 verbose #1570 > >     ]]
00:02:16 verbose #1571 > >     |> _sequenceEqual eventList
00:02:16 verbose #1572 > >
00:02:16 verbose #1573 > >     [[
00:02:16 verbose #1574 > >         "file1.txt", nameof FileSystemChangeType.Deleted
00:02:16 verbose #1575 > >         "file2.txt", nameof FileSystemChangeType.Deleted
00:02:16 verbose #1576 > >         "file3.txt", nameof FileSystemChangeType.Deleted
00:02:16 verbose #1577 > >     ]]
00:02:16 verbose #1578 > >     |> Map.ofList
00:02:16 verbose #1579 > >     |> _sequenceEqual eventMap
00:02:16 verbose #1580 > >
00:02:16 verbose #1581 > > run
00:02:16 verbose #1582 > > |> retry_fn 3
00:02:16 verbose #1583 > > |> _assertEqual (Some ())
00:02:18 verbose #1584 > >
00:02:18 verbose #1585 > > ╭─[ 1.62s - stdout ]───────────────────────────────────────────────────────────╮
00:02:18 verbose #1586 > > │ Some ()                                                                      │
00:02:18 verbose #1587 > > │                                                                              │
00:02:18 verbose #1588 > > │ 00:00:17   debug #5 FileSystem.watchWithFilter / Disposing watch stream │
00:02:18 verbose #1589 > > │ / filter: FileName, LastWrite                                                │
00:02:18 verbose #1590 > > │ [("file1.txt", "Created"); ("file1.txt", "Changed"); ("file1.txt",           │
00:02:18 verbose #1591 > > │ "Deleted"); ("file2.txt", "Created");                                        │
00:02:18 verbose #1592 > > │  ("file2.txt", "Changed"); ("file2.txt", "Deleted"); ("file3.txt",           │
00:02:18 verbose #1593 > > │ "Created"); ("file3.txt", "Changed");                                        │
00:02:18 verbose #1594 > > │  ("file3.txt", "Deleted")]                                                   │
00:02:18 verbose #1595 > > │                                                                              │
00:02:18 verbose #1596 > > │ map [("file1.txt", "Deleted"); ("file2.txt", "Deleted"); ("file3.txt",       │
00:02:18 verbose #1597 > > │ "Deleted")]                                                                  │
00:02:18 verbose #1598 > > │                                                                              │
00:02:18 verbose #1599 > > │ Some ()                                                                      │
00:02:18 verbose #1600 > > │                                                                              │
00:02:18 verbose #1601 > > │                                                                              │
00:02:18 verbose #1602 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:18 verbose #1603 > >
00:02:18 verbose #1604 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:18 verbose #1605 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:18 verbose #1606 > > │ #### change (test)                                                           │
00:02:18 verbose #1607 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:18 verbose #1608 > >
00:02:18 verbose #1609 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:18 verbose #1610 > > //// test
00:02:18 verbose #1611 > >
00:02:18 verbose #1612 > > let inline write path = async {
00:02:18 verbose #1613 > >     let n = 2
00:02:18 verbose #1614 > >
00:02:18 verbose #1615 > >     for i = 1 to n do
00:02:18 verbose #1616 > >         do! $"{i}" |> SpiralFileSystem.write_all_text_async (path </>
00:02:18 verbose #1617 > > $"file{i}.txt")
00:02:18 verbose #1618 > >
00:02:18 verbose #1619 > >     for i = 1 to n do
00:02:18 verbose #1620 > >         do! "" |> SpiralFileSystem.write_all_text_async (path </>
00:02:18 verbose #1621 > > $"file{i}.txt")
00:02:18 verbose #1622 > >
00:02:18 verbose #1623 > >     for i = 1 to n do
00:02:18 verbose #1624 > >         do! SpiralFileSystem.delete_file_async (path </> $"file{i}.txt") |>
00:02:18 verbose #1625 > > Async.Ignore
00:02:18 verbose #1626 > >
00:02:18 verbose #1627 > >     do! Async.Sleep 150
00:02:18 verbose #1628 > > }
00:02:18 verbose #1629 > >
00:02:18 verbose #1630 > > let inline run () =
00:02:18 verbose #1631 > >     let eventMap, eventList = testEventsSorted (watchDirectory (fun _ -> false))
00:02:18 verbose #1632 > > write
00:02:18 verbose #1633 > >
00:02:18 verbose #1634 > >     [[
00:02:18 verbose #1635 > >         "file1.txt", nameof FileSystemChangeType.Created
00:02:18 verbose #1636 > >         "file1.txt", nameof FileSystemChangeType.Changed
00:02:18 verbose #1637 > >         "file1.txt", nameof FileSystemChangeType.Deleted
00:02:18 verbose #1638 > >
00:02:18 verbose #1639 > >         "file2.txt", nameof FileSystemChangeType.Created
00:02:18 verbose #1640 > >         "file2.txt", nameof FileSystemChangeType.Changed
00:02:18 verbose #1641 > >         "file2.txt", nameof FileSystemChangeType.Deleted
00:02:18 verbose #1642 > >     ]]
00:02:18 verbose #1643 > >     |> _sequenceEqual eventList
00:02:18 verbose #1644 > >
00:02:18 verbose #1645 > >     [[
00:02:18 verbose #1646 > >         "file1.txt", nameof FileSystemChangeType.Deleted
00:02:18 verbose #1647 > >         "file2.txt", nameof FileSystemChangeType.Deleted
00:02:18 verbose #1648 > >     ]]
00:02:18 verbose #1649 > >     |> Map.ofList
00:02:18 verbose #1650 > >     |> _sequenceEqual eventMap
00:02:18 verbose #1651 > >
00:02:18 verbose #1652 > > run
00:02:18 verbose #1653 > > |> retry_fn 3
00:02:18 verbose #1654 > > |> _assertEqual (Some ())
00:02:20 verbose #1655 > >
00:02:20 verbose #1656 > > ╭─[ 1.86s - stdout ]───────────────────────────────────────────────────────────╮
00:02:20 verbose #1657 > > │ Some ()                                                                      │
00:02:20 verbose #1658 > > │                                                                              │
00:02:20 verbose #1659 > > │ 00:00:19   debug #6 FileSystem.watchWithFilter / Disposing watch stream │
00:02:20 verbose #1660 > > │ / filter: FileName, LastWrite                                                │
00:02:20 verbose #1661 > > │ [("file1.txt", "Created"); ("file1.txt", "Changed"); ("file1.txt",           │
00:02:20 verbose #1662 > > │ "Deleted"); ("file2.txt", "Created");                                        │
00:02:20 verbose #1663 > > │  ("file2.txt", "Changed"); ("file2.txt", "Deleted")]                         │
00:02:20 verbose #1664 > > │                                                                              │
00:02:20 verbose #1665 > > │ map [("file1.txt", "Deleted"); ("file2.txt", "Deleted")]                     │
00:02:20 verbose #1666 > > │                                                                              │
00:02:20 verbose #1667 > > │ Some ()                                                                      │
00:02:20 verbose #1668 > > │                                                                              │
00:02:20 verbose #1669 > > │                                                                              │
00:02:20 verbose #1670 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:20 verbose #1671 > >
00:02:20 verbose #1672 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:20 verbose #1673 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:20 verbose #1674 > > │ #### rename (test)                                                           │
00:02:20 verbose #1675 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:20 verbose #1676 > >
00:02:20 verbose #1677 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:20 verbose #1678 > > //// test
00:02:20 verbose #1679 > >
00:02:20 verbose #1680 > > let inline write path = async {
00:02:20 verbose #1681 > >     let n = 2
00:02:20 verbose #1682 > >
00:02:20 verbose #1683 > >     for i = 1 to n do
00:02:20 verbose #1684 > >         do! $"{i}" |> SpiralFileSystem.write_all_text_async (path </>
00:02:20 verbose #1685 > > $"file{i}.txt")
00:02:20 verbose #1686 > >
00:02:20 verbose #1687 > >     for i = 1 to n do
00:02:20 verbose #1688 > >         do! path </> $"file{i}.txt" |> SpiralFileSystem.move_file_async (path
00:02:20 verbose #1689 > > </> $"file_{i}.txt") |> Async.Ignore
00:02:20 verbose #1690 > >
00:02:20 verbose #1691 > >     for i = 1 to n do
00:02:20 verbose #1692 > >         do! SpiralFileSystem.delete_file_async (path </> $"file_{i}.txt") |>
00:02:20 verbose #1693 > > Async.Ignore
00:02:20 verbose #1694 > >
00:02:20 verbose #1695 > >     do! Async.Sleep 150
00:02:20 verbose #1696 > > }
00:02:20 verbose #1697 > >
00:02:20 verbose #1698 > > let inline run () =
00:02:20 verbose #1699 > >     let eventMap, eventList = testEventsSorted (watchDirectory (fun _ -> false))
00:02:20 verbose #1700 > > write
00:02:20 verbose #1701 > >
00:02:20 verbose #1702 > >     [[
00:02:20 verbose #1703 > >         "file1.txt", nameof FileSystemChangeType.Created
00:02:20 verbose #1704 > >         "file1.txt", nameof FileSystemChangeType.Changed
00:02:20 verbose #1705 > >         "file2.txt", nameof FileSystemChangeType.Created
00:02:20 verbose #1706 > >         "file2.txt", nameof FileSystemChangeType.Changed
00:02:20 verbose #1707 > >
00:02:20 verbose #1708 > >         "file_1.txt", nameof FileSystemChangeType.Renamed
00:02:20 verbose #1709 > >         "file_1.txt", nameof FileSystemChangeType.Deleted
00:02:20 verbose #1710 > >
00:02:20 verbose #1711 > >         "file_2.txt", nameof FileSystemChangeType.Renamed
00:02:20 verbose #1712 > >         "file_2.txt", nameof FileSystemChangeType.Deleted
00:02:20 verbose #1713 > >     ]]
00:02:20 verbose #1714 > >     |> _sequenceEqual eventList
00:02:20 verbose #1715 > >
00:02:20 verbose #1716 > >     [[
00:02:20 verbose #1717 > >         "file1.txt", nameof FileSystemChangeType.Changed
00:02:20 verbose #1718 > >         "file2.txt", nameof FileSystemChangeType.Changed
00:02:20 verbose #1719 > >         "file_1.txt", nameof FileSystemChangeType.Deleted
00:02:20 verbose #1720 > >         "file_2.txt", nameof FileSystemChangeType.Deleted
00:02:20 verbose #1721 > >     ]]
00:02:20 verbose #1722 > >     |> Map.ofList
00:02:20 verbose #1723 > >     |> _sequenceEqual eventMap
00:02:20 verbose #1724 > >
00:02:20 verbose #1725 > > run
00:02:20 verbose #1726 > > |> retry_fn 3
00:02:20 verbose #1727 > > |> _assertEqual (Some ())
00:02:22 verbose #1728 > >
00:02:22 verbose #1729 > > ╭─[ 1.94s - stdout ]───────────────────────────────────────────────────────────╮
00:02:22 verbose #1730 > > │ Some ()                                                                      │
00:02:22 verbose #1731 > > │                                                                              │
00:02:22 verbose #1732 > > │ 00:00:21   debug #7 FileSystem.watchWithFilter / Disposing watch stream │
00:02:22 verbose #1733 > > │ / filter: FileName, LastWrite                                                │
00:02:22 verbose #1734 > > │ [("file1.txt", "Created"); ("file1.txt", "Changed"); ("file2.txt",           │
00:02:22 verbose #1735 > > │ "Created"); ("file2.txt", "Changed");                                        │
00:02:22 verbose #1736 > > │  ("file_1.txt", "Renamed"); ("file_1.txt", "Deleted"); ("file_2.txt",        │
00:02:22 verbose #1737 > > │ "Renamed"); ("file_2.txt", "Deleted")]                                       │
00:02:22 verbose #1738 > > │                                                                              │
00:02:22 verbose #1739 > > │ map [("file1.txt", "Changed"); ("file2.txt", "Changed"); ("file_1.txt",      │
00:02:22 verbose #1740 > > │ "Deleted"); ("file_2.txt", "Deleted")]                                       │
00:02:22 verbose #1741 > > │                                                                              │
00:02:22 verbose #1742 > > │ Some ()                                                                      │
00:02:22 verbose #1743 > > │                                                                              │
00:02:22 verbose #1744 > > │                                                                              │
00:02:22 verbose #1745 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:22 verbose #1746 > >
00:02:22 verbose #1747 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:22 verbose #1748 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:22 verbose #1749 > > │ #### full (test)                                                             │
00:02:22 verbose #1750 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:22 verbose #1751 > >
00:02:22 verbose #1752 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:22 verbose #1753 > > //// test
00:02:22 verbose #1754 > >
00:02:22 verbose #1755 > > let inline write path = async {
00:02:22 verbose #1756 > >     let n = 2
00:02:22 verbose #1757 > >
00:02:22 verbose #1758 > >     for i = 1 to n do
00:02:22 verbose #1759 > >         do! $"{i}" |> SpiralFileSystem.write_all_text_async (path </>
00:02:22 verbose #1760 > > $"file{i}.txt")
00:02:22 verbose #1761 > >
00:02:22 verbose #1762 > >     for i = 1 to n do
00:02:22 verbose #1763 > >         do! "" |> SpiralFileSystem.write_all_text_async (path </>
00:02:22 verbose #1764 > > $"file{i}.txt")
00:02:22 verbose #1765 > >
00:02:22 verbose #1766 > >     for i = 1 to n do
00:02:22 verbose #1767 > >         do! path </> $"file{i}.txt" |> SpiralFileSystem.move_file_async (path
00:02:22 verbose #1768 > > </> $"file_{i}.txt") |> Async.Ignore
00:02:22 verbose #1769 > >
00:02:22 verbose #1770 > >     for i = 1 to n do
00:02:22 verbose #1771 > >         do! $"{i}" |> SpiralFileSystem.write_all_text_async (path </>
00:02:22 verbose #1772 > > $"file_{i}.txt")
00:02:22 verbose #1773 > >
00:02:22 verbose #1774 > >     for i = 1 to n do
00:02:22 verbose #1775 > >         do! SpiralFileSystem.delete_file_async (path </> $"file_{i}.txt") |>
00:02:22 verbose #1776 > > Async.Ignore
00:02:22 verbose #1777 > >
00:02:22 verbose #1778 > >     do! Async.Sleep 150
00:02:22 verbose #1779 > > }
00:02:22 verbose #1780 > >
00:02:22 verbose #1781 > > let inline run () =
00:02:22 verbose #1782 > >     let eventMap, eventList = testEventsSorted (watchDirectory (fun _ -> false))
00:02:22 verbose #1783 > > write
00:02:22 verbose #1784 > >
00:02:22 verbose #1785 > >     [[
00:02:22 verbose #1786 > >         "file1.txt", nameof FileSystemChangeType.Created
00:02:22 verbose #1787 > >         "file1.txt", nameof FileSystemChangeType.Changed
00:02:22 verbose #1788 > >         "file2.txt", nameof FileSystemChangeType.Created
00:02:22 verbose #1789 > >         "file2.txt", nameof FileSystemChangeType.Changed
00:02:22 verbose #1790 > >
00:02:22 verbose #1791 > >         "file_1.txt", nameof FileSystemChangeType.Changed
00:02:22 verbose #1792 > >         "file_1.txt", nameof FileSystemChangeType.Renamed
00:02:22 verbose #1793 > >         "file_1.txt", nameof FileSystemChangeType.Deleted
00:02:22 verbose #1794 > >
00:02:22 verbose #1795 > >         "file_2.txt", nameof FileSystemChangeType.Changed
00:02:22 verbose #1796 > >         "file_2.txt", nameof FileSystemChangeType.Renamed
00:02:22 verbose #1797 > >         "file_2.txt", nameof FileSystemChangeType.Deleted
00:02:22 verbose #1798 > >     ]]
00:02:22 verbose #1799 > >     |> _sequenceEqual eventList
00:02:22 verbose #1800 > >
00:02:22 verbose #1801 > >     [[
00:02:22 verbose #1802 > >         "file1.txt", nameof FileSystemChangeType.Changed
00:02:22 verbose #1803 > >         "file2.txt", nameof FileSystemChangeType.Changed
00:02:22 verbose #1804 > >         "file_1.txt", nameof FileSystemChangeType.Deleted
00:02:22 verbose #1805 > >         "file_2.txt", nameof FileSystemChangeType.Deleted
00:02:22 verbose #1806 > >     ]]
00:02:22 verbose #1807 > >     |> Map.ofList
00:02:22 verbose #1808 > >     |> _sequenceEqual eventMap
00:02:22 verbose #1809 > >
00:02:22 verbose #1810 > > run
00:02:22 verbose #1811 > > |> retry_fn 3
00:02:22 verbose #1812 > > |> _assertEqual (Some ())
00:02:24 verbose #1813 > >
00:02:24 verbose #1814 > > ╭─[ 2.35s - stdout ]───────────────────────────────────────────────────────────╮
00:02:24 verbose #1815 > > │ Some ()                                                                      │
00:02:24 verbose #1816 > > │                                                                              │
00:02:24 verbose #1817 > > │ 00:00:23   debug #8 FileSystem.watchWithFilter / Disposing watch stream │
00:02:24 verbose #1818 > > │ / filter: FileName, LastWrite                                                │
00:02:24 verbose #1819 > > │ [("file1.txt", "Created"); ("file1.txt", "Changed"); ("file2.txt",           │
00:02:24 verbose #1820 > > │ "Created"); ("file2.txt", "Changed");                                        │
00:02:24 verbose #1821 > > │  ("file_1.txt", "Changed"); ("file_1.txt", "Renamed"); ("file_1.txt",        │
00:02:24 verbose #1822 > > │ "Deleted"); ("file_2.txt", "Changed");                                       │
00:02:24 verbose #1823 > > │  ("file_2.txt", "Renamed"); ("file_2.txt", "Deleted")]                       │
00:02:24 verbose #1824 > > │                                                                              │
00:02:24 verbose #1825 > > │ map [("file1.txt", "Changed"); ("file2.txt", "Changed"); ("file_1.txt",      │
00:02:24 verbose #1826 > > │ "Deleted"); ("file_2.txt", "Deleted")]                                       │
00:02:24 verbose #1827 > > │                                                                              │
00:02:24 verbose #1828 > > │ Some ()                                                                      │
00:02:24 verbose #1829 > > │                                                                              │
00:02:24 verbose #1830 > > │                                                                              │
00:02:24 verbose #1831 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:24 verbose #1832 > 00:00:43 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 36872 }
00:02:24 verbose #1833 > 00:00:43   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/fsharp/FileSystem.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/fsharp/FileSystem.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:02:26 verbose #1834 > 00:00:44 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/fsharp/FileSystem.dib.ipynb to html
00:02:26 verbose #1835 > 00:00:44 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:02:26 verbose #1836 > 00:00:44 verbose #7 !   validate(nb)
00:02:28 verbose #1837 > 00:00:46 verbose #8 ! [NbConvertApp] Writing 380524 bytes to c:\home\git\polyglot\lib\fsharp\FileSystem.dib.html
00:02:28 verbose #1838 > 00:00:46 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 651 }
00:02:28 verbose #1839 > 00:00:46   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 651 }
00:02:28 verbose #1840 > 00:00:46   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/fsharp/FileSystem.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/fsharp/FileSystem.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:02:29 verbose #1841 > 00:00:47 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:02:29 verbose #1842 > 00:00:47   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:02:29 verbose #1843 > 00:00:48   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 37582 }
00:02:29   debug #1844 runtime.execute_with_options_async / { exit_code = 0; output_length = 42045 }
00:02:29   debug #7 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path FileSystem.dib --retries 3
00:02:29   debug #1845 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path Runtime.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:02:29 verbose #1846 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "Runtime.dib", "--retries", "3"])) }
00:02:29 verbose #1847 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/fsharp/Runtime.dib", "--output-path", "c:/home/git/polyglot/lib/fsharp/Runtime.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/fsharp/Runtime.dib" --output-path "c:/home/git/polyglot/lib/fsharp/Runtime.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:02:31 verbose #1848 > >
00:02:31 verbose #1849 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:31 verbose #1850 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:31 verbose #1851 > > │ # Runtime (Polyglot)                                                         │
00:02:31 verbose #1852 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:35 verbose #1853 > >
00:02:35 verbose #1854 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:35 verbose #1855 > > #r
00:02:35 verbose #1856 > > @"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
00:02:35 verbose #1857 > > dard2.1/FSharp.Control.AsyncSeq.dll"
00:02:35 verbose #1858 > > #r
00:02:35 verbose #1859 > > @"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
00:02:35 verbose #1860 > > 0/System.Reactive.dll"
00:02:35 verbose #1861 > > #r
00:02:35 verbose #1862 > > @"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib
00:02:35 verbose #1863 > > netstandard2.0/System.Reactive.Linq.dll"
00:02:35 verbose #1864 > > #r
00:02:35 verbose #1865 > > @"../../../../../../../.nuget/packages/argu/6.2.4/lib/netstandard2.0/Argu.dll"
00:02:50 verbose #1866 > >
00:02:50 verbose #1867 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:50 verbose #1868 > > #if !INTERACTIVE
00:02:50 verbose #1869 > > open Lib
00:02:50 verbose #1870 > > #endif
00:02:50 verbose #1871 > >
00:02:50 verbose #1872 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:50 verbose #1873 > > open Common
00:02:50 verbose #1874 > >
00:02:50 verbose #1875 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:50 verbose #1876 > > //// test
00:02:50 verbose #1877 > >
00:02:50 verbose #1878 > > open SpiralFileSystem.Operators
00:02:50 verbose #1879 > >
00:02:50 verbose #1880 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:50 verbose #1881 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:50 verbose #1882 > > │ ## parseArgs                                                                 │
00:02:50 verbose #1883 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:50 verbose #1884 > >
00:02:50 verbose #1885 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:50 verbose #1886 > > let inline parseArgs<'T when 'T :> Argu.IArgParserTemplate> args =
00:02:50 verbose #1887 > >     let assemblyName =
00:02:50 verbose #1888 > > System.Reflection.Assembly.GetEntryAssembly().GetName().Name
00:02:50 verbose #1889 > >     let errorHandler : Argu.IExiter =
00:02:50 verbose #1890 > >         if [[ "Microsoft.DotNet.Interactive.App"; "dotnet-repl" ]] |>
00:02:50 verbose #1891 > > List.contains assemblyName
00:02:50 verbose #1892 > >         then Argu.ExceptionExiter ()
00:02:50 verbose #1893 > >         else Argu.ProcessExiter (function Argu.ErrorCode.HelpText -> None | _ ->
00:02:50 verbose #1894 > > Some System.ConsoleColor.Red)
00:02:50 verbose #1895 > >
00:02:50 verbose #1896 > >     let parser =
00:02:50 verbose #1897 > >         Argu.ArgumentParser.Create<'T> (
00:02:50 verbose #1898 > >             programName = $"{assemblyName}{SpiralPlatform.get_executable_suffix
00:02:50 verbose #1899 > > ()}",
00:02:50 verbose #1900 > >             errorHandler = errorHandler
00:02:50 verbose #1901 > >         )
00:02:50 verbose #1902 > >
00:02:50 verbose #1903 > >     parser.ParseCommandLine args
00:02:50 verbose #1904 > >
00:02:50 verbose #1905 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:50 verbose #1906 > > //// test
00:02:50 verbose #1907 > >
00:02:50 verbose #1908 > > [[<RequireQualifiedAccess>]]
00:02:50 verbose #1909 > > type Arguments =
00:02:50 verbose #1910 > >     | [[<Argu.ArguAttributes.MainCommand; Argu.ArguAttributes.ExactlyOnce;
00:02:50 verbose #1911 > > Argu.ArguAttributes.Last>]]
00:02:50 verbose #1912 > >         Paths of paths : string list
00:02:50 verbose #1913 > >
00:02:50 verbose #1914 > >     interface Argu.IArgParserTemplate with
00:02:50 verbose #1915 > >         member s.Usage =
00:02:50 verbose #1916 > >             match s with
00:02:50 verbose #1917 > >             | Paths _ -> nameof Paths
00:02:50 verbose #1918 > >
00:02:50 verbose #1919 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:50 verbose #1920 > > //// test
00:02:50 verbose #1921 > >
00:02:50 verbose #1922 > > Argu.ArgumentParser.Create<Arguments>().PrintUsage ()
00:02:50 verbose #1923 > >
00:02:50 verbose #1924 > > ╭─[ 116.49ms - return value ]──────────────────────────────────────────────────╮
00:02:50 verbose #1925 > > │ "USAGE: dotnet-repl [--help] <paths>...                                      │
00:02:50 verbose #1926 > > │                                                                              │
00:02:50 verbose #1927 > > │ PATHS:                                                                       │
00:02:50 verbose #1928 > > │                                                                              │
00:02:50 verbose #1929 > > │     <paths>...            Paths                                              │
00:02:50 verbose #1930 > > │                                                                              │
00:02:50 verbose #1931 > > │ OPTIONS:                                                                     │
00:02:50 verbose #1932 > > │                                                                              │
00:02:50 verbose #1933 > > │     --help                display this list of options.                      │
00:02:50 verbose #1934 > > │ "                                                                            │
00:02:50 verbose #1935 > > │                                                                              │
00:02:50 verbose #1936 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:50 verbose #1937 > >
00:02:50 verbose #1938 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:50 verbose #1939 > > //// test
00:02:50 verbose #1940 > >
00:02:50 verbose #1941 > > fun () -> parseArgs<Arguments> [[||]] |> ignore
00:02:50 verbose #1942 > > |> _throwsC (fun ex _ ->
00:02:50 verbose #1943 > >     SpiralSm.format_exception ex
00:02:50 verbose #1944 > >     |> _stringContains "Argu.ArguParseException: ERROR: missing parameter
00:02:50 verbose #1945 > > '<paths>...'."
00:02:50 verbose #1946 > > )
00:02:50 verbose #1947 > >
00:02:50 verbose #1948 > > ╭─[ 61.54ms - stdout ]─────────────────────────────────────────────────────────╮
00:02:50 verbose #1949 > > │ <fun:it@3-3>                                                                 │
00:02:50 verbose #1950 > > │                                                                              │
00:02:50 verbose #1951 > > │ "Argu.ArguParseException: ERROR: missing parameter '<paths>...'.             │
00:02:50 verbose #1952 > > │ USAGE: dotnet-repl.exe [--help] <paths>...                                   │
00:02:50 verbose #1953 > > │                                                                              │
00:02:50 verbose #1954 > > │ PATHS:                                                                       │
00:02:50 verbose #1955 > > │                                                                              │
00:02:50 verbose #1956 > > │     <paths>...            Paths                                              │
00:02:50 verbose #1957 > > │                                                                              │
00:02:50 verbose #1958 > > │ OPTIONS:                                                                     │
00:02:50 verbose #1959 > > │                                                                              │
00:02:50 verbose #1960 > > │     --help                display this list of options.                      │
00:02:50 verbose #1961 > > │ "                                                                            │
00:02:50 verbose #1962 > > │                                                                              │
00:02:50 verbose #1963 > > │                                                                              │
00:02:50 verbose #1964 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:50 verbose #1965 > >
00:02:50 verbose #1966 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:50 verbose #1967 > > let inline parseAllArgs<'T when 'T :> Argu.IArgParserTemplate> args =
00:02:50 verbose #1968 > >     args
00:02:50 verbose #1969 > >     |> parseArgs<'T>
00:02:50 verbose #1970 > >     |> fun results -> results.GetAllResults ()
00:02:50 verbose #1971 > >
00:02:50 verbose #1972 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:50 verbose #1973 > > //// test
00:02:50 verbose #1974 > >
00:02:50 verbose #1975 > > [[<RequireQualifiedAccess>]]
00:02:50 verbose #1976 > > type Arguments =
00:02:50 verbose #1977 > >     | [[<Argu.ArguAttributes.MainCommand; Argu.ArguAttributes.ExactlyOnce;
00:02:50 verbose #1978 > > Argu.ArguAttributes.Last>]]
00:02:50 verbose #1979 > >         Paths of paths : string list
00:02:50 verbose #1980 > >
00:02:50 verbose #1981 > >     interface Argu.IArgParserTemplate with
00:02:50 verbose #1982 > >         member s.Usage =
00:02:50 verbose #1983 > >             match s with
00:02:50 verbose #1984 > >             | Paths _ -> nameof Paths
00:02:50 verbose #1985 > >
00:02:50 verbose #1986 > > parseAllArgs<Arguments> [[| "a b"; "c" |]]
00:02:50 verbose #1987 > > |> _assertEqual [[ Arguments.Paths [[ "a b"; "c" ]] ]]
00:02:50 verbose #1988 > >
00:02:50 verbose #1989 > > ╭─[ 158.61ms - stdout ]────────────────────────────────────────────────────────╮
00:02:50 verbose #1990 > > │ [Paths ["a b"; "c"]]                                                         │
00:02:50 verbose #1991 > > │                                                                              │
00:02:50 verbose #1992 > > │                                                                              │
00:02:50 verbose #1993 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:50 verbose #1994 > >
00:02:50 verbose #1995 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:50 verbose #1996 > > let inline parseArgsMap<'T when 'T :> Argu.IArgParserTemplate> args =
00:02:50 verbose #1997 > >     args
00:02:50 verbose #1998 > >     |> parseAllArgs<'T>
00:02:50 verbose #1999 > >     |> List.groupBy CommonFSharp.getUnionCaseName<'T>
00:02:50 verbose #2000 > >     |> Map.ofList
00:02:50 verbose #2001 > >
00:02:50 verbose #2002 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:02:50 verbose #2003 > > //// test
00:02:50 verbose #2004 > >
00:02:50 verbose #2005 > > parseArgsMap<Arguments> [[| "a b"; "c" |]]
00:02:50 verbose #2006 > > |> _assertEqual (
00:02:50 verbose #2007 > >     [[ nameof Arguments.Paths, [[ Arguments.Paths [[ "a b"; "c" ]] ]] ]]
00:02:50 verbose #2008 > >     |> Map.ofList
00:02:50 verbose #2009 > > )
00:02:50 verbose #2010 > >
00:02:50 verbose #2011 > > ╭─[ 60.04ms - stdout ]─────────────────────────────────────────────────────────╮
00:02:50 verbose #2012 > > │ map [("Paths", [Paths ["a b"; "c"]])]                                        │
00:02:50 verbose #2013 > > │                                                                              │
00:02:50 verbose #2014 > > │                                                                              │
00:02:50 verbose #2015 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:51 verbose #2016 > 00:00:21 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 7590 }
00:02:51 verbose #2017 > 00:00:21   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/fsharp/Runtime.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/fsharp/Runtime.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:02:52 verbose #2018 > 00:00:23 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/fsharp/Runtime.dib.ipynb to html
00:02:52 verbose #2019 > 00:00:23 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:02:52 verbose #2020 > 00:00:23 verbose #7 !   validate(nb)
00:02:54 verbose #2021 > 00:00:24 verbose #8 ! [NbConvertApp] Writing 292946 bytes to c:\home\git\polyglot\lib\fsharp\Runtime.dib.html
00:02:54 verbose #2022 > 00:00:24 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 645 }
00:02:54 verbose #2023 > 00:00:24   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 645 }
00:02:54 verbose #2024 > 00:00:24   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/fsharp/Runtime.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/fsharp/Runtime.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:02:55 verbose #2025 > 00:00:25 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:02:55 verbose #2026 > 00:00:25   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:02:55 verbose #2027 > 00:00:25   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 8294 }
00:02:55   debug #2028 runtime.execute_with_options_async / { exit_code = 0; output_length = 11254 }
00:02:55   debug #8 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path Runtime.dib --retries 3
00:02:55 verbose #6 networking.wait_for_port_access / { port = 13805; retry = 0; timeout = Some 100; status = false }
00:02:55 verbose #7 async.run_with_timeout_async / { timeout = 100 }
00:00:00   debug #1 writeDibCode / output: Fs / path: AsyncSeq.dib
00:00:00   debug #1 writeDibCode / output: Fs / path: CommonFSharp.dib
00:00:00   debug #1 writeDibCode / output: Fs / path: FileSystem.dib
00:00:00   debug #1 writeDibCode / output: Fs / path: Runtime.dib
00:00:00   debug #1 writeDibCode / output: Fs / path: Async.dib
00:00:00   debug #1 writeDibCode / output: Fs / path: Common.dib
00:00:00   debug #4 parseDibCode / output: Fs / file: Runtime.dib
00:00:00   debug #2 parseDibCode / output: Fs / file: FileSystem.dib
00:00:00   debug #7 parseDibCode / output: Fs / file: Async.dib
00:00:00   debug #5 parseDibCode / output: Fs / file: CommonFSharp.dib
00:00:00   debug #4 parseDibCode / output: Fs / file: AsyncSeq.dib
00:00:00   debug #7 parseDibCode / output: Fs / file: Common.dib
In [ ]:
{ pwsh ../lib/math/build.ps1 } | Invoke-Block
00:00:00 verbose #1 async.run_with_timeout_async / { timeout = 180 }
00:00:00   debug #1 runtime.execute_with_options_async / { options = { command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = Some <fun:main@570-7>; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot" } }
00:00:00 verbose #2 > 00:00:00   debug #1 pwd: C:\home\git\polyglot
00:00:00 verbose #3 > 00:00:00   debug #2 dllPath: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:00 verbose #4 > 00:00:00   debug #3 targetDir: C:\home\git\polyglot\target/spiral_Eval
00:00:01 verbose #2 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #3 networking.wait_for_port_access / { port = 13805; retry = 0; timeout = Some 100; status = true }
00:00:01 verbose #4 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #5 > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:01 verbose #5 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #1 Supervisor.sendJson / port: 13805 / json: {"Ping":true} / result:
00:00:01 verbose #2 awaitCompiler / Ping / result: 'Some(null)' / port: 13805 / retry: 0
00:00:01 verbose #6 > Server bound to: http://localhost:13805
00:00:01   debug #7 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path math.dib --retries 1; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:01 verbose #8 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "math.dib", "--retries", "1"])) }
00:00:01 verbose #9 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/math/math.dib", "--output-path", "c:/home/git/polyglot/lib/math/math.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/math/math.dib" --output-path "c:/home/git/polyglot/lib/math/math.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:00:03 verbose #10 > >
00:00:03 verbose #11 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:03 verbose #12 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:03 verbose #13 > > │ # math                                                                       │
00:00:03 verbose #14 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:07 verbose #15 > >
00:00:07 verbose #16 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:07 verbose #17 > > open testing
00:00:07 verbose #18 > > open rust_operators
00:00:08 verbose #19 > 00:00:08   debug #4 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b90fee451a768d1722d376785f2e3ed5ef1cb939ef30191f05ac5df1268e6e2b/main.spi
00:00:11 verbose #20 > >
00:00:11 verbose #21 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 verbose #22 > > inl types () =
00:00:11 verbose #23 > >     global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:11 verbose #24 > > Fable.Core.Emit(\"num_complex::Complex<$0>\")>]]\n#endif\ntype
00:00:11 verbose #25 > > num_complex_Complex<'T> = class end"
00:00:11 verbose #26 > >     global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:11 verbose #27 > > Fable.Core.Emit(\"pyo3::types::PyModule\")>]]\n#endif\ntype pyo3_types_PyModule
00:00:11 verbose #28 > > = class end"
00:00:11 verbose #29 > >     global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:11 verbose #30 > > Fable.Core.Emit(\"pyo3::Bound<$0>\")>]]\n#endif\ntype pyo3_Bound<'T> = class
00:00:11 verbose #31 > > end"
00:00:11 verbose #32 > >     global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:11 verbose #33 > > Fable.Core.Emit(\"pyo3::Python\")>]]\n#endif\ntype pyo3_Python = class end"
00:00:11 verbose #34 > >     global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:11 verbose #35 > > Fable.Core.Emit(\"pyo3::PyAny\")>]]\n#endif\ntype pyo3_PyAny = class end"
00:00:11 verbose #36 > >     global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:11 verbose #37 > > Fable.Core.Emit(\"pyo3::PyErr\")>]]\n#endif\ntype pyo3_PyErr = class end"
00:00:11 verbose #38 > 00:00:10   debug #5 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d3fd8ea5f1ec47d9535c3396ca7fae844f26e9b17b6576bd205b8d9a99b23aac/main.spi
00:00:11 verbose #39 > >
00:00:11 verbose #40 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 verbose #41 > > inl types () =
00:00:11 verbose #42 > >     rust.types ()
00:00:11 verbose #43 > >     sm'.types ()
00:00:11 verbose #44 > >     types ()
00:00:12 verbose #45 > 00:00:11   debug #6 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/525d6cbee5f047f80488922c78948a7614790249bd1b3259968d59aeb7db90ff/main.spi
00:00:12 verbose #46 > >
00:00:12 verbose #47 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 verbose #48 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 verbose #49 > > │ ## complex                                                                   │
00:00:12 verbose #50 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 verbose #51 > >
00:00:12 verbose #52 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 verbose #53 > > nominal complex t = $'num_complex_Complex<`t>'
00:00:12 verbose #54 > > nominal bound t = $'pyo3_Bound<`t>'
00:00:12 verbose #55 > > nominal python = $'pyo3_Python'
00:00:12 verbose #56 > > nominal pymodule = $'pyo3_types_PyModule'
00:00:12 verbose #57 > > nominal pyany = $'pyo3_PyAny'
00:00:12 verbose #58 > > nominal pyerr = $'pyo3_PyErr'
00:00:12 verbose #59 > >
00:00:12 verbose #60 > > inl complex forall t. ((re : t), (im : t)) : complex t =
00:00:12 verbose #61 > >     !\\((re, im), $'"num_complex::Complex::new($0, $1)"')
00:00:12 verbose #62 > 00:00:11   debug #7 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/53e60ee4aa1b19c1ed8266edc3edbd4349d11c1a20b2e59ad803671e2881d348/main.spi
00:00:12 verbose #63 > >
00:00:12 verbose #64 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 verbose #65 > > //// test
00:00:12 verbose #66 > > ///! rust -d num-complex
00:00:12 verbose #67 > >
00:00:12 verbose #68 > > types ()
00:00:12 verbose #69 > >
00:00:12 verbose #70 > > complex (0f64, 0f64)
00:00:12 verbose #71 > > |> sm'.format'
00:00:12 verbose #72 > > |> sm'.from_std_string
00:00:12 verbose #73 > > |> _assert_eq "0+0i"
00:00:12 verbose #74 > 00:00:12   debug #8 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b4ee5dc6730746a8c0127b1962aa4ae9e058a26567e623fec7bb6a84915db8b2/main.spi
00:00:15 verbose #75 > >
00:00:15 verbose #76 > > ╭─[ 2.56s - return value ]─────────────────────────────────────────────────────╮
00:00:15 verbose #77 > > │ assert_eq / actual: "0+0i" / expected: "0+0i"                                │
00:00:15 verbose #78 > > │                                                                              │
00:00:15 verbose #79 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 verbose #80 > >
00:00:15 verbose #81 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 verbose #82 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 verbose #83 > > │ ## complex_sin                                                               │
00:00:15 verbose #84 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 verbose #85 > >
00:00:15 verbose #86 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 verbose #87 > > inl re forall t. (c : complex t) : t =
00:00:15 verbose #88 > >     !\\(c, $'"$0.re"')
00:00:15 verbose #89 > >
00:00:15 verbose #90 > > inl im forall t. (c : complex t) : t =
00:00:15 verbose #91 > >     !\\(c, $'"$0.im"')
00:00:15 verbose #92 > >
00:00:15 verbose #93 > > inl complex_unbox forall t. (c : complex t) =
00:00:15 verbose #94 > >     re c, im c
00:00:15 verbose #95 > >
00:00:15 verbose #96 > > inl (~.^) c = complex c
00:00:15 verbose #97 > >
00:00:15 verbose #98 > > inl complex_eq forall t. (a : complex t) (b : complex t) : bool =
00:00:15 verbose #99 > >     !\\((a, b), $'"$0 == $1"')
00:00:15 verbose #100 > >
00:00:15 verbose #101 > > inl (.=) a b = complex_eq a b
00:00:15 verbose #102 > >
00:00:15 verbose #103 > > instance equable complex t = complex_eq
00:00:15 verbose #104 > >
00:00:15 verbose #105 > > inl complex_add forall t. (a : complex t) (b : complex t) : complex t =
00:00:15 verbose #106 > >     !\\((a, b), $'"$0 + $1"')
00:00:15 verbose #107 > >
00:00:15 verbose #108 > > inl (.+) a b = complex_add a b
00:00:15 verbose #109 > >
00:00:15 verbose #110 > > inl complex_sub forall t. (a : complex t) (b : complex t) : complex t =
00:00:15 verbose #111 > >     !\\((a, b), $'"$0 - $1"')
00:00:15 verbose #112 > >
00:00:15 verbose #113 > > inl (.-) a b = complex_sub a b
00:00:15 verbose #114 > >
00:00:15 verbose #115 > > inl complex_mult forall t. (a : complex t) (b : complex t) : complex t =
00:00:15 verbose #116 > >     !\\((a, b), $'"$0 * $1"')
00:00:15 verbose #117 > >
00:00:15 verbose #118 > > inl (.*) a b = complex_mult a b
00:00:15 verbose #119 > >
00:00:15 verbose #120 > > inl complex_div forall t. (a : complex t) (b : complex t) : complex t =
00:00:15 verbose #121 > >     !\\((a, b), $'"$0 / $1"')
00:00:15 verbose #122 > >
00:00:15 verbose #123 > > inl (./) a b = complex_div a b
00:00:15 verbose #124 > >
00:00:15 verbose #125 > > inl powc forall t. (s : complex t) (c : complex t) : complex t =
00:00:15 verbose #126 > >     !\\((c, s), $'"num_complex::Complex::powc($0, $1)"')
00:00:15 verbose #127 > >
00:00:15 verbose #128 > > inl (.**) a b = powc b a
00:00:15 verbose #129 > >
00:00:15 verbose #130 > > inl complex_sin forall t. (c : complex t) : complex t =
00:00:15 verbose #131 > >     !\\(c, $'"$0.sin()"')
00:00:15 verbose #132 > >
00:00:15 verbose #133 > > inl conj forall t. (c : complex t) : complex t =
00:00:15 verbose #134 > >     !\\(c, $'"$0.conj()"')
00:00:15 verbose #135 > 00:00:14   debug #9 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/66bd131b3d7358c45c2b204cc72b9c0c7197618189760b6a50fde282f48f762a/main.spi
00:00:15 verbose #136 > >
00:00:15 verbose #137 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 verbose #138 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 verbose #139 > > │ ## zeta                                                                      │
00:00:15 verbose #140 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 verbose #141 > >
00:00:15 verbose #142 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 verbose #143 > > inl zeta log (gamma : complex f64 -> complex f64) (s : complex f64) : complex
00:00:15 verbose #144 > > f64 =
00:00:15 verbose #145 > >     inl rec zeta count gamma s =
00:00:15 verbose #146 > >         if log then
00:00:15 verbose #147 > >             !\\((count, s), $'"println\!(\\\"zeta / count: {:?} / s: {:?}\\\",
00:00:15 verbose #148 > > $0, $1)"')
00:00:15 verbose #149 > >         if re s > 1 then
00:00:15 verbose #150 > >             (.^(0, 0), (am.init 10000i32 id : a i32 _))
00:00:15 verbose #151 > >             ||> am.fold fun acc n =>
00:00:15 verbose #152 > >                 acc .+ (.^(1, 0) ./ (.^(f64 n, 0) .** s))
00:00:15 verbose #153 > >         else
00:00:15 verbose #154 > >             inl gamma_term = gamma (.^(1, 0) .- s)
00:00:15 verbose #155 > >             inl sin_term = .^(pi, 0) .* s ./ .^(2, 0) |> complex_sin
00:00:15 verbose #156 > >             inl one_minus_s = .^(1 - re s, -(im s))
00:00:15 verbose #157 > >             inl mirror_term =
00:00:15 verbose #158 > >                 if re one_minus_s <= 1
00:00:15 verbose #159 > >                 then .^(0, 0)
00:00:15 verbose #160 > >                 else
00:00:15 verbose #161 > >                     if count <= 3
00:00:15 verbose #162 > >                     then zeta (count + 1) gamma one_minus_s
00:00:15 verbose #163 > >                     else one_minus_s
00:00:15 verbose #164 > >             inl reflection_formula =
00:00:15 verbose #165 > >                 .^(2, 0) .* (.^(pi, 0) .** s) .* sin_term .* gamma_term .*
00:00:15 verbose #166 > > mirror_term
00:00:15 verbose #167 > >             reflection_formula
00:00:15 verbose #168 > >     join zeta 0i32 gamma s
00:00:15 verbose #169 > 00:00:15   debug #10 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/985bf8936d954699a3203f71990466b3c6047d5818c932dba4a756f5f9dcd616/main.spi
00:00:16 verbose #170 > >
00:00:16 verbose #171 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:16 verbose #172 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:16 verbose #173 > > │ ## eval                                                                      │
00:00:16 verbose #174 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 verbose #175 > >
00:00:16 verbose #176 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 verbose #177 > > inl module_from_code (py : python) (code : string) : _ (bound pymodule) _ =
00:00:16 verbose #178 > >     inl py = join py
00:00:16 verbose #179 > >     inl code = code |> sm'.as_str
00:00:16 verbose #180 > >     !\($'"pyo3::types::PyModule::from_code_bound(!py, !code, \\"\\", \\"\\")"')
00:00:16 verbose #181 > >     |> resultm.map_error' fun (x : pyerr) => x |> sm'.format'
00:00:16 verbose #182 > >
00:00:16 verbose #183 > > inl use_pyanymethods () =
00:00:16 verbose #184 > >     global "Fable.Core.RustInterop.emitRustExpr () \");\nuse
00:00:16 verbose #185 > > pyo3::prelude::PyAnyMethods;\n//\""
00:00:16 verbose #186 > >
00:00:16 verbose #187 > > inl getattr (attr : string) (module : bound pymodule) : _ (bound pyany) _ =
00:00:16 verbose #188 > >     inl attr = join attr
00:00:16 verbose #189 > >     inl attr = attr |> sm'.as_str
00:00:16 verbose #190 > >     inl module = join module
00:00:16 verbose #191 > >     use_pyanymethods ()
00:00:16 verbose #192 > >     !\($'"!module.getattr(!attr)"')
00:00:16 verbose #193 > >     |> resultm.map_error' fun (x : pyerr) => x |> sm'.format'
00:00:16 verbose #194 > >
00:00:16 verbose #195 > > inl call forall t. (args : t) (module : bound pyany) : _ (bound pyany) _ =
00:00:16 verbose #196 > >     inl args = join args
00:00:16 verbose #197 > >     inl module = join module
00:00:16 verbose #198 > >     !\($'"pyo3::prelude::PyAnyMethods::call(&!module, ((*!args).0, *(*!args).1),
00:00:16 verbose #199 > > None)"')
00:00:16 verbose #200 > >     |> resultm.map_error' fun (x : pyerr) => x |> sm'.format'
00:00:16 verbose #201 > >
00:00:16 verbose #202 > > inl extract forall t. (result : bound pyany) : _ t _ =
00:00:16 verbose #203 > >     inl result = join result
00:00:16 verbose #204 > >     use_pyanymethods ()
00:00:16 verbose #205 > >     !\($'"!result.extract()"')
00:00:16 verbose #206 > >     |> resultm.map_error' fun (x : pyerr) => x |> sm'.format'
00:00:16 verbose #207 > >
00:00:16 verbose #208 > > inl eval py code (args : pair bool (pair f64 f64)) : _ (_ f64) sm'.std_string =
00:00:16 verbose #209 > >     inl code =
00:00:16 verbose #210 > >         code
00:00:16 verbose #211 > >         |> module_from_code py
00:00:16 verbose #212 > >         |> resultm.unwrap'
00:00:16 verbose #213 > >     inl fn =
00:00:16 verbose #214 > >         code
00:00:16 verbose #215 > >         |> getattr "fn"
00:00:16 verbose #216 > >         |> resultm.unwrap'
00:00:16 verbose #217 > >
00:00:16 verbose #218 > >     fn
00:00:16 verbose #219 > >     |> call args
00:00:16 verbose #220 > >     |> resultm.try'
00:00:16 verbose #221 > >     |> extract
00:00:16 verbose #222 > >     |> resultm.try'
00:00:16 verbose #223 > >     |> complex
00:00:16 verbose #224 > >     |> Ok
00:00:16 verbose #225 > >     |> resultm.box
00:00:16 verbose #226 > >
00:00:16 verbose #227 > > inl call1_ log py s code =
00:00:16 verbose #228 > >     inl code = join (a code : _ i32 _) |> sm'.concat_array_trailing "\n"
00:00:16 verbose #229 > >
00:00:16 verbose #230 > >     inl s = new_pair (re s) (im s)
00:00:16 verbose #231 > >     inl args = new_pair log s
00:00:16 verbose #232 > >
00:00:16 verbose #233 > >     eval py code args
00:00:16 verbose #234 > >
00:00:16 verbose #235 > > inl call1_ log name py s line =
00:00:16 verbose #236 > >     inl s = join s
00:00:16 verbose #237 > >     join
00:00:16 verbose #238 > >         ;[[
00:00:16 verbose #239 > >             $'$"import sys"'
00:00:16 verbose #240 > >             $'$"import traceback"'
00:00:16 verbose #241 > >             $'$"import re"'
00:00:16 verbose #242 > >             $'$"count = 0"'
00:00:16 verbose #243 > >             $'$"memory_address_pattern = re.compile(r\' at 0x[[0-9a-fA-F]]+\')"'
00:00:16 verbose #244 > >             $'$"def trace_calls(frame, event, arg):"'
00:00:16 verbose #245 > >             $'$"    global count"'
00:00:16 verbose #246 > >             $'$"    count += 1"'
00:00:16 verbose #247 > >             $'$"    if count < 200:"'
00:00:16 verbose #248 > >             $'$"        try:"'
00:00:16 verbose #249 > >             $'$"            args = {{ k: v for k, v in frame.f_locals.items() if
00:00:16 verbose #250 > > frame.f_code.co_name \!= \'make_mpc\' and k not in [[\'ctx\']] and not
00:00:16 verbose #251 > > callable(v) }}"'
00:00:16 verbose #252 > >             $'$"            args_str = \', \'.join([[
00:00:16 verbose #253 > > f\\\"{{k}}={{re.sub(memory_address_pattern, \' at 0x<?>\', repr(v))}}\\\" for k,
00:00:16 verbose #254 > > v in args.items() ]])"'
00:00:16 verbose #255 > >             $'$"            print(f\\\"{{event}}({!name}) / f_code.co_name:
00:00:16 verbose #256 > > {{frame.f_code.co_name}} / f_locals: {{args_str}} / f_lineno: {{frame.f_lineno}}
00:00:16 verbose #257 > > / f_code.co_filename:
00:00:16 verbose #258 > > {{frame.f_code.co_filename.split(\'site-packages\')[[-1]]}} / f_back.f_lineno:
00:00:16 verbose #259 > > {{ \'\' if frame.f_back is None else frame.f_back.f_lineno }}
00:00:16 verbose #260 > > f_back.f_code.co_filename: {{ \'\' if frame.f_back is None else
00:00:16 verbose #261 > > frame.f_back.f_code.co_filename.split(\'site-packages\')[[-1]] }} / arg:
00:00:16 verbose #262 > > {{re.sub(memory_address_pattern, \' at 0x<?>\', repr(arg))}}\\\", flush=True)"'
00:00:16 verbose #263 > >             $'$"        except ValueError as e:"'
00:00:16 verbose #264 > >             $'$"            print(f\'{!name} / e: {{e}}\', flush=True)"'
00:00:16 verbose #265 > >             $'$"        return trace_calls"'
00:00:16 verbose #266 > >             $'$"import mpmath"'
00:00:16 verbose #267 > >             $'$"def fn(log, s):"'
00:00:16 verbose #268 > >             $'$"    global count"'
00:00:16 verbose #269 > >             $'$"    if log:"'
00:00:16 verbose #270 > >             $'$"        print(f\'{!name} / s: {{s}} / count: {{count}}\',
00:00:16 verbose #271 > > flush=True)"'
00:00:16 verbose #272 > >             $'$"    s = complex(*s)"'
00:00:16 verbose #273 > >             $'$"    try:"'
00:00:16 verbose #274 > >             $'$"        if log: sys.settrace(trace_calls)"'
00:00:16 verbose #275 > >             line
00:00:16 verbose #276 > >             $'$"        if log:"'
00:00:16 verbose #277 > >             $'$"            sys.settrace(None)"'
00:00:16 verbose #278 > >             $'$"            print(f\'{!name} / result: {{s}} / count:
00:00:16 verbose #279 > > {{count}}\', flush=True)"'
00:00:16 verbose #280 > >             $'$"    except ValueError as e:"'
00:00:16 verbose #281 > >             $'$"        if s.real == 1:"'
00:00:16 verbose #282 > >             $'$"            s = complex(float(\'inf\'), 0)"'
00:00:16 verbose #283 > >             $'$"    return (s.real, s.imag)"'
00:00:16 verbose #284 > >         ]]
00:00:16 verbose #285 > >         |> call1_ log py s
00:00:16 verbose #286 > >
00:00:16 verbose #287 > > inl gamma_ log py s =
00:00:16 verbose #288 > >     call1_ log "gamma_" py s $'$"        s = mpmath.gamma(s)"'
00:00:16 verbose #289 > >
00:00:16 verbose #290 > > inl zeta_ log py s =
00:00:16 verbose #291 > >     call1_ log "zeta_" py s $'$"        s = mpmath.zeta(s)"'
00:00:16 verbose #292 > 00:00:15   debug #11 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/10a3eba0c011808add8fd889e53c48c5657df2d243612913d63f003ecd5d7e11/main.spi
00:00:16 verbose #293 > >
00:00:16 verbose #294 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:16 verbose #295 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:16 verbose #296 > > │ ## run_test                                                                  │
00:00:16 verbose #297 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 verbose #298 > >
00:00:16 verbose #299 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 verbose #300 > > inl run_test log closure_fix (fn : (complex f64 -> complex f64) * (complex f64
00:00:16 verbose #301 > > -> complex f64) -> ()) =
00:00:16 verbose #302 > >     inl fn_ (py : python) : resultm.result' () pyerr =
00:00:16 verbose #303 > >         inl nan () =
00:00:16 verbose #304 > >             !\($'"f64::NAN"')
00:00:16 verbose #305 > >         inl gamma__ = fun (s : complex f64) =>
00:00:16 verbose #306 > >             inl result = gamma_ log py s
00:00:16 verbose #307 > >             if log then
00:00:16 verbose #308 > >                 inl s = join s
00:00:16 verbose #309 > >                 !\($'"println\!(\\\"gamma__ / s: {:?} / result: {:?}\\\", !s,
00:00:16 verbose #310 > > !result)"')
00:00:16 verbose #311 > >             result |> resultm.ok' |> optionm'.unbox |> optionm'.default_value
00:00:16 verbose #312 > > .^(nan (), nan ())
00:00:16 verbose #313 > >         inl zeta__ = fun (s : complex f64) =>
00:00:16 verbose #314 > >             inl result = zeta_ log py s
00:00:16 verbose #315 > >
00:00:16 verbose #316 > >             inl z = zeta true gamma__ s
00:00:16 verbose #317 > >
00:00:16 verbose #318 > >             if log then
00:00:16 verbose #319 > >                 inl s = join s
00:00:16 verbose #320 > >                 !\($'"println\!(\\\"zeta__ / s: {:?} / result: {:?} / z:
00:00:16 verbose #321 > > {:?}\\\", !s, !result, !z)"')
00:00:16 verbose #322 > >
00:00:16 verbose #323 > >     //             re result - re x |> abs
00:00:16 verbose #324 > >     //             |> _assert_lt 0.001
00:00:16 verbose #325 > >
00:00:16 verbose #326 > >     //             im result - im x |> abs
00:00:16 verbose #327 > >     //             |> _assert_lt 0.001
00:00:16 verbose #328 > >
00:00:16 verbose #329 > >             result |> resultm.ok' |> optionm'.unbox |> optionm'.default_value
00:00:16 verbose #330 > > .^(nan (), nan ())
00:00:16 verbose #331 > >         join fn (zeta__, gamma__)
00:00:16 verbose #332 > >
00:00:16 verbose #333 > >         Ok ()
00:00:16 verbose #334 > >         |> resultm.box
00:00:16 verbose #335 > >
00:00:16 verbose #336 > >     join
00:00:16 verbose #337 > >         !\($'"pyo3::prepare_freethreaded_python()"') : ()
00:00:16 verbose #338 > >
00:00:16 verbose #339 > >         !\($'"let __result = pyo3::Python::with_gil(|py| -> pyo3::PyResult<()> {
00:00:16 verbose #340 > > //"')
00:00:16 verbose #341 > >
00:00:16 verbose #342 > >         let x' = fn_ (!\($'"py"') : python)
00:00:16 verbose #343 > >         inl x' = join x'
00:00:16 verbose #344 > >
00:00:16 verbose #345 > >         inl closure_fix = 2u8, 1u8
00:00:16 verbose #346 > >         x' |> rust.fix_closure closure_fix
00:00:16 verbose #347 > >
00:00:16 verbose #348 > >         (!\($'"__result"') : _ () pyerr)
00:00:16 verbose #349 > >         |> resultm.unwrap'
00:00:16 verbose #350 > 00:00:15   debug #12 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a27c462edda28279027bc4604b095a6b72c58d0e2ace6d1ee7eac74ba1a7b546/main.spi
00:00:16 verbose #351 > >
00:00:16 verbose #352 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:16 verbose #353 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:16 verbose #354 > > │ ## test_zeta_at_known_values_                                                │
00:00:16 verbose #355 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 verbose #356 > >
00:00:16 verbose #357 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 verbose #358 > > inl test_zeta_at_known_values_ log = run_test log (3u8, 2u8) fun zeta, gamma =>
00:00:16 verbose #359 > >     ;[[
00:00:16 verbose #360 > >         .^(2, 0), pi ** 2 / 6
00:00:16 verbose #361 > >         .^(-1, 0), -1 / 12
00:00:16 verbose #362 > >     ]]
00:00:16 verbose #363 > >     |> fun x => a x : _ i32 _
00:00:16 verbose #364 > >     |> am.iter fun s, e =>
00:00:16 verbose #365 > >         inl result = zeta s
00:00:16 verbose #366 > >
00:00:16 verbose #367 > >         result |> im |> _assert_eq 0
00:00:16 verbose #368 > >         re result - e |> abs |> _assert_lt 0.0001
00:00:17 verbose #369 > 00:00:16   debug #13 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e1015d83fc964f76f151c171ef4900b0ae5d46a80879ad84971ac01b23704819/main.spi
00:00:17 verbose #370 > >
00:00:17 verbose #371 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 verbose #372 > > //// test
00:00:17 verbose #373 > > ///! rust -d num-complex pyo3
00:00:17 verbose #374 > >
00:00:17 verbose #375 > > types ()
00:00:17 verbose #376 > > test_zeta_at_known_values_ true
00:00:17 verbose #377 > 00:00:16   debug #14 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/69778744463b08a3aaa6d00be0bac8c773b9a9de120ba1df65e36752f1737648/main.spi
00:00:35 verbose #378 > >
00:00:35 verbose #379 > > ╭─[ 18.75s - return value ]────────────────────────────────────────────────────╮
00:00:35 verbose #380 > > │ zeta_ / s: (2.0, 0.0) / count: 0                                             │
00:00:35 verbose #381 > > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:00:35 verbose #382 > > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:                 │
00:00:35 verbose #383 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:35 verbose #384 > > │ / arg: None                                                                  │
00:00:35 verbose #385 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:00:35 verbose #386 > > │ method=None, kwargs={} / f_lineno: 532 / f_code.co_filename:                 │
00:00:35 verbose #387 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:35 verbose #388 > > │ / arg: None                                                                  │
00:00:35 verbose #389 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:00:35 verbose #390 > > │ method=None, kwargs={}, d=0 / f_lineno: 533 / f_code.co_filename:            │
00:00:35 verbose #391 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:35 verbose #392 > > │ / arg: None                                                                  │
00:00:35 verbose #393 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:00:35 verbose #394 > > │ method=None, kwargs={}, d=0 / f_lineno: 534 / f_code.co_filename:            │
00:00:35 verbose #395 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:35 verbose #396 > > │ / arg: None                                                                  │
00:00:35 verbose #397 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:00:35 verbose #398 > > │ method=None, kwargs={}, d=0 / f_lineno: 535 / f_code.co_filename:            │
00:00:35 verbose #399 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:35 verbose #400 > > │ / arg: None                                                                  │
00:00:35 verbose #401 > > │ call(zeta_) / f_code.co_name: f / f_locals: x=(2+0j), kwargs={}, name='zeta' │
00:00:35 verbose #402 > > │ / f_lineno: 1113 / f_code.co_filename: \mpmath\ctx_mp_python.py /            │
00:00:35 verbose #403 > > │ f_back.f_lineno: 535 / f_back.f_code.co_filename: \mpmath\functions\zeta.py  │
00:00:35 verbose #404 > > │ / arg: None                                                                  │
00:00:35 verbose #405 > > │ line(zeta_) / f_code.co_name: f / f_locals: x=(2+0j), kwargs={}, name='zeta' │
00:00:35 verbose #406 > > │ / f_line...o_name: make_mpc / f_locals:  / f_lineno: 768 /                   │
00:00:35 verbose #407 > > │ f_code.co_filename: \mpmath\ctx_mp_python.py / f_back.f_lineno: 1131 /       │
00:00:35 verbose #408 > > │ f_back.f_code.co_filename: \mpmath\ctx_mp_python.py / arg: None              │
00:00:35 verbose #409 > > │ line(gamma_) / f_code.co_name: make_mpc / f_locals:  / f_lineno: 769 /       │
00:00:35 verbose #410 > > │ f_code.co_filename: \mpmath\ctx_mp_python.py / f_back.f_lineno: 1131 /       │
00:00:35 verbose #411 > > │ f_back.f_code.co_filename: \mpmath\ctx_mp_python.py / arg: None              │
00:00:35 verbose #412 > > │ line(gamma_) / f_code.co_name: make_mpc / f_locals:  / f_lineno: 770 /       │
00:00:35 verbose #413 > > │ f_code.co_filename: \mpmath\ctx_mp_python.py / f_back.f_lineno: 1131 /       │
00:00:35 verbose #414 > > │ f_back.f_code.co_filename: \mpmath\ctx_mp_python.py / arg: None              │
00:00:35 verbose #415 > > │ return(gamma_) / f_code.co_name: make_mpc / f_locals:  / f_lineno: 770 /     │
00:00:35 verbose #416 > > │ f_code.co_filename: \mpmath\ctx_mp_python.py / f_back.f_lineno: 1131 /       │
00:00:35 verbose #417 > > │ f_back.f_code.co_filename: \mpmath\ctx_mp_python.py / arg: mpc(real='1.0',   │
00:00:35 verbose #418 > > │ imag='0.0')                                                                  │
00:00:35 verbose #419 > > │ return(gamma_) / f_code.co_name: f / f_locals: x=mpc(real='2.0',             │
00:00:35 verbose #420 > > │ imag='0.0'), kwargs={}, name='gamma', prec=53, rounding='n' / f_lineno: 1131 │
00:00:35 verbose #421 > > │ / f_code.co_filename: \mpmath\ctx_mp_python.py / f_back.f_lineno: 25 /       │
00:00:35 verbose #422 > > │ f_back.f_code.co_filename:  / arg: mpc(real='1.0', imag='0.0')               │
00:00:35 verbose #423 > > │ gamma_ / result: (1.0 + 0.0j) / count: 161                                   │
00:00:35 verbose #424 > > │ gamma__ / s: Complex { re: 2.0, im: 0.0 } / result: Ok(Complex { re: 1.0,    │
00:00:35 verbose #425 > > │ im: 0.0 })                                                                   │
00:00:35 verbose #426 > > │ zeta / count: 1 / s: Complex { re: 2.0, im: -0.0 }                           │
00:00:35 verbose #427 > > │ zeta__ / s: Complex { re: -1.0, im: 0.0 } / result: Ok(Complex { re:         │
00:00:35 verbose #428 > > │ -0.08333333333333333, im: 0.0 }) / z: Complex { re: NaN, im: NaN }           │
00:00:35 verbose #429 > > │ assert_eq / actual: 0.0 / expected: 0.0                                      │
00:00:35 verbose #430 > > │ assert_lt / actual: 0.0 / expected: 0.0001                                   │
00:00:35 verbose #431 > > │                                                                              │
00:00:35 verbose #432 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:35 verbose #433 > >
00:00:35 verbose #434 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:35 verbose #435 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:35 verbose #436 > > │ ## test_zeta_at_2_minus2                                                     │
00:00:35 verbose #437 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:35 verbose #438 > >
00:00:35 verbose #439 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:35 verbose #440 > > inl test_zeta_at_2_minus2 log = run_test log (6u8, 5u8) fun zeta, gamma =>
00:00:35 verbose #441 > >     inl s = .^(2, -2)
00:00:35 verbose #442 > >     inl result = zeta s
00:00:35 verbose #443 > >
00:00:35 verbose #444 > >     (re result - 0.8673) |> abs |> _assert_lt 0.001
00:00:35 verbose #445 > >     (im result - 0.2750) |> abs |> _assert_lt 0.001
00:00:36 verbose #446 > 00:00:35   debug #15 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c29a50f33ae476480c5b86ca8bef7b13cf1c8fd06c54ff2f142b24ce8d16f0d8/main.spi
00:00:36 verbose #447 > >
00:00:36 verbose #448 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:36 verbose #449 > > //// test
00:00:36 verbose #450 > > ///! rust -d num-complex pyo3
00:00:36 verbose #451 > >
00:00:36 verbose #452 > > types ()
00:00:36 verbose #453 > > test_zeta_at_2_minus2 true
00:00:36 verbose #454 > 00:00:35   debug #16 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/48513b92d77a7d871f759cc88a724c3b9c52a35d9799e886f90451272924a67a/main.spi
00:00:53 verbose #455 > >
00:00:53 verbose #456 > > ╭─[ 17.34s - return value ]────────────────────────────────────────────────────╮
00:00:53 verbose #457 > > │ zeta_ / s: (2.0, -2.0) / count: 0                                            │
00:00:53 verbose #458 > > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(2-2j), a=1, derivative=0,  │
00:00:53 verbose #459 > > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:                 │
00:00:53 verbose #460 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:53 verbose #461 > > │ / arg: None                                                                  │
00:00:53 verbose #462 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2-2j), a=1, derivative=0,  │
00:00:53 verbose #463 > > │ method=None, kwargs={} / f_lineno: 532 / f_code.co_filename:                 │
00:00:53 verbose #464 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:53 verbose #465 > > │ / arg: None                                                                  │
00:00:53 verbose #466 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2-2j), a=1, derivative=0,  │
00:00:53 verbose #467 > > │ method=None, kwargs={}, d=0 / f_lineno: 533 / f_code.co_filename:            │
00:00:53 verbose #468 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:53 verbose #469 > > │ / arg: None                                                                  │
00:00:53 verbose #470 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2-2j), a=1, derivative=0,  │
00:00:53 verbose #471 > > │ method=None, kwargs={}, d=0 / f_lineno: 534 / f_code.co_filename:            │
00:00:53 verbose #472 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:53 verbose #473 > > │ / arg: None                                                                  │
00:00:53 verbose #474 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2-2j), a=1, derivative=0,  │
00:00:53 verbose #475 > > │ method=None, kwargs={}, d=0 / f_lineno: 535 / f_code.co_filename:            │
00:00:53 verbose #476 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:00:53 verbose #477 > > │ / arg: None                                                                  │
00:00:53 verbose #478 > > │ call(zeta_) / f_code.co_name: f / f_locals: x=(2-2j), kwargs={}, name='zeta' │
00:00:53 verbose #479 > > │ / f_lineno: 1113 / f_code.co_filename: \mpmath\ctx_mp_python.py /            │
00:00:53 verbose #480 > > │ f_back.f_lineno: 535 / f_back.f_code.co_filename: \mpmath\functions\zeta.py  │
00:00:53 verbose #481 > > │ / arg: None                                                                  │
00:00:53 verbose #482 > > │ line(zeta_) / f_code.co_name: f / f_locals: x=(2-2j), kwargs={}, name='zeta' │
00:00:53 verbose #483 > > │ / f_lin..., 1, 2, 1), prec=14, rnd='d', _sub=0, ssign=0, sman=1, sexp=2,     │
00:00:53 verbose #484 > > │ sbc=1, tsign=0, tman=1, texp=2, tbc=1, offset=0, man=2 / f_lineno: 665 /     │
00:00:53 verbose #485 > > │ f_code.co_filename: \mpmath\libmp\libmpf.py / f_back.f_lineno: 1322 /        │
00:00:53 verbose #486 > > │ f_back.f_code.co_filename: \mpmath\libmp\libmpf.py / arg: None               │
00:00:53 verbose #487 > > │ line(zeta_) / f_code.co_name: mpf_add / f_locals: s=(0, 1, 2, 1), t=(0, 1,   │
00:00:53 verbose #488 > > │ 2, 1), prec=14, rnd='d', _sub=0, ssign=0, sman=1, sexp=2, sbc=1, tsign=0,    │
00:00:53 verbose #489 > > │ tman=1, texp=2, tbc=1, offset=0, man=2, bc=2 / f_lineno: 666 /               │
00:00:53 verbose #490 > > │ f_code.co_filename: \mpmath\libmp\libmpf.py / f_back.f_lineno: 1322 /        │
00:00:53 verbose #491 > > │ f_back.f_code.co_filename: \mpmath\libmp\libmpf.py / arg: None               │
00:00:53 verbose #492 > > │ call(zeta_) / f_code.co_name: normalize / f_locals: sign=0, man=2, exp=2,    │
00:00:53 verbose #493 > > │ bc=2, prec=14, rnd='d' / f_lineno: 185 / f_code.co_filename:                 │
00:00:53 verbose #494 > > │ \mpmath\libmp\libmpf.py / f_back.f_lineno: 666 / f_back.f_code.co_filename:  │
00:00:53 verbose #495 > > │ \mpmath\libmp\libmpf.py / arg: None                                          │
00:00:53 verbose #496 > > │ line(zeta_) / f_code.co_name: normalize / f_locals: sign=0, man=2, exp=2,    │
00:00:53 verbose #497 > > │ bc=2, prec=14, rnd='d' / f_lineno: 186 / f_code.co_filename:                 │
00:00:53 verbose #498 > > │ \mpmath\libmp\libmpf.py / f_back.f_lineno: 666 / f_back.f_code.co_filename:  │
00:00:53 verbose #499 > > │ \mpmath\libmp\libmpf.py / arg: None                                          │
00:00:53 verbose #500 > > │ zeta_ / result: (0.867351829635993 + 0.275127238807858j) / count: 1553       │
00:00:53 verbose #501 > > │ zeta / count: 0 / s: Complex { re: 2.0, im: -2.0 }                           │
00:00:53 verbose #502 > > │ zeta__ / s: Complex { re: 2.0, im: -2.0 } / result: Ok(Complex { re:         │
00:00:53 verbose #503 > > │ 0.8673518296359931, im: 0.27512723880785767 }) / z: Complex { re: NaN, im:   │
00:00:53 verbose #504 > > │ NaN }                                                                        │
00:00:53 verbose #505 > > │ assert_lt / actual: 5.182963599315027e-5 / expected: 0.001                   │
00:00:53 verbose #506 > > │ assert_lt / actual: 0.00012723880785764363 / expected: 0.001                 │
00:00:53 verbose #507 > > │                                                                              │
00:00:53 verbose #508 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:53 verbose #509 > >
00:00:53 verbose #510 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:53 verbose #511 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:53 verbose #512 > > │ ## test_trivial_zero_at_negative_even___                                     │
00:00:53 verbose #513 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:53 verbose #514 > >
00:00:53 verbose #515 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:53 verbose #516 > > inl test_trivial_zero_at_negative_even___ log = run_test log (2u8, 1u8) fun
00:00:53 verbose #517 > > zeta, gamma =>
00:00:53 verbose #518 > >     (join listm'.init_series -2f64 -40 -2)
00:00:53 verbose #519 > >     |> listm.iter fun n =>
00:00:53 verbose #520 > >         inl s = .^(n, 0)
00:00:53 verbose #521 > >         inl result = zeta s
00:00:53 verbose #522 > >
00:00:53 verbose #523 > >         result |> re |> _assert_eq 0
00:00:53 verbose #524 > >         result |> im |> _assert_eq 0
00:00:53 verbose #525 > 00:00:53   debug #17 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b7aa4906df0ffebd3b70d4c3871abd90eedeef031fe441aa6c2290133b6ebb67/main.spi
00:00:54 verbose #526 > >
00:00:54 verbose #527 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:54 verbose #528 > > //// test
00:00:54 verbose #529 > > ///! rust -d num-complex pyo3
00:00:54 verbose #530 > >
00:00:54 verbose #531 > > types ()
00:00:54 verbose #532 > > test_trivial_zero_at_negative_even___ true
00:00:54 verbose #533 > 00:00:53   debug #18 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c49590f48dda021a2c2c108707010e32fb0c9f6fc61c8d9848571463dfff5381/main.spi
00:01:13 verbose #534 > >
00:01:13 verbose #535 > > ╭─[ 19.94s - return value ]────────────────────────────────────────────────────╮
00:01:13 verbose #536 > > │ zeta_ / s: (-2.0, 0.0) / count: 0                                            │
00:01:13 verbose #537 > > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(-2+0j), a=1, derivative=0, │
00:01:13 verbose #538 > > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:                 │
00:01:13 verbose #539 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:13 verbose #540 > > │ / arg: None                                                                  │
00:01:13 verbose #541 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(-2+0j), a=1, derivative=0, │
00:01:13 verbose #542 > > │ method=None, kwargs={} / f_lineno: 532 / f_code.co_filename:                 │
00:01:13 verbose #543 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:13 verbose #544 > > │ / arg: None                                                                  │
00:01:13 verbose #545 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(-2+0j), a=1, derivative=0, │
00:01:13 verbose #546 > > │ method=None, kwargs={}, d=0 / f_lineno: 533 / f_code.co_filename:            │
00:01:13 verbose #547 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:13 verbose #548 > > │ / arg: None                                                                  │
00:01:13 verbose #549 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(-2+0j), a=1, derivative=0, │
00:01:13 verbose #550 > > │ method=None, kwargs={}, d=0 / f_lineno: 534 / f_code.co_filename:            │
00:01:13 verbose #551 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:13 verbose #552 > > │ / arg: None                                                                  │
00:01:13 verbose #553 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(-2+0j), a=1, derivative=0, │
00:01:13 verbose #554 > > │ method=None, kwargs={}, d=0 / f_lineno: 535 / f_code.co_filename:            │
00:01:13 verbose #555 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:13 verbose #556 > > │ / arg: None                                                                  │
00:01:13 verbose #557 > > │ call(zeta_) / f_code.co_name: f / f_locals: x=(-2+0j), kwargs={},            │
00:01:13 verbose #558 > > │ name='zeta' / f_lineno: 1113 / f_code.co_filename: \mpmath\ctx_mp_python.py  │
00:01:13 verbose #559 > > │ / f_back.f_lineno: 535 / f_back.f_code.co_filename:                          │
00:01:13 verbose #560 > > │ \mpmath\functions\zeta.py / arg: None                                        │
00:01:13 verbose #561 > > │ line(zeta_) / f_code.co_name: f / f_locals: x=(-2+0j), kwargs={},            │
00:01:13 verbose #562 > > │ name='zeta' ...o_filename: \mpmath\ctx_mp_python.py / f_back.f_lineno: 1131  │
00:01:13 verbose #563 > > │ / f_back.f_code.co_filename: \mpmath\ctx_mp_python.py / arg: None            │
00:01:13 verbose #564 > > │ line(gamma_) / f_code.co_name: make_mpc / f_locals:  / f_lineno: 769 /       │
00:01:13 verbose #565 > > │ f_code.co_filename: \mpmath\ctx_mp_python.py / f_back.f_lineno: 1131 /       │
00:01:13 verbose #566 > > │ f_back.f_code.co_filename: \mpmath\ctx_mp_python.py / arg: None              │
00:01:13 verbose #567 > > │ line(gamma_) / f_code.co_name: make_mpc / f_locals:  / f_lineno: 770 /       │
00:01:13 verbose #568 > > │ f_code.co_filename: \mpmath\ctx_mp_python.py / f_back.f_lineno: 1131 /       │
00:01:13 verbose #569 > > │ f_back.f_code.co_filename: \mpmath\ctx_mp_python.py / arg: None              │
00:01:13 verbose #570 > > │ return(gamma_) / f_code.co_name: make_mpc / f_locals:  / f_lineno: 770 /     │
00:01:13 verbose #571 > > │ f_code.co_filename: \mpmath\ctx_mp_python.py / f_back.f_lineno: 1131 /       │
00:01:13 verbose #572 > > │ f_back.f_code.co_filename: \mpmath\ctx_mp_python.py / arg:                   │
00:01:13 verbose #573 > > │ mpc(real='8.1591528324789768e+47', imag='0.0')                               │
00:01:13 verbose #574 > > │ return(gamma_) / f_code.co_name: f / f_locals: x=mpc(real='41.0',            │
00:01:13 verbose #575 > > │ imag='0.0'), kwargs={}, name='gamma', prec=53, rounding='n' / f_lineno: 1131 │
00:01:13 verbose #576 > > │ / f_code.co_filename: \mpmath\ctx_mp_python.py / f_back.f_lineno: 25 /       │
00:01:13 verbose #577 > > │ f_back.f_code.co_filename:  / arg: mpc(real='8.1591528324789768e+47',        │
00:01:13 verbose #578 > > │ imag='0.0')                                                                  │
00:01:13 verbose #579 > > │ gamma_ / result: (8.15915283247898e+47 + 0.0j) / count: 166                  │
00:01:13 verbose #580 > > │ gamma__ / s: Complex { re: 41.0, im: 0.0 } / result: Ok(Complex { re:        │
00:01:13 verbose #581 > > │ 8.159152832478977e47, im: 0.0 })                                             │
00:01:13 verbose #582 > > │ zeta / count: 1 / s: Complex { re: 41.0, im: -0.0 }                          │
00:01:13 verbose #583 > > │ zeta__ / s: Complex { re: -40.0, im: 0.0 } / result: Ok(Complex { re: 0.0,   │
00:01:13 verbose #584 > > │ im: 0.0 }) / z: Complex { re: NaN, im: NaN }                                 │
00:01:13 verbose #585 > > │ assert_eq / actual: 0.0 / expected: 0.0                                      │
00:01:13 verbose #586 > > │ assert_eq / actual: 0.0 / expected: 0.0                                      │
00:01:13 verbose #587 > > │                                                                              │
00:01:13 verbose #588 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:13 verbose #589 > >
00:01:13 verbose #590 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:13 verbose #591 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:13 verbose #592 > > │ ## test_non_trivial_zero___                                                  │
00:01:13 verbose #593 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:13 verbose #594 > >
00:01:13 verbose #595 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:13 verbose #596 > > inl test_non_trivial_zero___ log = run_test log (3u8, 2u8) fun zeta, gamma =>
00:01:13 verbose #597 > >     ;[[
00:01:13 verbose #598 > >         .^(0.5, 14.134725)
00:01:13 verbose #599 > >         .^(0.5, 21.022040)
00:01:13 verbose #600 > >         .^(0.5, 25.010857)
00:01:13 verbose #601 > >         .^(0.5, 30.424876)
00:01:13 verbose #602 > >         .^(0.5, 32.935062)
00:01:13 verbose #603 > >         .^(0.5, 37.586178)
00:01:13 verbose #604 > >     ]]
00:01:13 verbose #605 > >     |> fun x => a x : _ i32 _
00:01:13 verbose #606 > >     |> am.iter fun x =>
00:01:13 verbose #607 > >             inl result = zeta x
00:01:13 verbose #608 > >             result |> re |> abs |> _assert_lt 0.0001
00:01:13 verbose #609 > >             result |> im |> abs |> _assert_lt 0.0001
00:01:14 verbose #610 > 00:01:13   debug #19 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4de387f577d01aad3428efdf18ffde31bce7e305ec405ec88ef583b5c5b92c91/main.spi
00:01:14 verbose #611 > >
00:01:14 verbose #612 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:14 verbose #613 > > //// test
00:01:14 verbose #614 > > ///! rust -d num-complex pyo3
00:01:14 verbose #615 > >
00:01:14 verbose #616 > > types ()
00:01:14 verbose #617 > > test_non_trivial_zero___ true
00:01:14 verbose #618 > 00:01:13   debug #20 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fd198a4b0af72c227ad0cac84307a7dd31aa50a276bcdbb6568f335d61acf09c/main.spi
00:01:34 verbose #619 > >
00:01:34 verbose #620 > > ╭─[ 20.30s - return value ]────────────────────────────────────────────────────╮
00:01:34 verbose #621 > > │ zeta_ / s: (0.5, 14.134725) / count: 0                                       │
00:01:34 verbose #622 > > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1,      │
00:01:34 verbose #623 > > │ derivative=0, method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:   │
00:01:34 verbose #624 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:34 verbose #625 > > │ / arg: None                                                                  │
00:01:34 verbose #626 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1,      │
00:01:34 verbose #627 > > │ derivative=0, method=None, kwargs={} / f_lineno: 532 / f_code.co_filename:   │
00:01:34 verbose #628 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:34 verbose #629 > > │ / arg: None                                                                  │
00:01:34 verbose #630 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1,      │
00:01:34 verbose #631 > > │ derivative=0, method=None, kwargs={}, d=0 / f_lineno: 533 /                  │
00:01:34 verbose #632 > > │ f_code.co_filename: \mpmath\functions\zeta.py / f_back.f_lineno: 25 /        │
00:01:34 verbose #633 > > │ f_back.f_code.co_filename:  / arg: None                                      │
00:01:34 verbose #634 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1,      │
00:01:34 verbose #635 > > │ derivative=0, method=None, kwargs={}, d=0 / f_lineno: 534 /                  │
00:01:34 verbose #636 > > │ f_code.co_filename: \mpmath\functions\zeta.py / f_back.f_lineno: 25 /        │
00:01:34 verbose #637 > > │ f_back.f_code.co_filename:  / arg: None                                      │
00:01:34 verbose #638 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1,      │
00:01:34 verbose #639 > > │ derivative=0, method=None, kwargs={}, d=0 / f_lineno: 535 /                  │
00:01:34 verbose #640 > > │ f_code.co_filename: \mpmath\functions\zeta.py / f_back.f_lineno: 25 /        │
00:01:34 verbose #641 > > │ f_back.f_code.co_filename:  / arg: None                                      │
00:01:34 verbose #642 > > │ call(zeta_) / f_code.co_name: f / f_locals: x=(0.5+14.134725j), kwargs={},   │
00:01:34 verbose #643 > > │ name='zeta' / f_lineno: 1113 / f_code.co_filename: \mpmath\ctx_mp_python.py  │
00:01:34 verbose #644 > > │ / f_back.f_lineno: 535 / f_back.f_code.co_filename:                          │
00:01:34 verbose #645 > > │ \mpmath\functions\zeta.py / arg: None                                        │
00:01:34 verbose #646 > > │ line(zeta_) / f_cod...ta.py / arg: None                                      │
00:01:34 verbose #647 > > │ line(gamma_) / f_code.co_name: complex_stirling_series / f_locals:           │
00:01:34 verbose #648 > > │ x=1208925819614629174706176, y=-90877802089662679288381440, prec=81,         │
00:01:34 verbose #649 > > │ _m=3416353708500640443578529333, tre=-1816151534455075068,                   │
00:01:34 verbose #650 > > │ tim=-45486653225747820096, ure=-1710577520534459139249,                      │
00:01:34 verbose #651 > > │ uim=45518868236127668552, sre=1013002518538853602038572,                     │
00:01:34 verbose #652 > > │ sim=90883161825546323029600502 / f_lineno: 1629 / f_code.co_filename:        │
00:01:34 verbose #653 > > │ \mpmath\libmp\gammazeta.py / f_back.f_lineno: 2041 /                         │
00:01:34 verbose #654 > > │ f_back.f_code.co_filename: \mpmath\libmp\gammazeta.py / arg: None            │
00:01:34 verbose #655 > > │ line(gamma_) / f_code.co_name: complex_stirling_series / f_locals:           │
00:01:34 verbose #656 > > │ x=1208925819614629174706176, y=-90877802089662679288381440, prec=81,         │
00:01:34 verbose #657 > > │ _m=3416353708500640443578529333, tre=-1816151534455075068,                   │
00:01:34 verbose #658 > > │ tim=-45486653225747820096, ure=-1710577520534459139249,                      │
00:01:34 verbose #659 > > │ uim=45518868236127668552, sre=1013002523583718975524892,                     │
00:01:34 verbose #660 > > │ sim=90883161951898137545566669 / f_lineno: 1630 / f_code.co_filename:        │
00:01:34 verbose #661 > > │ \mpmath\libmp\gammazeta.py / f_back.f_lineno: 2041 /                         │
00:01:34 verbose #662 > > │ f_back.f_code.co_filename: \mpmath\libmp\gammazeta.py / arg: None            │
00:01:34 verbose #663 > > │ gamma_ / result: (-1.32798420042152e-26 + 5.5751975252688e-26j) / count: 301 │
00:01:34 verbose #664 > > │ gamma__ / s: Complex { re: 0.5, im: -37.586178 } / result: Ok(Complex { re:  │
00:01:34 verbose #665 > > │ -1.3279842004215153e-26, im: 5.575197525268802e-26 })                        │
00:01:34 verbose #666 > > │ zeta__ / s: Complex { re: 0.5, im: 37.586178 } / result: Ok(Complex { re:    │
00:01:34 verbose #667 > > │ -8.910186507947958e-8, im: -2.943780446402868e-7 }) / z: Complex { re: -0.0, │
00:01:34 verbose #668 > > │ im: 0.0 }                                                                    │
00:01:34 verbose #669 > > │ assert_lt / actual: 8.910186507947958e-8 / expected: 0.0001                  │
00:01:34 verbose #670 > > │ assert_lt / actual: 2.943780446402868e-7 / expected: 0.0001                  │
00:01:34 verbose #671 > > │                                                                              │
00:01:34 verbose #672 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:34 verbose #673 > >
00:01:34 verbose #674 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:34 verbose #675 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:34 verbose #676 > > │ ## test_real_part_greater_than_one___                                        │
00:01:34 verbose #677 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:34 verbose #678 > >
00:01:34 verbose #679 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:34 verbose #680 > > inl test_real_part_greater_than_one___ log = run_test log (3u8, 2u8) fun zeta,
00:01:34 verbose #681 > > gamma =>
00:01:34 verbose #682 > >     inl points = ;[[2; 3; 4; 5; 10; 20; 50]]
00:01:34 verbose #683 > >     (a points : _ i32 _)
00:01:34 verbose #684 > >     |> am.iter fun point =>
00:01:34 verbose #685 > >         inl s = .^(point, 0)
00:01:34 verbose #686 > >         inl result = zeta s
00:01:34 verbose #687 > >         result |> re |> _assert_gt 0
00:01:34 verbose #688 > >         result |> im |> _assert_eq 0
00:01:34 verbose #689 > 00:01:34   debug #21 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e5eca7e3f006482f25b0d868db059afb611d8ce4fb16a084c925283d5fa917ba/main.spi
00:01:35 verbose #690 > >
00:01:35 verbose #691 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:35 verbose #692 > > //// test
00:01:35 verbose #693 > > ///! rust -d num-complex pyo3
00:01:35 verbose #694 > >
00:01:35 verbose #695 > > types ()
00:01:35 verbose #696 > > test_real_part_greater_than_one___ true
00:01:35 verbose #697 > 00:01:34   debug #22 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e38c1b8e596c4f46e2a18d5582a590c8efd9264f2c44f90a1dc8f4e44259bee6/main.spi
00:01:56 verbose #698 > >
00:01:56 verbose #699 > > ╭─[ 21.18s - return value ]────────────────────────────────────────────────────╮
00:01:56 verbose #700 > > │ zeta_ / s: (2.0, 0.0) / count: 0                                             │
00:01:56 verbose #701 > > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:01:56 verbose #702 > > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:                 │
00:01:56 verbose #703 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:56 verbose #704 > > │ / arg: None                                                                  │
00:01:56 verbose #705 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:01:56 verbose #706 > > │ method=None, kwargs={} / f_lineno: 532 / f_code.co_filename:                 │
00:01:56 verbose #707 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:56 verbose #708 > > │ / arg: None                                                                  │
00:01:56 verbose #709 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:01:56 verbose #710 > > │ method=None, kwargs={}, d=0 / f_lineno: 533 / f_code.co_filename:            │
00:01:56 verbose #711 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:56 verbose #712 > > │ / arg: None                                                                  │
00:01:56 verbose #713 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:01:56 verbose #714 > > │ method=None, kwargs={}, d=0 / f_lineno: 534 / f_code.co_filename:            │
00:01:56 verbose #715 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:56 verbose #716 > > │ / arg: None                                                                  │
00:01:56 verbose #717 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:01:56 verbose #718 > > │ method=None, kwargs={}, d=0 / f_lineno: 535 / f_code.co_filename:            │
00:01:56 verbose #719 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:01:56 verbose #720 > > │ / arg: None                                                                  │
00:01:56 verbose #721 > > │ call(zeta_) / f_code.co_name: f / f_locals: x=(2+0j), kwargs={}, name='zeta' │
00:01:56 verbose #722 > > │ / f_lineno: 1113 / f_code.co_filename: \mpmath\ctx_mp_python.py /            │
00:01:56 verbose #723 > > │ f_back.f_lineno: 535 / f_back.f_code.co_filename: \mpmath\functions\zeta.py  │
00:01:56 verbose #724 > > │ / arg: None                                                                  │
00:01:56 verbose #725 > > │ line(zeta_) / f_code.co_name: f / f_locals: x=(2+0j), kwargs={}, name='zeta' │
00:01:56 verbose #726 > > │ / f_line...9 / f_code.co_filename: \mpmath\ctx_mp_python.py /                │
00:01:56 verbose #727 > > │ f_back.f_lineno: 1131 / f_back.f_code.co_filename: \mpmath\ctx_mp_python.py  │
00:01:56 verbose #728 > > │ / arg: None                                                                  │
00:01:56 verbose #729 > > │ line(zeta_) / f_code.co_name: make_mpc / f_locals:  / f_lineno: 770 /        │
00:01:56 verbose #730 > > │ f_code.co_filename: \mpmath\ctx_mp_python.py / f_back.f_lineno: 1131 /       │
00:01:56 verbose #731 > > │ f_back.f_code.co_filename: \mpmath\ctx_mp_python.py / arg: None              │
00:01:56 verbose #732 > > │ return(zeta_) / f_code.co_name: make_mpc / f_locals:  / f_lineno: 770 /      │
00:01:56 verbose #733 > > │ f_code.co_filename: \mpmath\ctx_mp_python.py / f_back.f_lineno: 1131 /       │
00:01:56 verbose #734 > > │ f_back.f_code.co_filename: \mpmath\ctx_mp_python.py / arg:                   │
00:01:56 verbose #735 > > │ mpc(real='1.0000000000000009', imag='0.0')                                   │
00:01:56 verbose #736 > > │ return(zeta_) / f_code.co_name: f / f_locals: x=mpc(real='50.0',             │
00:01:56 verbose #737 > > │ imag='0.0'), kwargs={}, name='zeta', prec=53, rounding='n' / f_lineno: 1131  │
00:01:56 verbose #738 > > │ / f_code.co_filename: \mpmath\ctx_mp_python.py / f_back.f_lineno: 535 /      │
00:01:56 verbose #739 > > │ f_back.f_code.co_filename: \mpmath\functions\zeta.py / arg:                  │
00:01:56 verbose #740 > > │ mpc(real='1.0000000000000009', imag='0.0')                                   │
00:01:56 verbose #741 > > │ return(zeta_) / f_code.co_name: zeta / f_locals: s=(50+0j), a=1,             │
00:01:56 verbose #742 > > │ derivative=0, method=None, kwargs={}, d=0 / f_lineno: 535 /                  │
00:01:56 verbose #743 > > │ f_code.co_filename: \mpmath\functions\zeta.py / f_back.f_lineno: 25 /        │
00:01:56 verbose #744 > > │ f_back.f_code.co_filename:  / arg: mpc(real='1.0000000000000009',            │
00:01:56 verbose #745 > > │ imag='0.0')                                                                  │
00:01:56 verbose #746 > > │ zeta_ / result: (1.0 + 0.0j) / count: 193                                    │
00:01:56 verbose #747 > > │ zeta / count: 0 / s: Complex { re: 50.0, im: 0.0 }                           │
00:01:56 verbose #748 > > │ zeta__ / s: Complex { re: 50.0, im: 0.0 } / result: Ok(Complex { re:         │
00:01:56 verbose #749 > > │ 1.0000000000000009, im: 0.0 }) / z: Complex { re: NaN, im: NaN }             │
00:01:56 verbose #750 > > │ assert_gt / actual: 1.0000000000000009 / expected: 0.0                       │
00:01:56 verbose #751 > > │ assert_eq / actual: 0.0 / expected: 0.0                                      │
00:01:56 verbose #752 > > │                                                                              │
00:01:56 verbose #753 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:56 verbose #754 > >
00:01:56 verbose #755 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:56 verbose #756 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:56 verbose #757 > > │ ## test_zeta_at_1___                                                         │
00:01:56 verbose #758 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:56 verbose #759 > >
00:01:56 verbose #760 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:56 verbose #761 > > inl test_zeta_at_1___ log = run_test log (6u8, 5u8) fun zeta, gamma =>
00:01:56 verbose #762 > >     inl s = .^(1, 0)
00:01:56 verbose #763 > >     inl result = zeta s
00:01:56 verbose #764 > >     result |> re |> _assert_eq limit.max
00:01:56 verbose #765 > >     result |> im |> _assert_eq 0
00:01:56 verbose #766 > 00:01:55   debug #23 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/05344a71b2bf524b8a4dc511c618567715f288173e1cc098f6636fd869e6f718/main.spi
00:01:56 verbose #767 > >
00:01:56 verbose #768 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:56 verbose #769 > > //// test
00:01:56 verbose #770 > > ///! rust -d num-complex pyo3
00:01:56 verbose #771 > >
00:01:56 verbose #772 > > types ()
00:01:56 verbose #773 > > test_zeta_at_1___ true
00:01:56 verbose #774 > 00:01:56   debug #24 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/511d2581776679c61c71430e5e4b7953dc8b19133ba6ab4edd25b0079f2e830c/main.spi
00:02:19 verbose #775 > >
00:02:19 verbose #776 > > ╭─[ 23.04s - return value ]────────────────────────────────────────────────────╮
00:02:19 verbose #777 > > │ zeta_ / s: (1.0, 0.0) / count: 0                                             │
00:02:19 verbose #778 > > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(1+0j), a=1, derivative=0,  │
00:02:19 verbose #779 > > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:                 │
00:02:19 verbose #780 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:02:19 verbose #781 > > │ / arg: None                                                                  │
00:02:19 verbose #782 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(1+0j), a=1, derivative=0,  │
00:02:19 verbose #783 > > │ method=None, kwargs={} / f_lineno: 532 / f_code.co_filename:                 │
00:02:19 verbose #784 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:02:19 verbose #785 > > │ / arg: None                                                                  │
00:02:19 verbose #786 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(1+0j), a=1, derivative=0,  │
00:02:19 verbose #787 > > │ method=None, kwargs={}, d=0 / f_lineno: 533 / f_code.co_filename:            │
00:02:19 verbose #788 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:02:19 verbose #789 > > │ / arg: None                                                                  │
00:02:19 verbose #790 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(1+0j), a=1, derivative=0,  │
00:02:19 verbose #791 > > │ method=None, kwargs={}, d=0 / f_lineno: 534 / f_code.co_filename:            │
00:02:19 verbose #792 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:02:19 verbose #793 > > │ / arg: None                                                                  │
00:02:19 verbose #794 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(1+0j), a=1, derivative=0,  │
00:02:19 verbose #795 > > │ method=None, kwargs={}, d=0 / f_lineno: 535 / f_code.co_filename:            │
00:02:19 verbose #796 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:02:19 verbose #797 > > │ / arg: None                                                                  │
00:02:19 verbose #798 > > │ call(zeta_) / f_code.co_name: f / f_locals: x=(1+0j), kwargs={}, name='zeta' │
00:02:19 verbose #799 > > │ / f_lineno: 1113 / f_code.co_filename: \mpmath\ctx_mp_python.py /            │
00:02:19 verbose #800 > > │ f_back.f_lineno: 535 / f_back.f_code.co_filename: \mpmath\functions\zeta.py  │
00:02:19 verbose #801 > > │ / arg: None                                                                  │
00:02:19 verbose #802 > > │ line(zeta_) / f_code.co_name: f / f_locals: x=(1+0j), kwargs={}, name='zeta' │
00:02:19 verbose #803 > > │ / f_line...raceback object at 0x<?>>)                                        │
00:02:19 verbose #804 > > │ return(gamma_) / f_code.co_name: f / f_locals: x=mpc(real='0.0',             │
00:02:19 verbose #805 > > │ imag='0.0'), kwargs={}, name='gamma', prec=53, rounding='n' / f_lineno: 1131 │
00:02:19 verbose #806 > > │ / f_code.co_filename: \mpmath\ctx_mp_python.py / f_back.f_lineno: 25 /       │
00:02:19 verbose #807 > > │ f_back.f_code.co_filename:  / arg: None                                      │
00:02:19 verbose #808 > > │ exception(gamma_) / f_code.co_name: fn / f_locals: log=True, s=0j /          │
00:02:19 verbose #809 > > │ f_lineno: 25 / f_code.co_filename:  / f_back.f_lineno:  /                    │
00:02:19 verbose #810 > > │ f_back.f_code.co_filename:  / arg: (<class 'ValueError'>, ValueError('gamma  │
00:02:19 verbose #811 > > │ function pole'), <traceback object at 0x<?>>)                                │
00:02:19 verbose #812 > > │ line(gamma_) / f_code.co_name: fn / f_locals: log=True, s=0j / f_lineno: 29  │
00:02:19 verbose #813 > > │ / f_code.co_filename:  / f_back.f_lineno:  / f_back.f_code.co_filename:  /   │
00:02:19 verbose #814 > > │ arg: None                                                                    │
00:02:19 verbose #815 > > │ line(gamma_) / f_code.co_name: fn / f_locals: log=True, s=0j,                │
00:02:19 verbose #816 > > │ e=ValueError('gamma function pole') / f_lineno: 30 / f_code.co_filename:  /  │
00:02:19 verbose #817 > > │ f_back.f_lineno:  / f_back.f_code.co_filename:  / arg: None                  │
00:02:19 verbose #818 > > │ line(gamma_) / f_code.co_name: fn / f_locals: log=True, s=0j / f_lineno: 32  │
00:02:19 verbose #819 > > │ / f_code.co_filename:  / f_back.f_lineno:  / f_back.f_code.co_filename:  /   │
00:02:19 verbose #820 > > │ arg: None                                                                    │
00:02:19 verbose #821 > > │ return(gamma_) / f_code.co_name: fn / f_locals: log=True, s=0j / f_lineno:   │
00:02:19 verbose #822 > > │ 32 / f_code.co_filename:  / f_back.f_lineno:  / f_back.f_code.co_filename:   │
00:02:19 verbose #823 > > │ / arg: (0.0, 0.0)                                                            │
00:02:19 verbose #824 > > │ gamma__ / s: Complex { re: 0.0, im: 0.0 } / result: Ok(Complex { re: 0.0,    │
00:02:19 verbose #825 > > │ im: 0.0 })                                                                   │
00:02:19 verbose #826 > > │ zeta__ / s: Complex { re: 1.0, im: 0.0 } / result: Ok(Complex { re: inf, im: │
00:02:19 verbose #827 > > │ 0.0 }) / z: Complex { re: 0.0, im: 0.0 }                                     │
00:02:19 verbose #828 > > │ assert_eq / actual: inf / expected: inf                                      │
00:02:19 verbose #829 > > │ assert_eq / actual: 0.0 / expected: 0.0                                      │
00:02:19 verbose #830 > > │                                                                              │
00:02:19 verbose #831 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:19 verbose #832 > >
00:02:19 verbose #833 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:19 verbose #834 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:19 verbose #835 > > │ ## test_symmetry_across_real_axis___                                         │
00:02:19 verbose #836 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:19 verbose #837 > >
00:02:19 verbose #838 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:19 verbose #839 > > inl test_symmetry_across_real_axis___ log = run_test log (8u8, 7u8) fun zeta,
00:02:19 verbose #840 > > gamma =>
00:02:19 verbose #841 > >     inl s = .^(2, 10)
00:02:19 verbose #842 > >     inl result_positive_im = zeta s
00:02:19 verbose #843 > >     inl result_negative_im = zeta .^(re s, -(im s))
00:02:19 verbose #844 > >     inl conj = result_negative_im |> conj
00:02:19 verbose #845 > >     result_positive_im |> re |> _assert_eq (conj |> re)
00:02:19 verbose #846 > >     result_positive_im |> im |> _assert_eq (conj |> im)
00:02:19 verbose #847 > 00:02:19   debug #25 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/446acf962b85f4ad017bc3ae354c8127948227208815dfaf292c8ba8f5f9fae4/main.spi
00:02:20 verbose #848 > >
00:02:20 verbose #849 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:20 verbose #850 > > //// test
00:02:20 verbose #851 > > ///! rust -d num-complex pyo3
00:02:20 verbose #852 > >
00:02:20 verbose #853 > > types ()
00:02:20 verbose #854 > > test_symmetry_across_real_axis___ true
00:02:20 verbose #855 > 00:02:19   debug #26 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/91194d8327a54dac4bc67c86dccd882650bd859660a19afa397dd83b70d892dd/main.spi
00:02:41 verbose #856 > >
00:02:41 verbose #857 > > ╭─[ 21.01s - return value ]────────────────────────────────────────────────────╮
00:02:41 verbose #858 > > │ zeta_ / s: (2.0, 10.0) / count: 0                                            │
00:02:41 verbose #859 > > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(2+10j), a=1, derivative=0, │
00:02:41 verbose #860 > > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:                 │
00:02:41 verbose #861 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:02:41 verbose #862 > > │ / arg: None                                                                  │
00:02:41 verbose #863 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+10j), a=1, derivative=0, │
00:02:41 verbose #864 > > │ method=None, kwargs={} / f_lineno: 532 / f_code.co_filename:                 │
00:02:41 verbose #865 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:02:41 verbose #866 > > │ / arg: None                                                                  │
00:02:41 verbose #867 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+10j), a=1, derivative=0, │
00:02:41 verbose #868 > > │ method=None, kwargs={}, d=0 / f_lineno: 533 / f_code.co_filename:            │
00:02:41 verbose #869 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:02:41 verbose #870 > > │ / arg: None                                                                  │
00:02:41 verbose #871 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+10j), a=1, derivative=0, │
00:02:41 verbose #872 > > │ method=None, kwargs={}, d=0 / f_lineno: 534 / f_code.co_filename:            │
00:02:41 verbose #873 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:02:41 verbose #874 > > │ / arg: None                                                                  │
00:02:41 verbose #875 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+10j), a=1, derivative=0, │
00:02:41 verbose #876 > > │ method=None, kwargs={}, d=0 / f_lineno: 535 / f_code.co_filename:            │
00:02:41 verbose #877 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:02:41 verbose #878 > > │ / arg: None                                                                  │
00:02:41 verbose #879 > > │ call(zeta_) / f_code.co_name: f / f_locals: x=(2+10j), kwargs={},            │
00:02:41 verbose #880 > > │ name='zeta' / f_lineno: 1113 / f_code.co_filename: \mpmath\ctx_mp_python.py  │
00:02:41 verbose #881 > > │ / f_back.f_lineno: 535 / f_back.f_code.co_filename:                          │
00:02:41 verbose #882 > > │ \mpmath\functions\zeta.py / arg: None                                        │
00:02:41 verbose #883 > > │ line(zeta_) / f_code.co_name: f / f_locals: x=(2+10j), kwargs={},            │
00:02:41 verbose #884 > > │ name='zeta' ...) / f_code.co_name: mpf_add / f_locals: s=(0, 1, 2, 1), t=(0, │
00:02:41 verbose #885 > > │ 25, 2, 5), prec=14, rnd='d', _sub=0, ssign=0, sman=1, sexp=2, sbc=1,         │
00:02:41 verbose #886 > > │ tsign=0, tman=25, texp=2, tbc=5, offset=0, man=26, bc=5 / f_lineno: 666 /    │
00:02:41 verbose #887 > > │ f_code.co_filename: \mpmath\libmp\libmpf.py / f_back.f_lineno: 1322 /        │
00:02:41 verbose #888 > > │ f_back.f_code.co_filename: \mpmath\libmp\libmpf.py / arg: None               │
00:02:41 verbose #889 > > │ call(zeta_) / f_code.co_name: normalize / f_locals: sign=0, man=26, exp=2,   │
00:02:41 verbose #890 > > │ bc=5, prec=14, rnd='d' / f_lineno: 185 / f_code.co_filename:                 │
00:02:41 verbose #891 > > │ \mpmath\libmp\libmpf.py / f_back.f_lineno: 666 / f_back.f_code.co_filename:  │
00:02:41 verbose #892 > > │ \mpmath\libmp\libmpf.py / arg: None                                          │
00:02:41 verbose #893 > > │ line(zeta_) / f_code.co_name: normalize / f_locals: sign=0, man=26, exp=2,   │
00:02:41 verbose #894 > > │ bc=5, prec=14, rnd='d' / f_lineno: 186 / f_code.co_filename:                 │
00:02:41 verbose #895 > > │ \mpmath\libmp\libmpf.py / f_back.f_lineno: 666 / f_back.f_code.co_filename:  │
00:02:41 verbose #896 > > │ \mpmath\libmp\libmpf.py / arg: None                                          │
00:02:41 verbose #897 > > │ line(zeta_) / f_code.co_name: normalize / f_locals: sign=0, man=26, exp=2,   │
00:02:41 verbose #898 > > │ bc=5, prec=14, rnd='d' / f_lineno: 187 / f_code.co_filename:                 │
00:02:41 verbose #899 > > │ \mpmath\libmp\libmpf.py / f_back.f_lineno: 666 / f_back.f_code.co_filename:  │
00:02:41 verbose #900 > > │ \mpmath\libmp\libmpf.py / arg: None                                          │
00:02:41 verbose #901 > > │ zeta_ / result: (1.19798250067418 + 0.0791704917205257j) / count: 1031       │
00:02:41 verbose #902 > > │ zeta / count: 0 / s: Complex { re: 2.0, im: -10.0 }                          │
00:02:41 verbose #903 > > │ zeta__ / s: Complex { re: 2.0, im: -10.0 } / result: Ok(Complex { re:        │
00:02:41 verbose #904 > > │ 1.1979825006741847, im: 0.07917049172052575 }) / z: Complex { re: NaN, im:   │
00:02:41 verbose #905 > > │ NaN }                                                                        │
00:02:41 verbose #906 > > │ assert_eq / actual: 1.1979825006741847 / expected: 1.1979825006741847        │
00:02:41 verbose #907 > > │ assert_eq / actual: -0.07917049172052575 / expected: -0.07917049172052575    │
00:02:41 verbose #908 > > │                                                                              │
00:02:41 verbose #909 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:41 verbose #910 > >
00:02:41 verbose #911 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:41 verbose #912 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:41 verbose #913 > > │ ## test_behavior_near_origin___                                              │
00:02:41 verbose #914 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:41 verbose #915 > >
00:02:41 verbose #916 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:41 verbose #917 > > inl test_behavior_near_origin___ log = run_test log (6u8, 5u8) fun zeta, gamma
00:02:41 verbose #918 > > =>
00:02:41 verbose #919 > >     inl s = .^(0.01, 0.01)
00:02:41 verbose #920 > >     inl result = zeta s
00:02:41 verbose #921 > >     result |> re |> _assert_lt limit.max
00:02:41 verbose #922 > >     result |> im |> _assert_lt limit.max
00:02:41 verbose #923 > 00:02:40   debug #27 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/09e099b87a87bae09a029c44844a0534892b7c582cd1a060e8f601844433b98b/main.spi
00:02:41 verbose #924 > >
00:02:41 verbose #925 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:41 verbose #926 > > //// test
00:02:41 verbose #927 > > ///! rust -d num-complex pyo3
00:02:41 verbose #928 > >
00:02:41 verbose #929 > > types ()
00:02:41 verbose #930 > > test_behavior_near_origin___ true
00:02:41 verbose #931 > 00:02:41   debug #28 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4ebda3dd95bed8390f9390b0f54e5959a5d95809533c8dbc6538921a69cd589f/main.spi
00:03:02 verbose #932 > >
00:03:02 verbose #933 > > ╭─[ 21.17s - return value ]────────────────────────────────────────────────────╮
00:03:02 verbose #934 > > │ zeta_ / s: (0.01, 0.01) / count: 0                                           │
00:03:02 verbose #935 > > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(0.01+0.01j), a=1,          │
00:03:02 verbose #936 > > │ derivative=0, method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:   │
00:03:02 verbose #937 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:03:02 verbose #938 > > │ / arg: None                                                                  │
00:03:02 verbose #939 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.01+0.01j), a=1,          │
00:03:02 verbose #940 > > │ derivative=0, method=None, kwargs={} / f_lineno: 532 / f_code.co_filename:   │
00:03:02 verbose #941 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:03:02 verbose #942 > > │ / arg: None                                                                  │
00:03:02 verbose #943 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.01+0.01j), a=1,          │
00:03:02 verbose #944 > > │ derivative=0, method=None, kwargs={}, d=0 / f_lineno: 533 /                  │
00:03:02 verbose #945 > > │ f_code.co_filename: \mpmath\functions\zeta.py / f_back.f_lineno: 25 /        │
00:03:02 verbose #946 > > │ f_back.f_code.co_filename:  / arg: None                                      │
00:03:02 verbose #947 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.01+0.01j), a=1,          │
00:03:02 verbose #948 > > │ derivative=0, method=None, kwargs={}, d=0 / f_lineno: 534 /                  │
00:03:02 verbose #949 > > │ f_code.co_filename: \mpmath\functions\zeta.py / f_back.f_lineno: 25 /        │
00:03:02 verbose #950 > > │ f_back.f_code.co_filename:  / arg: None                                      │
00:03:02 verbose #951 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.01+0.01j), a=1,          │
00:03:02 verbose #952 > > │ derivative=0, method=None, kwargs={}, d=0 / f_lineno: 535 /                  │
00:03:02 verbose #953 > > │ f_code.co_filename: \mpmath\functions\zeta.py / f_back.f_lineno: 25 /        │
00:03:02 verbose #954 > > │ f_back.f_code.co_filename:  / arg: None                                      │
00:03:02 verbose #955 > > │ call(zeta_) / f_code.co_name: f / f_locals: x=(0.01+0.01j), kwargs={},       │
00:03:02 verbose #956 > > │ name='zeta' / f_lineno: 1113 / f_code.co_filename: \mpmath\ctx_mp_python.py  │
00:03:02 verbose #957 > > │ / f_back.f_lineno: 535 / f_back.f_code.co_filename:                          │
00:03:02 verbose #958 > > │ \mpmath\functions\zeta.py / arg: None                                        │
00:03:02 verbose #959 > > │ line(zeta_) / f_code.co_name: f / f_locals: x=(...eta.py / f_back.f_lineno:  │
00:03:02 verbose #960 > > │ 1131 / f_back.f_code.co_filename: \mpmath\ctx_mp_python.py / arg: None       │
00:03:02 verbose #961 > > │ line(gamma_) / f_code.co_name: mpc_gamma / f_locals: z=((0,                  │
00:03:02 verbose #962 > > │ 4458563631096791, -52, 52), (1, 5764607523034235, -59, 53)), prec=53,        │
00:03:02 verbose #963 > > │ rnd='n', type=0, a=(0, 4458563631096791, -52, 52), b=(1, 5764607523034235,   │
00:03:02 verbose #964 > > │ -59, 53), asign=0, aman=4458563631096791, aexp=-52, abc=52, bsign=1,         │
00:03:02 verbose #965 > > │ bman=5764607523034235, bexp=-59, bbc=53, wp=73, amag=0, bmag=-6, mag=0,      │
00:03:02 verbose #966 > > │ an=0, bn=0, absn=0j, gamma_size=0, need_reflection=0, zorig=((0,             │
00:03:02 verbose #967 > > │ 4458563631096791, -52, 52), (1, 5764607523034235, -59, 53)), yfinal=0,       │
00:03:02 verbose #968 > > │ balance_prec=0, n_for_stirling=14, need_reduction=True,                      │
00:03:02 verbose #969 > > │ afix=132131814190692672995328, bfix=-94447329657392906240, r=0, zprered=((0, │
00:03:02 verbose #970 > > │ 4458563631096791, -52, 52), (1, 5764607523034235, -59, 53)), d=14,           │
00:03:02 verbose #971 > > │ rre=56942610883563778729574216337150, one=9444732965739290427392,            │
00:03:02 verbose #972 > > │ rim=-1820461636508155576115177658065, k=13 / f_lineno: 2035 /                │
00:03:02 verbose #973 > > │ f_code.co_filename: \mpmath\libmp\gammazeta.py / f_back.f_lineno: 1131 /     │
00:03:02 verbose #974 > > │ f_back.f_code.co_filename: \mpmath\ctx_mp_python.py / arg: None              │
00:03:02 verbose #975 > > │ gamma_ / result: (1.00577030202902 + 0.0059717824054102j) / count: 357       │
00:03:02 verbose #976 > > │ gamma__ / s: Complex { re: 0.99, im: -0.01 } / result: Ok(Complex { re:      │
00:03:02 verbose #977 > > │ 1.005770302029023, im: 0.005971782405410201 })                               │
00:03:02 verbose #978 > > │ zeta__ / s: Complex { re: 0.01, im: 0.01 } / result: Ok(Complex { re:        │
00:03:02 verbose #979 > > │ -0.5091873433665667, im: -0.00939202213994577 }) / z: Complex { re: 0.0, im: │
00:03:02 verbose #980 > > │ 0.0 }                                                                        │
00:03:02 verbose #981 > > │ assert_lt / actual: -0.5091873433665667 / expected: inf                      │
00:03:02 verbose #982 > > │ assert_lt / actual: -0.00939202213994577 / expected: inf                     │
00:03:02 verbose #983 > > │                                                                              │
00:03:02 verbose #984 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:02 verbose #985 > >
00:03:02 verbose #986 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:02 verbose #987 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:02 verbose #988 > > │ ## test_imaginary_axis                                                       │
00:03:02 verbose #989 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:02 verbose #990 > >
00:03:02 verbose #991 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:02 verbose #992 > > inl test_imaginary_axis log = run_test log (3u8, 2u8) fun zeta, gamma =>
00:03:02 verbose #993 > >     (join [[10; 20; 30; 40; 50; 60; 70; 80; 90; 100]])
00:03:02 verbose #994 > >     |> listm.iter fun s =>
00:03:02 verbose #995 > >         inl s = .^(0, s)
00:03:02 verbose #996 > >         inl result = zeta s
00:03:02 verbose #997 > >         result |> re |> _assert_ne 0
00:03:02 verbose #998 > >         result |> im |> _assert_ne 0
00:03:02 verbose #999 > 00:03:02   debug #29 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c4bbdca6fd0a488d21c479ec679e700409b1ad7fa28a5e58af08c37ffa8beb7d/main.spi
00:03:03 verbose #1000 > >
00:03:03 verbose #1001 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:03 verbose #1002 > > //// test
00:03:03 verbose #1003 > > ///! rust -d num-complex pyo3
00:03:03 verbose #1004 > >
00:03:03 verbose #1005 > > types ()
00:03:03 verbose #1006 > > test_imaginary_axis true
00:03:03 verbose #1007 > 00:03:02   debug #30 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4b93a7150c07270f2838235de08a18116d579677d9c7d5af80f321b4f26e4ffe/main.spi
00:03:25 verbose #1008 > >
00:03:25 verbose #1009 > > ╭─[ 22.67s - return value ]────────────────────────────────────────────────────╮
00:03:25 verbose #1010 > > │ zeta_ / s: (0.0, 10.0) / count: 0                                            │
00:03:25 verbose #1011 > > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=10j, a=1, derivative=0,     │
00:03:25 verbose #1012 > > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:                 │
00:03:25 verbose #1013 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:03:25 verbose #1014 > > │ / arg: None                                                                  │
00:03:25 verbose #1015 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=10j, a=1, derivative=0,     │
00:03:25 verbose #1016 > > │ method=None, kwargs={} / f_lineno: 532 / f_code.co_filename:                 │
00:03:25 verbose #1017 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:03:25 verbose #1018 > > │ / arg: None                                                                  │
00:03:25 verbose #1019 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=10j, a=1, derivative=0,     │
00:03:25 verbose #1020 > > │ method=None, kwargs={}, d=0 / f_lineno: 533 / f_code.co_filename:            │
00:03:25 verbose #1021 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:03:25 verbose #1022 > > │ / arg: None                                                                  │
00:03:25 verbose #1023 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=10j, a=1, derivative=0,     │
00:03:25 verbose #1024 > > │ method=None, kwargs={}, d=0 / f_lineno: 534 / f_code.co_filename:            │
00:03:25 verbose #1025 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:03:25 verbose #1026 > > │ / arg: None                                                                  │
00:03:25 verbose #1027 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=10j, a=1, derivative=0,     │
00:03:25 verbose #1028 > > │ method=None, kwargs={}, d=0 / f_lineno: 535 / f_code.co_filename:            │
00:03:25 verbose #1029 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:03:25 verbose #1030 > > │ / arg: None                                                                  │
00:03:25 verbose #1031 > > │ call(zeta_) / f_code.co_name: f / f_locals: x=10j, kwargs={}, name='zeta' /  │
00:03:25 verbose #1032 > > │ f_lineno: 1113 / f_code.co_filename: \mpmath\ctx_mp_python.py /              │
00:03:25 verbose #1033 > > │ f_back.f_lineno: 535 / f_back.f_code.co_filename: \mpmath\functions\zeta.py  │
00:03:25 verbose #1034 > > │ / arg: None                                                                  │
00:03:25 verbose #1035 > > │ line(zeta_) / f_code.co_name: f / f_locals: x=10j, kwargs={}, name='zeta' /  │
00:03:25 verbose #1036 > > │ f_lineno: 1114 / f_code.co...: s=(0, 1, 0, 1), prec=83, sign=0, man=1,       │
00:03:25 verbose #1037 > > │ exp=0, bc=1 / f_lineno: 409 / f_code.co_filename: \mpmath\libmp\libmpf.py /  │
00:03:25 verbose #1038 > > │ f_back.f_lineno: 2022 / f_back.f_code.co_filename:                           │
00:03:25 verbose #1039 > > │ \mpmath\libmp\gammazeta.py / arg: None                                       │
00:03:25 verbose #1040 > > │ line(gamma_) / f_code.co_name: to_fixed / f_locals: s=(0, 1, 0, 1), prec=83, │
00:03:25 verbose #1041 > > │ sign=0, man=1, exp=0, bc=1, offset=83 / f_lineno: 410 / f_code.co_filename:  │
00:03:25 verbose #1042 > > │ \mpmath\libmp\libmpf.py / f_back.f_lineno: 2022 / f_back.f_code.co_filename: │
00:03:25 verbose #1043 > > │ \mpmath\libmp\gammazeta.py / arg: None                                       │
00:03:25 verbose #1044 > > │ line(gamma_) / f_code.co_name: to_fixed / f_locals: s=(0, 1, 0, 1), prec=83, │
00:03:25 verbose #1045 > > │ sign=0, man=1, exp=0, bc=1, offset=83 / f_lineno: 414 / f_code.co_filename:  │
00:03:25 verbose #1046 > > │ \mpmath\libmp\libmpf.py / f_back.f_lineno: 2022 / f_back.f_code.co_filename: │
00:03:25 verbose #1047 > > │ \mpmath\libmp\gammazeta.py / arg: None                                       │
00:03:25 verbose #1048 > > │ return(gamma_) / f_code.co_name: to_fixed / f_locals: s=(0, 1, 0, 1),        │
00:03:25 verbose #1049 > > │ prec=83, sign=0, man=1, exp=0, bc=1, offset=83 / f_lineno: 414 /             │
00:03:25 verbose #1050 > > │ f_code.co_filename: \mpmath\libmp\libmpf.py / f_back.f_lineno: 2022 /        │
00:03:25 verbose #1051 > > │ f_back.f_code.co_filename: \mpmath\libmp\gammazeta.py / arg:                 │
00:03:25 verbose #1052 > > │ 9671406556917033397649408                                                    │
00:03:25 verbose #1053 > > │ gamma_ / result: (-1.51425318049776e-67 + 2.79082155561748e-69j) / count:    │
00:03:25 verbose #1054 > > │ 289                                                                          │
00:03:25 verbose #1055 > > │ gamma__ / s: Complex { re: 1.0, im: -100.0 } / result: Ok(Complex { re:      │
00:03:25 verbose #1056 > > │ -1.514253180497756e-67, im: 2.7908215556174775e-69 })                        │
00:03:25 verbose #1057 > > │ zeta__ / s: Complex { re: 0.0, im: 100.0 } / result: Ok(Complex { re:        │
00:03:25 verbose #1058 > > │ 6.51721042625301, im: 0.18128842533791736 }) / z: Complex { re: 0.0, im: 0.0 │
00:03:25 verbose #1059 > > │ }                                                                            │
00:03:25 verbose #1060 > > │ assert_ne / actual: 6.51721042625301 / expected: 0.0                         │
00:03:25 verbose #1061 > > │ assert_ne / actual: 0.18128842533791736 / expected: 0.0                      │
00:03:25 verbose #1062 > > │                                                                              │
00:03:25 verbose #1063 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:25 verbose #1064 > >
00:03:25 verbose #1065 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:25 verbose #1066 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:25 verbose #1067 > > │ ## test_critical_strip                                                       │
00:03:25 verbose #1068 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:25 verbose #1069 > >
00:03:25 verbose #1070 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:25 verbose #1071 > > inl test_critical_strip log = run_test log (3u8, 2u8) fun zeta, gamma =>
00:03:25 verbose #1072 > >     (join [[
00:03:25 verbose #1073 > >         .^(0.5, 14.134725)
00:03:25 verbose #1074 > >         .^(0.75, 20.5)
00:03:25 verbose #1075 > >         .^(1.25, 30.1)
00:03:25 verbose #1076 > >         .^(0.25, 40.0)
00:03:25 verbose #1077 > >         .^(1.0, 50.0)
00:03:25 verbose #1078 > >     ]])
00:03:25 verbose #1079 > >     |> listm.iter fun s =>
00:03:25 verbose #1080 > >         inl result = zeta s
00:03:25 verbose #1081 > >         result |> re |> _assert_ne 0
00:03:25 verbose #1082 > >         result |> im |> _assert_ne 0
00:03:26 verbose #1083 > 00:03:25   debug #31 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d8c4f4fc2cd9b37b6aa1aa9deb212deb50abd62297c5bcdbb93eae27a74adea8/main.spi
00:03:26 verbose #1084 > >
00:03:26 verbose #1085 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:26 verbose #1086 > > //// test
00:03:26 verbose #1087 > > ///! rust -d num-complex pyo3
00:03:26 verbose #1088 > >
00:03:26 verbose #1089 > > types ()
00:03:26 verbose #1090 > > test_critical_strip true
00:03:26 verbose #1091 > 00:03:25   debug #32 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5765cdc4a696a2b6f10d001b2acdca94035a135dc06ca04228b767212c49354a/main.spi
00:03:45 verbose #1092 > >
00:03:45 verbose #1093 > > ╭─[ 18.92s - return value ]────────────────────────────────────────────────────╮
00:03:45 verbose #1094 > > │ zeta_ / s: (0.5, 14.134725) / count: 0                                       │
00:03:45 verbose #1095 > > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1,      │
00:03:45 verbose #1096 > > │ derivative=0, method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:   │
00:03:45 verbose #1097 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:03:45 verbose #1098 > > │ / arg: None                                                                  │
00:03:45 verbose #1099 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1,      │
00:03:45 verbose #1100 > > │ derivative=0, method=None, kwargs={} / f_lineno: 532 / f_code.co_filename:   │
00:03:45 verbose #1101 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:03:45 verbose #1102 > > │ / arg: None                                                                  │
00:03:45 verbose #1103 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1,      │
00:03:45 verbose #1104 > > │ derivative=0, method=None, kwargs={}, d=0 / f_lineno: 533 /                  │
00:03:45 verbose #1105 > > │ f_code.co_filename: \mpmath\functions\zeta.py / f_back.f_lineno: 25 /        │
00:03:45 verbose #1106 > > │ f_back.f_code.co_filename:  / arg: None                                      │
00:03:45 verbose #1107 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1,      │
00:03:45 verbose #1108 > > │ derivative=0, method=None, kwargs={}, d=0 / f_lineno: 534 /                  │
00:03:45 verbose #1109 > > │ f_code.co_filename: \mpmath\functions\zeta.py / f_back.f_lineno: 25 /        │
00:03:45 verbose #1110 > > │ f_back.f_code.co_filename:  / arg: None                                      │
00:03:45 verbose #1111 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(0.5+14.134725j), a=1,      │
00:03:45 verbose #1112 > > │ derivative=0, method=None, kwargs={}, d=0 / f_lineno: 535 /                  │
00:03:45 verbose #1113 > > │ f_code.co_filename: \mpmath\functions\zeta.py / f_back.f_lineno: 25 /        │
00:03:45 verbose #1114 > > │ f_back.f_code.co_filename:  / arg: None                                      │
00:03:45 verbose #1115 > > │ call(zeta_) / f_code.co_name: f / f_locals: x=(0.5+14.134725j), kwargs={},   │
00:03:45 verbose #1116 > > │ name='zeta' / f_lineno: 1113 / f_code.co_filename: \mpmath\ctx_mp_python.py  │
00:03:45 verbose #1117 > > │ / f_back.f_lineno: 535 / f_back.f_code.co_filename:                          │
00:03:45 verbose #1118 > > │ \mpmath\functions\zeta.py / arg: None                                        │
00:03:45 verbose #1119 > > │ line(zeta_) / f_cod...41793223535862290159229021 / f_lineno: 1635 /          │
00:03:45 verbose #1120 > > │ f_code.co_filename: \mpmath\libmp\gammazeta.py / f_back.f_lineno: 2041 /     │
00:03:45 verbose #1121 > > │ f_back.f_code.co_filename: \mpmath\libmp\gammazeta.py / arg: None            │
00:03:45 verbose #1122 > > │ line(gamma_) / f_code.co_name: complex_stirling_series / f_locals: x=0,      │
00:03:45 verbose #1123 > > │ y=-241785163922925834941235200, prec=82, _m=12089258196146291747061760000,   │
00:03:45 verbose #1124 > > │ tre=0, tim=2475880078, ure=-1934281311383406679530, uim=0,                   │
00:03:45 verbose #1125 > > │ sre=4443714077719696485012210, sim=241793223535862290159229021 / f_lineno:   │
00:03:45 verbose #1126 > > │ 1636 / f_code.co_filename: \mpmath\libmp\gammazeta.py / f_back.f_lineno:     │
00:03:45 verbose #1127 > > │ 2041 / f_back.f_code.co_filename: \mpmath\libmp\gammazeta.py / arg: None     │
00:03:45 verbose #1128 > > │ line(gamma_) / f_code.co_name: complex_stirling_series / f_locals: x=0,      │
00:03:45 verbose #1129 > > │ y=-241785163922925834941235200, prec=82, _m=12089258196146291747061760000,   │
00:03:45 verbose #1130 > > │ tre=0, tim=2475880078, ure=-1934281311383406679530, uim=0,                   │
00:03:45 verbose #1131 > > │ sre=4443714077719696485012210, sim=241793223535862290161313095 / f_lineno:   │
00:03:45 verbose #1132 > > │ 1637 / f_code.co_filename: \mpmath\libmp\gammazeta.py / f_back.f_lineno:     │
00:03:45 verbose #1133 > > │ 2041 / f_back.f_code.co_filename: \mpmath\libmp\gammazeta.py / arg: None     │
00:03:45 verbose #1134 > > │ gamma_ / result: (2.63173210619768e-35 - 8.16464935465334e-36j) / count: 266 │
00:03:45 verbose #1135 > > │ gamma__ / s: Complex { re: 0.0, im: -50.0 } / result: Ok(Complex { re:       │
00:03:45 verbose #1136 > > │ 2.6317321061976804e-35, im: -8.164649354653339e-36 })                        │
00:03:45 verbose #1137 > > │ zeta__ / s: Complex { re: 1.0, im: 50.0 } / result: Ok(Complex { re:         │
00:03:45 verbose #1138 > > │ 0.44103873082309397, im: 0.281582455029683 }) / z: Complex { re: 0.0, im:    │
00:03:45 verbose #1139 > > │ 0.0 }                                                                        │
00:03:45 verbose #1140 > > │ assert_ne / actual: 0.44103873082309397 / expected: 0.0                      │
00:03:45 verbose #1141 > > │ assert_ne / actual: 0.281582455029683 / expected: 0.0                        │
00:03:45 verbose #1142 > > │                                                                              │
00:03:45 verbose #1143 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:45 verbose #1144 > >
00:03:45 verbose #1145 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:45 verbose #1146 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:45 verbose #1147 > > │ ## test_reflection_formula_for_specific_value                                │
00:03:45 verbose #1148 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:45 verbose #1149 > >
00:03:45 verbose #1150 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:45 verbose #1151 > > inl test_reflection_formula_for_specific_value log = run_test log (3u8, 2u8) fun
00:03:45 verbose #1152 > > zeta, gamma =>
00:03:45 verbose #1153 > >     (join [[
00:03:45 verbose #1154 > >         .^(3, 4)
00:03:45 verbose #1155 > >         .^(2.5, -3.5)
00:03:45 verbose #1156 > >         .^(1.5, 2.5)
00:03:45 verbose #1157 > >         .^(0.5, 14.134725)
00:03:45 verbose #1158 > >     ]])
00:03:45 verbose #1159 > >     |> listm.iter fun s =>
00:03:45 verbose #1160 > >         inl lhs = zeta s
00:03:45 verbose #1161 > >         inl reflection_coefficient =
00:03:45 verbose #1162 > >             (.^(2, 0) .** s)
00:03:45 verbose #1163 > >             .* (.^(pi, 0) .** (s .- .^(1, 0)))
00:03:45 verbose #1164 > >             .* (.^(pi, 0) .* s ./ .^(2, 0) |> complex_sin)
00:03:45 verbose #1165 > >             .* gamma (.^(1, 0) .- s)
00:03:45 verbose #1166 > >
00:03:45 verbose #1167 > >         inl one_minus_s = .^(1 - re s, -(im s))
00:03:45 verbose #1168 > >         inl rhs = reflection_coefficient .* zeta one_minus_s
00:03:45 verbose #1169 > >
00:03:45 verbose #1170 > >         re lhs - re rhs |> abs |> _assert_lt 0.0001
00:03:45 verbose #1171 > >         im lhs - im rhs |> abs |> _assert_lt 0.0001
00:03:45 verbose #1172 > 00:03:44   debug #33 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dc9e6b6d71690373443ab3f68ecaf5a949b4086fbe9149807ba3ac8381c7d8ff/main.spi
00:03:45 verbose #1173 > >
00:03:45 verbose #1174 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:45 verbose #1175 > > //// test
00:03:45 verbose #1176 > > ///! rust -d num-complex pyo3
00:03:45 verbose #1177 > >
00:03:45 verbose #1178 > > types ()
00:03:45 verbose #1179 > > test_reflection_formula_for_specific_value true
00:03:45 verbose #1180 > 00:03:44   debug #34 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2c0471609bfebb4068f4c2719c31395f8441abcdcc7728c78e52d320254caa26/main.spi
00:04:04 verbose #1181 > >
00:04:04 verbose #1182 > > ╭─[ 19.10s - return value ]────────────────────────────────────────────────────╮
00:04:04 verbose #1183 > > │ zeta_ / s: (3.0, 4.0) / count: 0                                             │
00:04:04 verbose #1184 > > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(3+4j), a=1, derivative=0,  │
00:04:04 verbose #1185 > > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:                 │
00:04:04 verbose #1186 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:04:04 verbose #1187 > > │ / arg: None                                                                  │
00:04:04 verbose #1188 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(3+4j), a=1, derivative=0,  │
00:04:04 verbose #1189 > > │ method=None, kwargs={} / f_lineno: 532 / f_code.co_filename:                 │
00:04:04 verbose #1190 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:04:04 verbose #1191 > > │ / arg: None                                                                  │
00:04:04 verbose #1192 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(3+4j), a=1, derivative=0,  │
00:04:04 verbose #1193 > > │ method=None, kwargs={}, d=0 / f_lineno: 533 / f_code.co_filename:            │
00:04:04 verbose #1194 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:04:04 verbose #1195 > > │ / arg: None                                                                  │
00:04:04 verbose #1196 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(3+4j), a=1, derivative=0,  │
00:04:04 verbose #1197 > > │ method=None, kwargs={}, d=0 / f_lineno: 534 / f_code.co_filename:            │
00:04:04 verbose #1198 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:04:04 verbose #1199 > > │ / arg: None                                                                  │
00:04:04 verbose #1200 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(3+4j), a=1, derivative=0,  │
00:04:04 verbose #1201 > > │ method=None, kwargs={}, d=0 / f_lineno: 535 / f_code.co_filename:            │
00:04:04 verbose #1202 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:04:04 verbose #1203 > > │ / arg: None                                                                  │
00:04:04 verbose #1204 > > │ call(zeta_) / f_code.co_name: f / f_locals: x=(3+4j), kwargs={}, name='zeta' │
00:04:04 verbose #1205 > > │ / f_lineno: 1113 / f_code.co_filename: \mpmath\ctx_mp_python.py /            │
00:04:04 verbose #1206 > > │ f_back.f_lineno: 535 / f_back.f_code.co_filename: \mpmath\functions\zeta.py  │
00:04:04 verbose #1207 > > │ / arg: None                                                                  │
00:04:04 verbose #1208 > > │ line(zeta_) / f_code.co_name: f / f_locals: x=(3+4j), kwargs={}, name='zeta' │
00:04:04 verbose #1209 > > │ / f_line...o: 2034 / f_code.co_filename: \mpmath\libmp\gammazeta.py /        │
00:04:04 verbose #1210 > > │ f_back.f_lineno: 1131 / f_back.f_code.co_filename: \mpmath\ctx_mp_python.py  │
00:04:04 verbose #1211 > > │ / arg: None                                                                  │
00:04:04 verbose #1212 > > │ line(gamma_) / f_code.co_name: mpc_gamma / f_locals: z=((0, 1, -1, 1), (0,   │
00:04:04 verbose #1213 > > │ 3978571390186527, -48, 52)), prec=53, rnd='n', type=0, a=(0, 1, -1, 1),      │
00:04:04 verbose #1214 > > │ b=(0, 3978571390186527, -48, 52), asign=0, aman=1, aexp=-1, abc=1, bsign=0,  │
00:04:04 verbose #1215 > > │ bman=3978571390186527, bexp=-48, bbc=52, wp=79, amag=0, bmag=4, mag=4, an=0, │
00:04:04 verbose #1216 > > │ bn=14, absn=14j, gamma_size=56, need_reflection=0, zorig=((0, 1, -1, 1), (0, │
00:04:04 verbose #1217 > > │ 3978571390186527, -48, 52)), yfinal=0, balance_prec=0, n_for_stirling=15,    │
00:04:04 verbose #1218 > > │ need_reduction=True, afix=2115620184325601055735808,                         │
00:04:04 verbose #1219 > > │ bfix=8543917002826194402410496, r=0, zprered=((0, 1, -1, 1), (0,             │
00:04:04 verbose #1220 > > │ 3978571390186527, -48, 52)), d=5, rre=-542313259704087430481959845,          │
00:04:04 verbose #1221 > > │ one=604462909807314587353088, rim=-1657865507045117397880679064, k=3 /       │
00:04:04 verbose #1222 > > │ f_lineno: 2035 / f_code.co_filename: \mpmath\libmp\gammazeta.py /            │
00:04:04 verbose #1223 > > │ f_back.f_lineno: 1131 / f_back.f_code.co_filename: \mpmath\ctx_mp_python.py  │
00:04:04 verbose #1224 > > │ / arg: None                                                                  │
00:04:04 verbose #1225 > > │ gamma_ / result: (-1.4455538437607e-10 - 5.52278876877407e-10j) / count: 314 │
00:04:04 verbose #1226 > > │ gamma__ / s: Complex { re: 0.5, im: 14.134725 } / result: Ok(Complex { re:   │
00:04:04 verbose #1227 > > │ -1.4455538437606964e-10, im: -5.522788768774066e-10 })                       │
00:04:04 verbose #1228 > > │ zeta__ / s: Complex { re: 0.5, im: -14.134725 } / result: Ok(Complex { re:   │
00:04:04 verbose #1229 > > │ 1.7674298413849186e-8, im: 1.1102028930923156e-7 }) / z: Complex { re: 0.0,  │
00:04:04 verbose #1230 > > │ im: 0.0 }                                                                    │
00:04:04 verbose #1231 > > │ assert_lt / actual: 4.499862532288471e-22 / expected: 0.0001                 │
00:04:04 verbose #1232 > > │ assert_lt / actual: 1.4558378780933287e-22 / expected: 0.0001                │
00:04:04 verbose #1233 > > │                                                                              │
00:04:04 verbose #1234 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:04 verbose #1235 > >
00:04:04 verbose #1236 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:04 verbose #1237 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:04 verbose #1238 > > │ ## test_euler_product_formula                                                │
00:04:04 verbose #1239 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:04 verbose #1240 > >
00:04:04 verbose #1241 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:04 verbose #1242 > > inl test_euler_product_formula log = run_test log (3u8, 2u8) fun zeta, gamma =>
00:04:04 verbose #1243 > >     inl s_values = join [[2; 2.5; 3; 3.5; 4; 4.5; 5]]
00:04:04 verbose #1244 > >     inl primes = join [[2; 3; 5; 7; 11; 13; 17; 19; 23; 29; 31; 37; 41; 43; 47;
00:04:04 verbose #1245 > > 53; 59; 61; 67; 71]]
00:04:04 verbose #1246 > >     s_values
00:04:04 verbose #1247 > >     |> listm.iter fun s_re =>
00:04:04 verbose #1248 > >         inl s = .^(s_re, 0)
00:04:04 verbose #1249 > >         inl product =
00:04:04 verbose #1250 > >             (1, primes)
00:04:04 verbose #1251 > >             ||> listm.fold fun acc x =>
00:04:04 verbose #1252 > >                 acc * 1 / (1 - x ** -s_re)
00:04:04 verbose #1253 > >
00:04:04 verbose #1254 > >         inl result = zeta s
00:04:04 verbose #1255 > >         re result - product |> abs |> _assert_lt 0.01
00:04:04 verbose #1256 > >         result |> im |> _assert_lt 0.01
00:04:04 verbose #1257 > 00:04:04   debug #35 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ad1b47c5bd834a9826511d76b1b401572860006f53404a5ac06b883ca0761dc5/main.spi
00:04:04 verbose #1258 > >
00:04:04 verbose #1259 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:04 verbose #1260 > > //// test
00:04:04 verbose #1261 > > ///! rust -d num-complex pyo3
00:04:04 verbose #1262 > >
00:04:04 verbose #1263 > > types ()
00:04:04 verbose #1264 > > test_euler_product_formula true
00:04:05 verbose #1265 > 00:04:04   debug #36 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a54b1a3872344e1e6c9d6d0c78decb2c4ebe48d7067c0d2292bc0efdd9f6305b/main.spi
00:04:24 verbose #1266 > >
00:04:24 verbose #1267 > > ╭─[ 19.46s - return value ]────────────────────────────────────────────────────╮
00:04:24 verbose #1268 > > │ zeta_ / s: (2.0, 0.0) / count: 0                                             │
00:04:24 verbose #1269 > > │ call(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:04:24 verbose #1270 > > │ method=None, kwargs={} / f_lineno: 530 / f_code.co_filename:                 │
00:04:24 verbose #1271 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:04:24 verbose #1272 > > │ / arg: None                                                                  │
00:04:24 verbose #1273 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:04:24 verbose #1274 > > │ method=None, kwargs={} / f_lineno: 532 / f_code.co_filename:                 │
00:04:24 verbose #1275 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:04:24 verbose #1276 > > │ / arg: None                                                                  │
00:04:24 verbose #1277 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:04:24 verbose #1278 > > │ method=None, kwargs={}, d=0 / f_lineno: 533 / f_code.co_filename:            │
00:04:24 verbose #1279 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:04:24 verbose #1280 > > │ / arg: None                                                                  │
00:04:24 verbose #1281 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:04:24 verbose #1282 > > │ method=None, kwargs={}, d=0 / f_lineno: 534 / f_code.co_filename:            │
00:04:24 verbose #1283 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:04:24 verbose #1284 > > │ / arg: None                                                                  │
00:04:24 verbose #1285 > > │ line(zeta_) / f_code.co_name: zeta / f_locals: s=(2+0j), a=1, derivative=0,  │
00:04:24 verbose #1286 > > │ method=None, kwargs={}, d=0 / f_lineno: 535 / f_code.co_filename:            │
00:04:24 verbose #1287 > > │ \mpmath\functions\zeta.py / f_back.f_lineno: 25 / f_back.f_code.co_filename: │
00:04:24 verbose #1288 > > │ / arg: None                                                                  │
00:04:24 verbose #1289 > > │ call(zeta_) / f_code.co_name: f / f_locals: x=(2+0j), kwargs={}, name='zeta' │
00:04:24 verbose #1290 > > │ / f_lineno: 1113 / f_code.co_filename: \mpmath\ctx_mp_python.py /            │
00:04:24 verbose #1291 > > │ f_back.f_lineno: 535 / f_back.f_code.co_filename: \mpmath\functions\zeta.py  │
00:04:24 verbose #1292 > > │ / arg: None                                                                  │
00:04:24 verbose #1293 > > │ line(zeta_) / f_code.co_name: f / f_locals: x=(2+0j), kwargs={}, name='zeta' │
00:04:24 verbose #1294 > > │ / f_line..._back.f_lineno: 976 / f_back.f_code.co_filename:                  │
00:04:24 verbose #1295 > > │ \mpmath\libmp\gammazeta.py / arg: None                                       │
00:04:24 verbose #1296 > > │ line(zeta_) / f_code.co_name: mpf_zeta_int / f_locals: s=5, prec=53,         │
00:04:24 verbose #1297 > > │ rnd='n', wp=73, m=19.25, needed_terms=623488, n=33, d=[1, 2179, 792067,      │
00:04:24 verbose #1298 > > │ 115062531, 8930212611, 429314925315, 13983537177347, 327666966438659,        │
00:04:24 verbose #1299 > > │ 5764846406968067, 78615943485956867, 851604426176701187,                     │
00:04:24 verbose #1300 > > │ 7470527451121689347, 53898915046387983107, 323897845985013506819,            │
00:04:24 verbose #1301 > > │ 1638178356374090130179, 7034281785235908174595, 25833609859980306522883,     │
00:04:24 verbose #1302 > > │ 81661917475887913739011, 223448095548034217779971, 532029677981012660429571, │
00:04:24 verbose #1303 > > │ 1108048631855905753375491, 2029946562680066824315651,                        │
00:04:24 verbose #1304 > > │ 3292927237466655352791811, 4769455369342763680768771,                        │
00:04:24 verbose #1305 > > │ 6235511670496346417767171, 7463408621503347142796035,                        │
00:04:24 verbose #1306 > > │ 8322751284048216428487427, 8818779962777819524211459,                        │
00:04:24 verbose #1307 > > │ 9050689474911140452082435, 9136270117622166323831555,                        │
00:04:24 verbose #1308 > > │ 9160252037839493347779331, 9165045885455648617505539,                        │
00:04:24 verbose #1309 > > │ 9165654628010081032708867, 9165691521498228451812099],                       │
00:04:24 verbose #1310 > > │ t=-84153981556310142931811887755527036638996681066, k=21 / f_lineno: 944 /   │
00:04:24 verbose #1311 > > │ f_code.co_filename: \mpmath\libmp\gammazeta.py / f_back.f_lineno: 976 /      │
00:04:24 verbose #1312 > > │ f_back.f_code.co_filename: \mpmath\libmp\gammazeta.py / arg: None            │
00:04:24 verbose #1313 > > │ zeta_ / result: (1.03692775514337 + 0.0j) / count: 236                       │
00:04:24 verbose #1314 > > │ zeta / count: 0 / s: Complex { re: 5.0, im: 0.0 }                            │
00:04:24 verbose #1315 > > │ zeta__ / s: Complex { re: 5.0, im: 0.0 } / result: Ok(Complex { re:          │
00:04:24 verbose #1316 > > │ 1.03692775514337, im: 0.0 }) / z: Complex { re: NaN, im: NaN }               │
00:04:24 verbose #1317 > > │ assert_lt / actual: 2.0033654735129858e-9 / expected: 0.01                   │
00:04:24 verbose #1318 > > │ assert_lt / actual: 0.0 / expected: 0.01                                     │
00:04:24 verbose #1319 > > │                                                                              │
00:04:24 verbose #1320 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:24 verbose #1321 > >
00:04:24 verbose #1322 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:24 verbose #1323 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:24 verbose #1324 > > │ ## graph                                                                     │
00:04:24 verbose #1325 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:24 verbose #1326 > >
00:04:24 verbose #1327 > > ── mermaid ─────────────────────────────────────────────────────────────────────
00:04:24 verbose #1328 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:24 verbose #1329 > > │ <div class="mermaidMarkdownContainer" style="background-color:white">        │
00:04:24 verbose #1330 > > │ <link rel="stylesheet"                                                       │
00:04:24 verbose #1331 > > │ href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min. │
00:04:24 verbose #1332 > > │ css">                                                                        │
00:04:24 verbose #1333 > > │ <div id="5e1b37a173704438976f7ba4e705f9f1"></div>                            │
00:04:24 verbose #1334 > > │ <script type="module">                                                       │
00:04:24 verbose #1335 > > │                                                                              │
00:04:24 verbose #1336 > > │             import mermaid from                                              │
00:04:24 verbose #1337 > > │ 'https://cdn.jsdelivr.net/npm/mermaid@10.6.1/dist/mermaid.esm.min.mjs';      │
00:04:24 verbose #1338 > > │             let renderTarget =                                               │
00:04:24 verbose #1339 > > │ document.getElementById('5e1b37a173704438976f7ba4e705f9f1');                 │
00:04:24 verbose #1340 > > │             try {                                                            │
00:04:24 verbose #1341 > > │                 const {svg, bindFunctions} = await                           │
00:04:24 verbose #1342 > > │ mermaid.mermaidAPI.render(                                                   │
00:04:24 verbose #1343 > > │                     'mermaid_5e1b37a173704438976f7ba4e705f9f1',              │
00:04:24 verbose #1344 > > │                     `graph TD                                                │
00:04:24 verbose #1345 > > │     zeta("zeta()") --> convert                                               │
00:04:24 verbose #1346 > > │     zeta --> f["f()"]                                                        │
00:04:24 verbose #1347 > > │     f --> mpc_f["mpc_zeta()"]                                                │
00:04:24 verbose #1348 > > │     f --> mpf_f["mpf_zeta()"]                                                │
00:04:24 verbose #1349 > > │     convert --> from_float                                                   │
00:04:24 verbose #1350 > > │     from_float --> from_man_exp                                              │
00:04:24 verbose #1351 > > │     from_man_exp --> python_bitcount                                         │
00:04:24 verbose #1352 > > │     python_bitcount --> _normalize                                           │
00:04:24 verbose #1353 > > │     _normalize --> make_mpc                                                  │
00:04:24 verbose #1354 > > │     make_mpc --> mpc_zeta["mpc_zeta()"]                                      │
00:04:24 verbose #1355 > > │     mpc_zeta --> mpf_zeta["mpf_zeta()"]                                      │
00:04:24 verbose #1356 > > │     mpf_zeta --> to_int                                                      │
00:04:24 verbose #1357 > > │     to_int --> mpf_zeta_int["mpf_zeta_int()"]                                │
00:04:24 verbose #1358 > > │     mpf_zeta_int --> borwein_coefficients                                    │
00:04:24 verbose #1359 > > │     borwein_coefficients --> from_man_exp_2("from_man_exp()")                │
00:04:24 verbose #1360 > > │     from_man_exp_2 --> python_bitcount_2("python_bitcount()")                │
00:04:24 verbose #1361 > > │     python_bitcount_2 --> _normalize_2("_normalize()")                       │
00:04:24 verbose #1362 > > │     _normalize_2 --> make_mpc_2("make_mpc()")                                │
00:04:24 verbose #1363 > > │     make_mpc_2 --> stop_trace                                                │
00:04:24 verbose #1364 > > │     mpf_zeta_int --> mpf_bernoulli                                           │
00:04:24 verbose #1365 > > │     mpf_bernoulli --> bernoulli_size                                         │
00:04:24 verbose #1366 > > │     bernoulli_size --> mpf_rdiv_int                                          │
00:04:24 verbose #1367 > > │     mpf_rdiv_int --> python_bitcount_3("python_bitcount()")                  │
00:04:24 verbose #1368 > > │     python_bitcount_3 --> _normalize1                                        │
00:04:24 verbose #1369 > > │     _normalize1 --> from_man_exp_3("from_man_exp()")                         │
00:04:24 verbose #1370 > > │     from_man_exp_3 --> _normalize_3("_normalize()")                          │
00:04:24 verbose #1371 > > │     _normalize_3 --> mpf_sub                                                 │
00:04:24 verbose #1372 > > │     mpf_sub --> mpf_add                                                      │
00:04:24 verbose #1373 > > │     mpf_add --> mpf_neg                                                      │
00:04:24 verbose #1374 > > │     mpf_neg --> _normalize1_2("_normalize1()")                               │
00:04:24 verbose #1375 > > │     _normalize1_2 --> from_int                                               │
00:04:24 verbose #1376 > > │     from_int --> mpf_div                                                     │
00:04:24 verbose #1377 > > │     mpf_div --> python_bitcount_4("python_bitcount()")                       │
00:04:24 verbose #1378 > > │     python_bitcount_4 --> _normalize1_3("_normalize1()")                     │
00:04:24 verbose #1379 > > │     _normalize1_3 --> make_mpc_3("make_mpc()")                               │
00:04:24 verbose #1380 > > │     make_mpc_3 --> final_stop["stop_trace()"]`);                             │
00:04:24 verbose #1381 > > │                 renderTarget.innerHTML = svg;                                │
00:04:24 verbose #1382 > > │                 bindFunctions?.(renderTarget);                               │
00:04:24 verbose #1383 > > │             }                                                                │
00:04:24 verbose #1384 > > │             catch (error) {                                                  │
00:04:24 verbose #1385 > > │                 console.log(error);                                          │
00:04:24 verbose #1386 > > │             }                                                                │
00:04:24 verbose #1387 > > │ </script>                                                                    │
00:04:24 verbose #1388 > > │ </div>                                                                       │
00:04:24 verbose #1389 > > │                                                                              │
00:04:24 verbose #1390 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:24 verbose #1391 > >
00:04:24 verbose #1392 > > ── mermaid ─────────────────────────────────────────────────────────────────────
00:04:24 verbose #1393 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:24 verbose #1394 > > │ <div class="mermaidMarkdownContainer" style="background-color:white">        │
00:04:24 verbose #1395 > > │ <link rel="stylesheet"                                                       │
00:04:24 verbose #1396 > > │ href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min. │
00:04:24 verbose #1397 > > │ css">                                                                        │
00:04:24 verbose #1398 > > │ <div id="0b69abf1918c47638724d13274768ec4"></div>                            │
00:04:24 verbose #1399 > > │ <script type="module">                                                       │
00:04:24 verbose #1400 > > │                                                                              │
00:04:24 verbose #1401 > > │             import mermaid from                                              │
00:04:24 verbose #1402 > > │ 'https://cdn.jsdelivr.net/npm/mermaid@10.6.1/dist/mermaid.esm.min.mjs';      │
00:04:24 verbose #1403 > > │             let renderTarget =                                               │
00:04:24 verbose #1404 > > │ document.getElementById('0b69abf1918c47638724d13274768ec4');                 │
00:04:24 verbose #1405 > > │             try {                                                            │
00:04:24 verbose #1406 > > │                 const {svg, bindFunctions} = await                           │
00:04:24 verbose #1407 > > │ mermaid.mermaidAPI.render(                                                   │
00:04:24 verbose #1408 > > │                     'mermaid_0b69abf1918c47638724d13274768ec4',              │
00:04:24 verbose #1409 > > │                     `graph TD                                                │
00:04:24 verbose #1410 > > │     zeta_rust("zeta() - Rust") --> num_traits("num-traits")                  │
00:04:24 verbose #1411 > > │     zeta_rust --> num_bigint("num-bigint")                                   │
00:04:24 verbose #1412 > > │     zeta_rust --> rust_decimal("rust_decimal for precision")                 │
00:04:24 verbose #1413 > > │     zeta_rust --> error_handling("Rust Error Handling")                      │
00:04:24 verbose #1414 > > │                                                                              │
00:04:24 verbose #1415 > > │     num_traits --> num_traits_usage("Use for common traits")                 │
00:04:24 verbose #1416 > > │     num_bigint --> bigint_operations("Arbitrary-precision arithmetic         │
00:04:24 verbose #1417 > > │ operations")                                                                 │
00:04:24 verbose #1418 > > │     rust_decimal --> decimal_operations("High-precision decimal operations") │
00:04:24 verbose #1419 > > │     error_handling --> result_type("Use Result<T, E> for error handling")    │
00:04:24 verbose #1420 > > │                                                                              │
00:04:24 verbose #1421 > > │     bigint_operations --> convert_rust("convert() - Rust")                   │
00:04:24 verbose #1422 > > │     bigint_operations --> normalize_rust("_normalize() - Rust")              │
00:04:24 verbose #1423 > > │                                                                              │
00:04:24 verbose #1424 > > │     convert_rust --> from_float_rust("from_float() - Rust")                  │
00:04:24 verbose #1425 > > │     from_float_rust --> from_man_exp_rust("from_man_exp() - Rust")           │
00:04:24 verbose #1426 > > │     from_man_exp_rust --> bitcount_rust("bitcount() - Rust")                 │
00:04:24 verbose #1427 > > │     bitcount_rust --> normalize_rust                                         │
00:04:24 verbose #1428 > > │     normalize_rust --> mpc_zeta_rust("mpc_zeta() - Rust")                    │
00:04:24 verbose #1429 > > │     mpc_zeta_rust --> mpf_zeta_rust("mpf_zeta() - Rust")                     │
00:04:24 verbose #1430 > > │     mpf_zeta_rust --> to_int_rust("to_int() - Rust")                         │
00:04:24 verbose #1431 > > │     to_int_rust --> mpf_zeta_int_rust("mpf_zeta_int() - Rust")               │
00:04:24 verbose #1432 > > │                                                                              │
00:04:24 verbose #1433 > > │     mpf_zeta_int_rust --> borwein_coefficients_rust("borwein_coefficients()  │
00:04:24 verbose #1434 > > │ - Rust")                                                                     │
00:04:24 verbose #1435 > > │     borwein_coefficients_rust --> from_man_exp_rust_2("from_man_exp() -      │
00:04:24 verbose #1436 > > │ Rust")                                                                       │
00:04:24 verbose #1437 > > │     from_man_exp_rust_2 --> bitcount_rust_2("bitcount() - Rust")             │
00:04:24 verbose #1438 > > │     bitcount_rust_2 --> normalize_rust_2("_normalize() - Rust")              │
00:04:24 verbose #1439 > > │     normalize_rust_2 --> make_mpc_rust("make_mpc() - Rust")                  │
00:04:24 verbose #1440 > > │                                                                              │
00:04:24 verbose #1441 > > │     mpf_zeta_int_rust --> mpf_bernoulli_rust("mpf_bernoulli() - Rust")       │
00:04:24 verbose #1442 > > │     mpf_bernoulli_rust --> bernoulli_size_rust("bernoulli_size() - Rust")    │
00:04:24 verbose #1443 > > │     bernoulli_size_rust --> mpf_rdiv_int_rust("mpf_rdiv_int() - Rust")       │
00:04:24 verbose #1444 > > │     mpf_rdiv_int_rust --> bitcount_rust_3("bitcount() - Rust")               │
00:04:24 verbose #1445 > > │     bitcount_rust_3 --> normalize1_rust("_normalize1() - Rust")              │
00:04:24 verbose #1446 > > │     normalize1_rust --> from_man_exp_rust_3("from_man_exp() - Rust")         │
00:04:24 verbose #1447 > > │     from_man_exp_rust_3 --> normalize_rust_3("_normalize() - Rust")          │
00:04:24 verbose #1448 > > │     normalize_rust_3 --> mpf_sub_rust("mpf_sub() - Rust")                    │
00:04:24 verbose #1449 > > │     mpf_sub_rust --> mpf_add_rust("mpf_add() - Rust")                        │
00:04:24 verbose #1450 > > │     mpf_add_rust --> mpf_neg_rust("mpf_neg() - Rust")                        │
00:04:24 verbose #1451 > > │     mpf_neg_rust --> normalize1_rust_2("_normalize1() - Rust")               │
00:04:24 verbose #1452 > > │     normalize1_rust_2 --> from_int_rust("from_int() - Rust")                 │
00:04:24 verbose #1453 > > │     from_int_rust --> mpf_div_rust("mpf_div() - Rust")                       │
00:04:24 verbose #1454 > > │     mpf_div_rust --> bitcount_rust_4("bitcount() - Rust")                    │
00:04:24 verbose #1455 > > │     bitcount_rust_4 --> normalize1_rust_3("_normalize1() - Rust")            │
00:04:24 verbose #1456 > > │                                                                              │
00:04:24 verbose #1457 > > │     style zeta_rust fill:#f9f,stroke:#333,stroke-width:4px                   │
00:04:24 verbose #1458 > > │     style num_traits fill:#bbf,stroke:#333,stroke-width:2px                  │
00:04:24 verbose #1459 > > │     style num_bigint fill:#bbf,stroke:#333,stroke-width:2px                  │
00:04:24 verbose #1460 > > │     style rust_decimal fill:#bbf,stroke:#333,stroke-width:2px                │
00:04:24 verbose #1461 > > │     style error_handling fill:#bbf,stroke:#333,stroke-width:2px              │
00:04:24 verbose #1462 > > │     style bigint_operations fill:#bfb,stroke:#333,stroke-width:2px           │
00:04:24 verbose #1463 > > │     style decimal_operations fill:#bfb,stroke:#333,stroke-width:2px          │
00:04:24 verbose #1464 > > │     style result_type fill:#bfb,stroke:#333,stroke-width:2px`);              │
00:04:24 verbose #1465 > > │                 renderTarget.innerHTML = svg;                                │
00:04:24 verbose #1466 > > │                 bindFunctions?.(renderTarget);                               │
00:04:24 verbose #1467 > > │             }                                                                │
00:04:24 verbose #1468 > > │             catch (error) {                                                  │
00:04:24 verbose #1469 > > │                 console.log(error);                                          │
00:04:24 verbose #1470 > > │             }                                                                │
00:04:24 verbose #1471 > > │ </script>                                                                    │
00:04:24 verbose #1472 > > │ </div>                                                                       │
00:04:24 verbose #1473 > > │                                                                              │
00:04:24 verbose #1474 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:24 verbose #1475 > >
00:04:24 verbose #1476 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:24 verbose #1477 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:24 verbose #1478 > > │ ## tests                                                                     │
00:04:24 verbose #1479 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:24 verbose #1480 > >
00:04:24 verbose #1481 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:24 verbose #1482 > > inl tests () =
00:04:24 verbose #1483 > >     rust.run_tests [[
00:04:24 verbose #1484 > >     "test_zeta_at_known_values_", fun _ =>
00:04:24 verbose #1485 > >         test_zeta_at_known_values_ false
00:04:24 verbose #1486 > >
00:04:24 verbose #1487 > >     "test_zeta_at_2_minus2", fun _ =>
00:04:24 verbose #1488 > >         test_zeta_at_2_minus2 false
00:04:24 verbose #1489 > >
00:04:24 verbose #1490 > >     "test_trivial_zero_at_negative_even___", fun _ =>
00:04:24 verbose #1491 > >         test_trivial_zero_at_negative_even___ false
00:04:24 verbose #1492 > >
00:04:24 verbose #1493 > >     "test_non_trivial_zero___", fun _ =>
00:04:24 verbose #1494 > >         test_non_trivial_zero___ false
00:04:24 verbose #1495 > >
00:04:24 verbose #1496 > >     "test_real_part_greater_than_one___", fun _ =>
00:04:24 verbose #1497 > >         test_real_part_greater_than_one___ false
00:04:24 verbose #1498 > >
00:04:24 verbose #1499 > >     "test_zeta_at_1___", fun _ =>
00:04:24 verbose #1500 > >         test_zeta_at_1___ false
00:04:24 verbose #1501 > >
00:04:24 verbose #1502 > >     "test_symmetry_across_real_axis___", fun _ =>
00:04:24 verbose #1503 > >         test_symmetry_across_real_axis___ false
00:04:24 verbose #1504 > >
00:04:24 verbose #1505 > >     "test_behavior_near_origin___", fun _ =>
00:04:24 verbose #1506 > >         test_behavior_near_origin___ false
00:04:24 verbose #1507 > >
00:04:24 verbose #1508 > >     "test_imaginary_axis", fun _ =>
00:04:24 verbose #1509 > >         test_imaginary_axis false
00:04:24 verbose #1510 > >
00:04:24 verbose #1511 > >     "test_critical_strip", fun _ =>
00:04:24 verbose #1512 > >         test_critical_strip false
00:04:24 verbose #1513 > >
00:04:24 verbose #1514 > >     "test_reflection_formula_for_specific_value", fun _ =>
00:04:24 verbose #1515 > >         test_reflection_formula_for_specific_value false
00:04:24 verbose #1516 > >
00:04:24 verbose #1517 > >     "test_euler_product_formula", fun _ =>
00:04:24 verbose #1518 > >         test_euler_product_formula false
00:04:24 verbose #1519 > >     ]]
00:04:24 verbose #1520 > 00:04:24   debug #37 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/31d0a43a3b9fbbaeee9c54b9cdfca8609e1c3cca7eb724ff174d177f765b96b4/main.spi
00:04:25 verbose #1521 > >
00:04:25 verbose #1522 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:25 verbose #1523 > > ///!
00:04:25 verbose #1524 > >
00:04:25 verbose #1525 > > inl main (_args : array_base string) =
00:04:25 verbose #1526 > >     inl value = 1i32
00:04:25 verbose #1527 > >     console.write_line ($'$"value: {!value}"' : string)
00:04:25 verbose #1528 > >     0i32
00:04:25 verbose #1529 > >
00:04:25 verbose #1530 > > inl main () =
00:04:25 verbose #1531 > >     types ()
00:04:25 verbose #1532 > >     $'let tests () = !tests ()' : ()
00:04:25 verbose #1533 > >     $'let main args = !main args' : ()
00:04:25 verbose #1534 > 00:04:24   debug #38 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/806bdf201686ee10bed0ccbb2405edaee87150c7dccedcc9795e3172876b62eb/main.spi
00:04:26 verbose #1535 > 00:04:24 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 89623 }
00:04:26 verbose #1536 > 00:04:24   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/math/math.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/math/math.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:04:29 verbose #1537 > 00:04:27 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/math/math.dib.ipynb to html
00:04:29 verbose #1538 > 00:04:27 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:04:29 verbose #1539 > 00:04:27 verbose #7 !   validate(nb)
00:04:33 verbose #1540 > 00:04:31 verbose #8 ! [NbConvertApp] Writing 7275780 bytes to c:\home\git\polyglot\lib\math\math.dib.html
00:04:33 verbose #1541 > 00:04:32 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 636 }
00:04:33 verbose #1542 > 00:04:32   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 636 }
00:04:33 verbose #1543 > 00:04:32   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/math/math.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/math/math.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:04:35 verbose #1544 > 00:04:33 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:04:35 verbose #1545 > 00:04:33   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:04:36 verbose #1546 > 00:04:34   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 90318 }
00:04:36   debug #1547 runtime.execute_with_options_async / { exit_code = 0; output_length = 95881 }
00:04:36   debug #3 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path math.dib --retries 1
00:04:36 verbose #6 networking.wait_for_port_access / { port = 13805; retry = 0; timeout = Some 100; status = false }
00:04:36 verbose #7 async.run_with_timeout_async / { timeout = 100 }
00:00:00   debug #1 writeDibCode / output: Spi / path: math.dib
00:00:00   debug #2 parseDibCode / output: Spi / file: math.dib
00:00:00 verbose #1 async.run_with_timeout_async / { timeout = 180 }
00:00:00   debug #1 runtime.execute_with_options_async / { options = { command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = Some <fun:main@570-7>; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot" } }
00:00:01 verbose #2 > 00:00:00   debug #1 pwd: C:\home\git\polyglot
00:00:01 verbose #3 > 00:00:00   debug #2 dllPath: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:01 verbose #4 > 00:00:00   debug #3 targetDir: C:\home\git\polyglot\target/spiral_Eval
00:00:01 verbose #2 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #3 networking.wait_for_port_access / { port = 13805; retry = 0; timeout = Some 100; status = true }
00:00:01 verbose #4 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #5 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #5 > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:01   debug #1 runWithTimeoutAsync / timeout: 500
00:00:02 verbose #2 Supervisor.sendJson / port: 13805 / json: {"Ping":true} / result:
00:00:02 verbose #3 awaitCompiler / Ping / result: 'Some(null)' / port: 13805 / retry: 0
00:00:02 verbose #6 > Server bound to: http://localhost:13805
00:00:02 verbose #6 async.run_with_timeout_async / { timeout = 180 }
00:00:02   debug #4 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: math.spi
00:00:02   debug #5 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: math.spi
00:00:02   debug #6 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: math.spi
00:00:02 verbose #7 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # math\nopen testing\nopen rust_operators\n\ninl types () =\n    global ...027let main args = !main args\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/math/math.spi"}} / result:
00:00:02 verbose #8 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/math/math.spi"}} / result:
00:00:03   debug #9 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: math.spi
00:00:03   debug #10 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: math.spi
00:00:03 verbose #7 > 00:00:02   debug #4 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/math/math.spi
00:00:03   debug #11 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: math.spi
00:00:03   debug #12 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: math.spi
00:00:04   debug #13 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: math.spi
00:00:04   debug #14 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: math.spi
00:00:04   debug #15 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: math.spi
00:00:04   debug #16 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: math.spi
00:00:05   debug #17 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: math.spi
00:00:05   debug #18 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: math.spi
00:00:05   debug #19 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: math.spi
00:00:05   debug #20 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: math.spi
00:00:06   debug #21 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: math.spi
00:00:06   debug #22 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: math.spi
00:00:06   debug #23 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: math.spi
00:00:06   debug #24 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: math.spi
00:00:07   debug #25 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("core::any::Any")>]
#endif
type core_any_Any = class end
#if FABLE_COMPILER
[<Fable.Core.Erase;...    v4 v1
    0
let v30 : (unit -> unit) = closure0()
let tests () = v30 ()
let v31 : ((string []) -> int32) = closure5()
let main args = v31 args
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: math.spi
00:00:07   debug #26 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("core::any::Any")>]
#endif
type core_any_Any = class end
#if FABLE_COMPILER
[<Fable.Core.Erase;...    v4 v1
    0
let v30 : (unit -> unit) = closure0()
let tests () = v30 ()
let v31 : ((string []) -> int32) = closure5()
let main args = v31 args
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: math.spi
00:00:07   debug #27 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:07 verbose #7 networking.wait_for_port_access / { port = 13805; retry = 0; timeout = Some 100; status = false }
00:00:07 verbose #8 async.run_with_timeout_async / { timeout = 100 }
00:00:00   debug #1 persistCodeProject / packages: [Fable.Core] / modules: [lib/spiral/common.fsx; lib/spiral/sm.fsx; lib/spiral/crypto.fsx; ... ] / name: math / hash:  / code.Length: 138721
00:00:00   debug #2 buildProject / fullPath: C:\home\git\polyglot\target\Builder\math\math.fsproj
00:00:00   debug #1 runtime.execute_with_options_async / { options = { command = dotnet publish "C:\home\git\polyglot\target/Builder\math\math.fsproj" --configuration Release --output "C:\home\git\polyglot\lib\math\dist" --runtime linux-x64; cancellation_token = None; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot\target\Builder\math" } }
00:00:00 verbose #2 > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET
00:00:01 verbose #3 >   Determining projects to restore...
00:00:02 verbose #4 >   Restored C:\home\git\polyglot\target\Builder\math\math.fsproj (in 419 ms).
00:00:02 verbose #5 > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\Builder\math\math.fsproj]
00:00:15 verbose #6 >   math -> C:\home\git\polyglot\target\Builder\math\bin\Release\net9.0\linux-x64\math.dll
00:00:17 verbose #7 >   math -> C:\home\git\polyglot\lib\math\dist\
00:00:17   debug #8 runtime.execute_with_options_async / { exit_code = 0; output_length = 637 }
00:00:17   debug #9 runtime.execute_with_options_async / { options = { command = dotnet publish "C:\home\git\polyglot\target/Builder\math\math.fsproj" --configuration Release --output "C:\home\git\polyglot\lib\math\dist" --runtime win-x64; cancellation_token = None; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot\target\Builder\math" } }
00:00:17 verbose #10 > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET
00:00:18 verbose #11 >   Determining projects to restore...
00:00:19 verbose #12 >   Restored C:\home\git\polyglot\target\Builder\math\math.fsproj (in 391 ms).
00:00:19 verbose #13 > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\Builder\math\math.fsproj]
00:00:31 verbose #14 >   math -> C:\home\git\polyglot\target\Builder\math\bin\Release\net9.0\win-x64\math.dll
00:00:35 verbose #15 >   math -> C:\home\git\polyglot\lib\math\dist\
00:00:35   debug #16 runtime.execute_with_options_async / { exit_code = 0; output_length = 635 }
targetDir: C:\home\git\polyglot\target\Builder\math
Fable 4.19.3: F# to Rust compiler (status: alpha)

Thanks to the contributor! @Neftedollar
Stand with Ukraine! https://standwithukraine.com.ua/

Parsing target\Builder\math\math.fsproj...
Retrieving project options from cache, in case of issues run `dotnet fable clean` or try `--noCache` option.
Project and references (14 source files) parsed in 215ms

Started Fable compilation...

Fable compilation finished in 7786ms

.\lib\spiral\sm.fsx(614,0): (614,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\common.fsx(1466,0): (1466,69) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\common.fsx(1473,0): (1473,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\async_.fsx(112,0): (112,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\crypto.fsx(1778,0): (1778,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\threading.fsx(173,0): (173,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\date_time.fsx(1256,0): (1256,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\platform.fsx(108,0): (108,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\networking.fsx(5083,0): (5083,69) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\networking.fsx(5092,0): (5092,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\trace.fsx(1336,0): (1336,69) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\trace.fsx(1339,0): (1339,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\runtime.fsx(5760,0): (5760,69) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\runtime.fsx(5771,0): (5771,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\file_system.fsx(11854,0): (11854,69) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\lib\spiral\file_system.fsx(11893,0): (11893,2) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
.\target\Builder\math\math.fs(233,0): (235,3) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
   Compiling target-lexicon v0.12.15
   Compiling syn v2.0.70
   Compiling chrono v0.4.38
   Compiling pyo3-build-config v0.21.2
   Compiling pyo3-ffi v0.21.2
   Compiling pyo3 v0.21.2
   Compiling pyo3-macros-backend v0.21.2
   Compiling futures-macro v0.3.30
   Compiling futures-util v0.3.30
   Compiling pyo3-macros v0.21.2
   Compiling futures-executor v0.3.30
   Compiling futures v0.3.30
   Compiling fable_library_rust v0.1.0 (C:\home\git\polyglot\lib\rust\fable\fable_modules\fable-library-rust)
   Compiling math v0.0.1 (C:\home\git\polyglot\lib\math)
    Finished `release` profile [optimized] target(s) in 39.91s
     Running unittests math.rs (C:\home\git\polyglot\workspace\target\release\deps\math-716c87ae2c2cdf95.exe)

running 12 tests
test module_b7a9935b::Math::test_euler_product_formula ... ok
test module_b7a9935b::Math::test_behavior_near_origin___ ... ok
test module_b7a9935b::Math::test_critical_strip ... ok
test module_b7a9935b::Math::test_symmetry_across_real_axis___ ... ok
test module_b7a9935b::Math::test_zeta_at_2_minus2 ... ok
test module_b7a9935b::Math::test_zeta_at_1___ ... ok
test module_b7a9935b::Math::test_zeta_at_known_values_ ... ok
test module_b7a9935b::Math::test_reflection_formula_for_specific_value ... ok
test module_b7a9935b::Math::test_imaginary_axis ... ok
test module_b7a9935b::Math::test_non_trivial_zero___ ... ok
test module_b7a9935b::Math::test_real_part_greater_than_one___ ... ok
test module_b7a9935b::Math::test_trivial_zero_at_negative_even___ ... ok

test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.46s

In [ ]:
{ pwsh ../apps/plot/build.ps1 } | Invoke-Block
   Compiling num-traits v0.2.19
   Compiling futures-core v0.3.30
   Compiling futures-io v0.3.30
   Compiling getrandom v0.2.15
   Compiling plotters-backend v0.3.6
   Compiling uuid v1.10.0
   Compiling futures-channel v0.3.30
   Compiling plotters-svg v0.3.6
   Compiling futures-util v0.3.30
   Compiling chrono v0.4.38
   Compiling plotters v0.3.6
   Compiling futures-executor v0.3.30
   Compiling futures v0.3.30
   Compiling fable_library_rust v0.1.0 (C:\home\git\polyglot\lib\rust\fable\fable_modules\fable-library-rust)
   Compiling plot v0.0.1 (C:\home\git\polyglot\apps\plot)
    Finished `release` profile [optimized] target(s) in 28.09s
In [ ]:
{ pwsh ../apps/perf/build.ps1 } | Invoke-Block
00:00:00 verbose #1 async.run_with_timeout_async / { timeout = 180 }
00:00:00   debug #1 runtime.execute_with_options_async / { options = { command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = Some <fun:main@570-7>; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot" } }
00:00:01 verbose #2 > 00:00:00   debug #1 pwd: C:\home\git\polyglot
00:00:01 verbose #3 > 00:00:00   debug #2 dllPath: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:01 verbose #4 > 00:00:00   debug #3 targetDir: C:\home\git\polyglot\target/spiral_Eval
00:00:01 verbose #2 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #3 networking.wait_for_port_access / { port = 13805; retry = 0; timeout = Some 100; status = true }
00:00:01 verbose #4 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #5 > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:01 verbose #5 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #1 Supervisor.sendJson / port: 13805 / json: {"Ping":true} / result:
00:00:01 verbose #2 awaitCompiler / Ping / result: 'Some(null)' / port: 13805 / retry: 0
00:00:01 verbose #6 > Server bound to: http://localhost:13805
00:00:01   debug #7 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path Perf.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:01 verbose #8 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "Perf.dib", "--retries", "3"])) }
00:00:01 verbose #9 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/apps/perf/Perf.dib", "--output-path", "c:/home/git/polyglot/apps/perf/Perf.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/apps/perf/Perf.dib" --output-path "c:/home/git/polyglot/apps/perf/Perf.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:00:04 verbose #10 > >
00:00:04 verbose #11 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:04 verbose #12 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:04 verbose #13 > > │ # Perf (Polyglot)                                                            │
00:00:04 verbose #14 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 verbose #15 > >
00:00:22 verbose #16 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:22 verbose #17 > > //// test
00:00:22 verbose #18 > >
00:00:22 verbose #19 > > open testing
00:00:22 verbose #20 > > open benchmark
00:00:23 verbose #21 > 00:00:22   debug #4 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0fe24d3dc606a5d07b53d5ea3fede53fab8fac286f91bf9a11131630555d4050/main.spi
00:00:26 verbose #22 > >
00:00:26 verbose #23 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:26 verbose #24 > > #if !INTERACTIVE
00:00:26 verbose #25 > > open Lib
00:00:26 verbose #26 > > #endif
00:00:26 verbose #27 > >
00:00:26 verbose #28 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:26 verbose #29 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:26 verbose #30 > > │ ## TestCaseResult                                                            │
00:00:26 verbose #31 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:26 verbose #32 > >
00:00:26 verbose #33 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:26 verbose #34 > > type TestCaseResult =
00:00:26 verbose #35 > >     {
00:00:26 verbose #36 > >         Input: string
00:00:26 verbose #37 > >         Expected: string
00:00:26 verbose #38 > >         Result: string
00:00:26 verbose #39 > >         TimeList: int64 list
00:00:26 verbose #40 > >     }
00:00:26 verbose #41 > >
00:00:26 verbose #42 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:26 verbose #43 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:26 verbose #44 > > │ ## run                                                                       │
00:00:26 verbose #45 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:26 verbose #46 > >
00:00:26 verbose #47 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:26 verbose #48 > > let run count (solutions: (string * ('TInput -> 'TExpected)) list) (input,
00:00:26 verbose #49 > > expected) =
00:00:26 verbose #50 > >     let inputStr =
00:00:26 verbose #51 > >         match box input with
00:00:26 verbose #52 > >         | :? System.Collections.ICollection as input ->
00:00:26 verbose #53 > >             System.Linq.Enumerable.Cast<obj> input
00:00:26 verbose #54 > >             |> Seq.map string
00:00:26 verbose #55 > >             |> SpiralSm.concat ","
00:00:26 verbose #56 > >         | _ -> input.ToString ()
00:00:26 verbose #57 > >
00:00:26 verbose #58 > >     printfn ""
00:00:26 verbose #59 > >     printfn $"Solution: {inputStr}  "
00:00:26 verbose #60 > >
00:00:26 verbose #61 > >     let performanceInvoke (fn: unit -> 'T) =
00:00:26 verbose #62 > >         GC.Collect ()
00:00:26 verbose #63 > >         let stopwatch = System.Diagnostics.Stopwatch ()
00:00:26 verbose #64 > >         stopwatch.Start ()
00:00:26 verbose #65 > >         let time1 = stopwatch.ElapsedMilliseconds
00:00:26 verbose #66 > >
00:00:26 verbose #67 > >         let result =
00:00:26 verbose #68 > >             [[| 0 .. count |]]
00:00:26 verbose #69 > >             |> Array.Parallel.map (fun _ ->
00:00:26 verbose #70 > >                 fn ()
00:00:26 verbose #71 > >             )
00:00:26 verbose #72 > >             |> Array.last
00:00:26 verbose #73 > >
00:00:26 verbose #74 > >         let time2 = stopwatch.ElapsedMilliseconds - time1
00:00:26 verbose #75 > >
00:00:26 verbose #76 > >         result, time2
00:00:26 verbose #77 > >
00:00:26 verbose #78 > >     let resultsWithTime =
00:00:26 verbose #79 > >         solutions
00:00:26 verbose #80 > >         |> List.mapi (fun i (testName, solution) ->
00:00:26 verbose #81 > >             let result, time = performanceInvoke (fun () -> solution input)
00:00:26 verbose #82 > >             printfn $"Test case %d{i + 1}. %s{testName}. Time: %A{time}  "
00:00:26 verbose #83 > >             result, time
00:00:26 verbose #84 > >         )
00:00:26 verbose #85 > >
00:00:26 verbose #86 > >
00:00:26 verbose #87 > >     match resultsWithTime |> List.map fst with
00:00:26 verbose #88 > >     | ([[]] | [[ _ ]]) -> ()
00:00:26 verbose #89 > >     | (head :: tail) when tail |> List.forall ((=) head) -> ()
00:00:26 verbose #90 > >     | results -> failwithf $"Challenge error: %A{results}"
00:00:26 verbose #91 > >
00:00:26 verbose #92 > >     {
00:00:26 verbose #93 > >         Input = inputStr
00:00:26 verbose #94 > >         Expected = expected.ToString ()
00:00:26 verbose #95 > >         Result = resultsWithTime |> Seq.map fst |> Seq.head |> _.ToString()
00:00:26 verbose #96 > >         TimeList = resultsWithTime |> List.map snd
00:00:26 verbose #97 > >     }
00:00:26 verbose #98 > >
00:00:26 verbose #99 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:26 verbose #100 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:26 verbose #101 > > │ ## runAll                                                                    │
00:00:26 verbose #102 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:26 verbose #103 > >
00:00:26 verbose #104 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:26 verbose #105 > > let runAll testName count (solutions: (string * ('TInput -> 'TExpected)) list)
00:00:26 verbose #106 > > testCases =
00:00:26 verbose #107 > >     printfn ""
00:00:26 verbose #108 > >     printfn ""
00:00:26 verbose #109 > >     printfn $"Test: {testName}"
00:00:26 verbose #110 > >     testCases
00:00:26 verbose #111 > >     |> Seq.map (run count solutions)
00:00:26 verbose #112 > >     |> Seq.toList
00:00:26 verbose #113 > >
00:00:26 verbose #114 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:26 verbose #115 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:26 verbose #116 > > │ ## sortResultList                                                            │
00:00:26 verbose #117 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:26 verbose #118 > >
00:00:26 verbose #119 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:26 verbose #120 > > let sortResultList resultList =
00:00:26 verbose #121 > >     let table =
00:00:26 verbose #122 > >         let rows =
00:00:26 verbose #123 > >             resultList
00:00:26 verbose #124 > >             |> List.map (fun result ->
00:00:26 verbose #125 > >                 let best =
00:00:26 verbose #126 > >                     result.TimeList
00:00:26 verbose #127 > >                     |> List.mapi (fun i time ->
00:00:26 verbose #128 > >                         i + 1, time
00:00:26 verbose #129 > >                     )
00:00:26 verbose #130 > >                     |> List.sortBy snd
00:00:26 verbose #131 > >                     |> List.head
00:00:26 verbose #132 > >                     |> _.ToString()
00:00:26 verbose #133 > >                 let row =
00:00:26 verbose #134 > >                     [[
00:00:26 verbose #135 > >                         result.Input
00:00:26 verbose #136 > >                         result.Expected
00:00:26 verbose #137 > >                         result.Result
00:00:26 verbose #138 > >                         best
00:00:26 verbose #139 > >                     ]]
00:00:26 verbose #140 > >                 let color =
00:00:26 verbose #141 > >                     match result.Expected = result.Result with
00:00:26 verbose #142 > >                     | true -> Some ConsoleColor.DarkGreen
00:00:26 verbose #143 > >                     | false -> Some ConsoleColor.DarkRed
00:00:26 verbose #144 > >                 row, color
00:00:26 verbose #145 > >             )
00:00:26 verbose #146 > >         let header =
00:00:26 verbose #147 > >             [[
00:00:26 verbose #148 > >                 [[
00:00:26 verbose #149 > >                     "Input"
00:00:26 verbose #150 > >                     "Expected"
00:00:26 verbose #151 > >                     "Result"
00:00:26 verbose #152 > >                     "Best"
00:00:26 verbose #153 > >                 ]]
00:00:26 verbose #154 > >                 [[
00:00:26 verbose #155 > >                     "---"
00:00:26 verbose #156 > >                     "---"
00:00:26 verbose #157 > >                     "---"
00:00:26 verbose #158 > >                     "---"
00:00:26 verbose #159 > >                 ]]
00:00:26 verbose #160 > >             ]]
00:00:26 verbose #161 > >             |> List.map (fun row -> row, None)
00:00:26 verbose #162 > >         header @ rows
00:00:26 verbose #163 > >
00:00:26 verbose #164 > >     let formattedTable =
00:00:26 verbose #165 > >         let lengthMap =
00:00:26 verbose #166 > >             table
00:00:26 verbose #167 > >             |> List.map fst
00:00:26 verbose #168 > >             |> List.transpose
00:00:26 verbose #169 > >             |> List.map (fun column ->
00:00:26 verbose #170 > >                 column
00:00:26 verbose #171 > >                 |> List.map String.length
00:00:26 verbose #172 > >                 |> List.sortDescending
00:00:26 verbose #173 > >                 |> List.tryHead
00:00:26 verbose #174 > >                 |> Option.defaultValue 0
00:00:26 verbose #175 > >             )
00:00:26 verbose #176 > >             |> List.indexed
00:00:26 verbose #177 > >             |> Map.ofList
00:00:26 verbose #178 > >         table
00:00:26 verbose #179 > >         |> List.map (fun (row, color) ->
00:00:26 verbose #180 > >             let newRow =
00:00:26 verbose #181 > >                 row
00:00:26 verbose #182 > >                 |> List.mapi (fun i cell ->
00:00:26 verbose #183 > >                     cell.PadRight lengthMap.[[i]]
00:00:26 verbose #184 > >                 )
00:00:26 verbose #185 > >             newRow, color
00:00:26 verbose #186 > >         )
00:00:26 verbose #187 > >
00:00:26 verbose #188 > >     printfn ""
00:00:26 verbose #189 > >     formattedTable
00:00:26 verbose #190 > >     |> List.iter (fun (row, color) ->
00:00:26 verbose #191 > >         match color with
00:00:26 verbose #192 > >         | Some color -> Console.ForegroundColor <- color
00:00:26 verbose #193 > >         | None -> Console.ResetColor ()
00:00:26 verbose #194 > >
00:00:26 verbose #195 > >         printfn "%s" (String.Join ("\t| ", row))
00:00:26 verbose #196 > >
00:00:26 verbose #197 > >         Console.ResetColor ()
00:00:26 verbose #198 > >     )
00:00:26 verbose #199 > >
00:00:26 verbose #200 > >     let averages =
00:00:26 verbose #201 > >         resultList
00:00:26 verbose #202 > >         |> List.map (fun result -> result.TimeList |> List.map float)
00:00:26 verbose #203 > >         |> List.transpose
00:00:26 verbose #204 > >         |> List.map List.average
00:00:26 verbose #205 > >         |> List.map int64
00:00:26 verbose #206 > >         |> List.indexed
00:00:26 verbose #207 > >
00:00:26 verbose #208 > >     printfn ""
00:00:26 verbose #209 > >     printfn "Average Ranking  "
00:00:26 verbose #210 > >     averages
00:00:26 verbose #211 > >     |> List.sortBy snd
00:00:26 verbose #212 > >     |> List.iter (fun (i, avg) ->
00:00:26 verbose #213 > >         printfn $"Test case %d{i + 1}. Average Time: %A{avg}  "
00:00:26 verbose #214 > >     )
00:00:26 verbose #215 > >
00:00:26 verbose #216 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:26 verbose #217 > > let mutable _count =
00:00:26 verbose #218 > >     if ("CI" |> System.Environment.GetEnvironmentVariable |> fun x -> $"%A{x}")
00:00:26 verbose #219 > > <> "<null>"
00:00:26 verbose #220 > >     then 2000000
00:00:26 verbose #221 > >     else 2000
00:00:26 verbose #222 > >
00:00:26 verbose #223 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:26 verbose #224 > > inl is_fast () =
00:00:26 verbose #225 > >     false
00:00:27 verbose #226 > 00:00:26   debug #5 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/af72357aa5b9c8336ba97493cc77aac4861a203d5a854c174807f06c5afe1c3d/main.spi
00:00:27 verbose #227 > >
00:00:27 verbose #228 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:27 verbose #229 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:27 verbose #230 > > │ ## empty3Tests                                                               │
00:00:27 verbose #231 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:27 verbose #232 > >
00:00:27 verbose #233 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:27 verbose #234 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:27 verbose #235 > > │ Test: Empty3                                                                 │
00:00:27 verbose #236 > > │                                                                              │
00:00:27 verbose #237 > > │ Solution: (a, a)                                                             │
00:00:27 verbose #238 > > │ Test case 1. A. Time: 91L                                                    │
00:00:27 verbose #239 > > │                                                                              │
00:00:27 verbose #240 > > │ Solution: (a, a)                                                             │
00:00:27 verbose #241 > > │ Test case 1. A. Time: 56L                                                    │
00:00:27 verbose #242 > > │                                                                              │
00:00:27 verbose #243 > > │ Input  | Expected      | Result | Best                                       │
00:00:27 verbose #244 > > │ ---    | ---           | ---    | ---                                        │
00:00:27 verbose #245 > > │ (a, a) | a             | a      | (1, 91)                                    │
00:00:27 verbose #246 > > │ (a, a) | a             | a      | (1, 56)                                    │
00:00:27 verbose #247 > > │                                                                              │
00:00:27 verbose #248 > > │ Averages                                                                     │
00:00:27 verbose #249 > > │ Test case 1. Average Time: 73L                                               │
00:00:27 verbose #250 > > │                                                                              │
00:00:27 verbose #251 > > │ Ranking                                                                      │
00:00:27 verbose #252 > > │ Test case 1. Average Time: 73L                                               │
00:00:27 verbose #253 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:27 verbose #254 > >
00:00:27 verbose #255 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:27 verbose #256 > > //// test
00:00:27 verbose #257 > >
00:00:27 verbose #258 > > let solutions = [[
00:00:27 verbose #259 > >     "A",
00:00:27 verbose #260 > >     fun (a, _b) ->
00:00:27 verbose #261 > >         a
00:00:27 verbose #262 > > ]]
00:00:27 verbose #263 > > let testCases = seq {
00:00:27 verbose #264 > >     ("a", "a"), "a"
00:00:27 verbose #265 > >     ("a", "a"), "a"
00:00:27 verbose #266 > > }
00:00:27 verbose #267 > > let rec empty3Tests = runAll (nameof empty3Tests) _count solutions testCases
00:00:27 verbose #268 > > empty3Tests
00:00:27 verbose #269 > > |> sortResultList
00:00:27 verbose #270 > >
00:00:27 verbose #271 > > ╭─[ 610.63ms - stdout ]────────────────────────────────────────────────────────╮
00:00:27 verbose #272 > > │                                                                              │
00:00:27 verbose #273 > > │                                                                              │
00:00:27 verbose #274 > > │ Test: empty3Tests                                                            │
00:00:27 verbose #275 > > │                                                                              │
00:00:27 verbose #276 > > │ Solution: (a, a)                                                             │
00:00:27 verbose #277 > > │ Test case 1. A. Time: 1L                                                     │
00:00:27 verbose #278 > > │                                                                              │
00:00:27 verbose #279 > > │ Solution: (a, a)                                                             │
00:00:27 verbose #280 > > │ Test case 1. A. Time: 0L                                                     │
00:00:27 verbose #281 > > │                                                                              │
00:00:27 verbose #282 > > │ Input 	| Expected	| Result	| Best                                                  │
00:00:27 verbose #283 > > │ ---   	| ---     	| ---   	| ---                                                   │
00:00:27 verbose #284 > > │ (a, a)	| a       	| a     	| (1, 1)                                                │
00:00:27 verbose #285 > > │ (a, a)	| a       	| a     	| (1, 0)                                                │
00:00:27 verbose #286 > > │                                                                              │
00:00:27 verbose #287 > > │ Average Ranking                                                              │
00:00:27 verbose #288 > > │ Test case 1. Average Time: 0L                                                │
00:00:27 verbose #289 > > │                                                                              │
00:00:27 verbose #290 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:27 verbose #291 > >
00:00:27 verbose #292 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:27 verbose #293 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:27 verbose #294 > > │ ## empty2Tests                                                               │
00:00:27 verbose #295 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:27 verbose #296 > >
00:00:27 verbose #297 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:27 verbose #298 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:27 verbose #299 > > │ Test: Empty2                                                                 │
00:00:27 verbose #300 > > │                                                                              │
00:00:27 verbose #301 > > │ Solution: (a, a)                                                             │
00:00:27 verbose #302 > > │ Test case 1. A. Time: 59L                                                    │
00:00:27 verbose #303 > > │                                                                              │
00:00:27 verbose #304 > > │ Solution: (a, a)                                                             │
00:00:27 verbose #305 > > │ Test case 1. A. Time: 53L                                                    │
00:00:27 verbose #306 > > │                                                                              │
00:00:27 verbose #307 > > │ Input   | Expected        | Result  | Best                                   │
00:00:27 verbose #308 > > │ ---     | ---             | ---     | ---                                    │
00:00:27 verbose #309 > > │ (a, a)  | a               | a       | (1, 59)                                │
00:00:27 verbose #310 > > │ (a, a)  | a               | a       | (1, 53)                                │
00:00:27 verbose #311 > > │                                                                              │
00:00:27 verbose #312 > > │ Averages                                                                     │
00:00:27 verbose #313 > > │ Test case 1. Average Time: 56L                                               │
00:00:27 verbose #314 > > │                                                                              │
00:00:27 verbose #315 > > │ Ranking                                                                      │
00:00:27 verbose #316 > > │ Test case 1. Average Time: 56L                                               │
00:00:27 verbose #317 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:27 verbose #318 > >
00:00:27 verbose #319 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:27 verbose #320 > > //// test
00:00:27 verbose #321 > >
00:00:27 verbose #322 > > let solutions = [[
00:00:27 verbose #323 > >     "A",
00:00:27 verbose #324 > >     fun (a, _b) ->
00:00:27 verbose #325 > >         a
00:00:27 verbose #326 > > ]]
00:00:27 verbose #327 > > let testCases = seq {
00:00:27 verbose #328 > >     ("a", "a"), "a"
00:00:27 verbose #329 > >     ("a", "a"), "a"
00:00:27 verbose #330 > > }
00:00:27 verbose #331 > > let rec empty2Tests = runAll (nameof empty2Tests) _count solutions testCases
00:00:27 verbose #332 > > empty2Tests
00:00:27 verbose #333 > > |> sortResultList
00:00:28 verbose #334 > >
00:00:28 verbose #335 > > ╭─[ 582.64ms - stdout ]────────────────────────────────────────────────────────╮
00:00:28 verbose #336 > > │                                                                              │
00:00:28 verbose #337 > > │                                                                              │
00:00:28 verbose #338 > > │ Test: empty2Tests                                                            │
00:00:28 verbose #339 > > │                                                                              │
00:00:28 verbose #340 > > │ Solution: (a, a)                                                             │
00:00:28 verbose #341 > > │ Test case 1. A. Time: 0L                                                     │
00:00:28 verbose #342 > > │                                                                              │
00:00:28 verbose #343 > > │ Solution: (a, a)                                                             │
00:00:28 verbose #344 > > │ Test case 1. A. Time: 0L                                                     │
00:00:28 verbose #345 > > │                                                                              │
00:00:28 verbose #346 > > │ Input 	| Expected	| Result	| Best                                                  │
00:00:28 verbose #347 > > │ ---   	| ---     	| ---   	| ---                                                   │
00:00:28 verbose #348 > > │ (a, a)	| a       	| a     	| (1, 0)                                                │
00:00:28 verbose #349 > > │ (a, a)	| a       	| a     	| (1, 0)                                                │
00:00:28 verbose #350 > > │                                                                              │
00:00:28 verbose #351 > > │ Average Ranking                                                              │
00:00:28 verbose #352 > > │ Test case 1. Average Time: 0L                                                │
00:00:28 verbose #353 > > │                                                                              │
00:00:28 verbose #354 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:28 verbose #355 > >
00:00:28 verbose #356 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:28 verbose #357 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:28 verbose #358 > > │ ## emptyTests                                                                │
00:00:28 verbose #359 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:28 verbose #360 > >
00:00:28 verbose #361 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:28 verbose #362 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:28 verbose #363 > > │ Test: Empty                                                                  │
00:00:28 verbose #364 > > │                                                                              │
00:00:28 verbose #365 > > │ Solution: 0                                                                  │
00:00:28 verbose #366 > > │ Test case 1. A. Time: 61L                                                    │
00:00:28 verbose #367 > > │                                                                              │
00:00:28 verbose #368 > > │ Solution: 2                                                                  │
00:00:28 verbose #369 > > │ Test case 1. A. Time: 62L                                                    │
00:00:28 verbose #370 > > │                                                                              │
00:00:28 verbose #371 > > │ Solution: 5                                                                  │
00:00:28 verbose #372 > > │ Test case 1. A. Time: 70L                                                    │
00:00:28 verbose #373 > > │                                                                              │
00:00:28 verbose #374 > > │ Input   | Expected        | Result  | Best                                   │
00:00:28 verbose #375 > > │ ---     | ---             | ---     | ---                                    │
00:00:28 verbose #376 > > │ 0       | 0               | 0       | (1, 61)                                │
00:00:28 verbose #377 > > │ 2       | 2               | 2       | (1, 62)                                │
00:00:28 verbose #378 > > │ 5       | 5               | 5       | (1, 70)                                │
00:00:28 verbose #379 > > │                                                                              │
00:00:28 verbose #380 > > │ Averages                                                                     │
00:00:28 verbose #381 > > │ Test case 1. Average Time: 64L                                               │
00:00:28 verbose #382 > > │                                                                              │
00:00:28 verbose #383 > > │ Ranking                                                                      │
00:00:28 verbose #384 > > │ Test case 1. Average Time: 64L                                               │
00:00:28 verbose #385 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:28 verbose #386 > >
00:00:28 verbose #387 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:28 verbose #388 > > //// test
00:00:28 verbose #389 > >
00:00:28 verbose #390 > > let solutions = [[
00:00:28 verbose #391 > >     "A",
00:00:28 verbose #392 > >     fun n ->
00:00:28 verbose #393 > >         n + 0
00:00:28 verbose #394 > > ]]
00:00:28 verbose #395 > > let testCases = seq {
00:00:28 verbose #396 > >     0, 0
00:00:28 verbose #397 > >     2, 2
00:00:28 verbose #398 > >     5, 5
00:00:28 verbose #399 > > }
00:00:28 verbose #400 > > let rec emptyTests = runAll (nameof emptyTests) _count solutions testCases
00:00:28 verbose #401 > > emptyTests
00:00:28 verbose #402 > > |> sortResultList
00:00:29 verbose #403 > >
00:00:29 verbose #404 > > ╭─[ 742.85ms - stdout ]────────────────────────────────────────────────────────╮
00:00:29 verbose #405 > > │                                                                              │
00:00:29 verbose #406 > > │                                                                              │
00:00:29 verbose #407 > > │ Test: emptyTests                                                             │
00:00:29 verbose #408 > > │                                                                              │
00:00:29 verbose #409 > > │ Solution: 0                                                                  │
00:00:29 verbose #410 > > │ Test case 1. A. Time: 2L                                                     │
00:00:29 verbose #411 > > │                                                                              │
00:00:29 verbose #412 > > │ Solution: 2                                                                  │
00:00:29 verbose #413 > > │ Test case 1. A. Time: 0L                                                     │
00:00:29 verbose #414 > > │                                                                              │
00:00:29 verbose #415 > > │ Solution: 5                                                                  │
00:00:29 verbose #416 > > │ Test case 1. A. Time: 0L                                                     │
00:00:29 verbose #417 > > │                                                                              │
00:00:29 verbose #418 > > │ Input	| Expected	| Result	| Best                                                   │
00:00:29 verbose #419 > > │ ---  	| ---     	| ---   	| ---                                                    │
00:00:29 verbose #420 > > │ 0    	| 0       	| 0     	| (1, 2)                                                 │
00:00:29 verbose #421 > > │ 2    	| 2       	| 2     	| (1, 0)                                                 │
00:00:29 verbose #422 > > │ 5    	| 5       	| 5     	| (1, 0)                                                 │
00:00:29 verbose #423 > > │                                                                              │
00:00:29 verbose #424 > > │ Average Ranking                                                              │
00:00:29 verbose #425 > > │ Test case 1. Average Time: 0L                                                │
00:00:29 verbose #426 > > │                                                                              │
00:00:29 verbose #427 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:29 verbose #428 > >
00:00:29 verbose #429 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:29 verbose #430 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:29 verbose #431 > > │ ## uniqueLettersTests                                                        │
00:00:29 verbose #432 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:29 verbose #433 > >
00:00:29 verbose #434 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:29 verbose #435 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:29 verbose #436 > > │ Test: UniqueLetters                                                          │
00:00:29 verbose #437 > > │                                                                              │
00:00:29 verbose #438 > > │ Solution: abc                                                                │
00:00:29 verbose #439 > > │ Test case 1. A. Time: 1512L                                                  │
00:00:29 verbose #440 > > │ Test case 2. B. Time: 1947L                                                  │
00:00:29 verbose #441 > > │ Test case 3. C. Time: 2023L                                                  │
00:00:29 verbose #442 > > │ Test case 4. D. Time: 1358L                                                  │
00:00:29 verbose #443 > > │ Test case 5. E. Time: 1321L                                                  │
00:00:29 verbose #444 > > │ Test case 6. F. Time: 1346L                                                  │
00:00:29 verbose #445 > > │ Test case 7. G. Time: 1304L                                                  │
00:00:29 verbose #446 > > │ Test case 8. H. Time: 1383L                                                  │
00:00:29 verbose #447 > > │ Test case 9. I. Time: 1495L                                                  │
00:00:29 verbose #448 > > │ Test case 10. J. Time: 1245L                                                 │
00:00:29 verbose #449 > > │ Test case 11. K. Time: 1219L                                                 │
00:00:29 verbose #450 > > │                                                                              │
00:00:29 verbose #451 > > │ Solution: accabb                                                             │
00:00:29 verbose #452 > > │ Test case 1. A. Time: 1648L                                                  │
00:00:29 verbose #453 > > │ Test case 2. B. Time: 2061L                                                  │
00:00:29 verbose #454 > > │ Test case 3. C. Time: 2413L                                                  │
00:00:29 verbose #455 > > │ Test case 4. D. Time: 1561L                                                  │
00:00:29 verbose #456 > > │ Test case 5. E. Time: 1593L                                                  │
00:00:29 verbose #457 > > │ Test case 6. F. Time: 1518L                                                  │
00:00:29 verbose #458 > > │ Test case 7. G. Time: 1415L                                                  │
00:00:29 verbose #459 > > │ Test case 8. H. Time: 1510L                                                  │
00:00:29 verbose #460 > > │ Test case 9. I. Time: 1445L                                                  │
00:00:29 verbose #461 > > │ Test case 10. J. Time: 1636L                                                 │
00:00:29 verbose #462 > > │ Test case 11. K. Time: 1317L                                                 │
00:00:29 verbose #463 > > │                                                                              │
00:00:29 verbose #464 > > │ Solution: pprrqqpp                                                           │
00:00:29 verbose #465 > > │ Test case 1. A. Time: 2255L                                                  │
00:00:29 verbose #466 > > │ Test case 2. B. Time: 2408L                                                  │
00:00:29 verbose #467 > > │ Test case 3. C. Time: 2393L                                                  │
00:00:29 verbose #468 > > │ Test case 4. D. Time: 1675L                                                  │
00:00:29 verbose #469 > > │ Test case 5. E. Time: 1911L                                                  │
00:00:29 verbose #470 > > │ Test case 6. F. Time: 2126L                                                  │
00:00:29 verbose #471 > > │ Test case 7. G. Time: 1504L                                                  │
00:00:29 verbose #472 > > │ Test case 8. H. Time: 1715L                                                  │
00:00:29 verbose #473 > > │ Test case 9. I. Time: 1537L                                                  │
00:00:29 verbose #474 > > │ Test case 10. J. Time: 1522L                                                 │
00:00:29 verbose #475 > > │ Test case 11. K. Time: 1322L                                                 │
00:00:29 verbose #476 > > │                                                                              │
00:00:29 verbose #477 > > │ Solution:                                                                    │
00:00:29 verbose #478 > > │ aaaaaaaaaaaaaaccccccabbbbbbbaaacccbbbaaccccccccccacbbbbbbbbbbbbbcccccccbbbbb │
00:00:29 verbose #479 > > │ bbb                                                                          │
00:00:29 verbose #480 > > │ Test case 1. A. Time: 13073L                                                 │
00:00:29 verbose #481 > > │ Test case 2. B. Time: 11519L                                                 │
00:00:29 verbose #482 > > │ Test case 3. C. Time: 8373L                                                  │
00:00:29 verbose #483 > > │ Test case 4. D. Time: 5860L                                                  │
00:00:29 verbose #484 > > │ Test case 5. E. Time: 6490L                                                  │
00:00:29 verbose #485 > > │ Test case 6. F. Time: 6325L                                                  │
00:00:29 verbose #486 > > │ Test case 7. G. Time: 5799L                                                  │
00:00:29 verbose #487 > > │ Test case 8. H. Time: 7099L                                                  │
00:00:29 verbose #488 > > │ Test case 9. I. Time: 6133L                                                  │
00:00:29 verbose #489 > > │ Test case 10. J. Time: 5993L                                                 │
00:00:29 verbose #490 > > │ Test case 11. K. Time: 2040L                                                 │
00:00:29 verbose #491 > > │                                                                              │
00:00:29 verbose #492 > > │ Input                                                                        │
00:00:29 verbose #493 > > │ | Expected        | Result  | Best                                           │
00:00:29 verbose #494 > > │ ---                                                                          │
00:00:29 verbose #495 > > │                                                                              │
00:00:29 verbose #496 > > │ | ---             | ---     | ---                                            │
00:00:29 verbose #497 > > │ abc                                                                          │
00:00:29 verbose #498 > > │                                                                              │
00:00:29 verbose #499 > > │ | abc             | abc     | (11, 1219)                                     │
00:00:29 verbose #500 > > │ accabb                                                                       │
00:00:29 verbose #501 > > │ | acb             | acb     | (11, 1317)                                     │
00:00:29 verbose #502 > > │ pprrqqpp                                                                     │
00:00:29 verbose #503 > > │ | prq             | prq     | (11, 1322)                                     │
00:00:29 verbose #504 > > │ aaaaaaaaaaaaaaccccccabbbbbbbaaacccbbbaaccccccccccacbbbbbbbbbbbbbcccccccbbbbb │
00:00:29 verbose #505 > > │ bbb | acb             | acb     | (11, 2040)                                 │
00:00:29 verbose #506 > > │                                                                              │
00:00:29 verbose #507 > > │ Averages                                                                     │
00:00:29 verbose #508 > > │ Test case 1. Average Time: 4622L                                             │
00:00:29 verbose #509 > > │ Test case 2. Average Time: 4483L                                             │
00:00:29 verbose #510 > > │ Test case 3. Average Time: 3800L                                             │
00:00:29 verbose #511 > > │ Test case 4. Average Time: 2613L                                             │
00:00:29 verbose #512 > > │ Test case 5. Average Time: 2828L                                             │
00:00:29 verbose #513 > > │ Test case 6. Average Time: 2828L                                             │
00:00:29 verbose #514 > > │ Test case 7. Average Time: 2505L                                             │
00:00:29 verbose #515 > > │ Test case 8. Average Time: 2926L                                             │
00:00:29 verbose #516 > > │ Test case 9. Average Time: 2652L                                             │
00:00:29 verbose #517 > > │ Test case 10. Average Time: 2599L                                            │
00:00:29 verbose #518 > > │ Test case 11. Average Time: 1474L                                            │
00:00:29 verbose #519 > > │                                                                              │
00:00:29 verbose #520 > > │ Ranking                                                                      │
00:00:29 verbose #521 > > │ Test case 1. Average Time: 4622L                                             │
00:00:29 verbose #522 > > │ Test case 2. Average Time: 4483L                                             │
00:00:29 verbose #523 > > │ Test case 3. Average Time: 3800L                                             │
00:00:29 verbose #524 > > │ Test case 8. Average Time: 2926L                                             │
00:00:29 verbose #525 > > │ Test case 5. Average Time: 2828L                                             │
00:00:29 verbose #526 > > │ Test case 6. Average Time: 2828L                                             │
00:00:29 verbose #527 > > │ Test case 9. Average Time: 2652L                                             │
00:00:29 verbose #528 > > │ Test case 4. Average Time: 2613L                                             │
00:00:29 verbose #529 > > │ Test case 10. Average Time: 2599L                                            │
00:00:29 verbose #530 > > │ Test case 7. Average Time: 2505L                                             │
00:00:29 verbose #531 > > │ Test case 11. Average Time: 1474L                                            │
00:00:29 verbose #532 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:29 verbose #533 > >
00:00:29 verbose #534 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:29 verbose #535 > > //// test
00:00:29 verbose #536 > >
00:00:29 verbose #537 > > let solutions = [[
00:00:29 verbose #538 > >     "A",
00:00:29 verbose #539 > >     fun input ->
00:00:29 verbose #540 > >         input
00:00:29 verbose #541 > >         |> Seq.toList
00:00:29 verbose #542 > >         |> List.fold (fun acc x -> if List.contains x acc then acc else acc @ [[
00:00:29 verbose #543 > > x ]]) [[]]
00:00:29 verbose #544 > >         |> Seq.toArray
00:00:29 verbose #545 > >         |> String
00:00:29 verbose #546 > >
00:00:29 verbose #547 > >     "B",
00:00:29 verbose #548 > >     fun input ->
00:00:29 verbose #549 > >         input
00:00:29 verbose #550 > >         |> Seq.rev
00:00:29 verbose #551 > >         |> fun list -> Seq.foldBack (fun x acc -> if List.contains x acc then
00:00:29 verbose #552 > > acc else x :: acc) list [[]]
00:00:29 verbose #553 > >         |> Seq.rev
00:00:29 verbose #554 > >         |> Seq.toArray
00:00:29 verbose #555 > >         |> String
00:00:29 verbose #556 > >
00:00:29 verbose #557 > >     "C",
00:00:29 verbose #558 > >     fun input ->
00:00:29 verbose #559 > >         input
00:00:29 verbose #560 > >         |> Seq.rev
00:00:29 verbose #561 > >         |> fun list -> Seq.foldBack (fun x (set, acc) -> if Set.contains x set
00:00:29 verbose #562 > > then set, acc else set.Add x, x :: acc) list (Set.empty, [[]])
00:00:29 verbose #563 > >         |> snd
00:00:29 verbose #564 > >         |> Seq.rev
00:00:29 verbose #565 > >         |> Seq.toArray
00:00:29 verbose #566 > >         |> String
00:00:29 verbose #567 > >
00:00:29 verbose #568 > >     "D",
00:00:29 verbose #569 > >     fun input ->
00:00:29 verbose #570 > >         input
00:00:29 verbose #571 > >         |> Seq.fold (fun (set, acc) x -> if Set.contains x set then set, acc
00:00:29 verbose #572 > > else set.Add x, Array.append acc [[| x |]]) (Set.empty, [[||]])
00:00:29 verbose #573 > >         |> snd
00:00:29 verbose #574 > >         |> String
00:00:29 verbose #575 > >
00:00:29 verbose #576 > >     "E",
00:00:29 verbose #577 > >     fun input ->
00:00:29 verbose #578 > >         input
00:00:29 verbose #579 > >         |> Seq.fold (fun (set, acc) x -> if Set.contains x set then set, acc
00:00:29 verbose #580 > > else set.Add x, x :: acc) (Set.empty, [[]])
00:00:29 verbose #581 > >         |> snd
00:00:29 verbose #582 > >         |> List.rev
00:00:29 verbose #583 > >         |> List.toArray
00:00:29 verbose #584 > >         |> String
00:00:29 verbose #585 > >
00:00:29 verbose #586 > >     "F",
00:00:29 verbose #587 > >     fun input ->
00:00:29 verbose #588 > >         input
00:00:29 verbose #589 > >         |> Seq.fold (fun (set, acc) x -> if Set.contains x set then set, acc
00:00:29 verbose #590 > > else set.Add x, acc @ [[ x ]]) (Set.empty, [[]])
00:00:29 verbose #591 > >         |> snd
00:00:29 verbose #592 > >         |> List.toArray
00:00:29 verbose #593 > >         |> String
00:00:29 verbose #594 > >
00:00:29 verbose #595 > >     "G",
00:00:29 verbose #596 > >     fun input ->
00:00:29 verbose #597 > >         input
00:00:29 verbose #598 > >         |> Seq.fold (fun (set, acc) x -> if Set.contains x set then set, acc
00:00:29 verbose #599 > > else set.Add x, x :: acc) (Set.empty, [[]])
00:00:29 verbose #600 > >         |> snd
00:00:29 verbose #601 > >         |> List.toArray
00:00:29 verbose #602 > >         |> Array.rev
00:00:29 verbose #603 > >         |> String
00:00:29 verbose #604 > >
00:00:29 verbose #605 > >     "H",
00:00:29 verbose #606 > >     fun input ->
00:00:29 verbose #607 > >         input
00:00:29 verbose #608 > >         |> Seq.toList
00:00:29 verbose #609 > >         |> fun list ->
00:00:29 verbose #610 > >             let rec loop set = function
00:00:29 verbose #611 > >                 | head :: tail when Set.contains head set -> loop set tail
00:00:29 verbose #612 > >                 | head :: tail -> (loop (set.Add head) tail) @ [[ head ]]
00:00:29 verbose #613 > >                 | [[]] -> [[]]
00:00:29 verbose #614 > >             loop Set.empty list
00:00:29 verbose #615 > >             |> List.rev
00:00:29 verbose #616 > >         |> List.toArray
00:00:29 verbose #617 > >         |> String
00:00:29 verbose #618 > >
00:00:29 verbose #619 > >     "I",
00:00:29 verbose #620 > >     fun input ->
00:00:29 verbose #621 > >         input
00:00:29 verbose #622 > >         |> Seq.toList
00:00:29 verbose #623 > >         |> fun list ->
00:00:29 verbose #624 > >             let rec loop set = function
00:00:29 verbose #625 > >                 | head :: tail when Set.contains head set -> loop set tail
00:00:29 verbose #626 > >                 | head :: tail -> loop (set.Add head) tail |> Array.append [[|
00:00:29 verbose #627 > > head |]]
00:00:29 verbose #628 > >                 | [[]] -> [[||]]
00:00:29 verbose #629 > >             loop Set.empty list
00:00:29 verbose #630 > >         |> String
00:00:29 verbose #631 > >
00:00:29 verbose #632 > >     "J",
00:00:29 verbose #633 > >     fun input ->
00:00:29 verbose #634 > >         input
00:00:29 verbose #635 > >         |> Seq.toList
00:00:29 verbose #636 > >         |> fun list ->
00:00:29 verbose #637 > >             let rec loop set = function
00:00:29 verbose #638 > >                 | head :: tail when Set.contains head set -> loop set tail
00:00:29 verbose #639 > >                 | head :: tail -> head :: loop (set.Add head) tail
00:00:29 verbose #640 > >                 | [[]] -> [[]]
00:00:29 verbose #641 > >             loop Set.empty list
00:00:29 verbose #642 > >         |> List.toArray
00:00:29 verbose #643 > >         |> String
00:00:29 verbose #644 > >
00:00:29 verbose #645 > >     "K",
00:00:29 verbose #646 > >     fun input ->
00:00:29 verbose #647 > >         input
00:00:29 verbose #648 > >         |> Seq.distinct
00:00:29 verbose #649 > >         |> Seq.toArray
00:00:29 verbose #650 > >         |> String
00:00:29 verbose #651 > > ]]
00:00:29 verbose #652 > > let testCases = seq {
00:00:29 verbose #653 > >     "abc", "abc"
00:00:29 verbose #654 > >     "accabb", "acb"
00:00:29 verbose #655 > >     "pprrqqpp", "prq"
00:00:29 verbose #656 > >
00:00:29 verbose #657 > > "aaaaaaaaaaaaaaccccccabbbbbbbaaacccbbbaaccccccccccacbbbbbbbbbbbbbcccccccbbbbbbbb
00:00:29 verbose #658 > > ", "acb"
00:00:29 verbose #659 > > }
00:00:29 verbose #660 > > let rec uniqueLettersTests = runAll (nameof uniqueLettersTests) _count solutions
00:00:29 verbose #661 > > testCases
00:00:29 verbose #662 > > uniqueLettersTests
00:00:29 verbose #663 > > |> sortResultList
00:00:40 verbose #664 > >
00:00:40 verbose #665 > > ╭─[ 11.08s - stdout ]──────────────────────────────────────────────────────────╮
00:00:40 verbose #666 > > │                                                                              │
00:00:40 verbose #667 > > │                                                                              │
00:00:40 verbose #668 > > │ Test: uniqueLettersTests                                                     │
00:00:40 verbose #669 > > │                                                                              │
00:00:40 verbose #670 > > │ Solution: abc                                                                │
00:00:40 verbose #671 > > │ Test case 1. A. Time: 6L                                                     │
00:00:40 verbose #672 > > │ Test case 2. B. Time: 5L                                                     │
00:00:40 verbose #673 > > │ Test case 3. C. Time: 6L                                                     │
00:00:40 verbose #674 > > │ Test case 4. D. Time: 2L                                                     │
00:00:40 verbose #675 > > │ Test case 5. E. Time: 2L                                                     │
00:00:40 verbose #676 > > │ Test case 6. F. Time: 2L                                                     │
00:00:40 verbose #677 > > │ Test case 7. G. Time: 2L                                                     │
00:00:40 verbose #678 > > │ Test case 8. H. Time: 3L                                                     │
00:00:40 verbose #679 > > │ Test case 9. I. Time: 2L                                                     │
00:00:40 verbose #680 > > │ Test case 10. J. Time: 1L                                                    │
00:00:40 verbose #681 > > │ Test case 11. K. Time: 3L                                                    │
00:00:40 verbose #682 > > │                                                                              │
00:00:40 verbose #683 > > │ Solution: accabb                                                             │
00:00:40 verbose #684 > > │ Test case 1. A. Time: 1L                                                     │
00:00:40 verbose #685 > > │ Test case 2. B. Time: 2L                                                     │
00:00:40 verbose #686 > > │ Test case 3. C. Time: 2L                                                     │
00:00:40 verbose #687 > > │ Test case 4. D. Time: 1L                                                     │
00:00:40 verbose #688 > > │ Test case 5. E. Time: 1L                                                     │
00:00:40 verbose #689 > > │ Test case 6. F. Time: 1L                                                     │
00:00:40 verbose #690 > > │ Test case 7. G. Time: 1L                                                     │
00:00:40 verbose #691 > > │ Test case 8. H. Time: 1L                                                     │
00:00:40 verbose #692 > > │ Test case 9. I. Time: 1L                                                     │
00:00:40 verbose #693 > > │ Test case 10. J. Time: 1L                                                    │
00:00:40 verbose #694 > > │ Test case 11. K. Time: 1L                                                    │
00:00:40 verbose #695 > > │                                                                              │
00:00:40 verbose #696 > > │ Solution: pprrqqpp                                                           │
00:00:40 verbose #697 > > │ Test case 1. A. Time: 1L                                                     │
00:00:40 verbose #698 > > │ Test case 2. B. Time: 1L                                                     │
00:00:40 verbose #699 > > │ Test case 3. C. Time: 2L                                                     │
00:00:40 verbose #700 > > │ Test case 4. D. Time: 1L                                                     │
00:00:40 verbose #701 > > │ Test case 5. E. Time: 1L                                                     │
00:00:40 verbose #702 > > │ Test case 6. F. Time: 1L                                                     │
00:00:40 verbose #703 > > │ Test case 7. G. Time: 1L                                                     │
00:00:40 verbose #704 > > │ Test case 8. H. Time: 1L                                                     │
00:00:40 verbose #705 > > │ Test case 9. I. Time: 0L                                                     │
00:00:40 verbose #706 > > │ Test case 10. J. Time: 1L                                                    │
00:00:40 verbose #707 > > │ Test case 11. K. Time: 0L                                                    │
00:00:40 verbose #708 > > │                                                                              │
00:00:40 verbose #709 > > │ Solution:                                                                    │
00:00:40 verbose #710 > > │ aaaaaaaaaaaaaaccccccabbbbbbbaaacccbbbaaccccccccccacbbbbbbbbbbbbbcccccccbbbbb │
00:00:40 verbose #711 > > │ bbb                                                                          │
00:00:40 verbose #712 > > │ Test case 1. A. Time: 16L                                                    │
00:00:40 verbose #713 > > │ Test case 2. B. Time: 10L                                                    │
00:00:40 verbose #714 > > │ Test case 3. C. Time: 13L                                                    │
00:00:40 verbose #715 > > │ Test case 4. D. Time: 7L                                                     │
00:00:40 verbose #716 > > │ Test case 5. E. Time: 11L                                                    │
00:00:40 verbose #717 > > │ Test case 6. F. Time: 9L                                                     │
00:00:40 verbose #718 > > │ Test case 7. G. Time: 8L                                                     │
00:00:40 verbose #719 > > │ Test case 8. H. Time: 7L                                                     │
00:00:40 verbose #720 > > │ Test case 9. I. Time: 6L                                                     │
00:00:40 verbose #721 > > │ Test case 10. J. Time: 7L                                                    │
00:00:40 verbose #722 > > │ Test case 11. K. Time: 3L                                                    │
00:00:40 verbose #723 > > │                                                                              │
00:00:40 verbose #724 > > │ Input                                                                        │
00:00:40 verbose #725 > > │ | Expected	| Result	| Best                                                       │
00:00:40 verbose #726 > > │ ---                                                                          │
00:00:40 verbose #727 > > │ | ---     	| ---   	| ---                                                        │
00:00:40 verbose #728 > > │ abc                                                                          │
00:00:40 verbose #729 > > │ | abc     	| abc   	| (10, 1)                                                    │
00:00:40 verbose #730 > > │ accabb                                                                       │
00:00:40 verbose #731 > > │ | acb     	| acb   	| (1, 1)                                                     │
00:00:40 verbose #732 > > │ pprrqqpp                                                                     │
00:00:40 verbose #733 > > │ | prq     	| prq   	| (9, 0)                                                     │
00:00:40 verbose #734 > > │ aaaaaaaaaaaaaaccccccabbbbbbbaaacccbbbaaccccccccccacbbbbbbbbbbbbbcccccccbbbbb │
00:00:40 verbose #735 > > │ bbb	| acb     	| acb   	| (11, 3)                                                  │
00:00:40 verbose #736 > > │                                                                              │
00:00:40 verbose #737 > > │ Average Ranking                                                              │
00:00:40 verbose #738 > > │ Test case 11. Average Time: 1L                                               │
00:00:40 verbose #739 > > │ Test case 4. Average Time: 2L                                                │
00:00:40 verbose #740 > > │ Test case 9. Average Time: 2L                                                │
00:00:40 verbose #741 > > │ Test case 10. Average Time: 2L                                               │
00:00:40 verbose #742 > > │ Test case 5. Average Time: 3L                                                │
00:00:40 verbose #743 > > │ Test case 6. Average Time: 3L                                                │
00:00:40 verbose #744 > > │ Test case 7. Average Time: 3L                                                │
00:00:40 verbose #745 > > │ Test case 8. Average Time: 3L                                                │
00:00:40 verbose #746 > > │ Test case 2. Average Time: 4L                                                │
00:00:40 verbose #747 > > │ Test case 3. Average Time: 5L                                                │
00:00:40 verbose #748 > > │ Test case 1. Average Time: 6L                                                │
00:00:40 verbose #749 > > │                                                                              │
00:00:40 verbose #750 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:40 verbose #751 > >
00:00:40 verbose #752 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:40 verbose #753 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:40 verbose #754 > > │ ## rotateStringsTests                                                        │
00:00:40 verbose #755 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:40 verbose #756 > >
00:00:40 verbose #757 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:40 verbose #758 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:40 verbose #759 > > │ https://www.hackerrank.com/challenges/rotate-string/forum                    │
00:00:40 verbose #760 > > │                                                                              │
00:00:40 verbose #761 > > │ Test: RotateStrings                                                          │
00:00:40 verbose #762 > > │                                                                              │
00:00:40 verbose #763 > > │ Solution: abc                                                                │
00:00:40 verbose #764 > > │ Test case 1. A. Time: 1842L                                                  │
00:00:40 verbose #765 > > │ Test case 2. B. Time: 1846L                                                  │
00:00:40 verbose #766 > > │ Test case 3. C. Time: 1936L                                                  │
00:00:40 verbose #767 > > │ Test case 4. CA. Time: 2224L                                                 │
00:00:40 verbose #768 > > │ Test case 5. CB. Time: 2329L                                                 │
00:00:40 verbose #769 > > │ Test case 6. D. Time: 2474L                                                  │
00:00:40 verbose #770 > > │ Test case 7. E. Time: 1664L                                                  │
00:00:40 verbose #771 > > │ Test case 8. F. Time: 1517L                                                  │
00:00:40 verbose #772 > > │ Test case 9. FA. Time: 1651L                                                 │
00:00:40 verbose #773 > > │ Test case 10. FB. Time: 3764L                                                │
00:00:40 verbose #774 > > │ Test case 11. FC. Time: 5415L                                                │
00:00:40 verbose #775 > > │                                                                              │
00:00:40 verbose #776 > > │ Solution: abcde                                                              │
00:00:40 verbose #777 > > │ Test case 1. A. Time: 3356L                                                  │
00:00:40 verbose #778 > > │ Test case 2. B. Time: 2592L                                                  │
00:00:40 verbose #779 > > │ Test case 3. C. Time: 2346L                                                  │
00:00:40 verbose #780 > > │ Test case 4. CA. Time: 2997L                                                 │
00:00:40 verbose #781 > > │ Test case 5. CB. Time: 3061L                                                 │
00:00:40 verbose #782 > > │ Test case 6. D. Time: 4051L                                                  │
00:00:40 verbose #783 > > │ Test case 7. E. Time: 1905L                                                  │
00:00:40 verbose #784 > > │ Test case 8. F. Time: 1771L                                                  │
00:00:40 verbose #785 > > │ Test case 9. FA. Time: 2175L                                                 │
00:00:40 verbose #786 > > │ Test case 10. FB. Time: 3275L                                                │
00:00:40 verbose #787 > > │ Test case 11. FC. Time: 5266L                                                │
00:00:40 verbose #788 > > │                                                                              │
00:00:40 verbose #789 > > │ Solution: abcdefghi                                                          │
00:00:40 verbose #790 > > │ Test case 1. A. Time: 4492L                                                  │
00:00:40 verbose #791 > > │ Test case 2. B. Time: 3526L                                                  │
00:00:40 verbose #792 > > │ Test case 3. C. Time: 3583L                                                  │
00:00:40 verbose #793 > > │ Test case 4. CA. Time: 3711L                                                 │
00:00:40 verbose #794 > > │ Test case 5. CB. Time: 4783L                                                 │
00:00:40 verbose #795 > > │ Test case 6. D. Time: 7557L                                                  │
00:00:40 verbose #796 > > │ Test case 7. E. Time: 3452L                                                  │
00:00:40 verbose #797 > > │ Test case 8. F. Time: 3050L                                                  │
00:00:40 verbose #798 > > │ Test case 9. FA. Time: 3275L                                                 │
00:00:40 verbose #799 > > │ Test case 10. FB. Time: 4635L                                                │
00:00:40 verbose #800 > > │ Test case 11. FC. Time: 5616L                                                │
00:00:40 verbose #801 > > │                                                                              │
00:00:40 verbose #802 > > │ Solution: abab                                                               │
00:00:40 verbose #803 > > │ Test case 1. A. Time: 2093L                                                  │
00:00:40 verbose #804 > > │ Test case 2. B. Time: 1843L                                                  │
00:00:40 verbose #805 > > │ Test case 3. C. Time: 1746L                                                  │
00:00:40 verbose #806 > > │ Test case 4. CA. Time: 2085L                                                 │
00:00:40 verbose #807 > > │ Test case 5. CB. Time: 2139L                                                 │
00:00:40 verbose #808 > > │ Test case 6. D. Time: 2095L                                                  │
00:00:40 verbose #809 > > │ Test case 7. E. Time: 1723L                                                  │
00:00:40 verbose #810 > > │ Test case 8. F. Time: 1558L                                                  │
00:00:40 verbose #811 > > │ Test case 9. FA. Time: 1620L                                                 │
00:00:40 verbose #812 > > │ Test case 10. FB. Time: 2319L                                                │
00:00:40 verbose #813 > > │ Test case 11. FC. Time: 3918L                                                │
00:00:40 verbose #814 > > │                                                                              │
00:00:40 verbose #815 > > │ Solution: aa                                                                 │
00:00:40 verbose #816 > > │ Test case 1. A. Time: 1107L                                                  │
00:00:40 verbose #817 > > │ Test case 2. B. Time: 1241L                                                  │
00:00:40 verbose #818 > > │ Test case 3. C. Time: 1183L                                                  │
00:00:40 verbose #819 > > │ Test case 4. CA. Time: 1563L                                                 │
00:00:40 verbose #820 > > │ Test case 5. CB. Time: 1525L                                                 │
00:00:40 verbose #821 > > │ Test case 6. D. Time: 1591L                                                  │
00:00:40 verbose #822 > > │ Test case 7. E. Time: 1327L                                                  │
00:00:40 verbose #823 > > │ Test case 8. F. Time: 1151L                                                  │
00:00:40 verbose #824 > > │ Test case 9. FA. Time: 1180L                                                 │
00:00:40 verbose #825 > > │ Test case 10. FB. Time: 1733L                                                │
00:00:40 verbose #826 > > │ Test case 11. FC. Time: 2817L                                                │
00:00:40 verbose #827 > > │                                                                              │
00:00:40 verbose #828 > > │ Solution: z                                                                  │
00:00:40 verbose #829 > > │ Test case 1. A. Time: 816L                                                   │
00:00:40 verbose #830 > > │ Test case 2. B. Time: 745L                                                   │
00:00:40 verbose #831 > > │ Test case 3. C. Time: 928L                                                   │
00:00:40 verbose #832 > > │ Test case 4. CA. Time: 1375L                                                 │
00:00:40 verbose #833 > > │ Test case 5. CB. Time: 1029L                                                 │
00:00:40 verbose #834 > > │ Test case 6. D. Time: 852L                                                   │
00:00:40 verbose #835 > > │ Test case 7. E. Time: 712L                                                   │
00:00:40 verbose #836 > > │ Test case 8. F. Time: 263L                                                   │
00:00:40 verbose #837 > > │ Test case 9. FA. Time: 232L                                                  │
00:00:40 verbose #838 > > │ Test case 10. FB. Time: 773L                                                 │
00:00:40 verbose #839 > > │ Test case 11. FC. Time: 1789L                                                │
00:00:40 verbose #840 > > │                                                                              │
00:00:40 verbose #841 > > │ Input           | Expected                                                   │
00:00:40 verbose #842 > > │                                                                              │
00:00:40 verbose #843 > > │ | Result                                                                     │
00:00:40 verbose #844 > > │                                                                              │
00:00:40 verbose #845 > > │ | Best                                                                       │
00:00:40 verbose #846 > > │ ---             | ---                                                        │
00:00:40 verbose #847 > > │                                                                              │
00:00:40 verbose #848 > > │ | ---                                                                        │
00:00:40 verbose #849 > > │                                                                              │
00:00:40 verbose #850 > > │ | ---                                                                        │
00:00:40 verbose #851 > > │ abc             | bca cab abc                                                │
00:00:40 verbose #852 > > │                                                                              │
00:00:40 verbose #853 > > │ | bca cab abc                                                                │
00:00:40 verbose #854 > > │                                                                              │
00:00:40 verbose #855 > > │ | (8, 1517)                                                                  │
00:00:40 verbose #856 > > │ abcde           | bcdea cdeab deabc eabcd abcde                              │
00:00:40 verbose #857 > > │ | bcdea cdeab deabc eabcd abcde                                              │
00:00:40 verbose #858 > > │ | (8, 1771)                                                                  │
00:00:40 verbose #859 > > │ abcdefghi       | bcdefghia cdefghiab defghiabc efghiabcd fghiabcde          │
00:00:40 verbose #860 > > │ ghiabcdef hiabcdefg iabcdefgh abcdefghi       | bcdefghia cdefghiab          │
00:00:40 verbose #861 > > │ defghiabc efghiabcd fghiabcde ghiabcdef hiabcdefg iabcdefgh abcdefghi        │
00:00:40 verbose #862 > > │ | (8, 3050)                                                                  │
00:00:40 verbose #863 > > │ abab            | baba abab baba abab                                        │
00:00:40 verbose #864 > > │                                                                              │
00:00:40 verbose #865 > > │ | baba abab baba abab                                                        │
00:00:40 verbose #866 > > │                                                                              │
00:00:40 verbose #867 > > │ | (8, 1558)                                                                  │
00:00:40 verbose #868 > > │ aa              | aa aa                                                      │
00:00:40 verbose #869 > > │                                                                              │
00:00:40 verbose #870 > > │ | aa aa                                                                      │
00:00:40 verbose #871 > > │                                                                              │
00:00:40 verbose #872 > > │ | (1, 1107)                                                                  │
00:00:40 verbose #873 > > │ z               | z                                                          │
00:00:40 verbose #874 > > │                                                                              │
00:00:40 verbose #875 > > │ | z                                                                          │
00:00:40 verbose #876 > > │                                                                              │
00:00:40 verbose #877 > > │ | (9, 232)                                                                   │
00:00:40 verbose #878 > > │                                                                              │
00:00:40 verbose #879 > > │ Averages                                                                     │
00:00:40 verbose #880 > > │ Test case 1. Average Time: 2284L                                             │
00:00:40 verbose #881 > > │ Test case 2. Average Time: 1965L                                             │
00:00:40 verbose #882 > > │ Test case 3. Average Time: 1953L                                             │
00:00:40 verbose #883 > > │ Test case 4. Average Time: 2325L                                             │
00:00:40 verbose #884 > > │ Test case 5. Average Time: 2477L                                             │
00:00:40 verbose #885 > > │ Test case 6. Average Time: 3103L                                             │
00:00:40 verbose #886 > > │ Test case 7. Average Time: 1797L                                             │
00:00:40 verbose #887 > > │ Test case 8. Average Time: 1551L                                             │
00:00:40 verbose #888 > > │ Test case 9. Average Time: 1688L                                             │
00:00:40 verbose #889 > > │ Test case 10. Average Time: 2749L                                            │
00:00:40 verbose #890 > > │ Test case 11. Average Time: 4136L                                            │
00:00:40 verbose #891 > > │                                                                              │
00:00:40 verbose #892 > > │ Ranking                                                                      │
00:00:40 verbose #893 > > │ Test case 11. Average Time: 4136L                                            │
00:00:40 verbose #894 > > │ Test case 6. Average Time: 3103L                                             │
00:00:40 verbose #895 > > │ Test case 10. Average Time: 2749L                                            │
00:00:40 verbose #896 > > │ Test case 5. Average Time: 2477L                                             │
00:00:40 verbose #897 > > │ Test case 4. Average Time: 2325L                                             │
00:00:40 verbose #898 > > │ Test case 1. Average Time: 2284L                                             │
00:00:40 verbose #899 > > │ Test case 2. Average Time: 1965L                                             │
00:00:40 verbose #900 > > │ Test case 3. Average Time: 1953L                                             │
00:00:40 verbose #901 > > │ Test case 7. Average Time: 1797L                                             │
00:00:40 verbose #902 > > │ Test case 9. Average Time: 1688L                                             │
00:00:40 verbose #903 > > │ Test case 8. Average Time: 1551L                                             │
00:00:40 verbose #904 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:40 verbose #905 > >
00:00:40 verbose #906 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:40 verbose #907 > > //// test
00:00:40 verbose #908 > >
00:00:40 verbose #909 > > let solutions = [[
00:00:40 verbose #910 > >     "A",
00:00:40 verbose #911 > >     fun (input: string) ->
00:00:40 verbose #912 > >         let resultList =
00:00:40 verbose #913 > >             List.fold (fun acc x ->
00:00:40 verbose #914 > >                 let rotate (text: string) (letter: string) = (text |>
00:00:40 verbose #915 > > SpiralSm.slice 1 (input.Length - 1)) + letter
00:00:40 verbose #916 > >                 [[ rotate (if acc.IsEmpty then input else acc.Head) (string x)
00:00:40 verbose #917 > > ]] @ acc
00:00:40 verbose #918 > >             ) [[]] (Seq.toList input)
00:00:40 verbose #919 > >
00:00:40 verbose #920 > >         (resultList, "")
00:00:40 verbose #921 > >         ||> List.foldBack (fun acc x -> x + acc + " ")
00:00:40 verbose #922 > >         |> _.TrimEnd()
00:00:40 verbose #923 > >
00:00:40 verbose #924 > >     "B",
00:00:40 verbose #925 > >     fun input ->
00:00:40 verbose #926 > >         input
00:00:40 verbose #927 > >         |> Seq.toList
00:00:40 verbose #928 > >         |> List.fold (fun (acc: string list) letter ->
00:00:40 verbose #929 > >             let last =
00:00:40 verbose #930 > >                 if acc.IsEmpty
00:00:40 verbose #931 > >                 then input
00:00:40 verbose #932 > >                 else acc.Head
00:00:40 verbose #933 > >
00:00:40 verbose #934 > >             let item = last.[[1 .. input.Length - 1]] + string letter
00:00:40 verbose #935 > >
00:00:40 verbose #936 > >             item :: acc
00:00:40 verbose #937 > >         ) [[]]
00:00:40 verbose #938 > >         |> List.rev
00:00:40 verbose #939 > >         |> SpiralSm.concat " "
00:00:40 verbose #940 > >
00:00:40 verbose #941 > >     "C",
00:00:40 verbose #942 > >     fun input ->
00:00:40 verbose #943 > >         input
00:00:40 verbose #944 > >         |> Seq.toList
00:00:40 verbose #945 > >         |> List.fold (fun (acc: string list) letter -> acc.Head.[[ 1 ..
00:00:40 verbose #946 > > input.Length - 1 ]] + string letter :: acc) [[ input ]]
00:00:40 verbose #947 > >         |> List.rev
00:00:40 verbose #948 > >         |> List.skip 1
00:00:40 verbose #949 > >         |> SpiralSm.concat " "
00:00:40 verbose #950 > >
00:00:40 verbose #951 > >     "CA",
00:00:40 verbose #952 > >     fun input ->
00:00:40 verbose #953 > >         input
00:00:40 verbose #954 > >         |> Seq.fold (fun (acc: string list) letter -> acc.Head.[[ 1 ..
00:00:40 verbose #955 > > input.Length - 1 ]] + string letter :: acc) [[ input ]]
00:00:40 verbose #956 > >         |> Seq.rev
00:00:40 verbose #957 > >         |> Seq.skip 1
00:00:40 verbose #958 > >         |> SpiralSm.concat " "
00:00:40 verbose #959 > >
00:00:40 verbose #960 > >     "CB",
00:00:40 verbose #961 > >     fun input ->
00:00:40 verbose #962 > >         input
00:00:40 verbose #963 > >         |> Seq.toArray
00:00:40 verbose #964 > >         |> Array.fold (fun (acc: string[[]]) letter -> acc |> Array.append [[|
00:00:40 verbose #965 > > acc.[[0]].[[ 1 .. input.Length - 1 ]] + string letter |]]) [[| input |]]
00:00:40 verbose #966 > >         |> Array.rev
00:00:40 verbose #967 > >         |> Array.skip 1
00:00:40 verbose #968 > >         |> SpiralSm.concat " "
00:00:40 verbose #969 > >
00:00:40 verbose #970 > >     "D",
00:00:40 verbose #971 > >     fun input ->
00:00:40 verbose #972 > >         input
00:00:40 verbose #973 > >         |> Seq.toList
00:00:40 verbose #974 > >         |> fun list ->
00:00:40 verbose #975 > >             let rec loop (acc: char list list) = function
00:00:40 verbose #976 > >                 | _ when acc.Length = list.Length -> acc
00:00:40 verbose #977 > >                 | head :: tail ->
00:00:40 verbose #978 > >                     let item = tail @ [[ head ]]
00:00:40 verbose #979 > >                     loop (item :: acc) item
00:00:40 verbose #980 > >                 | [[]] -> [[]]
00:00:40 verbose #981 > >             loop [[]] list
00:00:40 verbose #982 > >         |> List.rev
00:00:40 verbose #983 > >         |> List.map (List.toArray >> String)
00:00:40 verbose #984 > >         |> SpiralSm.concat " "
00:00:40 verbose #985 > >
00:00:40 verbose #986 > >     "E",
00:00:40 verbose #987 > >     fun input ->
00:00:40 verbose #988 > >         input
00:00:40 verbose #989 > >         |> Seq.toList
00:00:40 verbose #990 > >         |> fun list ->
00:00:40 verbose #991 > >             let rec loop (last: string) = function
00:00:40 verbose #992 > >                 | head :: tail ->
00:00:40 verbose #993 > >                     let item = last.[[1 .. input.Length - 1]] + string head
00:00:40 verbose #994 > >                     item :: loop item tail
00:00:40 verbose #995 > >                 | [[]] -> [[]]
00:00:40 verbose #996 > >             loop input list
00:00:40 verbose #997 > >         |> SpiralSm.concat " "
00:00:40 verbose #998 > >
00:00:40 verbose #999 > >     "F",
00:00:40 verbose #1000 > >     fun input ->
00:00:40 verbose #1001 > >         Array.singleton 0
00:00:40 verbose #1002 > >         |> Array.append [[| 1 .. input.Length - 1 |]]
00:00:40 verbose #1003 > >         |> Array.map (fun i -> input.[[ i .. ]] + input.[[ .. i - 1 ]])
00:00:40 verbose #1004 > >         |> SpiralSm.concat " "
00:00:40 verbose #1005 > >
00:00:40 verbose #1006 > >     "FA",
00:00:40 verbose #1007 > >     fun input ->
00:00:40 verbose #1008 > >         List.singleton 0
00:00:40 verbose #1009 > >         |> List.append [[ 1 .. input.Length - 1 ]]
00:00:40 verbose #1010 > >         |> List.map (fun i -> input.[[ i .. ]] + input.[[ .. i - 1 ]])
00:00:40 verbose #1011 > >         |> SpiralSm.concat " "
00:00:40 verbose #1012 > >
00:00:40 verbose #1013 > >     "FB",
00:00:40 verbose #1014 > >     fun input ->
00:00:40 verbose #1015 > >         Seq.singleton 0
00:00:40 verbose #1016 > >         |> Seq.append (seq { 1 .. input.Length - 1 })
00:00:40 verbose #1017 > >         |> Seq.map (fun i -> input.[[ i .. ]] + input.[[ .. i - 1 ]])
00:00:40 verbose #1018 > >         |> SpiralSm.concat " "
00:00:40 verbose #1019 > >
00:00:40 verbose #1020 > >     "FC",
00:00:40 verbose #1021 > >     fun input ->
00:00:40 verbose #1022 > >         Array.singleton 0
00:00:40 verbose #1023 > >         |> Array.append [[| 1 .. input.Length - 1 |]]
00:00:40 verbose #1024 > >         |> Array.Parallel.map (fun i -> input.[[ i .. ]] + input.[[ .. i - 1 ]])
00:00:40 verbose #1025 > >         |> SpiralSm.concat " "
00:00:40 verbose #1026 > > ]]
00:00:40 verbose #1027 > > let testCases = seq {
00:00:40 verbose #1028 > >     "abc", "bca cab abc"
00:00:40 verbose #1029 > >     "abcde", "bcdea cdeab deabc eabcd abcde"
00:00:40 verbose #1030 > >     "abcdefghi", "bcdefghia cdefghiab defghiabc efghiabcd fghiabcde ghiabcdef
00:00:40 verbose #1031 > > hiabcdefg iabcdefgh abcdefghi"
00:00:40 verbose #1032 > >     "abab", "baba abab baba abab"
00:00:40 verbose #1033 > >     "aa", "aa aa"
00:00:40 verbose #1034 > >     "z", "z"
00:00:40 verbose #1035 > > }
00:00:40 verbose #1036 > > let rec rotateStringsTests = runAll (nameof rotateStringsTests) _count solutions
00:00:40 verbose #1037 > > testCases
00:00:40 verbose #1038 > > rotateStringsTests
00:00:40 verbose #1039 > > |> sortResultList
00:00:54 verbose #1040 > >
00:00:54 verbose #1041 > > ╭─[ 14.40s - stdout ]──────────────────────────────────────────────────────────╮
00:00:54 verbose #1042 > > │                                                                              │
00:00:54 verbose #1043 > > │                                                                              │
00:00:54 verbose #1044 > > │ Test: rotateStringsTests                                                     │
00:00:54 verbose #1045 > > │                                                                              │
00:00:54 verbose #1046 > > │ Solution: abc                                                                │
00:00:54 verbose #1047 > > │ Test case 1. A. Time: 2L                                                     │
00:00:54 verbose #1048 > > │ Test case 2. B. Time: 2L                                                     │
00:00:54 verbose #1049 > > │ Test case 3. C. Time: 1L                                                     │
00:00:54 verbose #1050 > > │ Test case 4. CA. Time: 4L                                                    │
00:00:54 verbose #1051 > > │ Test case 5. CB. Time: 2L                                                    │
00:00:54 verbose #1052 > > │ Test case 6. D. Time: 2L                                                     │
00:00:54 verbose #1053 > > │ Test case 7. E. Time: 1L                                                     │
00:00:54 verbose #1054 > > │ Test case 8. F. Time: 2L                                                     │
00:00:54 verbose #1055 > > │ Test case 9. FA. Time: 2L                                                    │
00:00:54 verbose #1056 > > │ Test case 10. FB. Time: 7L                                                   │
00:00:54 verbose #1057 > > │ Test case 11. FC. Time: 12L                                                  │
00:00:54 verbose #1058 > > │                                                                              │
00:00:54 verbose #1059 > > │ Solution: abcde                                                              │
00:00:54 verbose #1060 > > │ Test case 1. A. Time: 3L                                                     │
00:00:54 verbose #1061 > > │ Test case 2. B. Time: 1L                                                     │
00:00:54 verbose #1062 > > │ Test case 3. C. Time: 1L                                                     │
00:00:54 verbose #1063 > > │ Test case 4. CA. Time: 1L                                                    │
00:00:54 verbose #1064 > > │ Test case 5. CB. Time: 1L                                                    │
00:00:54 verbose #1065 > > │ Test case 6. D. Time: 4L                                                     │
00:00:54 verbose #1066 > > │ Test case 7. E. Time: 1L                                                     │
00:00:54 verbose #1067 > > │ Test case 8. F. Time: 0L                                                     │
00:00:54 verbose #1068 > > │ Test case 9. FA. Time: 1L                                                    │
00:00:54 verbose #1069 > > │ Test case 10. FB. Time: 4L                                                   │
00:00:54 verbose #1070 > > │ Test case 11. FC. Time: 5L                                                   │
00:00:54 verbose #1071 > > │                                                                              │
00:00:54 verbose #1072 > > │ Solution: abcdefghi                                                          │
00:00:54 verbose #1073 > > │ Test case 1. A. Time: 5L                                                     │
00:00:54 verbose #1074 > > │ Test case 2. B. Time: 1L                                                     │
00:00:54 verbose #1075 > > │ Test case 3. C. Time: 3L                                                     │
00:00:54 verbose #1076 > > │ Test case 4. CA. Time: 1L                                                    │
00:00:54 verbose #1077 > > │ Test case 5. CB. Time: 4L                                                    │
00:00:54 verbose #1078 > > │ Test case 6. D. Time: 7L                                                     │
00:00:54 verbose #1079 > > │ Test case 7. E. Time: 2L                                                     │
00:00:54 verbose #1080 > > │ Test case 8. F. Time: 0L                                                     │
00:00:54 verbose #1081 > > │ Test case 9. FA. Time: 3L                                                    │
00:00:54 verbose #1082 > > │ Test case 10. FB. Time: 2L                                                   │
00:00:54 verbose #1083 > > │ Test case 11. FC. Time: 5L                                                   │
00:00:54 verbose #1084 > > │                                                                              │
00:00:54 verbose #1085 > > │ Solution: abab                                                               │
00:00:54 verbose #1086 > > │ Test case 1. A. Time: 0L                                                     │
00:00:54 verbose #1087 > > │ Test case 2. B. Time: 1L                                                     │
00:00:54 verbose #1088 > > │ Test case 3. C. Time: 1L                                                     │
00:00:54 verbose #1089 > > │ Test case 4. CA. Time: 1L                                                    │
00:00:54 verbose #1090 > > │ Test case 5. CB. Time: 1L                                                    │
00:00:54 verbose #1091 > > │ Test case 6. D. Time: 1L                                                     │
00:00:54 verbose #1092 > > │ Test case 7. E. Time: 1L                                                     │
00:00:54 verbose #1093 > > │ Test case 8. F. Time: 0L                                                     │
00:00:54 verbose #1094 > > │ Test case 9. FA. Time: 0L                                                    │
00:00:54 verbose #1095 > > │ Test case 10. FB. Time: 1L                                                   │
00:00:54 verbose #1096 > > │ Test case 11. FC. Time: 4L                                                   │
00:00:54 verbose #1097 > > │                                                                              │
00:00:54 verbose #1098 > > │ Solution: aa                                                                 │
00:00:54 verbose #1099 > > │ Test case 1. A. Time: 0L                                                     │
00:00:54 verbose #1100 > > │ Test case 2. B. Time: 0L                                                     │
00:00:54 verbose #1101 > > │ Test case 3. C. Time: 0L                                                     │
00:00:54 verbose #1102 > > │ Test case 4. CA. Time: 0L                                                    │
00:00:54 verbose #1103 > > │ Test case 5. CB. Time: 0L                                                    │
00:00:54 verbose #1104 > > │ Test case 6. D. Time: 0L                                                     │
00:00:54 verbose #1105 > > │ Test case 7. E. Time: 0L                                                     │
00:00:54 verbose #1106 > > │ Test case 8. F. Time: 0L                                                     │
00:00:54 verbose #1107 > > │ Test case 9. FA. Time: 0L                                                    │
00:00:54 verbose #1108 > > │ Test case 10. FB. Time: 0L                                                   │
00:00:54 verbose #1109 > > │ Test case 11. FC. Time: 4L                                                   │
00:00:54 verbose #1110 > > │                                                                              │
00:00:54 verbose #1111 > > │ Solution: z                                                                  │
00:00:54 verbose #1112 > > │ Test case 1. A. Time: 0L                                                     │
00:00:54 verbose #1113 > > │ Test case 2. B. Time: 0L                                                     │
00:00:54 verbose #1114 > > │ Test case 3. C. Time: 0L                                                     │
00:00:54 verbose #1115 > > │ Test case 4. CA. Time: 0L                                                    │
00:00:54 verbose #1116 > > │ Test case 5. CB. Time: 0L                                                    │
00:00:54 verbose #1117 > > │ Test case 6. D. Time: 0L                                                     │
00:00:54 verbose #1118 > > │ Test case 7. E. Time: 0L                                                     │
00:00:54 verbose #1119 > > │ Test case 8. F. Time: 0L                                                     │
00:00:54 verbose #1120 > > │ Test case 9. FA. Time: 0L                                                    │
00:00:54 verbose #1121 > > │ Test case 10. FB. Time: 0L                                                   │
00:00:54 verbose #1122 > > │ Test case 11. FC. Time: 4L                                                   │
00:00:54 verbose #1123 > > │                                                                              │
00:00:54 verbose #1124 > > │ Input    	| Expected                                                           │
00:00:54 verbose #1125 > > │                                                                              │
00:00:54 verbose #1126 > > │ | Result                                                                     │
00:00:54 verbose #1127 > > │                                                                              │
00:00:54 verbose #1128 > > │ | Best                                                                       │
00:00:54 verbose #1129 > > │ ---      	| ---                                                                │
00:00:54 verbose #1130 > > │                                                                              │
00:00:54 verbose #1131 > > │ | ---                                                                        │
00:00:54 verbose #1132 > > │                                                                              │
00:00:54 verbose #1133 > > │ | ---                                                                        │
00:00:54 verbose #1134 > > │ abc      	| bca cab abc                                                        │
00:00:54 verbose #1135 > > │                                                                              │
00:00:54 verbose #1136 > > │ | bca cab abc                                                                │
00:00:54 verbose #1137 > > │                                                                              │
00:00:54 verbose #1138 > > │ | (3, 1)                                                                     │
00:00:54 verbose #1139 > > │ abcde    	| bcdea cdeab deabc eabcd abcde                                      │
00:00:54 verbose #1140 > > │ | bcdea cdeab deabc eabcd abcde                                              │
00:00:54 verbose #1141 > > │ | (8, 0)                                                                     │
00:00:54 verbose #1142 > > │ abcdefghi	| bcdefghia cdefghiab defghiabc efghiabcd fghiabcde ghiabcdef        │
00:00:54 verbose #1143 > > │ hiabcdefg iabcdefgh abcdefghi	| bcdefghia cdefghiab defghiabc efghiabcd        │
00:00:54 verbose #1144 > > │ fghiabcde ghiabcdef hiabcdefg iabcdefgh abcdefghi	| (8, 0)                     │
00:00:54 verbose #1145 > > │ abab     	| baba abab baba abab                                                │
00:00:54 verbose #1146 > > │ | baba abab baba abab                                                        │
00:00:54 verbose #1147 > > │ | (1, 0)                                                                     │
00:00:54 verbose #1148 > > │ aa       	| aa aa                                                              │
00:00:54 verbose #1149 > > │                                                                              │
00:00:54 verbose #1150 > > │ | aa aa                                                                      │
00:00:54 verbose #1151 > > │                                                                              │
00:00:54 verbose #1152 > > │ | (1, 0)                                                                     │
00:00:54 verbose #1153 > > │ z        	| z                                                                  │
00:00:54 verbose #1154 > > │                                                                              │
00:00:54 verbose #1155 > > │ | z                                                                          │
00:00:54 verbose #1156 > > │                                                                              │
00:00:54 verbose #1157 > > │ | (1, 0)                                                                     │
00:00:54 verbose #1158 > > │                                                                              │
00:00:54 verbose #1159 > > │ Average Ranking                                                              │
00:00:54 verbose #1160 > > │ Test case 2. Average Time: 0L                                                │
00:00:54 verbose #1161 > > │ Test case 7. Average Time: 0L                                                │
00:00:54 verbose #1162 > > │ Test case 8. Average Time: 0L                                                │
00:00:54 verbose #1163 > > │ Test case 1. Average Time: 1L                                                │
00:00:54 verbose #1164 > > │ Test case 3. Average Time: 1L                                                │
00:00:54 verbose #1165 > > │ Test case 4. Average Time: 1L                                                │
00:00:54 verbose #1166 > > │ Test case 5. Average Time: 1L                                                │
00:00:54 verbose #1167 > > │ Test case 9. Average Time: 1L                                                │
00:00:54 verbose #1168 > > │ Test case 6. Average Time: 2L                                                │
00:00:54 verbose #1169 > > │ Test case 10. Average Time: 2L                                               │
00:00:54 verbose #1170 > > │ Test case 11. Average Time: 5L                                               │
00:00:54 verbose #1171 > > │                                                                              │
00:00:54 verbose #1172 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:54 verbose #1173 > >
00:00:54 verbose #1174 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:54 verbose #1175 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:54 verbose #1176 > > │ ## rotate_strings_tests                                                      │
00:00:54 verbose #1177 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:54 verbose #1178 > >
00:00:54 verbose #1179 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:54 verbose #1180 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:54 verbose #1181 > > │ ```                                                                          │
00:00:54 verbose #1182 > > │ 02:21:12 verbose #1 benchmark.run_all / {count = 2000000; test_name =   │
00:00:54 verbose #1183 > > │ rotate_strings_tests}                                                        │
00:00:54 verbose #1184 > > │                                                                              │
00:00:54 verbose #1185 > > │ 02:21:12 verbose #2 benchmark.run / {input_str = "abc"}                 │
00:00:54 verbose #1186 > > │ 02:21:13 verbose #3 benchmark.run / solutions.map / {i = 1; test_name = │
00:00:54 verbose #1187 > > │ F; time = 638}                                                               │
00:00:54 verbose #1188 > > │ 02:21:14 verbose #4 benchmark.run / solutions.map / {i = 2; test_name = │
00:00:54 verbose #1189 > > │ FA; time = 779}                                                              │
00:00:54 verbose #1190 > > │                                                                              │
00:00:54 verbose #1191 > > │ 02:21:14 verbose #5 benchmark.run / {input_str = "abcde"}               │
00:00:54 verbose #1192 > > │ 02:21:15 verbose #6 benchmark.run / solutions.map / {i = 1; test_name = │
00:00:54 verbose #1193 > > │ F; time = 745}                                                               │
00:00:54 verbose #1194 > > │ 02:21:16 verbose #7 benchmark.run / solutions.map / {i = 2; test_name = │
00:00:54 verbose #1195 > > │ FA; time = 809}                                                              │
00:00:54 verbose #1196 > > │                                                                              │
00:00:54 verbose #1197 > > │ 02:21:16 verbose #8 benchmark.run / {input_str = "abcdefghi"}           │
00:00:54 verbose #1198 > > │ 02:21:17 verbose #9 benchmark.run / solutions.map / {i = 1; test_name = │
00:00:54 verbose #1199 > > │ F; time = 1092}                                                              │
00:00:54 verbose #1200 > > │ 02:21:18 verbose #10 benchmark.run / solutions.map / {i = 2; test_name  │
00:00:54 verbose #1201 > > │ = FA; time = 1304}                                                           │
00:00:54 verbose #1202 > > │                                                                              │
00:00:54 verbose #1203 > > │ 02:21:18 verbose #11 benchmark.run / {input_str = "abab"}               │
00:00:54 verbose #1204 > > │ 02:21:19 verbose #12 benchmark.run / solutions.map / {i = 1; test_name  │
00:00:54 verbose #1205 > > │ = F; time = 536}                                                             │
00:00:54 verbose #1206 > > │ 02:21:20 verbose #13 benchmark.run / solutions.map / {i = 2; test_name  │
00:00:54 verbose #1207 > > │ = FA; time = 620}                                                            │
00:00:54 verbose #1208 > > │                                                                              │
00:00:54 verbose #1209 > > │ 02:21:20 verbose #14 benchmark.run / {input_str = "aa"}                 │
00:00:54 verbose #1210 > > │ 02:21:21 verbose #15 benchmark.run / solutions.map / {i = 1; test_name  │
00:00:54 verbose #1211 > > │ = F; time = 365}                                                             │
00:00:54 verbose #1212 > > │ 02:21:21 verbose #16 benchmark.run / solutions.map / {i = 2; test_name  │
00:00:54 verbose #1213 > > │ = FA; time = 396}                                                            │
00:00:54 verbose #1214 > > │                                                                              │
00:00:54 verbose #1215 > > │ 02:21:21 verbose #17 benchmark.run / {input_str = "z"}                  │
00:00:54 verbose #1216 > > │ 02:21:22 verbose #18 benchmark.run / solutions.map / {i = 1; test_name  │
00:00:54 verbose #1217 > > │ = F; time = 158}                                                             │
00:00:54 verbose #1218 > > │ 02:21:22 verbose #19 benchmark.run / solutions.map / {i = 2; test_name  │
00:00:54 verbose #1219 > > │ = FA; time = 143}                                                            │
00:00:54 verbose #1220 > > │ ```                                                                          │
00:00:54 verbose #1221 > > │ input      	| expected                                                         │
00:00:54 verbose #1222 > > │                                                                              │
00:00:54 verbose #1223 > > │ | result                                                                     │
00:00:54 verbose #1224 > > │                                                                              │
00:00:54 verbose #1225 > > │ | best                                                                       │
00:00:54 verbose #1226 > > │ ---        	| ---                                                              │
00:00:54 verbose #1227 > > │                                                                              │
00:00:54 verbose #1228 > > │ | ---                                                                        │
00:00:54 verbose #1229 > > │                                                                              │
00:00:54 verbose #1230 > > │ | ---                                                                        │
00:00:54 verbose #1231 > > │ "abc"      	| "bca cab abc"                                                    │
00:00:54 verbose #1232 > > │                                                                              │
00:00:54 verbose #1233 > > │ | "bca cab abc"                                                              │
00:00:54 verbose #1234 > > │                                                                              │
00:00:54 verbose #1235 > > │ | 1, 638                                                                     │
00:00:54 verbose #1236 > > │ "abcde"    	| "bcdea cdeab deabc eabcd abcde"                                  │
00:00:54 verbose #1237 > > │ | "bcdea cdeab deabc eabcd abcde"                                            │
00:00:54 verbose #1238 > > │ | 1, 745                                                                     │
00:00:54 verbose #1239 > > │ "abcdefghi"	| "bcdefghia cdefghiab defghiabc efghiabcd fghiabcde ghiabcdef     │
00:00:54 verbose #1240 > > │ hiabcdefg iabcdefgh abcdefghi"	| "bcdefghia cdefghiab defghiabc efghiabcd      │
00:00:54 verbose #1241 > > │ fghiabcde ghiabcdef hiabcdefg iabcdefgh abcdefghi"	| 1, 1092                   │
00:00:54 verbose #1242 > > │ "abab"     	| "baba abab baba abab"                                            │
00:00:54 verbose #1243 > > │ | "baba abab baba abab"                                                      │
00:00:54 verbose #1244 > > │ | 1, 536                                                                     │
00:00:54 verbose #1245 > > │ "aa"       	| "aa aa"                                                          │
00:00:54 verbose #1246 > > │                                                                              │
00:00:54 verbose #1247 > > │ | "aa aa"                                                                    │
00:00:54 verbose #1248 > > │                                                                              │
00:00:54 verbose #1249 > > │ | 1, 365                                                                     │
00:00:54 verbose #1250 > > │ "z"        	| "z"                                                              │
00:00:54 verbose #1251 > > │                                                                              │
00:00:54 verbose #1252 > > │ | "z"                                                                        │
00:00:54 verbose #1253 > > │                                                                              │
00:00:54 verbose #1254 > > │ | 2, 143                                                                     │
00:00:54 verbose #1255 > > │ ```                                                                          │
00:00:54 verbose #1256 > > │ 02:21:22 verbose #20 benchmark.sort_result_list / averages.iter / {avg  │
00:00:54 verbose #1257 > > │ = 589; i = 1}                                                                │
00:00:54 verbose #1258 > > │ 02:21:22 verbose #21 benchmark.sort_result_list / averages.iter / {avg  │
00:00:54 verbose #1259 > > │ = 675; i = 2}                                                                │
00:00:54 verbose #1260 > > │ ```                                                                          │
00:00:54 verbose #1261 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:54 verbose #1262 > >
00:00:54 verbose #1263 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:54 verbose #1264 > > //// test
00:00:54 verbose #1265 > > //// timeout=60000
00:00:54 verbose #1266 > >
00:00:54 verbose #1267 > > inl get_solutions () =
00:00:54 verbose #1268 > >     [[
00:00:54 verbose #1269 > >         // "A",
00:00:54 verbose #1270 > >         // fun (input : string) =>
00:00:54 verbose #1271 > >         //     let resultList =
00:00:54 verbose #1272 > >         //         List.fold (fun acc x =>
00:00:54 verbose #1273 > >         //             let rotate (text : string) (letter : string) =
00:00:54 verbose #1274 > > text.Substring (1, input.Length - 1) + letter
00:00:54 verbose #1275 > >         //             [[ rotate (if acc.IsEmpty then input else acc.Head)
00:00:54 verbose #1276 > > (string x) ]] ++ acc
00:00:54 verbose #1277 > >         //         ) [[]] (Seq.toList input)
00:00:54 verbose #1278 > >
00:00:54 verbose #1279 > >         //     List.foldBack (fun acc x => x + acc + " ") resultList ""
00:00:54 verbose #1280 > >         //     |> fun x => x.TrimEnd ()
00:00:54 verbose #1281 > >
00:00:54 verbose #1282 > >         // "B",
00:00:54 verbose #1283 > >         // fun input =>
00:00:54 verbose #1284 > >         //     input
00:00:54 verbose #1285 > >         //     |> Seq.toList
00:00:54 verbose #1286 > >         //     |> List.fold (fun (acc : string list) letter =>
00:00:54 verbose #1287 > >         //         let last =
00:00:54 verbose #1288 > >         //             if acc.IsEmpty
00:00:54 verbose #1289 > >         //             then input
00:00:54 verbose #1290 > >         //             else acc.Head
00:00:54 verbose #1291 > >
00:00:54 verbose #1292 > >         //         let item = last.[[1 .. input.Length - 1]] + string letter
00:00:54 verbose #1293 > >
00:00:54 verbose #1294 > >         //         item :: acc
00:00:54 verbose #1295 > >         //     ) [[]]
00:00:54 verbose #1296 > >         //     |> List.rev
00:00:54 verbose #1297 > >         //     |> SpiralSm.concat " "
00:00:54 verbose #1298 > >
00:00:54 verbose #1299 > >         // "C",
00:00:54 verbose #1300 > >         // fun input =>
00:00:54 verbose #1301 > >         //     input
00:00:54 verbose #1302 > >         //     |> Seq.toList
00:00:54 verbose #1303 > >         //     |> List.fold (fun (acc : list string) letter => acc.Head.[[ 1 ..
00:00:54 verbose #1304 > > input.Length - 1 ]] + string letter :: acc) [[ input ]]
00:00:54 verbose #1305 > >         //     |> List.rev
00:00:54 verbose #1306 > >         //     |> List.skip 1
00:00:54 verbose #1307 > >         //     |> SpiralSm.concat " "
00:00:54 verbose #1308 > >
00:00:54 verbose #1309 > >         // "CA",
00:00:54 verbose #1310 > >         // fun input =>
00:00:54 verbose #1311 > >         //     input
00:00:54 verbose #1312 > >         //     |> Seq.fold (fun (acc : list string) letter => acc.Head.[[ 1 ..
00:00:54 verbose #1313 > > input.Length - 1 ]] + string letter :: acc) [[ input ]]
00:00:54 verbose #1314 > >         //     |> Seq.rev
00:00:54 verbose #1315 > >         //     |> Seq.skip 1
00:00:54 verbose #1316 > >         //     |> SpiralSm.concat " "
00:00:54 verbose #1317 > >
00:00:54 verbose #1318 > >         // "CB",
00:00:54 verbose #1319 > >         // fun input =>
00:00:54 verbose #1320 > >         //     input
00:00:54 verbose #1321 > >         //     |> Seq.toArray
00:00:54 verbose #1322 > >         //     |> Array.fold (fun (acc : a _ string) letter => acc |>
00:00:54 verbose #1323 > > Array.append (a ;[[ acc.[[0]].[[ 1 .. input.Length - 1 ]] + string letter ]]))
00:00:54 verbose #1324 > > (a ;[[ input ]])
00:00:54 verbose #1325 > >         //     |> Array.rev
00:00:54 verbose #1326 > >         //     |> Array.skip 1
00:00:54 verbose #1327 > >         //     |> SpiralSm.concat " "
00:00:54 verbose #1328 > >
00:00:54 verbose #1329 > >         // "D",
00:00:54 verbose #1330 > >         // fun input =>
00:00:54 verbose #1331 > >         //     input
00:00:54 verbose #1332 > >         //     |> Seq.toList
00:00:54 verbose #1333 > >         //     |> fun list =>
00:00:54 verbose #1334 > >         //         let rec loop (acc : list (list char)) = function
00:00:54 verbose #1335 > >         //             | _ when acc.Length = list.Length => acc
00:00:54 verbose #1336 > >         //             | head :: tail =>
00:00:54 verbose #1337 > >         //                 let item = tail ++ [[ head ]]
00:00:54 verbose #1338 > >         //                 loop (item :: acc) item
00:00:54 verbose #1339 > >         //             | [[]] => [[]]
00:00:54 verbose #1340 > >         //         loop [[]] list
00:00:54 verbose #1341 > >         //     |> List.rev
00:00:54 verbose #1342 > >         //     |> List.map (List.toArray >> String)
00:00:54 verbose #1343 > >         //     |> SpiralSm.concat " "
00:00:54 verbose #1344 > >
00:00:54 verbose #1345 > >         // "E",
00:00:54 verbose #1346 > >         // fun input =>
00:00:54 verbose #1347 > >         //     input
00:00:54 verbose #1348 > >         //     |> Seq.toList
00:00:54 verbose #1349 > >         //     |> fun list =>
00:00:54 verbose #1350 > >         //         let rec loop (last : string) = function
00:00:54 verbose #1351 > >         //             | head :: tail =>
00:00:54 verbose #1352 > >         //                 let item = last.[[1 .. input.Length - 1]] + string
00:00:54 verbose #1353 > > head
00:00:54 verbose #1354 > >         //                 item :: loop item tail
00:00:54 verbose #1355 > >         //             | [[]] => [[]]
00:00:54 verbose #1356 > >         //         loop input list
00:00:54 verbose #1357 > >         //     |> SpiralSm.concat " "
00:00:54 verbose #1358 > >
00:00:54 verbose #1359 > >         "F",
00:00:54 verbose #1360 > >         fun input =>
00:00:54 verbose #1361 > >         // Array.singleton 0
00:00:54 verbose #1362 > >         // |> Array.append [[| 1 .. input.Length - 1 |]]
00:00:54 verbose #1363 > >         // |> Array.map (fun i -> input.[[ i .. ]] + input.[[ .. i - 1 ]])
00:00:54 verbose #1364 > >         // |> SpiralSm.concat " "
00:00:54 verbose #1365 > >             inl input_length = input |> sm.length
00:00:54 verbose #1366 > >             am.singleton 0i32
00:00:54 verbose #1367 > >             |> am.append (am'.init_series 1 (input_length - 1) 1 |> fun x => a x
00:00:54 verbose #1368 > > : _ int _)
00:00:54 verbose #1369 > >             |> fun (a x) => x
00:00:54 verbose #1370 > >             |> am'.map_base fun i =>
00:00:54 verbose #1371 > >                 inl a = input |> sm'.slice i (input_length - 1)
00:00:54 verbose #1372 > >                 inl b = input |> sm'.slice 0 (i - 1)
00:00:54 verbose #1373 > >                 a +. b
00:00:54 verbose #1374 > >             |> fun x => a x : _ int _
00:00:54 verbose #1375 > >             |> seq.of_array
00:00:54 verbose #1376 > >             |> sm'.concat " "
00:00:54 verbose #1377 > >
00:00:54 verbose #1378 > >         "FA",
00:00:54 verbose #1379 > >         fun input =>
00:00:54 verbose #1380 > >         //     List.singleton 0
00:00:54 verbose #1381 > >         //     |> List.append [[ 1 .. input.Length - 1 ]]
00:00:54 verbose #1382 > >         //   //  |> List.map (fun i => input.[[ i .. ]] + input.[[ .. i - 1 ]])
00:00:54 verbose #1383 > >         //     |> SpiralSm.concat " "
00:00:54 verbose #1384 > >             inl input_length = input |> sm.length
00:00:54 verbose #1385 > >             listm.singleton 0i32
00:00:54 verbose #1386 > >             |> listm.append (listm'.init_series 1 (input_length - 1) 1)
00:00:54 verbose #1387 > >             |> listm.map (fun i =>
00:00:54 verbose #1388 > >                 inl a = input |> sm'.slice i (input_length - 1)
00:00:54 verbose #1389 > >                 inl b = if i = 0 then "" else input |> sm'.slice 0 (i - 1)
00:00:54 verbose #1390 > >                 a +. b
00:00:54 verbose #1391 > >             )
00:00:54 verbose #1392 > >             |> listm'.box
00:00:54 verbose #1393 > >             |> listm'.to_array'
00:00:54 verbose #1394 > >             |> fun x => a x : _ int _
00:00:54 verbose #1395 > >             |> seq.of_array
00:00:54 verbose #1396 > >             |> sm'.concat " "
00:00:54 verbose #1397 > >
00:00:54 verbose #1398 > >         // "FB",
00:00:54 verbose #1399 > >         // fun input =>
00:00:54 verbose #1400 > >         //     Seq.singleton 0
00:00:54 verbose #1401 > >         //   //  |> Seq.append (seq { 1 .. input.Length - 1 })
00:00:54 verbose #1402 > >         //   //  |> Seq.map (fun i => input.[[ i .. ]] + input.[[ .. i - 1 ]])
00:00:54 verbose #1403 > >         //     |> SpiralSm.concat " "
00:00:54 verbose #1404 > >
00:00:54 verbose #1405 > >         // "FC",
00:00:54 verbose #1406 > >         // fun input =>
00:00:54 verbose #1407 > >         //     Array.singleton 0
00:00:54 verbose #1408 > >         //     |> Array.append (a ;[[ 1 .. input.Length - 1 ]])
00:00:54 verbose #1409 > >         ////    |> Array.Parallel.map (fun i => input.[[ i .. ]] + input.[[ .. i
00:00:54 verbose #1410 > > - 1 ]])
00:00:54 verbose #1411 > >         //     |> SpiralSm.concat " "
00:00:54 verbose #1412 > >     ]]
00:00:54 verbose #1413 > >
00:00:54 verbose #1414 > > inl rec rotate_strings_tests () =
00:00:54 verbose #1415 > >     inl test_cases = [[
00:00:54 verbose #1416 > >         "abc", "bca cab abc"
00:00:54 verbose #1417 > >         "abcde", "bcdea cdeab deabc eabcd abcde"
00:00:54 verbose #1418 > >         "abcdefghi", "bcdefghia cdefghiab defghiabc efghiabcd fghiabcde
00:00:54 verbose #1419 > > ghiabcdef hiabcdefg iabcdefgh abcdefghi"
00:00:54 verbose #1420 > >         "abab", "baba abab baba abab"
00:00:54 verbose #1421 > >         "aa", "aa aa"
00:00:54 verbose #1422 > >         "z", "z"
00:00:54 verbose #1423 > >     ]]
00:00:54 verbose #1424 > >
00:00:54 verbose #1425 > >     inl solutions = get_solutions ()
00:00:54 verbose #1426 > >
00:00:54 verbose #1427 > >     // inl is_fast () = true
00:00:54 verbose #1428 > >
00:00:54 verbose #1429 > >     inl count =
00:00:54 verbose #1430 > >         if is_fast ()
00:00:54 verbose #1431 > >         then 1000i32
00:00:54 verbose #1432 > >         else 2000000i32
00:00:54 verbose #1433 > >
00:00:54 verbose #1434 > >     run_all (reflection.nameof { rotate_strings_tests }) count solutions
00:00:54 verbose #1435 > > test_cases
00:00:54 verbose #1436 > >     |> sort_result_list
00:00:54 verbose #1437 > >
00:00:54 verbose #1438 > > rotate_strings_tests ()
00:00:55 verbose #1439 > 00:00:54   debug #6 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cf6e4db8b1c0fd8e1ac38b1afd3c052faa998d7764d773b7bd7a8d599095fc0e/main.spi
00:01:15 verbose #1440 > >
00:01:15 verbose #1441 > > ╭─[ 20.83s - stdout ]──────────────────────────────────────────────────────────╮
00:01:15 verbose #1442 > > │                                                                              │
00:01:15 verbose #1443 > > │ ```                                                                          │
00:01:15 verbose #1444 > > │ 00:00:00 verbose #1 benchmark.run_all / { test_name =                   │
00:01:15 verbose #1445 > > │ rotate_strings_tests; count = 2000000 }                                      │
00:01:15 verbose #1446 > > │                                                                              │
00:01:15 verbose #1447 > > │ 00:00:00 verbose #2 benchmark.run / { input_str = "abc" }               │
00:01:15 verbose #1448 > > │ 00:00:01 verbose #3 benchmark.run / solutions.map / { i = 1; test_name  │
00:01:15 verbose #1449 > > │ = F; time = 1013 }                                                           │
00:01:15 verbose #1450 > > │ 00:00:02 verbose #4 benchmark.run / solutions.map / { i = 2; test_name  │
00:01:15 verbose #1451 > > │ = FA; time = 1264 }                                                          │
00:01:15 verbose #1452 > > │                                                                              │
00:01:15 verbose #1453 > > │ 00:00:02 verbose #5 benchmark.run / { input_str = "abcde" }             │
00:01:15 verbose #1454 > > │ 00:00:04 verbose #6 benchmark.run / solutions.map / { i = 1; test_name  │
00:01:15 verbose #1455 > > │ = F; time = 1306 }                                                           │
00:01:15 verbose #1456 > > │ 00:00:06 verbose #7 benchmark.run / solutions.map / { i = 2; test_name  │
00:01:15 verbose #1457 > > │ = FA; time = 1789 }                                                          │
00:01:15 verbose #1458 > > │                                                                              │
00:01:15 verbose #1459 > > │ 00:00:06 verbose #8 benchmark.run / { input_str = "abcdefghi" }         │
00:01:15 verbose #1460 > > │ 00:00:09 verbose #9 benchmark.run / solutions.map / { i = 1; test_name  │
00:01:15 verbose #1461 > > │ = F; time = 2449 }                                                           │
00:01:15 verbose #1462 > > │ 00:00:12 verbose #10 benchmark.run / solutions.map / { i = 2; test_name │
00:01:15 verbose #1463 > > │ = FA; time = 2347 }                                                          │
00:01:15 verbose #1464 > > │                                                                              │
00:01:15 verbose #1465 > > │ 00:00:12 verbose #11 benchmark.run / { input_str = "abab" }             │
00:01:15 verbose #1466 > > │ 00:00:14 verbose #12 benchmark.run / solutions.map / { i = 1; test_name │
00:01:15 verbose #1467 > > │ = F; time = 1053 }                                                           │
00:01:15 verbose #1468 > > │ 00:00:15 verbose #13 benchmark.run / solutions.map / { i = 2; test_name │
00:01:15 verbose #1469 > > │ = FA; time = 1282 }                                                          │
00:01:15 verbose #1470 > > │                                                                              │
00:01:15 verbose #1471 > > │ 00:00:15 verbose #14 benchmark.run / { input_str = "aa" }               │
00:01:15 verbose #1472 > > │ 00:00:17 verbose #15 benchmark.run / solutions.map / { i = 1; test_name │
00:01:15 verbose #1473 > > │ = F; time = 764 }                                                            │
00:01:15 verbose #1474 > > │ 00:00:18 verbose #16 benchmark.run / solutions.map / { i = 2; test_name │
00:01:15 verbose #1475 > > │ = FA; time = 771 }                                                           │
00:01:15 verbose #1476 > > │                                                                              │
00:01:15 verbose #1477 > > │ 00:00:18 verbose #17 benchmark.run / { input_str = "z" }                │
00:01:15 verbose #1478 > > │ 00:00:18 verbose #18 benchmark.run / solutions.map / { i = 1; test_name │
00:01:15 verbose #1479 > > │ = F; time = 189 }                                                            │
00:01:15 verbose #1480 > > │ 00:00:18 verbose #19 benchmark.run / solutions.map / { i = 2; test_name │
00:01:15 verbose #1481 > > │ = FA; time = 163 }                                                           │
00:01:15 verbose #1482 > > │ ```                                                                          │
00:01:15 verbose #1483 > > │ input      	| expected                                                         │
00:01:15 verbose #1484 > > │                                                                              │
00:01:15 verbose #1485 > > │ | result                                                                     │
00:01:15 verbose #1486 > > │                                                                              │
00:01:15 verbose #1487 > > │ | best                                                                       │
00:01:15 verbose #1488 > > │ ---        	| ---                                                              │
00:01:15 verbose #1489 > > │                                                                              │
00:01:15 verbose #1490 > > │ | ---                                                                        │
00:01:15 verbose #1491 > > │                                                                              │
00:01:15 verbose #1492 > > │ | ---                                                                        │
00:01:15 verbose #1493 > > │ "abc"      	| "bca cab abc"                                                    │
00:01:15 verbose #1494 > > │                                                                              │
00:01:15 verbose #1495 > > │ | "bca cab abc"                                                              │
00:01:15 verbose #1496 > > │                                                                              │
00:01:15 verbose #1497 > > │ | 1, 1013                                                                    │
00:01:15 verbose #1498 > > │ "abcde"    	| "bcdea cdeab deabc eabcd abcde"                                  │
00:01:15 verbose #1499 > > │ | "bcdea cdeab deabc eabcd abcde"                                            │
00:01:15 verbose #1500 > > │ | 1, 1306                                                                    │
00:01:15 verbose #1501 > > │ "abcdefghi"	| "bcdefghia cdefghiab defghiabc efghiabcd fghiabcde ghiabcdef     │
00:01:15 verbose #1502 > > │ hiabcdefg iabcdefgh abcdefghi"	| "bcdefghia cdefghiab defghiabc efghiabcd      │
00:01:15 verbose #1503 > > │ fghiabcde ghiabcdef hiabcdefg iabcdefgh abcdefghi"	| 2, 2347                   │
00:01:15 verbose #1504 > > │ "abab"     	| "baba abab baba abab"                                            │
00:01:15 verbose #1505 > > │ | "baba abab baba abab"                                                      │
00:01:15 verbose #1506 > > │ | 1, 1053                                                                    │
00:01:15 verbose #1507 > > │ "aa"       	| "aa aa"                                                          │
00:01:15 verbose #1508 > > │                                                                              │
00:01:15 verbose #1509 > > │ | "aa aa"                                                                    │
00:01:15 verbose #1510 > > │                                                                              │
00:01:15 verbose #1511 > > │ | 1, 764                                                                     │
00:01:15 verbose #1512 > > │ "z"        	| "z"                                                              │
00:01:15 verbose #1513 > > │                                                                              │
00:01:15 verbose #1514 > > │ | "z"                                                                        │
00:01:15 verbose #1515 > > │                                                                              │
00:01:15 verbose #1516 > > │ | 2, 163                                                                     │
00:01:15 verbose #1517 > > │ ```                                                                          │
00:01:15 verbose #1518 > > │ 00:00:18 verbose #20 benchmark.sort_result_list / averages.iter / { i = │
00:01:15 verbose #1519 > > │ 1; avg = 1129 }                                                              │
00:01:15 verbose #1520 > > │ 00:00:18 verbose #21 benchmark.sort_result_list / averages.iter / { i = │
00:01:15 verbose #1521 > > │ 2; avg = 1269 }                                                              │
00:01:15 verbose #1522 > > │ ```                                                                          │
00:01:15 verbose #1523 > > │                                                                              │
00:01:15 verbose #1524 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:15 verbose #1525 > >
00:01:15 verbose #1526 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:15 verbose #1527 > > //// test
00:01:15 verbose #1528 > >
00:01:15 verbose #1529 > > // rotate_strings_tests ()
00:01:15 verbose #1530 > > ()
00:01:15 verbose #1531 > 00:01:15   debug #7 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ffbdf638a179ab054b52361d40c49795bf15c33906a7feb238e04c589e007e2a/main.spi
00:01:16 verbose #1532 > >
00:01:16 verbose #1533 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:16 verbose #1534 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:16 verbose #1535 > > │ ## binary_search_tests                                                       │
00:01:16 verbose #1536 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:16 verbose #1537 > >
00:01:16 verbose #1538 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:16 verbose #1539 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:16 verbose #1540 > > │ ```                                                                          │
00:01:16 verbose #1541 > > │ 02:19:29 verbose #1 benchmark.run_all / {count = 10000000; test_name =  │
00:01:16 verbose #1542 > > │ binary_search_tests}                                                         │
00:01:16 verbose #1543 > > │                                                                              │
00:01:16 verbose #1544 > > │ 02:19:29 verbose #2 benchmark.run / {input_str = struct ([|1; 3; 4; 6;  │
00:01:16 verbose #1545 > > │ 8; 9; 11|], 6, 7)}                                                           │
00:01:16 verbose #1546 > > │ 02:19:30 verbose #3 benchmark.run / solutions.map / {i = 1; test_name = │
00:01:16 verbose #1547 > > │ semi_open_1; time = 662}                                                     │
00:01:16 verbose #1548 > > │ 02:19:30 verbose #4 benchmark.run / solutions.map / {i = 2; test_name = │
00:01:16 verbose #1549 > > │ closed_1; time = 619}                                                        │
00:01:16 verbose #1550 > > │ 02:19:31 verbose #5 benchmark.run / solutions.map / {i = 3; test_name = │
00:01:16 verbose #1551 > > │ semi_open_2; time = 644}                                                     │
00:01:16 verbose #1552 > > │ 02:19:32 verbose #6 benchmark.run / solutions.map / {i = 4; test_name = │
00:01:16 verbose #1553 > > │ closed_2; time = 610}                                                        │
00:01:16 verbose #1554 > > │                                                                              │
00:01:16 verbose #1555 > > │ 02:19:32 verbose #7 benchmark.run / {input_str = struct ([|1; 3; 4; 6;  │
00:01:16 verbose #1556 > > │ 8; 9; 11|], 1, 7)}                                                           │
00:01:16 verbose #1557 > > │ 02:19:33 verbose #8 benchmark.run / solutions.map / {i = 1; test_name = │
00:01:16 verbose #1558 > > │ semi_open_1; time = 607}                                                     │
00:01:16 verbose #1559 > > │ 02:19:33 verbose #9 benchmark.run / solutions.map / {i = 2; test_name = │
00:01:16 verbose #1560 > > │ closed_1; time = 559}                                                        │
00:01:16 verbose #1561 > > │ 02:19:34 verbose #10 benchmark.run / solutions.map / {i = 3; test_name  │
00:01:16 verbose #1562 > > │ = semi_open_2; time = 612}                                                   │
00:01:16 verbose #1563 > > │ 02:19:35 verbose #11 benchmark.run / solutions.map / {i = 4; test_name  │
00:01:16 verbose #1564 > > │ = closed_2; time = 577}                                                      │
00:01:16 verbose #1565 > > │                                                                              │
00:01:16 verbose #1566 > > │ 02:19:35 verbose #12 benchmark.run / {input_str = struct ([|1; 3; 4; 6; │
00:01:16 verbose #1567 > > │ 8; 9; 11|], 11, 7)}                                                          │
00:01:16 verbose #1568 > > │ 02:19:35 verbose #13 benchmark.run / solutions.map / {i = 1; test_name  │
00:01:16 verbose #1569 > > │ = semi_open_1; time = 550}                                                   │
00:01:16 verbose #1570 > > │ 02:19:36 verbose #14 benchmark.run / solutions.map / {i = 2; test_name  │
00:01:16 verbose #1571 > > │ = closed_1; time = 580}                                                      │
00:01:16 verbose #1572 > > │ 02:19:37 verbose #15 benchmark.run / solutions.map / {i = 3; test_name  │
00:01:16 verbose #1573 > > │ = semi_open_2; time = 624}                                                   │
00:01:16 verbose #1574 > > │ 02:19:37 verbose #16 benchmark.run / solutions.map / {i = 4; test_name  │
00:01:16 verbose #1575 > > │ = closed_2; time = 590}                                                      │
00:01:16 verbose #1576 > > │                                                                              │
00:01:16 verbose #1577 > > │ 02:19:37 verbose #17 benchmark.run / {input_str = struct ([|1; 3; 4; 6; │
00:01:16 verbose #1578 > > │ 8; 9; 11|], 12, 7)}                                                          │
00:01:16 verbose #1579 > > │ 02:19:38 verbose #18 benchmark.run / solutions.map / {i = 1; test_name  │
00:01:16 verbose #1580 > > │ = semi_open_1; time = 574}                                                   │
00:01:16 verbose #1581 > > │ 02:19:39 verbose #19 benchmark.run / solutions.map / {i = 2; test_name  │
00:01:16 verbose #1582 > > │ = closed_1; time = 577}                                                      │
00:01:16 verbose #1583 > > │ 02:19:39 verbose #20 benchmark.run / solutions.map / {i = 3; test_name  │
00:01:16 verbose #1584 > > │ = semi_open_2; time = 582}                                                   │
00:01:16 verbose #1585 > > │ 02:19:40 verbose #21 benchmark.run / solutions.map / {i = 4; test_name  │
00:01:16 verbose #1586 > > │ = closed_2; time = 585}                                                      │
00:01:16 verbose #1587 > > │                                                                              │
00:01:16 verbose #1588 > > │ 02:19:40 verbose #22 benchmark.run / {input_str = struct ([|1; 2; 3;    │
00:01:16 verbose #1589 > > │ 4...00; ...|], 60, 1000)}                                                    │
00:01:16 verbose #1590 > > │ 02:19:41 verbose #23 benchmark.run / solutions.map / {i = 1; test_name  │
00:01:16 verbose #1591 > > │ = semi_open_1; time = 610}                                                   │
00:01:16 verbose #1592 > > │ 02:19:42 verbose #24 benchmark.run / solutions.map / {i = 2; test_name  │
00:01:16 verbose #1593 > > │ = closed_1; time = 672}                                                      │
00:01:16 verbose #1594 > > │ 02:19:42 verbose #25 benchmark.run / solutions.map / {i = 3; test_name  │
00:01:16 verbose #1595 > > │ = semi_open_2; time = 636}                                                   │
00:01:16 verbose #1596 > > │ 02:19:43 verbose #26 benchmark.run / solutions.map / {i = 4; test_name  │
00:01:16 verbose #1597 > > │ = closed_2; time = 629}                                                      │
00:01:16 verbose #1598 > > │                                                                              │
00:01:16 verbose #1599 > > │ 02:19:43 verbose #27 benchmark.run / {input_str = struct ([|1; 3; 4; 6; │
00:01:16 verbose #1600 > > │ 8; 9; 11|], 6, 7)}                                                           │
00:01:16 verbose #1601 > > │ 02:19:44 verbose #28 benchmark.run / solutions.map / {i = 1; test_name  │
00:01:16 verbose #1602 > > │ = semi_open_1; time = 599}                                                   │
00:01:16 verbose #1603 > > │ 02:19:44 verbose #29 benchmark.run / solutions.map / {i = 2; test_name  │
00:01:16 verbose #1604 > > │ = closed_1; time = 561}                                                      │
00:01:16 verbose #1605 > > │ 02:19:45 verbose #30 benchmark.run / solutions.map / {i = 3; test_name  │
00:01:16 verbose #1606 > > │ = semi_open_2; time = 604}                                                   │
00:01:16 verbose #1607 > > │ 02:19:46 verbose #31 benchmark.run / solutions.map / {i = 4; test_name  │
00:01:16 verbose #1608 > > │ = closed_2; time = 573}                                                      │
00:01:16 verbose #1609 > > │                                                                              │
00:01:16 verbose #1610 > > │ 02:19:46 verbose #32 benchmark.run / {input_str = struct ([|1; 3; 4; 6; │
00:01:16 verbose #1611 > > │ 8; 9; 11|], 1, 7)}                                                           │
00:01:16 verbose #1612 > > │ 02:19:47 verbose #33 benchmark.run / solutions.map / {i = 1; test_name  │
00:01:16 verbose #1613 > > │ = semi_open_1; time = 635}                                                   │
00:01:16 verbose #1614 > > │ 02:19:47 verbose #34 benchmark.run / solutions.map / {i = 2; test_name  │
00:01:16 verbose #1615 > > │ = closed_1; time = 603}                                                      │
00:01:16 verbose #1616 > > │ 02:19:48 verbose #35 benchmark.run / solutions.map / {i = 3; test_name  │
00:01:16 verbose #1617 > > │ = semi_open_2; time = 644}                                                   │
00:01:16 verbose #1618 > > │ 02:19:49 verbose #36 benchmark.run / solutions.map / {i = 4; test_name  │
00:01:16 verbose #1619 > > │ = closed_2; time = 628}                                                      │
00:01:16 verbose #1620 > > │                                                                              │
00:01:16 verbose #1621 > > │ 02:19:49 verbose #37 benchmark.run / {input_str = struct ([|1; 3; 4; 6; │
00:01:16 verbose #1622 > > │ 8; 9; 11|], 11, 7)}                                                          │
00:01:16 verbose #1623 > > │ 02:19:49 verbose #38 benchmark.run / solutions.map / {i = 1; test_name  │
00:01:16 verbose #1624 > > │ = semi_open_1; time = 643}                                                   │
00:01:16 verbose #1625 > > │ 02:19:50 verbose #39 benchmark.run / solutions.map / {i = 2; test_name  │
00:01:16 verbose #1626 > > │ = closed_1; time = 606}                                                      │
00:01:16 verbose #1627 > > │ 02:19:51 verbose #40 benchmark.run / solutions.map / {i = 3; test_name  │
00:01:16 verbose #1628 > > │ = semi_open_2; time = 636}                                                   │
00:01:16 verbose #1629 > > │ 02:19:52 verbose #41 benchmark.run / solutions.map / {i = 4; test_name  │
00:01:16 verbose #1630 > > │ = closed_2; time = 624}                                                      │
00:01:16 verbose #1631 > > │                                                                              │
00:01:16 verbose #1632 > > │ 02:19:52 verbose #42 benchmark.run / {input_str = struct ([|1; 3; 4; 6; │
00:01:16 verbose #1633 > > │ 8; 9; 11|], 12, 7)}                                                          │
00:01:16 verbose #1634 > > │ 02:19:52 verbose #43 benchmark.run / solutions.map / {i = 1; test_name  │
00:01:16 verbose #1635 > > │ = semi_open_1; time = 689}                                                   │
00:01:16 verbose #1636 > > │ 02:19:53 verbose #44 benchmark.run / solutions.map / {i = 2; test_name  │
00:01:16 verbose #1637 > > │ = closed_1; time = 613}                                                      │
00:01:16 verbose #1638 > > │ 02:19:54 verbose #45 benchmark.run / solutions.map / {i = 3; test_name  │
00:01:16 verbose #1639 > > │ = semi_open_2; time = 623}                                                   │
00:01:16 verbose #1640 > > │ 02:19:55 verbose #46 benchmark.run / solutions.map / {i = 4; test_name  │
00:01:16 verbose #1641 > > │ = closed_2; time = 613}                                                      │
00:01:16 verbose #1642 > > │                                                                              │
00:01:16 verbose #1643 > > │ 02:19:55 verbose #47 benchmark.run / {input_str = struct ([|1; 2; 3;    │
00:01:16 verbose #1644 > > │ 4...100; ...|], 60, 100)}                                                    │
00:01:16 verbose #1645 > > │ 02:19:55 verbose #48 benchmark.run / solutions.map / {i = 1; test_name  │
00:01:16 verbose #1646 > > │ = semi_open_1; time = 630}                                                   │
00:01:16 verbose #1647 > > │ 02:19:56 verbose #49 benchmark.run / solutions.map / {i = 2; test_name  │
00:01:16 verbose #1648 > > │ = closed_1; time = 633}                                                      │
00:01:16 verbose #1649 > > │ 02:19:57 verbose #50 benchmark.run / solutions.map / {i = 3; test_name  │
00:01:16 verbose #1650 > > │ = semi_open_2; time = 653}                                                   │
00:01:16 verbose #1651 > > │ 02:19:58 verbose #51 benchmark.run / solutions.map / {i = 4; test_name  │
00:01:16 verbose #1652 > > │ = closed_2; time = 646}                                                      │
00:01:16 verbose #1653 > > │ ```                                                                          │
00:01:16 verbose #1654 > > │ input                                    	| expected	| result  	| best             │
00:01:16 verbose #1655 > > │ ---                                      	| ---     	| ---     	| ---              │
00:01:16 verbose #1656 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 6, 7)    	| US4_0 3 	| US4_0 3 	| 4, 610           │
00:01:16 verbose #1657 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 1, 7)    	| US4_0 0 	| US4_0 0 	| 2, 559           │
00:01:16 verbose #1658 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 11, 7)   	| US4_0 6 	| US4_0 6 	| 1, 550           │
00:01:16 verbose #1659 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 12, 7)   	| US4_1   	| US4_1   	| 1, 574           │
00:01:16 verbose #1660 > > │ struct ([1; 2; 3; 4...00; ...], 60, 1000)	| US4_0 59	| US4_0 59	| 1, 610           │
00:01:16 verbose #1661 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 6, 7)    	| US4_0 3 	| US4_0 3 	| 2, 561           │
00:01:16 verbose #1662 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 1, 7)    	| US4_0 0 	| US4_0 0 	| 2, 603           │
00:01:16 verbose #1663 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 11, 7)   	| US4_0 6 	| US4_0 6 	| 2, 606           │
00:01:16 verbose #1664 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 12, 7)   	| US4_1   	| US4_1   	| 2, 613           │
00:01:16 verbose #1665 > > │ struct ([1; 2; 3; 4...100; ...], 60, 100)	| US4_0 59	| US4_0 59	| 1, 630           │
00:01:16 verbose #1666 > > │ ```                                                                          │
00:01:16 verbose #1667 > > │ 02:19:58 verbose #52 benchmark.sort_result_list / averages.iter / {avg  │
00:01:16 verbose #1668 > > │ = 602; i = 2}                                                                │
00:01:16 verbose #1669 > > │ 02:19:58 verbose #53 benchmark.sort_result_list / averages.iter / {avg  │
00:01:16 verbose #1670 > > │ = 607; i = 4}                                                                │
00:01:16 verbose #1671 > > │ 02:19:58 verbose #54 benchmark.sort_result_list / averages.iter / {avg  │
00:01:16 verbose #1672 > > │ = 619; i = 1}                                                                │
00:01:16 verbose #1673 > > │ 02:19:58 verbose #55 benchmark.sort_result_list / averages.iter / {avg  │
00:01:16 verbose #1674 > > │ = 625; i = 3}                                                                │
00:01:16 verbose #1675 > > │ ```                                                                          │
00:01:16 verbose #1676 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:16 verbose #1677 > >
00:01:16 verbose #1678 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:16 verbose #1679 > > //// test
00:01:16 verbose #1680 > > //// timeout=90000
00:01:16 verbose #1681 > >
00:01:16 verbose #1682 > > inl binary_search_semi_open_1 arr target left right =
00:01:16 verbose #1683 > >     inl rec body left right =
00:01:16 verbose #1684 > >         if left >= right
00:01:16 verbose #1685 > >         then None
00:01:16 verbose #1686 > >         else
00:01:16 verbose #1687 > >             inl mid = (left + right) / 2
00:01:16 verbose #1688 > >             inl item = index arr mid
00:01:16 verbose #1689 > >             if item = target
00:01:16 verbose #1690 > >             then Some mid
00:01:16 verbose #1691 > >             elif item < target
00:01:16 verbose #1692 > >             then loop (mid + 1) right
00:01:16 verbose #1693 > >             else loop left mid
00:01:16 verbose #1694 > >     and inl loop left right =
00:01:16 verbose #1695 > >         if var_is right |> not
00:01:16 verbose #1696 > >         then body left right
00:01:16 verbose #1697 > >         else
00:01:16 verbose #1698 > >             inl left = dyn left
00:01:16 verbose #1699 > >             join body left right
00:01:16 verbose #1700 > >     loop left right
00:01:16 verbose #1701 > >
00:01:16 verbose #1702 > > inl binary_search_closed_1 arr target left right =
00:01:16 verbose #1703 > >     inl rec body left right =
00:01:16 verbose #1704 > >         if left > right
00:01:16 verbose #1705 > >         then None
00:01:16 verbose #1706 > >         else
00:01:16 verbose #1707 > >             inl mid = (left + right) / 2
00:01:16 verbose #1708 > >             inl item = index arr mid
00:01:16 verbose #1709 > >             if item = target
00:01:16 verbose #1710 > >             then Some mid
00:01:16 verbose #1711 > >             elif item < target
00:01:16 verbose #1712 > >             then loop (mid + 1) right
00:01:16 verbose #1713 > >             else loop left (mid - 1)
00:01:16 verbose #1714 > >     and inl loop left right =
00:01:16 verbose #1715 > >         if var_is right |> not
00:01:16 verbose #1716 > >         then body left right
00:01:16 verbose #1717 > >         else
00:01:16 verbose #1718 > >             inl left = dyn left
00:01:16 verbose #1719 > >             join body left right
00:01:16 verbose #1720 > >     loop left right
00:01:16 verbose #1721 > >
00:01:16 verbose #1722 > > inl binary_search_semi_open_2 arr target left right =
00:01:16 verbose #1723 > >     let rec body left right =
00:01:16 verbose #1724 > >         if left >= right
00:01:16 verbose #1725 > >         then None
00:01:16 verbose #1726 > >         else
00:01:16 verbose #1727 > >             inl mid = (left + right) / 2
00:01:16 verbose #1728 > >             inl item = index arr mid
00:01:16 verbose #1729 > >             if item = target
00:01:16 verbose #1730 > >             then Some mid
00:01:16 verbose #1731 > >             elif item < target
00:01:16 verbose #1732 > >             then loop (mid + 1) right
00:01:16 verbose #1733 > >             else loop left mid
00:01:16 verbose #1734 > >     and inl loop left right = body left right
00:01:16 verbose #1735 > >     loop left right
00:01:16 verbose #1736 > >
00:01:16 verbose #1737 > > inl binary_search_closed_2 arr target left right =
00:01:16 verbose #1738 > >     let rec body left right =
00:01:16 verbose #1739 > >         if left > right
00:01:16 verbose #1740 > >         then None
00:01:16 verbose #1741 > >         else
00:01:16 verbose #1742 > >             inl mid = (left + right) / 2
00:01:16 verbose #1743 > >             inl item = index arr mid
00:01:16 verbose #1744 > >             if item = target
00:01:16 verbose #1745 > >             then Some mid
00:01:16 verbose #1746 > >             elif item < target
00:01:16 verbose #1747 > >             then loop (mid + 1) right
00:01:16 verbose #1748 > >             else loop left (mid - 1)
00:01:16 verbose #1749 > >     and inl loop left right = body left right
00:01:16 verbose #1750 > >     loop left right
00:01:16 verbose #1751 > >
00:01:16 verbose #1752 > > inl get_solutions () =
00:01:16 verbose #1753 > >     [[
00:01:16 verbose #1754 > >         "semi_open_1",
00:01:16 verbose #1755 > >         fun (arr, (target, len)) =>
00:01:16 verbose #1756 > >             binary_search_semi_open_1 arr target 0 len
00:01:16 verbose #1757 > >
00:01:16 verbose #1758 > >         "closed_1",
00:01:16 verbose #1759 > >         fun (arr, (target, len)) =>
00:01:16 verbose #1760 > >             binary_search_closed_1 arr target 0 (len - 1)
00:01:16 verbose #1761 > >
00:01:16 verbose #1762 > >         "semi_open_2",
00:01:16 verbose #1763 > >         fun (arr, (target, len)) =>
00:01:16 verbose #1764 > >             binary_search_semi_open_2 arr target 0 len
00:01:16 verbose #1765 > >
00:01:16 verbose #1766 > >         "closed_2",
00:01:16 verbose #1767 > >         fun (arr, (target, len)) =>
00:01:16 verbose #1768 > >             binary_search_closed_2 arr target 0 (len - 1)
00:01:16 verbose #1769 > >     ]]
00:01:16 verbose #1770 > >
00:01:16 verbose #1771 > > inl rec binary_search_tests () =
00:01:16 verbose #1772 > >     inl arr_with_len target len arr =
00:01:16 verbose #1773 > >         arr, (target, (len |> optionm'.default_with fun () => length arr))
00:01:16 verbose #1774 > >
00:01:16 verbose #1775 > >     inl test_cases = [[
00:01:16 verbose #1776 > >         (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 6 None), (Some 3i32)
00:01:16 verbose #1777 > >         (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 1 None), (Some 0i32)
00:01:16 verbose #1778 > >         (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 11 None), (Some 6i32)
00:01:16 verbose #1779 > >         (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 12 None), None
00:01:16 verbose #1780 > >         ((am'.init_series 1i32 1000 1 |> fun x => a x : _ int _) |> arr_with_len
00:01:16 verbose #1781 > > 60 None), (Some 59)
00:01:16 verbose #1782 > >
00:01:16 verbose #1783 > >         (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 6 (Some 7)), (Some
00:01:16 verbose #1784 > > 3i32)
00:01:16 verbose #1785 > >         (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 1 (Some 7)), (Some
00:01:16 verbose #1786 > > 0i32)
00:01:16 verbose #1787 > >         (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 11 (Some 7)), (Some
00:01:16 verbose #1788 > > 6i32)
00:01:16 verbose #1789 > >         (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 12 (Some 7)), None
00:01:16 verbose #1790 > >         ((am'.init_series 1i32 1000 1 |> fun x => a x : _ int _) |> arr_with_len
00:01:16 verbose #1791 > > 60 (Some 100)), (Some 59)
00:01:16 verbose #1792 > >     ]]
00:01:16 verbose #1793 > >
00:01:16 verbose #1794 > >     inl solutions = get_solutions ()
00:01:16 verbose #1795 > >
00:01:16 verbose #1796 > >     // inl is_fast () = true
00:01:16 verbose #1797 > >
00:01:16 verbose #1798 > >     inl count =
00:01:16 verbose #1799 > >         if is_fast ()
00:01:16 verbose #1800 > >         then 1000i32
00:01:16 verbose #1801 > >         else 10000000i32
00:01:16 verbose #1802 > >
00:01:16 verbose #1803 > >     run_all (reflection.nameof { binary_search_tests }) count solutions
00:01:16 verbose #1804 > > test_cases
00:01:16 verbose #1805 > >     |> sort_result_list
00:01:16 verbose #1806 > >
00:01:16 verbose #1807 > >
00:01:16 verbose #1808 > > let main () =
00:01:16 verbose #1809 > >     binary_search_tests ()
00:01:16 verbose #1810 > 00:01:15   debug #8 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/713602f9b8f4d82d4dcfe100ca8304d8b93c68d2b3a29765618d48f14990f769/main.spi
00:01:52 verbose #1811 > >
00:01:52 verbose #1812 > > ╭─[ 35.82s - stdout ]──────────────────────────────────────────────────────────╮
00:01:52 verbose #1813 > > │                                                                              │
00:01:52 verbose #1814 > > │ ```                                                                          │
00:01:52 verbose #1815 > > │ 00:00:00 verbose #1 benchmark.run_all / { test_name =                   │
00:01:52 verbose #1816 > > │ binary_search_tests; count = 10000000 }                                      │
00:01:52 verbose #1817 > > │                                                                              │
00:01:52 verbose #1818 > > │ 00:00:00 verbose #2 benchmark.run / { input_str = struct ([|1; 3; 4; 6; │
00:01:52 verbose #1819 > > │ 8; 9; 11|], 6, 7) }                                                          │
00:01:52 verbose #1820 > > │ 00:00:01 verbose #3 benchmark.run / solutions.map / { i = 1; test_name  │
00:01:52 verbose #1821 > > │ = semi_open_1; time = 793 }                                                  │
00:01:52 verbose #1822 > > │ 00:00:01 verbose #4 benchmark.run / solutions.map / { i = 2; test_name  │
00:01:52 verbose #1823 > > │ = closed_1; time = 685 }                                                     │
00:01:52 verbose #1824 > > │ 00:00:02 verbose #5 benchmark.run / solutions.map / { i = 3; test_name  │
00:01:52 verbose #1825 > > │ = semi_open_2; time = 706 }                                                  │
00:01:52 verbose #1826 > > │ 00:00:03 verbose #6 benchmark.run / solutions.map / { i = 4; test_name  │
00:01:52 verbose #1827 > > │ = closed_2; time = 722 }                                                     │
00:01:52 verbose #1828 > > │                                                                              │
00:01:52 verbose #1829 > > │ 00:00:03 verbose #7 benchmark.run / { input_str = struct ([|1; 3; 4; 6; │
00:01:52 verbose #1830 > > │ 8; 9; 11|], 1, 7) }                                                          │
00:01:52 verbose #1831 > > │ 00:00:04 verbose #8 benchmark.run / solutions.map / { i = 1; test_name  │
00:01:52 verbose #1832 > > │ = semi_open_1; time = 749 }                                                  │
00:01:52 verbose #1833 > > │ 00:00:05 verbose #9 benchmark.run / solutions.map / { i = 2; test_name  │
00:01:52 verbose #1834 > > │ = closed_1; time = 570 }                                                     │
00:01:52 verbose #1835 > > │ 00:00:06 verbose #10 benchmark.run / solutions.map / { i = 3; test_name │
00:01:52 verbose #1836 > > │ = semi_open_2; time = 554 }                                                  │
00:01:52 verbose #1837 > > │ 00:00:07 verbose #11 benchmark.run / solutions.map / { i = 4; test_name │
00:01:52 verbose #1838 > > │ = closed_2; time = 565 }                                                     │
00:01:52 verbose #1839 > > │                                                                              │
00:01:52 verbose #1840 > > │ 00:00:07 verbose #12 benchmark.run / { input_str = struct ([|1; 3; 4;   │
00:01:52 verbose #1841 > > │ 6; 8; 9; 11|], 11, 7) }                                                      │
00:01:52 verbose #1842 > > │ 00:00:08 verbose #13 benchmark.run / solutions.map / { i = 1; test_name │
00:01:52 verbose #1843 > > │ = semi_open_1; time = 564 }                                                  │
00:01:52 verbose #1844 > > │ 00:00:08 verbose #14 benchmark.run / solutions.map / { i = 2; test_name │
00:01:52 verbose #1845 > > │ = closed_1; time = 560 }                                                     │
00:01:52 verbose #1846 > > │ 00:00:09 verbose #15 benchmark.run / solutions.map / { i = 3; test_name │
00:01:52 verbose #1847 > > │ = semi_open_2; time = 559 }                                                  │
00:01:52 verbose #1848 > > │ 00:00:10 verbose #16 benchmark.run / solutions.map / { i = 4; test_name │
00:01:52 verbose #1849 > > │ = closed_2; time = 575 }                                                     │
00:01:52 verbose #1850 > > │                                                                              │
00:01:52 verbose #1851 > > │ 00:00:10 verbose #17 benchmark.run / { input_str = struct ([|1; 3; 4;   │
00:01:52 verbose #1852 > > │ 6; 8; 9; 11|], 12, 7) }                                                      │
00:01:52 verbose #1853 > > │ 00:00:11 verbose #18 benchmark.run / solutions.map / { i = 1; test_name │
00:01:52 verbose #1854 > > │ = semi_open_1; time = 600 }                                                  │
00:01:52 verbose #1855 > > │ 00:00:12 verbose #19 benchmark.run / solutions.map / { i = 2; test_name │
00:01:52 verbose #1856 > > │ = closed_1; time = 585 }                                                     │
00:01:52 verbose #1857 > > │ 00:00:13 verbose #20 benchmark.run / solutions.map / { i = 3; test_name │
00:01:52 verbose #1858 > > │ = semi_open_2; time = 583 }                                                  │
00:01:52 verbose #1859 > > │ 00:00:13 verbose #21 benchmark.run / solutions.map / { i = 4; test_name │
00:01:52 verbose #1860 > > │ = closed_2; time = 581 }                                                     │
00:01:52 verbose #1861 > > │                                                                              │
00:01:52 verbose #1862 > > │ 00:00:13 verbose #22 benchmark.run / { input_str = struct ([|1; 2; 3;   │
00:01:52 verbose #1863 > > │ 4...00; ...|], 60, 1000) }                                                   │
00:01:52 verbose #1864 > > │ 00:00:14 verbose #23 benchmark.run / solutions.map / { i = 1; test_name │
00:01:52 verbose #1865 > > │ = semi_open_1; time = 624 }                                                  │
00:01:52 verbose #1866 > > │ 00:00:15 verbose #24 benchmark.run / solutions.map / { i = 2; test_name │
00:01:52 verbose #1867 > > │ = closed_1; time = 642 }                                                     │
00:01:52 verbose #1868 > > │ 00:00:16 verbose #25 benchmark.run / solutions.map / { i = 3; test_name │
00:01:52 verbose #1869 > > │ = semi_open_2; time = 627 }                                                  │
00:01:52 verbose #1870 > > │ 00:00:17 verbose #26 benchmark.run / solutions.map / { i = 4; test_name │
00:01:52 verbose #1871 > > │ = closed_2; time = 627 }                                                     │
00:01:52 verbose #1872 > > │                                                                              │
00:01:52 verbose #1873 > > │ 00:00:17 verbose #27 benchmark.run / { input_str = struct ([|1; 3; 4;   │
00:01:52 verbose #1874 > > │ 6; 8; 9; 11|], 6, 7) }                                                       │
00:01:52 verbose #1875 > > │ 00:00:18 verbose #28 benchmark.run / solutions.map / { i = 1; test_name │
00:01:52 verbose #1876 > > │ = semi_open_1; time = 545 }                                                  │
00:01:52 verbose #1877 > > │ 00:00:19 verbose #29 benchmark.run / solutions.map / { i = 2; test_name │
00:01:52 verbose #1878 > > │ = closed_1; time = 534 }                                                     │
00:01:52 verbose #1879 > > │ 00:00:19 verbose #30 benchmark.run / solutions.map / { i = 3; test_name │
00:01:52 verbose #1880 > > │ = semi_open_2; time = 523 }                                                  │
00:01:52 verbose #1881 > > │ 00:00:20 verbose #31 benchmark.run / solutions.map / { i = 4; test_name │
00:01:52 verbose #1882 > > │ = closed_2; time = 546 }                                                     │
00:01:52 verbose #1883 > > │                                                                              │
00:01:52 verbose #1884 > > │ 00:00:20 verbose #32 benchmark.run / { input_str = struct ([|1; 3; 4;   │
00:01:52 verbose #1885 > > │ 6; 8; 9; 11|], 1, 7) }                                                       │
00:01:52 verbose #1886 > > │ 00:00:21 verbose #33 benchmark.run / solutions.map / { i = 1; test_name │
00:01:52 verbose #1887 > > │ = semi_open_1; time = 558 }                                                  │
00:01:52 verbose #1888 > > │ 00:00:22 verbose #34 benchmark.run / solutions.map / { i = 2; test_name │
00:01:52 verbose #1889 > > │ = closed_1; time = 579 }                                                     │
00:01:52 verbose #1890 > > │ 00:00:23 verbose #35 benchmark.run / solutions.map / { i = 3; test_name │
00:01:52 verbose #1891 > > │ = semi_open_2; time = 568 }                                                  │
00:01:52 verbose #1892 > > │ 00:00:23 verbose #36 benchmark.run / solutions.map / { i = 4; test_name │
00:01:52 verbose #1893 > > │ = closed_2; time = 615 }                                                     │
00:01:52 verbose #1894 > > │                                                                              │
00:01:52 verbose #1895 > > │ 00:00:23 verbose #37 benchmark.run / { input_str = struct ([|1; 3; 4;   │
00:01:52 verbose #1896 > > │ 6; 8; 9; 11|], 11, 7) }                                                      │
00:01:52 verbose #1897 > > │ 00:00:24 verbose #38 benchmark.run / solutions.map / { i = 1; test_name │
00:01:52 verbose #1898 > > │ = semi_open_1; time = 596 }                                                  │
00:01:52 verbose #1899 > > │ 00:00:25 verbose #39 benchmark.run / solutions.map / { i = 2; test_name │
00:01:52 verbose #1900 > > │ = closed_1; time = 586 }                                                     │
00:01:52 verbose #1901 > > │ 00:00:26 verbose #40 benchmark.run / solutions.map / { i = 3; test_name │
00:01:52 verbose #1902 > > │ = semi_open_2; time = 581 }                                                  │
00:01:52 verbose #1903 > > │ 00:00:27 verbose #41 benchmark.run / solutions.map / { i = 4; test_name │
00:01:52 verbose #1904 > > │ = closed_2; time = 573 }                                                     │
00:01:52 verbose #1905 > > │                                                                              │
00:01:52 verbose #1906 > > │ 00:00:27 verbose #42 benchmark.run / { input_str = struct ([|1; 3; 4;   │
00:01:52 verbose #1907 > > │ 6; 8; 9; 11|], 12, 7) }                                                      │
00:01:52 verbose #1908 > > │ 00:00:28 verbose #43 benchmark.run / solutions.map / { i = 1; test_name │
00:01:52 verbose #1909 > > │ = semi_open_1; time = 592 }                                                  │
00:01:52 verbose #1910 > > │ 00:00:28 verbose #44 benchmark.run / solutions.map / { i = 2; test_name │
00:01:52 verbose #1911 > > │ = closed_1; time = 577 }                                                     │
00:01:52 verbose #1912 > > │ 00:00:29 verbose #45 benchmark.run / solutions.map / { i = 3; test_name │
00:01:52 verbose #1913 > > │ = semi_open_2; time = 555 }                                                  │
00:01:52 verbose #1914 > > │ 00:00:30 verbose #46 benchmark.run / solutions.map / { i = 4; test_name │
00:01:52 verbose #1915 > > │ = closed_2; time = 573 }                                                     │
00:01:52 verbose #1916 > > │                                                                              │
00:01:52 verbose #1917 > > │ 00:00:30 verbose #47 benchmark.run / { input_str = struct ([|1; 2; 3;   │
00:01:52 verbose #1918 > > │ 4...100; ...|], 60, 100) }                                                   │
00:01:52 verbose #1919 > > │ 00:00:31 verbose #48 benchmark.run / solutions.map / { i = 1; test_name │
00:01:52 verbose #1920 > > │ = semi_open_1; time = 587 }                                                  │
00:01:52 verbose #1921 > > │ 00:00:32 verbose #49 benchmark.run / solutions.map / { i = 2; test_name │
00:01:52 verbose #1922 > > │ = closed_1; time = 576 }                                                     │
00:01:52 verbose #1923 > > │ 00:00:32 verbose #50 benchmark.run / solutions.map / { i = 3; test_name │
00:01:52 verbose #1924 > > │ = semi_open_2; time = 603 }                                                  │
00:01:52 verbose #1925 > > │ 00:00:33 verbose #51 benchmark.run / solutions.map / { i = 4; test_name │
00:01:52 verbose #1926 > > │ = closed_2; time = 598 }                                                     │
00:01:52 verbose #1927 > > │ ```                                                                          │
00:01:52 verbose #1928 > > │ input                                    	| expected	| result  	| best             │
00:01:52 verbose #1929 > > │ ---                                      	| ---     	| ---     	| ---              │
00:01:52 verbose #1930 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 6, 7)    	| US4_0 3 	| US4_0 3 	| 2, 685           │
00:01:52 verbose #1931 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 1, 7)    	| US4_0 0 	| US4_0 0 	| 3, 554           │
00:01:52 verbose #1932 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 11, 7)   	| US4_0 6 	| US4_0 6 	| 3, 559           │
00:01:52 verbose #1933 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 12, 7)   	| US4_1   	| US4_1   	| 4, 581           │
00:01:52 verbose #1934 > > │ struct ([1; 2; 3; 4...00; ...], 60, 1000)	| US4_0 59	| US4_0 59	| 1, 624           │
00:01:52 verbose #1935 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 6, 7)    	| US4_0 3 	| US4_0 3 	| 3, 523           │
00:01:52 verbose #1936 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 1, 7)    	| US4_0 0 	| US4_0 0 	| 1, 558           │
00:01:52 verbose #1937 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 11, 7)   	| US4_0 6 	| US4_0 6 	| 4, 573           │
00:01:52 verbose #1938 > > │ struct ([1; 3; 4; 6; 8; 9; 11], 12, 7)   	| US4_1   	| US4_1   	| 3, 555           │
00:01:52 verbose #1939 > > │ struct ([1; 2; 3; 4...100; ...], 60, 100)	| US4_0 59	| US4_0 59	| 2, 576           │
00:01:52 verbose #1940 > > │ ```                                                                          │
00:01:52 verbose #1941 > > │ 00:00:33 verbose #52 benchmark.sort_result_list / averages.iter / { i = │
00:01:52 verbose #1942 > > │ 3; avg = 585 }                                                               │
00:01:52 verbose #1943 > > │ 00:00:33 verbose #53 benchmark.sort_result_list / averages.iter / { i = │
00:01:52 verbose #1944 > > │ 2; avg = 589 }                                                               │
00:01:52 verbose #1945 > > │ 00:00:33 verbose #54 benchmark.sort_result_list / averages.iter / { i = │
00:01:52 verbose #1946 > > │ 4; avg = 597 }                                                               │
00:01:52 verbose #1947 > > │ 00:00:33 verbose #55 benchmark.sort_result_list / averages.iter / { i = │
00:01:52 verbose #1948 > > │ 1; avg = 620 }                                                               │
00:01:52 verbose #1949 > > │ ```                                                                          │
00:01:52 verbose #1950 > > │                                                                              │
00:01:52 verbose #1951 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:52 verbose #1952 > >
00:01:52 verbose #1953 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:52 verbose #1954 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:52 verbose #1955 > > │ ## returnLettersWithOddCountTests                                            │
00:01:52 verbose #1956 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:52 verbose #1957 > >
00:01:52 verbose #1958 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:52 verbose #1959 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:52 verbose #1960 > > │ Test: ReturnLettersWithOddCount                                              │
00:01:52 verbose #1961 > > │                                                                              │
00:01:52 verbose #1962 > > │ Solution: 1                                                                  │
00:01:52 verbose #1963 > > │ Test case 1. A. Time: 645L                                                   │
00:01:52 verbose #1964 > > │                                                                              │
00:01:52 verbose #1965 > > │ Solution: 2                                                                  │
00:01:52 verbose #1966 > > │ Test case 1. A. Time: 663L                                                   │
00:01:52 verbose #1967 > > │                                                                              │
00:01:52 verbose #1968 > > │ Solution: 3                                                                  │
00:01:52 verbose #1969 > > │ Test case 1. A. Time: 680L                                                   │
00:01:52 verbose #1970 > > │                                                                              │
00:01:52 verbose #1971 > > │ Solution: 9                                                                  │
00:01:52 verbose #1972 > > │ Test case 1. A. Time: 730L                                                   │
00:01:52 verbose #1973 > > │                                                                              │
00:01:52 verbose #1974 > > │ Solution: 10                                                                 │
00:01:52 verbose #1975 > > │ Test case 1. A. Time: 815L                                                   │
00:01:52 verbose #1976 > > │                                                                              │
00:01:52 verbose #1977 > > │ Input   | Expected        | Result          | Best                           │
00:01:52 verbose #1978 > > │ ---     | ---             | ---             | ---                            │
00:01:52 verbose #1979 > > │ 1       | a               | a               | (1, 645)                       │
00:01:52 verbose #1980 > > │ 2       | ba              | ba              | (1, 663)                       │
00:01:52 verbose #1981 > > │ 3       | aaa             | aaa             | (1, 680)                       │
00:01:52 verbose #1982 > > │ 9       | aaaaaaaaa       | aaaaaaaaa       | (1, 730)                       │
00:01:52 verbose #1983 > > │ 10      | baaaaaaaaa      | baaaaaaaaa      | (1, 815)                       │
00:01:52 verbose #1984 > > │                                                                              │
00:01:52 verbose #1985 > > │ Averages                                                                     │
00:01:52 verbose #1986 > > │ Test case 1. Average Time: 706L                                              │
00:01:52 verbose #1987 > > │                                                                              │
00:01:52 verbose #1988 > > │ Ranking                                                                      │
00:01:52 verbose #1989 > > │ Test case 1. Average Time: 706L                                              │
00:01:52 verbose #1990 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:52 verbose #1991 > >
00:01:52 verbose #1992 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:52 verbose #1993 > > //// test
00:01:52 verbose #1994 > >
00:01:52 verbose #1995 > > let solutions = [[
00:01:52 verbose #1996 > >     "A",
00:01:52 verbose #1997 > >     fun n ->
00:01:52 verbose #1998 > >         let mutable _builder = StringBuilder (new string('a', n))
00:01:52 verbose #1999 > >         if n % 2 = 0 then
00:01:52 verbose #2000 > >             _builder.[[0]] <- 'b'
00:01:52 verbose #2001 > >
00:01:52 verbose #2002 > >         _builder.ToString ()
00:01:52 verbose #2003 > > ]]
00:01:52 verbose #2004 > > let testCases = seq {
00:01:52 verbose #2005 > >     1, "a"
00:01:52 verbose #2006 > >     2, "ba"
00:01:52 verbose #2007 > >     3, "aaa"
00:01:52 verbose #2008 > >     9, "aaaaaaaaa"
00:01:52 verbose #2009 > >     10, "baaaaaaaaa"
00:01:52 verbose #2010 > > }
00:01:52 verbose #2011 > > let rec returnLettersWithOddCountTests =
00:01:52 verbose #2012 > >     runAll (nameof returnLettersWithOddCountTests) _count solutions testCases
00:01:52 verbose #2013 > > returnLettersWithOddCountTests
00:01:52 verbose #2014 > > |> sortResultList
00:01:53 verbose #2015 > >
00:01:53 verbose #2016 > > ╭─[ 1.20s - stdout ]───────────────────────────────────────────────────────────╮
00:01:53 verbose #2017 > > │                                                                              │
00:01:53 verbose #2018 > > │                                                                              │
00:01:53 verbose #2019 > > │ Test: returnLettersWithOddCountTests                                         │
00:01:53 verbose #2020 > > │                                                                              │
00:01:53 verbose #2021 > > │ Solution: 1                                                                  │
00:01:53 verbose #2022 > > │ Test case 1. A. Time: 0L                                                     │
00:01:53 verbose #2023 > > │                                                                              │
00:01:53 verbose #2024 > > │ Solution: 2                                                                  │
00:01:53 verbose #2025 > > │ Test case 1. A. Time: 0L                                                     │
00:01:53 verbose #2026 > > │                                                                              │
00:01:53 verbose #2027 > > │ Solution: 3                                                                  │
00:01:53 verbose #2028 > > │ Test case 1. A. Time: 0L                                                     │
00:01:53 verbose #2029 > > │                                                                              │
00:01:53 verbose #2030 > > │ Solution: 9                                                                  │
00:01:53 verbose #2031 > > │ Test case 1. A. Time: 0L                                                     │
00:01:53 verbose #2032 > > │                                                                              │
00:01:53 verbose #2033 > > │ Solution: 10                                                                 │
00:01:53 verbose #2034 > > │ Test case 1. A. Time: 2L                                                     │
00:01:53 verbose #2035 > > │                                                                              │
00:01:53 verbose #2036 > > │ Input	| Expected  	| Result    	| Best                                             │
00:01:53 verbose #2037 > > │ ---  	| ---       	| ---       	| ---                                              │
00:01:53 verbose #2038 > > │ 1    	| a         	| a         	| (1, 0)                                           │
00:01:53 verbose #2039 > > │ 2    	| ba        	| ba        	| (1, 0)                                           │
00:01:53 verbose #2040 > > │ 3    	| aaa       	| aaa       	| (1, 0)                                           │
00:01:53 verbose #2041 > > │ 9    	| aaaaaaaaa 	| aaaaaaaaa 	| (1, 0)                                           │
00:01:53 verbose #2042 > > │ 10   	| baaaaaaaaa	| baaaaaaaaa	| (1, 2)                                           │
00:01:53 verbose #2043 > > │                                                                              │
00:01:53 verbose #2044 > > │ Average Ranking                                                              │
00:01:53 verbose #2045 > > │ Test case 1. Average Time: 0L                                                │
00:01:53 verbose #2046 > > │                                                                              │
00:01:53 verbose #2047 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:53 verbose #2048 > >
00:01:53 verbose #2049 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:53 verbose #2050 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:53 verbose #2051 > > │ ## hasAnyPairCloseToEachotherTests                                           │
00:01:53 verbose #2052 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:53 verbose #2053 > >
00:01:53 verbose #2054 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:53 verbose #2055 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:53 verbose #2056 > > │ Test: HasAnyPairCloseToEachother                                             │
00:01:53 verbose #2057 > > │                                                                              │
00:01:53 verbose #2058 > > │ Solution: 0                                                                  │
00:01:53 verbose #2059 > > │ Test case 1. A. Time: 137L                                                   │
00:01:53 verbose #2060 > > │                                                                              │
00:01:53 verbose #2061 > > │ Solution: 1,2                                                                │
00:01:53 verbose #2062 > > │ Test case 1. A. Time: 186L                                                   │
00:01:53 verbose #2063 > > │                                                                              │
00:01:53 verbose #2064 > > │ Solution: 3,5                                                                │
00:01:53 verbose #2065 > > │ Test case 1. A. Time: 206L                                                   │
00:01:53 verbose #2066 > > │                                                                              │
00:01:53 verbose #2067 > > │ Solution: 3,4,6                                                              │
00:01:53 verbose #2068 > > │ Test case 1. A. Time: 149L                                                   │
00:01:53 verbose #2069 > > │                                                                              │
00:01:53 verbose #2070 > > │ Solution: 2,4,6                                                              │
00:01:53 verbose #2071 > > │ Test case 1. A. Time: 150L                                                   │
00:01:53 verbose #2072 > > │                                                                              │
00:01:53 verbose #2073 > > │ Input   | Expected        | Result  | Best                                   │
00:01:53 verbose #2074 > > │ ---     | ---             | ---     | ---                                    │
00:01:53 verbose #2075 > > │ 0       | False           | False   | (1, 137)                               │
00:01:53 verbose #2076 > > │ 1,2     | True            | True    | (1, 186)                               │
00:01:53 verbose #2077 > > │ 3,5     | False           | False   | (1, 206)                               │
00:01:53 verbose #2078 > > │ 3,4,6   | True            | True    | (1, 149)                               │
00:01:53 verbose #2079 > > │ 2,4,6   | False           | False   | (1, 150)                               │
00:01:53 verbose #2080 > > │                                                                              │
00:01:53 verbose #2081 > > │ Averages                                                                     │
00:01:53 verbose #2082 > > │ Test case 1. Average Time: 165L                                              │
00:01:53 verbose #2083 > > │                                                                              │
00:01:53 verbose #2084 > > │ Ranking                                                                      │
00:01:53 verbose #2085 > > │ Test case 1. Average Time: 165L                                              │
00:01:53 verbose #2086 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:53 verbose #2087 > >
00:01:53 verbose #2088 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:53 verbose #2089 > > //// test
00:01:53 verbose #2090 > >
00:01:53 verbose #2091 > > let solutions = [[
00:01:53 verbose #2092 > >     "A",
00:01:53 verbose #2093 > >     fun (a: int[[]]) ->
00:01:53 verbose #2094 > >         let indices = System.Linq.Enumerable.Range(0, a.Length) |>
00:01:53 verbose #2095 > > System.Linq.Enumerable.ToArray
00:01:53 verbose #2096 > >         System.Array.Sort (a, indices)
00:01:53 verbose #2097 > >
00:01:53 verbose #2098 > >         indices
00:01:53 verbose #2099 > >         |> Array.take (a.Length - 1)
00:01:53 verbose #2100 > >         |> Array.exists (fun i -> a.[[i + 1]] - a.[[i]] = 1)
00:01:53 verbose #2101 > > ]]
00:01:53 verbose #2102 > > let testCases = seq {
00:01:53 verbose #2103 > >     [[| 0 |]], false
00:01:53 verbose #2104 > >     [[| 1; 2 |]], true
00:01:53 verbose #2105 > >     [[| 3; 5 |]], false
00:01:53 verbose #2106 > >     [[| 3; 4; 6 |]], true
00:01:53 verbose #2107 > >     [[| 2; 4; 6 |]], false
00:01:53 verbose #2108 > > }
00:01:53 verbose #2109 > > let rec hasAnyPairCloseToEachotherTests =
00:01:53 verbose #2110 > >     runAll (nameof hasAnyPairCloseToEachotherTests) _count solutions testCases
00:01:53 verbose #2111 > > hasAnyPairCloseToEachotherTests
00:01:53 verbose #2112 > > |> sortResultList
00:01:54 verbose #2113 > >
00:01:54 verbose #2114 > > ╭─[ 1.19s - stdout ]───────────────────────────────────────────────────────────╮
00:01:54 verbose #2115 > > │                                                                              │
00:01:54 verbose #2116 > > │                                                                              │
00:01:54 verbose #2117 > > │ Test: hasAnyPairCloseToEachotherTests                                        │
00:01:54 verbose #2118 > > │                                                                              │
00:01:54 verbose #2119 > > │ Solution: 0                                                                  │
00:01:54 verbose #2120 > > │ Test case 1. A. Time: 2L                                                     │
00:01:54 verbose #2121 > > │                                                                              │
00:01:54 verbose #2122 > > │ Solution: 1,2                                                                │
00:01:54 verbose #2123 > > │ Test case 1. A. Time: 0L                                                     │
00:01:54 verbose #2124 > > │                                                                              │
00:01:54 verbose #2125 > > │ Solution: 3,5                                                                │
00:01:54 verbose #2126 > > │ Test case 1. A. Time: 0L                                                     │
00:01:54 verbose #2127 > > │                                                                              │
00:01:54 verbose #2128 > > │ Solution: 3,4,6                                                              │
00:01:54 verbose #2129 > > │ Test case 1. A. Time: 0L                                                     │
00:01:54 verbose #2130 > > │                                                                              │
00:01:54 verbose #2131 > > │ Solution: 2,4,6                                                              │
00:01:54 verbose #2132 > > │ Test case 1. A. Time: 0L                                                     │
00:01:54 verbose #2133 > > │                                                                              │
00:01:54 verbose #2134 > > │ Input	| Expected	| Result	| Best                                                   │
00:01:54 verbose #2135 > > │ ---  	| ---     	| ---   	| ---                                                    │
00:01:54 verbose #2136 > > │ 0    	| False   	| False 	| (1, 2)                                                 │
00:01:54 verbose #2137 > > │ 1,2  	| True    	| True  	| (1, 0)                                                 │
00:01:54 verbose #2138 > > │ 3,5  	| False   	| False 	| (1, 0)                                                 │
00:01:54 verbose #2139 > > │ 3,4,6	| True    	| True  	| (1, 0)                                                 │
00:01:54 verbose #2140 > > │ 2,4,6	| False   	| False 	| (1, 0)                                                 │
00:01:54 verbose #2141 > > │                                                                              │
00:01:54 verbose #2142 > > │ Average Ranking                                                              │
00:01:54 verbose #2143 > > │ Test case 1. Average Time: 0L                                                │
00:01:54 verbose #2144 > > │                                                                              │
00:01:54 verbose #2145 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:54 verbose #2146 > 00:01:52 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 125147 }
00:01:54 verbose #2147 > 00:01:52   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/apps/perf/Perf.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/apps/perf/Perf.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:57 verbose #2148 > 00:01:55 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/apps/perf/Perf.dib.ipynb to html
00:01:57 verbose #2149 > 00:01:55 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:01:57 verbose #2150 > 00:01:55 verbose #7 !   validate(nb)
00:01:59 verbose #2151 > 00:01:57 verbose #8 ! [NbConvertApp] Writing 458540 bytes to c:\home\git\polyglot\apps\perf\Perf.dib.html
00:01:59 verbose #2152 > 00:01:57 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 637 }
00:01:59 verbose #2153 > 00:01:57   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 637 }
00:01:59 verbose #2154 > 00:01:57   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/apps/perf/Perf.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/apps/perf/Perf.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:02:00 verbose #2155 > 00:01:58 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:02:00 verbose #2156 > 00:01:58   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:02:01 verbose #2157 > 00:01:59   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 125843 }
00:02:01   debug #2158 runtime.execute_with_options_async / { exit_code = 0; output_length = 132698 }
00:02:01   debug #3 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path Perf.dib --retries 3
00:02:01 verbose #6 networking.wait_for_port_access / { port = 13805; retry = 0; timeout = Some 100; status = false }
00:02:01 verbose #7 async.run_with_timeout_async / { timeout = 100 }
00:00:00   debug #1 writeDibCode / output: Fs / path: Perf.dib
00:00:00   debug #2 parseDibCode / output: Fs / file: Perf.dib
In [ ]:
{ pwsh ../apps/dir-tree-html/build.ps1 } | Invoke-Block
00:00:00 verbose #1 async.run_with_timeout_async / { timeout = 180 }
00:00:00   debug #1 runtime.execute_with_options_async / { options = { command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = Some <fun:main@570-7>; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot" } }
00:00:01 verbose #2 > 00:00:00   debug #1 pwd: C:\home\git\polyglot
00:00:01 verbose #3 > 00:00:00   debug #2 dllPath: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:01 verbose #4 > 00:00:00   debug #3 targetDir: C:\home\git\polyglot\target/spiral_Eval
00:00:01 verbose #2 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #3 networking.wait_for_port_access / { port = 13805; retry = 0; timeout = Some 100; status = true }
00:00:01 verbose #4 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #5 > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:01 verbose #5 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #1 Supervisor.sendJson / port: 13805 / json: {"Ping":true} / result:
00:00:01 verbose #2 awaitCompiler / Ping / result: 'Some(null)' / port: 13805 / retry: 0
00:00:01 verbose #6 > Server bound to: http://localhost:13805
00:00:01   debug #7 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path DirTreeHtml.dib; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:01 verbose #8 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "DirTreeHtml.dib"])) }
00:00:01 verbose #9 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/apps/dir-tree-html/DirTreeHtml.dib", "--output-path", "c:/home/git/polyglot/apps/dir-tree-html/DirTreeHtml.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/apps/dir-tree-html/DirTreeHtml.dib" --output-path "c:/home/git/polyglot/apps/dir-tree-html/DirTreeHtml.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:00:04 verbose #10 > >
00:00:04 verbose #11 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:04 verbose #12 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:04 verbose #13 > > │ # DirTreeHtml (Polyglot)                                                     │
00:00:04 verbose #14 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 verbose #15 > >
00:00:08 verbose #16 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:08 verbose #17 > > #r
00:00:08 verbose #18 > > @"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
00:00:08 verbose #19 > > dard2.1/FSharp.Control.AsyncSeq.dll"
00:00:08 verbose #20 > > #r
00:00:08 verbose #21 > > @"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
00:00:08 verbose #22 > > 0/System.Reactive.dll"
00:00:08 verbose #23 > > #r
00:00:08 verbose #24 > > @"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib
00:00:08 verbose #25 > > netstandard2.0/System.Reactive.Linq.dll"
00:00:08 verbose #26 > > #r
00:00:08 verbose #27 > > @"../../../../../../../.nuget/packages/argu/6.2.4/lib/netstandard2.0/Argu.dll"
00:00:08 verbose #28 > > #r
00:00:08 verbose #29 > > @"../../../../../../../.nuget/packages/falco.markup/1.1.1/lib/netstandard2.0/Fal
00:00:08 verbose #30 > > co.Markup.dll"
00:00:24 verbose #31 > >
00:00:24 verbose #32 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:24 verbose #33 > > #if !INTERACTIVE
00:00:24 verbose #34 > > open Lib
00:00:24 verbose #35 > > #endif
00:00:24 verbose #36 > >
00:00:24 verbose #37 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:24 verbose #38 > > open SpiralFileSystem.Operators
00:00:24 verbose #39 > > open Falco.Markup
00:00:24 verbose #40 > >
00:00:24 verbose #41 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:24 verbose #42 > > type FileSystemNode =
00:00:24 verbose #43 > >     | File of string * string * int64
00:00:24 verbose #44 > >     | Folder of string * string * FileSystemNode list
00:00:24 verbose #45 > >     | Root of FileSystemNode list
00:00:24 verbose #46 > >
00:00:24 verbose #47 > > let rec scanDirectory isRoot (basePath : string) (path : string) =
00:00:24 verbose #48 > >     let relativePath =
00:00:24 verbose #49 > >         path
00:00:24 verbose #50 > >         |> SpiralSm.replace basePath ""
00:00:24 verbose #51 > >         |> SpiralSm.replace "\\" "/"
00:00:24 verbose #52 > >         |> SpiralSm.replace "//" "/"
00:00:24 verbose #53 > >         |> SpiralSm.trim_start [[| '/' |]]
00:00:24 verbose #54 > >
00:00:24 verbose #55 > >     let directories =
00:00:24 verbose #56 > >         path
00:00:24 verbose #57 > >         |> System.IO.Directory.GetDirectories
00:00:24 verbose #58 > >         |> Array.toList
00:00:24 verbose #59 > >         |> List.sort
00:00:24 verbose #60 > >         |> List.map (scanDirectory false basePath)
00:00:24 verbose #61 > >     let files =
00:00:24 verbose #62 > >         path
00:00:24 verbose #63 > >         |> System.IO.Directory.GetFiles
00:00:24 verbose #64 > >         |> Array.toList
00:00:24 verbose #65 > >         |> List.sort
00:00:24 verbose #66 > >         |> List.map (fun f -> File (System.IO.Path.GetFileName f, relativePath,
00:00:24 verbose #67 > > System.IO.FileInfo(f).Length))
00:00:24 verbose #68 > >
00:00:24 verbose #69 > >     let children = directories @ files
00:00:24 verbose #70 > >     if isRoot
00:00:24 verbose #71 > >     then Root children
00:00:24 verbose #72 > >     else Folder (path |> System.IO.Path.GetFileName, relativePath, children)
00:00:24 verbose #73 > >
00:00:24 verbose #74 > > let rec generateHtml fsNode =
00:00:24 verbose #75 > >     let sizeLabel size =
00:00:24 verbose #76 > >         match float size with
00:00:24 verbose #77 > >         | size when size > 1024.0 * 1024.0 -> $"%.2f{size / 1024.0 / 1024.0} MB"
00:00:24 verbose #78 > >         | size when size > 1024.0 -> $"%.2f{size / 1024.0} KB"
00:00:24 verbose #79 > >         | size -> $"%.2f{size} B"
00:00:24 verbose #80 > >     match fsNode with
00:00:24 verbose #81 > >     | File (fileName, relativePath, size) ->
00:00:24 verbose #82 > >         Elem.div [[]] [[
00:00:24 verbose #83 > >             Text.raw "&#128196; "
00:00:24 verbose #84 > >             Elem.a [[
00:00:24 verbose #85 > >                 Attr.href $"""{relativePath}{if relativePath = "" then "" else
00:00:24 verbose #86 > > "/"}{fileName}"""
00:00:24 verbose #87 > >             ]] [[
00:00:24 verbose #88 > >                 Text.raw fileName
00:00:24 verbose #89 > >             ]]
00:00:24 verbose #90 > >             Elem.span [[]] [[
00:00:24 verbose #91 > >                 Text.raw $" ({size |> sizeLabel})"
00:00:24 verbose #92 > >             ]]
00:00:24 verbose #93 > >         ]]
00:00:24 verbose #94 > >     | Folder (folderName, relativePath, children) ->
00:00:24 verbose #95 > >         let size =
00:00:24 verbose #96 > >             let rec loop children =
00:00:24 verbose #97 > >                 children
00:00:24 verbose #98 > >                 |> List.sumBy (function
00:00:24 verbose #99 > >                     | File (_, _, size) -> size
00:00:24 verbose #100 > >                     | Folder (_, _, children)
00:00:24 verbose #101 > >                     | Root children -> loop children
00:00:24 verbose #102 > >                 )
00:00:24 verbose #103 > >             loop children
00:00:24 verbose #104 > >         Elem.details [[
00:00:24 verbose #105 > >             Attr.open' "true"
00:00:24 verbose #106 > >         ]] [[
00:00:24 verbose #107 > >             Elem.summary [[]] [[
00:00:24 verbose #108 > >                 Text.raw "&#128194; "
00:00:24 verbose #109 > >                 Elem.a [[
00:00:24 verbose #110 > >                     Attr.href relativePath
00:00:24 verbose #111 > >                 ]] [[
00:00:24 verbose #112 > >                     Text.raw folderName
00:00:24 verbose #113 > >                 ]]
00:00:24 verbose #114 > >                 Elem.span [[]] [[
00:00:24 verbose #115 > >                     Text.raw $" ({size |> sizeLabel})"
00:00:24 verbose #116 > >                 ]]
00:00:24 verbose #117 > >             ]]
00:00:24 verbose #118 > >             Elem.div [[]] [[
00:00:24 verbose #119 > >                 yield! children |> List.map generateHtml
00:00:24 verbose #120 > >             ]]
00:00:24 verbose #121 > >         ]]
00:00:24 verbose #122 > >     | Root children ->
00:00:24 verbose #123 > >         Elem.div [[]] [[
00:00:24 verbose #124 > >             yield! children |> List.map generateHtml
00:00:24 verbose #125 > >         ]]
00:00:24 verbose #126 > >
00:00:24 verbose #127 > > let generateHtmlForFileSystem root =
00:00:24 verbose #128 > >     $"""<!DOCTYPE html>
00:00:24 verbose #129 > > <html lang="en">
00:00:24 verbose #130 > > <head>
00:00:24 verbose #131 > >   <meta charset="UTF-8">
00:00:24 verbose #132 > >   <style>
00:00:24 verbose #133 > > body {{
00:00:24 verbose #134 > >     background-color: #222;
00:00:24 verbose #135 > >     color: #ccc;
00:00:24 verbose #136 > > }}
00:00:24 verbose #137 > > a {{
00:00:24 verbose #138 > >   color: #777;
00:00:24 verbose #139 > >   font-size: 15px;
00:00:24 verbose #140 > > }}
00:00:24 verbose #141 > > span {{
00:00:24 verbose #142 > >   font-size: 11px;
00:00:24 verbose #143 > > }}
00:00:24 verbose #144 > > div > div {{
00:00:24 verbose #145 > >   padding-left: 10px;
00:00:24 verbose #146 > > }}
00:00:24 verbose #147 > > details > div {{
00:00:24 verbose #148 > >   padding-left: 19px;
00:00:24 verbose #149 > > }}
00:00:24 verbose #150 > >   </style>
00:00:24 verbose #151 > > </head>
00:00:24 verbose #152 > > <body>
00:00:24 verbose #153 > >   {root |> generateHtml |> renderNode}
00:00:24 verbose #154 > > </body>
00:00:24 verbose #155 > > </html>
00:00:24 verbose #156 > > """
00:00:24 verbose #157 > >
00:00:24 verbose #158 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:24 verbose #159 > > //// test
00:00:24 verbose #160 > >
00:00:24 verbose #161 > > let expected = """<!DOCTYPE html>
00:00:24 verbose #162 > > <html lang="en">
00:00:24 verbose #163 > > <head>
00:00:24 verbose #164 > >   <meta charset="UTF-8">
00:00:24 verbose #165 > >   <style>
00:00:24 verbose #166 > > body {
00:00:24 verbose #167 > >     background-color: #222;
00:00:24 verbose #168 > >     color: #ccc;
00:00:24 verbose #169 > > }
00:00:24 verbose #170 > > a {
00:00:24 verbose #171 > >   color: #777;
00:00:24 verbose #172 > >   font-size: 15px;
00:00:24 verbose #173 > > }
00:00:24 verbose #174 > > span {
00:00:24 verbose #175 > >   font-size: 11px;
00:00:24 verbose #176 > > }
00:00:24 verbose #177 > > div > div {
00:00:24 verbose #178 > >   padding-left: 10px;
00:00:24 verbose #179 > > }
00:00:24 verbose #180 > > details > div {
00:00:24 verbose #181 > >   padding-left: 19px;
00:00:24 verbose #182 > > }
00:00:24 verbose #183 > >   </style>
00:00:24 verbose #184 > > </head>
00:00:24 verbose #185 > > <body>
00:00:24 verbose #186 > >   <div><details open="true"><summary>&#128194; <a href="_.root">_.root</a><span>
00:00:24 verbose #187 > > (10.00 B)</span></summary><div><details open="true"><summary>&#128194; <a
00:00:24 verbose #188 > > href="_.root/3">3</a><span> (6.00 B)</span></summary><div><details
00:00:24 verbose #189 > > open="true"><summary>&#128194; <a href="_.root/3/2">2</a><span> (3.00
00:00:24 verbose #190 > > B)</span></summary><div><details open="true"><summary>&#128194; <a
00:00:24 verbose #191 > > href="_.root/3/2/1">1</a><span> (1.00 B)</span></summary><div><div>&#128196; <a
00:00:24 verbose #192 > > href="_.root/3/2/1/file.txt">file.txt</a><span> (1.00
00:00:24 verbose #193 > > B)</span></div></div></details><div>&#128196; <a
00:00:24 verbose #194 > > href="_.root/3/2/file.txt">file.txt</a><span> (2.00
00:00:24 verbose #195 > > B)</span></div></div></details><div>&#128196; <a
00:00:24 verbose #196 > > href="_.root/3/file.txt">file.txt</a><span> (3.00
00:00:24 verbose #197 > > B)</span></div></div></details><div>&#128196; <a
00:00:24 verbose #198 > > href="_.root/file.txt">file.txt</a><span> (4.00
00:00:24 verbose #199 > > B)</span></div></div></details></div>
00:00:24 verbose #200 > > </body>
00:00:24 verbose #201 > > </html>
00:00:24 verbose #202 > > """
00:00:24 verbose #203 > >
00:00:24 verbose #204 > > let struct (tempFolder, disposable) = expected |> SpiralCrypto.hash_text |>
00:00:24 verbose #205 > > SpiralFileSystem.create_temp_dir'
00:00:24 verbose #206 > > let rec loop d n = async {
00:00:24 verbose #207 > >     if n >= 0 then
00:00:24 verbose #208 > >         tempFolder </> d |> System.IO.Directory.CreateDirectory |> ignore
00:00:24 verbose #209 > >         do!
00:00:24 verbose #210 > >             n
00:00:24 verbose #211 > >             |> string
00:00:24 verbose #212 > >             |> String.replicate (n + 1)
00:00:24 verbose #213 > >             |> SpiralFileSystem.write_all_text_async (tempFolder </> d </>
00:00:24 verbose #214 > > $"file.txt")
00:00:24 verbose #215 > >         do! loop $"{d}/{n}" (n - 1)
00:00:24 verbose #216 > > }
00:00:24 verbose #217 > > loop "_.root" 3
00:00:24 verbose #218 > > |> Async.RunSynchronously
00:00:24 verbose #219 > >
00:00:24 verbose #220 > > let html =
00:00:24 verbose #221 > >     scanDirectory true tempFolder tempFolder
00:00:24 verbose #222 > >     |> generateHtmlForFileSystem
00:00:24 verbose #223 > >
00:00:24 verbose #224 > > html
00:00:24 verbose #225 > > |> _assertEqual expected
00:00:24 verbose #226 > >
00:00:24 verbose #227 > > disposable.Dispose ()
00:00:24 verbose #228 > >
00:00:24 verbose #229 > > html |> Microsoft.DotNet.Interactive.Formatting.Html.ToHtmlContent
00:00:25 verbose #230 > >
00:00:25 verbose #231 > > ╭─[ 182.23ms - return value ]──────────────────────────────────────────────────╮
00:00:25 verbose #232 > > │ <!DOCTYPE html>                                                              │
00:00:25 verbose #233 > > │ <html lang="en">                                                             │
00:00:25 verbose #234 > > │ <head>                                                                       │
00:00:25 verbose #235 > > │   <meta charset="UTF-8">                                                     │
00:00:25 verbose #236 > > │   <style>                                                                    │
00:00:25 verbose #237 > > │ body {                                                                       │
00:00:25 verbose #238 > > │     background-color: #222;                                                  │
00:00:25 verbose #239 > > │     color: #ccc;                                                             │
00:00:25 verbose #240 > > │ }                                                                            │
00:00:25 verbose #241 > > │ a {                                                                          │
00:00:25 verbose #242 > > │   color: #777;                                                               │
00:00:25 verbose #243 > > │   font-size: 15px;                                                           │
00:00:25 verbose #244 > > │ }                                                                            │
00:00:25 verbose #245 > > │ span {                                                                       │
00:00:25 verbose #246 > > │   font-size: 11px;                                                           │
00:00:25 verbose #247 > > │ }                                                                            │
00:00:25 verbose #248 > > │ div > div {                                                                  │
00:00:25 verbose #249 > > │   padding-left: 10px;                                                        │
00:00:25 verbose #250 > > │ }                                                                            │
00:00:25 verbose #251 > > │ details > div {                                                              │
00:00:25 verbose #252 > > │   padding-left: 19px;                                                        │
00:00:25 verbose #253 > > │ }                                                                            │
00:00:25 verbose #254 > > │   </style>                                                                   │
00:00:25 verbose #255 > > │ </head>                                                                      │
00:00:25 verbose #256 > > │ <body>                                                                       │
00:00:25 verbose #257 > > │   <div><details open="true"><summary>&#128194; <a                            │
00:00:25 verbose #258 > > │ href="_.root">_.root</a><span> (10.00 B)</span></summary><div><details       │
00:00:25 verbose #259 > > │ open="true"><summary>&#128194; <a href="_.root/3">3</a><span> (6.00          │
00:00:25 verbose #260 > > │ B)</span></summary><div><details open="true"><summary>&#128194; <a           │
00:00:25 verbose #261 > > │ href="_.root/3/2">2</a><span> (3.00 B)</span></summary><div><details         │
00:00:25 verbose #262 > > │ open="true"><summary>&#128194; <a href="_.root/3/2/1">1</a><span> (1.00      │
00:00:25 verbose #263 > > │ B)</span></summary><div><div>&#128196; <a                                    │
00:00:25 verbose #264 > > │ href="_.root/3/2/1/file.txt">file.txt</a><span> (1.00                        │
00:00:25 verbose #265 > > │ B)</span></div></div></details><div>&#128196; <a                             │
00:00:25 verbose #266 > > │ href="_.root/3/2/file.txt">file.txt</a><span> (2.00                          │
00:00:25 verbose #267 > > │ B)</span></div></div></details><div>&#128196; <a                             │
00:00:25 verbose #268 > > │ href="_.root/3/file.txt">file.txt</a><span> (3.00                            │
00:00:25 verbose #269 > > │ B)</span></div></div></details><div>&#128196; <a                             │
00:00:25 verbose #270 > > │ href="_.root/file.txt">file.txt</a><span> (4.00                              │
00:00:25 verbose #271 > > │ B)</span></div></div></details></div>                                        │
00:00:25 verbose #272 > > │ </body>                                                                      │
00:00:25 verbose #273 > > │ </html>                                                                      │
00:00:25 verbose #274 > > │                                                                              │
00:00:25 verbose #275 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:25 verbose #276 > >
00:00:25 verbose #277 > > ╭─[ 188.24ms - stdout ]────────────────────────────────────────────────────────╮
00:00:25 verbose #278 > > │ "<!DOCTYPE html>                                                             │
00:00:25 verbose #279 > > │ <html lang="en">                                                             │
00:00:25 verbose #280 > > │ <head>                                                                       │
00:00:25 verbose #281 > > │   <meta charset="UTF-8">                                                     │
00:00:25 verbose #282 > > │   <style>                                                                    │
00:00:25 verbose #283 > > │ body {                                                                       │
00:00:25 verbose #284 > > │     background-color: #222;                                                  │
00:00:25 verbose #285 > > │     color: #ccc;                                                             │
00:00:25 verbose #286 > > │ }                                                                            │
00:00:25 verbose #287 > > │ a {                                                                          │
00:00:25 verbose #288 > > │   color: #777;                                                               │
00:00:25 verbose #289 > > │   font-size: 15px;                                                           │
00:00:25 verbose #290 > > │ }                                                                            │
00:00:25 verbose #291 > > │ span {                                                                       │
00:00:25 verbose #292 > > │   font-size: 11px;                                                           │
00:00:25 verbose #293 > > │ }                                                                            │
00:00:25 verbose #294 > > │ div > div {                                                                  │
00:00:25 verbose #295 > > │   padding-left: 10px;                                                        │
00:00:25 verbose #296 > > │ }                                                                            │
00:00:25 verbose #297 > > │ details > div {                                                              │
00:00:25 verbose #298 > > │   padding-left: 19px;                                                        │
00:00:25 verbose #299 > > │ }                                                                            │
00:00:25 verbose #300 > > │   </style>                                                                   │
00:00:25 verbose #301 > > │ </head>                                                                      │
00:00:25 verbose #302 > > │ <body>                                                                       │
00:00:25 verbose #303 > > │   <div><details open="true"><summary>&#128194; <a                            │
00:00:25 verbose #304 > > │ href="_.root">_.root</a><span> (10.00 B)</span></summary><div><details       │
00:00:25 verbose #305 > > │ open="true"><summary>&#128194; <a href="_.root/3">3</a><span> (6.00          │
00:00:25 verbose #306 > > │ B)</span></summary><div><details open="true"><summary>&#128194; <a           │
00:00:25 verbose #307 > > │ href="_.root/3/2">2</a><span> (3.00 B)</span></summary><div><details         │
00:00:25 verbose #308 > > │ open="true"><summary>&#128194; <a href="_.root/3/2/1">1</a><span> (1.00      │
00:00:25 verbose #309 > > │ B)</span></summary><div><div>&#128196; <a                                    │
00:00:25 verbose #310 > > │ href="_.root/3/2/1/file.txt">file.txt</a><span> (1.00                        │
00:00:25 verbose #311 > > │ B)</span></div></div></details><div>&#128196; <a                             │
00:00:25 verbose #312 > > │ href="_.root/3/2/file.txt">file.txt</a><span> (2.00                          │
00:00:25 verbose #313 > > │ B)</span></div></div></details><div>&#128196; <a                             │
00:00:25 verbose #314 > > │ href="_.root/3/file.txt">file.txt</a><span> (3.00                            │
00:00:25 verbose #315 > > │ B)</span></div></div></details><div>&#128196; <a                             │
00:00:25 verbose #316 > > │ href="_.root/file.txt">file.txt</a><span> (4.00                              │
00:00:25 verbose #317 > > │ B)</span></div></div></details></div>                                        │
00:00:25 verbose #318 > > │ </body>                                                                      │
00:00:25 verbose #319 > > │ </html>                                                                      │
00:00:25 verbose #320 > > │ "                                                                            │
00:00:25 verbose #321 > > │                                                                              │
00:00:25 verbose #322 > > │                                                                              │
00:00:25 verbose #323 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:25 verbose #324 > >
00:00:25 verbose #325 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:25 verbose #326 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:25 verbose #327 > > │ ## Arguments                                                                 │
00:00:25 verbose #328 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:25 verbose #329 > >
00:00:25 verbose #330 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:25 verbose #331 > > [[<RequireQualifiedAccess>]]
00:00:25 verbose #332 > > type Arguments =
00:00:25 verbose #333 > >     | [[<Argu.ArguAttributes.ExactlyOnce>]] Dir of string
00:00:25 verbose #334 > >     | [[<Argu.ArguAttributes.ExactlyOnce>]] Html of string
00:00:25 verbose #335 > >
00:00:25 verbose #336 > >     interface Argu.IArgParserTemplate with
00:00:25 verbose #337 > >         member s.Usage =
00:00:25 verbose #338 > >             match s with
00:00:25 verbose #339 > >             | Dir _ -> nameof Dir
00:00:25 verbose #340 > >             | Html _ -> nameof Html
00:00:25 verbose #341 > >
00:00:25 verbose #342 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:25 verbose #343 > > //// test
00:00:25 verbose #344 > >
00:00:25 verbose #345 > > Argu.ArgumentParser.Create<Arguments>().PrintUsage ()
00:00:25 verbose #346 > >
00:00:25 verbose #347 > > ╭─[ 109.35ms - return value ]──────────────────────────────────────────────────╮
00:00:25 verbose #348 > > │ "USAGE: dotnet-repl [--help] --dir <string> --html <string>                  │
00:00:25 verbose #349 > > │                                                                              │
00:00:25 verbose #350 > > │ OPTIONS:                                                                     │
00:00:25 verbose #351 > > │                                                                              │
00:00:25 verbose #352 > > │     --dir <string>        Dir                                                │
00:00:25 verbose #353 > > │     --html <string>       Html                                               │
00:00:25 verbose #354 > > │     --help                display this list of options.                      │
00:00:25 verbose #355 > > │ "                                                                            │
00:00:25 verbose #356 > > │                                                                              │
00:00:25 verbose #357 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:25 verbose #358 > >
00:00:25 verbose #359 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:25 verbose #360 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:25 verbose #361 > > │ ## main                                                                      │
00:00:25 verbose #362 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:25 verbose #363 > >
00:00:25 verbose #364 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:25 verbose #365 > > let main args =
00:00:25 verbose #366 > >     let argsMap = args |> Runtime.parseArgsMap<Arguments>
00:00:25 verbose #367 > >
00:00:25 verbose #368 > >     let dir =
00:00:25 verbose #369 > >         match argsMap.[[nameof Arguments.Dir]] with
00:00:25 verbose #370 > >         | [[ Arguments.Dir dir ]] -> Some dir
00:00:25 verbose #371 > >         | _ -> None
00:00:25 verbose #372 > >         |> Option.get
00:00:25 verbose #373 > >
00:00:25 verbose #374 > >     let htmlPath =
00:00:25 verbose #375 > >         match argsMap.[[nameof Arguments.Html]] with
00:00:25 verbose #376 > >         | [[ Arguments.Html html ]] -> Some html
00:00:25 verbose #377 > >         | _ -> None
00:00:25 verbose #378 > >         |> Option.get
00:00:25 verbose #379 > >
00:00:25 verbose #380 > >     let fileSystem = scanDirectory true dir dir
00:00:25 verbose #381 > >     let html = generateHtmlForFileSystem fileSystem
00:00:25 verbose #382 > >
00:00:25 verbose #383 > >     html |> SpiralFileSystem.write_all_text_async htmlPath
00:00:25 verbose #384 > >     |> Async.runWithTimeout 30000
00:00:25 verbose #385 > >     |> function
00:00:25 verbose #386 > >         | Some () -> 0
00:00:25 verbose #387 > >         | None -> 1
00:00:25 verbose #388 > >
00:00:25 verbose #389 > > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:25 verbose #390 > > //// test
00:00:25 verbose #391 > >
00:00:25 verbose #392 > > let args =
00:00:25 verbose #393 > >     System.Environment.GetEnvironmentVariable "ARGS"
00:00:25 verbose #394 > >     |> SpiralRuntime.split_args
00:00:25 verbose #395 > >     |> Result.toArray
00:00:25 verbose #396 > >     |> Array.collect id
00:00:25 verbose #397 > >
00:00:25 verbose #398 > > match args with
00:00:25 verbose #399 > > | [[||]] -> 0
00:00:25 verbose #400 > > | args -> if main args = 0 then 0 else failwith "main failed"
00:00:25 verbose #401 > >
00:00:25 verbose #402 > > ╭─[ 83.60ms - return value ]───────────────────────────────────────────────────╮
00:00:25 verbose #403 > > │ <div class="dni-plaintext"><pre>0                                            │
00:00:25 verbose #404 > > │ </pre></div><style>                                                          │
00:00:25 verbose #405 > > │ .dni-code-hint {                                                             │
00:00:25 verbose #406 > > │     font-style: italic;                                                      │
00:00:25 verbose #407 > > │     overflow: hidden;                                                        │
00:00:25 verbose #408 > > │     white-space: nowrap;                                                     │
00:00:25 verbose #409 > > │ }                                                                            │
00:00:25 verbose #410 > > │ .dni-treeview {                                                              │
00:00:25 verbose #411 > > │     white-space: nowrap;                                                     │
00:00:25 verbose #412 > > │ }                                                                            │
00:00:25 verbose #413 > > │ .dni-treeview td {                                                           │
00:00:25 verbose #414 > > │     vertical-align: top;                                                     │
00:00:25 verbose #415 > > │     text-align: start;                                                       │
00:00:25 verbose #416 > > │ }                                                                            │
00:00:25 verbose #417 > > │ details.dni-treeview {                                                       │
00:00:25 verbose #418 > > │     padding-left: 1em;                                                       │
00:00:25 verbose #419 > > │ }                                                                            │
00:00:25 verbose #420 > > │ table td {                                                                   │
00:00:25 verbose #421 > > │     text-align: start;                                                       │
00:00:25 verbose #422 > > │ }                                                                            │
00:00:25 verbose #423 > > │ table tr {                                                                   │
00:00:25 verbose #424 > > │     vertical-align: top;                                                     │
00:00:25 verbose #425 > > │     margin: 0em 0px;                                                         │
00:00:25 verbose #426 > > │ }                                                                            │
00:00:25 verbose #427 > > │ table tr td pre                                                              │
00:00:25 verbose #428 > > │ {                                                                            │
00:00:25 verbose #429 > > │     vertical-align: top !important;                                          │
00:00:25 verbose #430 > > │     margin: 0em 0px !important;                                              │
00:00:25 verbose #431 > > │ }                                                                            │
00:00:25 verbose #432 > > │ table th {                                                                   │
00:00:25 verbose #433 > > │     text-align: start;                                                       │
00:00:25 verbose #434 > > │ }                                                                            │
00:00:25 verbose #435 > > │ </style>                                                                     │
00:00:25 verbose #436 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:25 verbose #437 > 00:00:23 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 19755 }
00:00:25 verbose #438 > 00:00:23   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/apps/dir-tree-html/DirTreeHtml.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/apps/dir-tree-html/DirTreeHtml.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:27 verbose #439 > 00:00:25 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/apps/dir-tree-html/DirTreeHtml.dib.ipynb to html
00:00:27 verbose #440 > 00:00:25 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:27 verbose #441 > 00:00:25 verbose #7 !   validate(nb)
00:00:28 verbose #442 > 00:00:27 verbose #8 ! [NbConvertApp] Writing 309931 bytes to c:\home\git\polyglot\apps\dir-tree-html\DirTreeHtml.dib.html
00:00:29 verbose #443 > 00:00:27 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 669 }
00:00:29 verbose #444 > 00:00:27   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 669 }
00:00:29 verbose #445 > 00:00:27   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/apps/dir-tree-html/DirTreeHtml.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/apps/dir-tree-html/DirTreeHtml.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:30 verbose #446 > 00:00:28 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:00:30 verbose #447 > 00:00:28   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:00:30 verbose #448 > 00:00:28   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 20483 }
00:00:30   debug #449 runtime.execute_with_options_async / { exit_code = 0; output_length = 24045 }
00:00:30   debug #3 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path DirTreeHtml.dib
00:00:30 verbose #6 networking.wait_for_port_access / { port = 13805; retry = 0; timeout = Some 100; status = false }
00:00:30 verbose #7 async.run_with_timeout_async / { timeout = 100 }
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("reqwest_wasm::Error")>]
#endif
type reqwest_Error = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("reqwest_wasm::RequestBuilder")>]
#endif
type reqwest_RequestBuilder = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("reqwest_wasm::Response")>]
#endif
type reqwest_Response = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::env::VarError")>]
#endif
type std_env_VarError = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("core::any::Any")>]
#endif
type core_any_Any = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("_")>]
#endif
type core_ops_Try<'T> = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("Func0<$0>")>]
#endif
type Func0<'T> = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("Func1<$0, $1>")>]
#endif
type Func0<'T, 'U> = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("Box<$0>")>]
#endif
type Box<'T> = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("dyn $0")>]
#endif
type Dyn<'T> = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("Send")>]
#endif
type Send<'T> = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("Fn() -> $0")>]
#endif
type Fn<'T> = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("Fn()")>]
#endif
type FnUnit = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("FnOnce() -> $0")>]
#endif
type FnOnce<'T> = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("Fn($0)")>]
#endif
type ActionFn<'T> = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("Fn($0, $1)")>]
#endif
type ActionFn2<'T, 'U> = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("impl $0")>]
#endif
type Impl<'T> = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("mut $0")>]
#endif
type Mut<'T> = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("&$0")>]
#endif
type Ref<'T> = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("$0 + $1")>]
#endif
type LifetimeJoin<'T, 'U> = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("'static")>]
#endif
type StaticLifetime = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("$0")>]
#endif
type LifetimeRef<'T> = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("$0 $1")>]
#endif
type Lifetime<'T, 'U> = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("MutCell<$0>")>]
#endif
type MutCell<'T> = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::any::Any")>]
#endif
type std_any_Any = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::borrow::Cow<$0>")>]
#endif
type std_borrow_Cow<'T> = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::cell::RefCell<$0>")>]
#endif
type std_cell_RefCell<'T> = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::pin::Pin<$0>")>]
#endif
type std_pin_Pin<'T> = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::rc::Rc<$0>")>]
#endif
type std_rc_Rc<'T> = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::rc::Weak<$0>")>]
#endif
type std_rc_Weak<'T> = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::collections::HashMap<$0, $1>")>]
#endif
type std_collections_HashMap<'K, 'V> = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::collections::BTreeMap<$0, $1>")>]
#endif
type std_collections_BTreeMap<'K, 'V> = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("[$0]")>]
#endif
type Slice<'T> = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("_")>]
#endif
type Slice'<'T> = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("Vec<$0>")>]
#endif
type Vec<'T> = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("str")>]
#endif
type Str = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("base64::DecodeError")>]
#endif
type base64_DecodeError = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("borsh::io::Error")>]
#endif
type borsh_io_Error = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("encoding_rs::Encoding")>]
#endif
type encoding_rs_Encoding = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("js_sys::JsString")>]
#endif
type js_sys_JsString = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("serde_json::Error")>]
#endif
type serde_json_Error = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("serde_json::Value")>]
#endif
type serde_json_Value = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("serde_wasm_bindgen::Error")>]
#endif
type serde_wasm_bindgen_Error = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::ffi::OsStr")>]
#endif
type std_ffi_OsStr = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::ffi::OsString")>]
#endif
type std_ffi_OsString = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::fmt::Display<$0>")>]
#endif
type std_fmt_Display<'T> = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::str::Utf8Error")>]
#endif
type std_str_Utf8Error = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::string::FromUtf8Error")>]
#endif
type std_string_FromUtf8Error = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>]
#endif
type std_string_String = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::slice::Windows<$0>")>]
#endif
type std_slice_Windows<'T> = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("regex::Regex")>]
#endif
type regex_Regex = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("regex::Captures<$0>")>]
#endif
type regex_Captures<'T> = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("regex::CaptureMatches")>]
#endif
type regex_CaptureMatches = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("regex::CaptureNames")>]
#endif
type regex_CaptureNames = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("regex::Match")>]
#endif
type regex_Match = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("regex::Error")>]
#endif
type regex_Error = class end
module State = let mutable trace_state = None
type IOsEnviron = abstract environ: x: unit -> obj
type [<Struct>] US0 =
    | US0_0
    | US0_1
    | US0_2
    | US0_3
    | US0_4
and Mut0 = {mutable l0 : int64}
and Mut1 = {mutable l0 : (string -> unit)}
and Mut2 = {mutable l0 : bool}
and Mut3 = {mutable l0 : US0}
and [<Struct>] US1 =
    | US1_0 of f0_0 : US0
    | US1_1
and [<Struct>] US2 =
    | US2_0 of f0_0 : int64
    | US2_1
and [<Struct>] US3 =
    | US3_0 of f0_0 : string
    | US3_1
and Mut4 = {mutable l0 : string}
and [<Struct>] US4 =
    | US4_0 of f0_0 : bool
    | US4_1
and [<Struct>] US5 =
    | US5_0 of f0_0 : bool
    | US5_1 of f1_0 : exn
and [<Struct>] US6 =
    | US6_0 of f0_0 : bool
    | US6_1 of f1_0 : exn
and [<Struct>] US7 =
    | US7_0 of f0_0 : int32
    | US7_1
let rec method0 () : string =
    let v0 : string = "TRACE_LEVEL"
    v0
and method2 () : string =
    let v0 : string = ""
    v0
and method1 (v0 : string) : string =
    let v3 : bool = true
    let mutable _v3 : string option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v4 : string = "std::env::var(&*$0)"
    let v5 : Result<std_string_String, std_env_VarError> = Fable.Core.RustInterop.emitRustExpr v0 v4 
    let v6 : string = "true; let _result = $0.map(|x| { //"
    let v7 : bool = Fable.Core.RustInterop.emitRustExpr v5 v6 
    let v8 : string = "x"
    let v9 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v8 
    let v10 : string = "fable_library_rust::String_::fromString($0)"
    let v11 : string = Fable.Core.RustInterop.emitRustExpr v9 v10 
    let v12 : string = "true; $0 })"
    let v13 : bool = Fable.Core.RustInterop.emitRustExpr v11 v12 
    let v14 : string = "_result"
    let v15 : Result<string, std_env_VarError> = Fable.Core.RustInterop.emitRustExpr () v14 
    let v16 : string = method2()
    let v17 : string = "$0.unwrap_or($1)"
    let v18 : string = Fable.Core.RustInterop.emitRustExpr struct (v15, v16) v17 
    v18 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v19 : string = "std::env::var(&*$0)"
    let v20 : Result<std_string_String, std_env_VarError> = Fable.Core.RustInterop.emitRustExpr v0 v19 
    let v21 : string = "true; let _result = $0.map(|x| { //"
    let v22 : bool = Fable.Core.RustInterop.emitRustExpr v20 v21 
    let v23 : string = "x"
    let v24 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v23 
    let v25 : string = "fable_library_rust::String_::fromString($0)"
    let v26 : string = Fable.Core.RustInterop.emitRustExpr v24 v25 
    let v27 : string = "true; $0 })"
    let v28 : bool = Fable.Core.RustInterop.emitRustExpr v26 v27 
    let v29 : string = "_result"
    let v30 : Result<string, std_env_VarError> = Fable.Core.RustInterop.emitRustExpr () v29 
    let v31 : string = method2()
    let v32 : string = "$0.unwrap_or($1)"
    let v33 : string = Fable.Core.RustInterop.emitRustExpr struct (v30, v31) v32 
    v33 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v34 : string = "std::env::var(&*$0)"
    let v35 : Result<std_string_String, std_env_VarError> = Fable.Core.RustInterop.emitRustExpr v0 v34 
    let v36 : string = "true; let _result = $0.map(|x| { //"
    let v37 : bool = Fable.Core.RustInterop.emitRustExpr v35 v36 
    let v38 : string = "x"
    let v39 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v38 
    let v40 : string = "fable_library_rust::String_::fromString($0)"
    let v41 : string = Fable.Core.RustInterop.emitRustExpr v39 v40 
    let v42 : string = "true; $0 })"
    let v43 : bool = Fable.Core.RustInterop.emitRustExpr v41 v42 
    let v44 : string = "_result"
    let v45 : Result<string, std_env_VarError> = Fable.Core.RustInterop.emitRustExpr () v44 
    let v46 : string = method2()
    let v47 : string = "$0.unwrap_or($1)"
    let v48 : string = Fable.Core.RustInterop.emitRustExpr struct (v45, v46) v47 
    v48 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v49 : string = "process.env[$0] ?? \"\""
    let v50 : string = Fable.Core.JsInterop.emitJsExpr v0 v49 
    v50 
    #endif
#if FABLE_COMPILER_PYTHON
    let v53 : string = "os"
    let v54 : IOsEnviron = Fable.Core.PyInterop.importAll v53 
    let v55 : string = "v54.environ"
    let v56 : obj = Fable.Core.PyInterop.emitPyExpr () v55 
    let v65 : string = "v56.get($0)"
    let v66 : string = Fable.Core.PyInterop.emitPyExpr v0 v65 
    let mutable _v66 = None
    #if !FABLE_COMPILER && !WASM && !CONTRACT
    let v75 : (string -> string option) = Option.ofObj
    let v76 : string option = v75 v66
    v76 
    #else
    Some v66 
    #endif
    |> fun x -> _v66 <- Some x
    let v77 : string option = match _v66 with Some x -> x | None -> failwith "optionm'.of_obj / _v66=None"
    let v86 : US3 option = None
    let _v86 = ref v86 
    match v77 with
    | Some x -> (
    (fun () ->
    (fun () ->
    let v87 : string = x
    let v88 : US3 = US3_0(v87)
    v88 
    )
    |> fun x -> x () |> Some
    ) () ) | None -> None
    |> fun x -> _v86.Value <- x
    let v89 : US3 option = _v86.Value 
    let v112 : US3 = US3_1
    let v113 : US3 = v89 |> Option.defaultValue v112 
    let v124 : string =
        match v113 with
        | US3_1 -> (* None *)
            let v122 : string = ""
            v122
        | US3_0(v121) -> (* Some *)
            v121
    v124 
    #endif
#else
    let v125 : (string -> string) = System.Environment.GetEnvironmentVariable
    let v126 : string = v125 v0
    let mutable _v126 = None
    #if !FABLE_COMPILER && !WASM && !CONTRACT
    let v129 : (string -> string option) = Option.ofObj
    let v130 : string option = v129 v126
    v130 
    #else
    Some v126 
    #endif
    |> fun x -> _v126 <- Some x
    let v131 : string option = match _v126 with Some x -> x | None -> failwith "optionm'.of_obj / _v126=None"
    let v140 : US3 option = None
    let _v140 = ref v140 
    match v131 with
    | Some x -> (
    (fun () ->
    (fun () ->
    let v141 : string = x
    let v142 : US3 = US3_0(v141)
    v142 
    )
    |> fun x -> x () |> Some
    ) () ) | None -> None
    |> fun x -> _v140.Value <- x
    let v143 : US3 option = _v140.Value 
    let v166 : US3 = US3_1
    let v167 : US3 = v143 |> Option.defaultValue v166 
    let v178 : string =
        match v167 with
        | US3_1 -> (* None *)
            let v176 : string = ""
            v176
        | US3_0(v175) -> (* Some *)
            v175
    v178 
    #endif
    |> fun x -> _v3 <- Some x
    let v179 : string = match _v3 with Some x -> x | None -> failwith "base.run_target / _v3=None"
    v179
and method3 () : string =
    let v0 : string = "AUTOMATION"
    v0
and closure1 () (v0 : string) : unit =
    ()
and closure0 () (v0 : US0) : struct (Mut0 * Mut1 * Mut2 * Mut3 * int64 option) =
    let v3 : bool = true
    let mutable _v3 : struct (US1 * US2) option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v4 : string = method0()
    let v5 : string = method1(v4)
    let v7 : bool = "Verbose" = v5
    let v11 : US1 =
        if v7 then
            let v8 : US0 = US0_0
            US1_0(v8)
        else
            US1_1
    let v56 : US1 =
        match v11 with
        | US1_1 -> (* None *)
            let v15 : bool = "Debug" = v5
            let v19 : US1 =
                if v15 then
                    let v16 : US0 = US0_1
                    US1_0(v16)
                else
                    US1_1
            match v19 with
            | US1_1 -> (* None *)
                let v23 : bool = "Info" = v5
                let v27 : US1 =
                    if v23 then
                        let v24 : US0 = US0_2
                        US1_0(v24)
                    else
                        US1_1
                match v27 with
                | US1_1 -> (* None *)
                    let v31 : bool = "Warning" = v5
                    let v35 : US1 =
                        if v31 then
                            let v32 : US0 = US0_3
                            US1_0(v32)
                        else
                            US1_1
                    match v35 with
                    | US1_1 -> (* None *)
                        let v39 : bool = "Critical" = v5
                        let v43 : US1 =
                            if v39 then
                                let v40 : US0 = US0_4
                                US1_0(v40)
                            else
                                US1_1
                        match v43 with
                        | US1_1 -> (* None *)
                            US1_1
                        | US1_0(v44) -> (* Some *)
                            US1_0(v44)
                    | US1_0(v36) -> (* Some *)
                        US1_0(v36)
                | US1_0(v28) -> (* Some *)
                    US1_0(v28)
            | US1_0(v20) -> (* Some *)
                US1_0(v20)
        | US1_0(v12) -> (* Some *)
            US1_0(v12)
    let v57 : string = method3()
    let v58 : string = method1(v57)
    let v60 : bool = v58 = "True"
    let v82 : US2 =
        if v60 then
            let v63 : System.DateTime = System.DateTime.Now
            let v72 : (System.DateTime -> int64) = _.Ticks
            let v73 : int64 = v72 v63
            US2_0(v73)
        else
            US2_1
    struct (v56, v82) 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v83 : US1 = US1_1
    let v84 : US2 = US2_1
    struct (v83, v84) 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v85 : US1 = US1_1
    let v86 : US2 = US2_1
    struct (v85, v86) 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v87 : string = method0()
    let v88 : string = method1(v87)
    let v90 : bool = "Verbose" = v88
    let v94 : US1 =
        if v90 then
            let v91 : US0 = US0_0
            US1_0(v91)
        else
            US1_1
    let v139 : US1 =
        match v94 with
        | US1_1 -> (* None *)
            let v98 : bool = "Debug" = v88
            let v102 : US1 =
                if v98 then
                    let v99 : US0 = US0_1
                    US1_0(v99)
                else
                    US1_1
            match v102 with
            | US1_1 -> (* None *)
                let v106 : bool = "Info" = v88
                let v110 : US1 =
                    if v106 then
                        let v107 : US0 = US0_2
                        US1_0(v107)
                    else
                        US1_1
                match v110 with
                | US1_1 -> (* None *)
                    let v114 : bool = "Warning" = v88
                    let v118 : US1 =
                        if v114 then
                            let v115 : US0 = US0_3
                            US1_0(v115)
                        else
                            US1_1
                    match v118 with
                    | US1_1 -> (* None *)
                        let v122 : bool = "Critical" = v88
                        let v126 : US1 =
                            if v122 then
                                let v123 : US0 = US0_4
                                US1_0(v123)
                            else
                                US1_1
                        match v126 with
                        | US1_1 -> (* None *)
                            US1_1
                        | US1_0(v127) -> (* Some *)
                            US1_0(v127)
                    | US1_0(v119) -> (* Some *)
                        US1_0(v119)
                | US1_0(v111) -> (* Some *)
                    US1_0(v111)
            | US1_0(v103) -> (* Some *)
                US1_0(v103)
        | US1_0(v95) -> (* Some *)
            US1_0(v95)
    let v140 : string = method3()
    let v141 : string = method1(v140)
    let v143 : bool = v141 = "True"
    let v165 : US2 =
        if v143 then
            let v146 : System.DateTime = System.DateTime.Now
            let v155 : (System.DateTime -> int64) = _.Ticks
            let v156 : int64 = v155 v146
            US2_0(v156)
        else
            US2_1
    struct (v139, v165) 
    #endif
#if FABLE_COMPILER_PYTHON
    let v166 : string = method0()
    let v167 : string = method1(v166)
    let v169 : bool = "Verbose" = v167
    let v173 : US1 =
        if v169 then
            let v170 : US0 = US0_0
            US1_0(v170)
        else
            US1_1
    let v218 : US1 =
        match v173 with
        | US1_1 -> (* None *)
            let v177 : bool = "Debug" = v167
            let v181 : US1 =
                if v177 then
                    let v178 : US0 = US0_1
                    US1_0(v178)
                else
                    US1_1
            match v181 with
            | US1_1 -> (* None *)
                let v185 : bool = "Info" = v167
                let v189 : US1 =
                    if v185 then
                        let v186 : US0 = US0_2
                        US1_0(v186)
                    else
                        US1_1
                match v189 with
                | US1_1 -> (* None *)
                    let v193 : bool = "Warning" = v167
                    let v197 : US1 =
                        if v193 then
                            let v194 : US0 = US0_3
                            US1_0(v194)
                        else
                            US1_1
                    match v197 with
                    | US1_1 -> (* None *)
                        let v201 : bool = "Critical" = v167
                        let v205 : US1 =
                            if v201 then
                                let v202 : US0 = US0_4
                                US1_0(v202)
                            else
                                US1_1
                        match v205 with
                        | US1_1 -> (* None *)
                            US1_1
                        | US1_0(v206) -> (* Some *)
                            US1_0(v206)
                    | US1_0(v198) -> (* Some *)
                        US1_0(v198)
                | US1_0(v190) -> (* Some *)
                    US1_0(v190)
            | US1_0(v182) -> (* Some *)
                US1_0(v182)
        | US1_0(v174) -> (* Some *)
            US1_0(v174)
    let v219 : string = method3()
    let v220 : string = method1(v219)
    let v222 : bool = v220 = "True"
    let v244 : US2 =
        if v222 then
            let v225 : System.DateTime = System.DateTime.Now
            let v234 : (System.DateTime -> int64) = _.Ticks
            let v235 : int64 = v234 v225
            US2_0(v235)
        else
            US2_1
    struct (v218, v244) 
    #endif
#else
    let v245 : string = method0()
    let v246 : string = method1(v245)
    let v248 : bool = "Verbose" = v246
    let v252 : US1 =
        if v248 then
            let v249 : US0 = US0_0
            US1_0(v249)
        else
            US1_1
    let v297 : US1 =
        match v252 with
        | US1_1 -> (* None *)
            let v256 : bool = "Debug" = v246
            let v260 : US1 =
                if v256 then
                    let v257 : US0 = US0_1
                    US1_0(v257)
                else
                    US1_1
            match v260 with
            | US1_1 -> (* None *)
                let v264 : bool = "Info" = v246
                let v268 : US1 =
                    if v264 then
                        let v265 : US0 = US0_2
                        US1_0(v265)
                    else
                        US1_1
                match v268 with
                | US1_1 -> (* None *)
                    let v272 : bool = "Warning" = v246
                    let v276 : US1 =
                        if v272 then
                            let v273 : US0 = US0_3
                            US1_0(v273)
                        else
                            US1_1
                    match v276 with
                    | US1_1 -> (* None *)
                        let v280 : bool = "Critical" = v246
                        let v284 : US1 =
                            if v280 then
                                let v281 : US0 = US0_4
                                US1_0(v281)
                            else
                                US1_1
                        match v284 with
                        | US1_1 -> (* None *)
                            US1_1
                        | US1_0(v285) -> (* Some *)
                            US1_0(v285)
                    | US1_0(v277) -> (* Some *)
                        US1_0(v277)
                | US1_0(v269) -> (* Some *)
                    US1_0(v269)
            | US1_0(v261) -> (* Some *)
                US1_0(v261)
        | US1_0(v253) -> (* Some *)
            US1_0(v253)
    let v298 : string = method3()
    let v299 : string = method1(v298)
    let v301 : bool = v299 = "True"
    let v323 : US2 =
        if v301 then
            let v304 : System.DateTime = System.DateTime.Now
            let v313 : (System.DateTime -> int64) = _.Ticks
            let v314 : int64 = v313 v304
            US2_0(v314)
        else
            US2_1
    struct (v297, v323) 
    #endif
    |> fun x -> _v3 <- Some x
    let struct (v324 : US1, v325 : US2) = match _v3 with Some x -> x | None -> failwith "base.run_target / _v3=None"
    let v411 : Mut2 = {l0 = true} : Mut2
    let v412 : Mut0 = {l0 = 0L} : Mut0
    let v415 : US0 =
        match v324 with
        | US1_1 -> (* None *)
            v0
        | US1_0(v413) -> (* Some *)
            v413
    let v416 : Mut3 = {l0 = v415} : Mut3
    let v417 : (string -> unit) = closure1()
    let v418 : Mut1 = {l0 = v417} : Mut1
    let v431 : int64 option =
        match v325 with
        | US2_1 -> (* None *)
            let v429 : int64 option = None
            v429
        | US2_0(v419) -> (* Some *)
            let v422 : int64 option = Some v419 
            v422
    struct (v412, v418, v411, v416, v431)
and closure4 () () : string =
    let v0 : string = $"networking.test_port_open"
    v0
and closure5 (v0 : int32, v1 : string) () : struct (int32 * string) =
    struct (v0, v1)
and method5 () : string =
    let v0 : string = "hh:mm:ss"
    v0
and method6 () : string =
    let v0 : string = ""
    v0
and method7 () : string =
    let v0 : string = "HH:mm:ss"
    v0
and method8 () : string =
    let v0 : string = "\u001b[0m"
    v0
and method10 (v0 : Mut4, v1 : string) : unit =
    let v4 : string = $"{v1}"
    let v11 : string = v0.l0
    let v12 : string = v11 + v4 
    v0.l0 <- v12
    ()
and method11 (v0 : Mut4) : unit =
    ()
and method12 (v0 : Mut4, v1 : int32) : unit =
    let v4 : string = $"{v1}"
    let v11 : string = v0.l0
    let v12 : string = v11 + v4 
    v0.l0 <- v12
    ()
and method9 (v0 : Mut4, v1 : int32, v2 : string) : unit =
    let v3 : string = "{ "
    method10(v0, v3)
    method11(v0)
    let v4 : string = "port"
    method10(v0, v4)
    let v5 : string = " = "
    method10(v0, v5)
    method12(v0, v1)
    let v6 : string = "; "
    method10(v0, v6)
    let v7 : string = "ex"
    method10(v0, v7)
    method10(v0, v5)
    method10(v0, v2)
    let v8 : string = " }"
    method10(v0, v8)
and closure6 (v0 : US0, v1 : (unit -> string), v2 : (unit -> struct (int32 * string))) () : string =
    let v5 : (US0 -> struct (Mut0 * Mut1 * Mut2 * Mut3 * int64 option)) = closure0()
    let v6 : US0 = US0_0
    if State.trace_state.IsNone then State.trace_state <- v5 v6 |> Some
    let struct (v14 : Mut0, v15 : Mut1, v16 : Mut2, v17 : Mut3, v18 : int64 option) = State.trace_state.Value
    let v35 : bool = true
    let mutable _v35 : string option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v38 : US2 option = None
    let _v38 = ref v38 
    match v18 with
    | Some x -> (
    (fun () ->
    (fun () ->
    let v39 : int64 = x
    let v40 : US2 = US2_0(v39)
    v40 
    )
    |> fun x -> x () |> Some
    ) () ) | None -> None
    |> fun x -> _v38.Value <- x
    let v41 : US2 option = _v38.Value 
    let v64 : US2 = US2_1
    let v65 : US2 = v41 |> Option.defaultValue v64 
    let v163 : System.DateTime =
        match v65 with
        | US2_1 -> (* None *)
            let v155 : System.DateTime = System.DateTime.Now
            v155
        | US2_0(v73) -> (* Some *)
            let v76 : System.DateTime = System.DateTime.Now
            let v85 : (System.DateTime -> int64) = _.Ticks
            let v86 : int64 = v85 v76
            let v93 : int64 = v86 - v73
            let v96 : (int64 -> System.TimeSpan) = System.TimeSpan 
            let v97 : System.TimeSpan = v96 v93
            let v106 : (System.TimeSpan -> int32) = _.Hours
            let v107 : int32 = v106 v97
            let v116 : (System.TimeSpan -> int32) = _.Minutes
            let v117 : int32 = v116 v97
            let v126 : (System.TimeSpan -> int32) = _.Seconds
            let v127 : int32 = v126 v97
            let v136 : (System.TimeSpan -> int32) = _.Milliseconds
            let v137 : int32 = v136 v97
            let v146 : System.DateTime = System.DateTime (1, 1, 1, v107, v117, v127, v137)
            v146
    let v166 : string = method5()
    let v175 : (string -> string) = v163.ToString
    let v176 : string = v175 v166
    v176 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v185 : US2 option = None
    let _v185 = ref v185 
    match v18 with
    | Some x -> (
    (fun () ->
    (fun () ->
    let v186 : int64 = x
    let v187 : US2 = US2_0(v186)
    v187 
    )
    |> fun x -> x () |> Some
    ) () ) | None -> None
    |> fun x -> _v185.Value <- x
    let v188 : US2 option = _v185.Value 
    let v211 : US2 = US2_1
    let v212 : US2 = v188 |> Option.defaultValue v211 
    let v310 : System.DateTime =
        match v212 with
        | US2_1 -> (* None *)
            let v302 : System.DateTime = System.DateTime.Now
            v302
        | US2_0(v220) -> (* Some *)
            let v223 : System.DateTime = System.DateTime.Now
            let v232 : (System.DateTime -> int64) = _.Ticks
            let v233 : int64 = v232 v223
            let v240 : int64 = v233 - v220
            let v243 : (int64 -> System.TimeSpan) = System.TimeSpan 
            let v244 : System.TimeSpan = v243 v240
            let v253 : (System.TimeSpan -> int32) = _.Hours
            let v254 : int32 = v253 v244
            let v263 : (System.TimeSpan -> int32) = _.Minutes
            let v264 : int32 = v263 v244
            let v273 : (System.TimeSpan -> int32) = _.Seconds
            let v274 : int32 = v273 v244
            let v283 : (System.TimeSpan -> int32) = _.Milliseconds
            let v284 : int32 = v283 v244
            let v293 : System.DateTime = System.DateTime (1, 1, 1, v254, v264, v274, v284)
            v293
    let v313 : string = method5()
    let v322 : (string -> string) = v310.ToString
    let v323 : string = v322 v313
    v323 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v330 : string = method6()
    v330 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v333 : US2 option = None
    let _v333 = ref v333 
    match v18 with
    | Some x -> (
    (fun () ->
    (fun () ->
    let v334 : int64 = x
    let v335 : US2 = US2_0(v334)
    v335 
    )
    |> fun x -> x () |> Some
    ) () ) | None -> None
    |> fun x -> _v333.Value <- x
    let v336 : US2 option = _v333.Value 
    let v359 : US2 = US2_1
    let v360 : US2 = v336 |> Option.defaultValue v359 
    let v458 : System.DateTime =
        match v360 with
        | US2_1 -> (* None *)
            let v450 : System.DateTime = System.DateTime.Now
            v450
        | US2_0(v368) -> (* Some *)
            let v371 : System.DateTime = System.DateTime.Now
            let v380 : (System.DateTime -> int64) = _.Ticks
            let v381 : int64 = v380 v371
            let v388 : int64 = v381 - v368
            let v391 : (int64 -> System.TimeSpan) = System.TimeSpan 
            let v392 : System.TimeSpan = v391 v388
            let v401 : (System.TimeSpan -> int32) = _.Hours
            let v402 : int32 = v401 v392
            let v411 : (System.TimeSpan -> int32) = _.Minutes
            let v412 : int32 = v411 v392
            let v421 : (System.TimeSpan -> int32) = _.Seconds
            let v422 : int32 = v421 v392
            let v431 : (System.TimeSpan -> int32) = _.Milliseconds
            let v432 : int32 = v431 v392
            let v441 : System.DateTime = System.DateTime (1, 1, 1, v402, v412, v422, v432)
            v441
    let v461 : string = method7()
    let v470 : (string -> string) = v458.ToString
    let v471 : string = v470 v461
    v471 
    #endif
#if FABLE_COMPILER_PYTHON
    let v480 : US2 option = None
    let _v480 = ref v480 
    match v18 with
    | Some x -> (
    (fun () ->
    (fun () ->
    let v481 : int64 = x
    let v482 : US2 = US2_0(v481)
    v482 
    )
    |> fun x -> x () |> Some
    ) () ) | None -> None
    |> fun x -> _v480.Value <- x
    let v483 : US2 option = _v480.Value 
    let v506 : US2 = US2_1
    let v507 : US2 = v483 |> Option.defaultValue v506 
    let v605 : System.DateTime =
        match v507 with
        | US2_1 -> (* None *)
            let v597 : System.DateTime = System.DateTime.Now
            v597
        | US2_0(v515) -> (* Some *)
            let v518 : System.DateTime = System.DateTime.Now
            let v527 : (System.DateTime -> int64) = _.Ticks
            let v528 : int64 = v527 v518
            let v535 : int64 = v528 - v515
            let v538 : (int64 -> System.TimeSpan) = System.TimeSpan 
            let v539 : System.TimeSpan = v538 v535
            let v548 : (System.TimeSpan -> int32) = _.Hours
            let v549 : int32 = v548 v539
            let v558 : (System.TimeSpan -> int32) = _.Minutes
            let v559 : int32 = v558 v539
            let v568 : (System.TimeSpan -> int32) = _.Seconds
            let v569 : int32 = v568 v539
            let v578 : (System.TimeSpan -> int32) = _.Milliseconds
            let v579 : int32 = v578 v539
            let v588 : System.DateTime = System.DateTime (1, 1, 1, v549, v559, v569, v579)
            v588
    let v608 : string = method7()
    let v617 : (string -> string) = v605.ToString
    let v618 : string = v617 v608
    v618 
    #endif
#else
    let v627 : US2 option = None
    let _v627 = ref v627 
    match v18 with
    | Some x -> (
    (fun () ->
    (fun () ->
    let v628 : int64 = x
    let v629 : US2 = US2_0(v628)
    v629 
    )
    |> fun x -> x () |> Some
    ) () ) | None -> None
    |> fun x -> _v627.Value <- x
    let v630 : US2 option = _v627.Value 
    let v653 : US2 = US2_1
    let v654 : US2 = v630 |> Option.defaultValue v653 
    let v752 : System.DateTime =
        match v654 with
        | US2_1 -> (* None *)
            let v744 : System.DateTime = System.DateTime.Now
            v744
        | US2_0(v662) -> (* Some *)
            let v665 : System.DateTime = System.DateTime.Now
            let v674 : (System.DateTime -> int64) = _.Ticks
            let v675 : int64 = v674 v665
            let v682 : int64 = v675 - v662
            let v685 : (int64 -> System.TimeSpan) = System.TimeSpan 
            let v686 : System.TimeSpan = v685 v682
            let v695 : (System.TimeSpan -> int32) = _.Hours
            let v696 : int32 = v695 v686
            let v705 : (System.TimeSpan -> int32) = _.Minutes
            let v706 : int32 = v705 v686
            let v715 : (System.TimeSpan -> int32) = _.Seconds
            let v716 : int32 = v715 v686
            let v725 : (System.TimeSpan -> int32) = _.Milliseconds
            let v726 : int32 = v725 v686
            let v735 : System.DateTime = System.DateTime (1, 1, 1, v696, v706, v716, v726)
            v735
    let v755 : string = method7()
    let v764 : (string -> string) = v752.ToString
    let v765 : string = v764 v755
    v765 
    #endif
    |> fun x -> _v35 <- Some x
    let v772 : string = match _v35 with Some x -> x | None -> failwith "base.run_target / _v35=None"
    let v927 : bool =
        match v0 with
        | US0_0 -> (* Verbose *)
            true
        | _ ->
            false
    let v931 : US3 =
        if v927 then
            let v928 : string = "Verbose"
            US3_0(v928)
        else
            US3_1
    let v980 : US3 =
        match v931 with
        | US3_1 -> (* None *)
            let v936 : bool =
                match v0 with
                | US0_1 -> (* Debug *)
                    true
                | _ ->
                    false
            let v940 : US3 =
                if v936 then
                    let v937 : string = "Debug"
                    US3_0(v937)
                else
                    US3_1
            match v940 with
            | US3_1 -> (* None *)
                let v945 : bool =
                    match v0 with
                    | US0_2 -> (* Info *)
                        true
                    | _ ->
                        false
                let v949 : US3 =
                    if v945 then
                        let v946 : string = "Info"
                        US3_0(v946)
                    else
                        US3_1
                match v949 with
                | US3_1 -> (* None *)
                    let v954 : bool =
                        match v0 with
                        | US0_3 -> (* Warning *)
                            true
                        | _ ->
                            false
                    let v958 : US3 =
                        if v954 then
                            let v955 : string = "Warning"
                            US3_0(v955)
                        else
                            US3_1
                    match v958 with
                    | US3_1 -> (* None *)
                        let v963 : bool =
                            match v0 with
                            | US0_4 -> (* Critical *)
                                true
                            | _ ->
                                false
                        let v967 : US3 =
                            if v963 then
                                let v964 : string = "Critical"
                                US3_0(v964)
                            else
                                US3_1
                        match v967 with
                        | US3_1 -> (* None *)
                            US3_1
                        | US3_0(v968) -> (* Some *)
                            US3_0(v968)
                    | US3_0(v959) -> (* Some *)
                        US3_0(v959)
                | US3_0(v950) -> (* Some *)
                    US3_0(v950)
            | US3_0(v941) -> (* Some *)
                US3_0(v941)
        | US3_0(v932) -> (* Some *)
            US3_0(v932)
    let v984 : string =
        match v980 with
        | US3_1 -> (* None *)
            failwith<string> "Option does not have a value."
        | US3_0(v981) -> (* Some *)
            v981
    let v987 : (unit -> string) = v984.ToLower
    let v988 : string = v987 ()
    let v997 : string = v988.PadLeft (7, ' ')
    let v1029 : bool = true
    let mutable _v1029 : string option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v1044 : Ref<Str> =
        match v0 with
        | US0_4 -> (* Critical *)
            let v1038 : string = "inline_colorization::color_bright_red"
            let v1039 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1038 
            v1039
        | US0_1 -> (* Debug *)
            let v1032 : string = "inline_colorization::color_bright_blue"
            let v1033 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1032 
            v1033
        | US0_2 -> (* Info *)
            let v1034 : string = "inline_colorization::color_bright_green"
            let v1035 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1034 
            v1035
        | US0_0 -> (* Verbose *)
            let v1030 : string = "inline_colorization::color_bright_black"
            let v1031 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1030 
            v1031
        | US0_3 -> (* Warning *)
            let v1036 : string = "inline_colorization::color_yellow"
            let v1037 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1036 
            v1037
    let v1045 : string = "&*$0"
    let v1046 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v997 v1045 
    let v1047 : string = "inline_colorization::color_reset"
    let v1048 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1047 
    let v1049 : string = "\"{v1044}{v1046}{v1048}\""
    let v1050 : string = @$"format!(" + v1049 + ")"
    let v1051 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v1050 
    let v1052 : string = "fable_library_rust::String_::fromString($0)"
    let v1053 : string = Fable.Core.RustInterop.emitRustExpr v1051 v1052 
    v1053 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v1068 : Ref<Str> =
        match v0 with
        | US0_4 -> (* Critical *)
            let v1062 : string = "inline_colorization::color_bright_red"
            let v1063 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1062 
            v1063
        | US0_1 -> (* Debug *)
            let v1056 : string = "inline_colorization::color_bright_blue"
            let v1057 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1056 
            v1057
        | US0_2 -> (* Info *)
            let v1058 : string = "inline_colorization::color_bright_green"
            let v1059 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1058 
            v1059
        | US0_0 -> (* Verbose *)
            let v1054 : string = "inline_colorization::color_bright_black"
            let v1055 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1054 
            v1055
        | US0_3 -> (* Warning *)
            let v1060 : string = "inline_colorization::color_yellow"
            let v1061 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1060 
            v1061
    let v1069 : string = "&*$0"
    let v1070 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v997 v1069 
    let v1071 : string = "inline_colorization::color_reset"
    let v1072 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1071 
    let v1073 : string = "\"{v1068}{v1070}{v1072}\""
    let v1074 : string = @$"format!(" + v1073 + ")"
    let v1075 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v1074 
    let v1076 : string = "fable_library_rust::String_::fromString($0)"
    let v1077 : string = Fable.Core.RustInterop.emitRustExpr v1075 v1076 
    v1077 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v1092 : Ref<Str> =
        match v0 with
        | US0_4 -> (* Critical *)
            let v1086 : string = "inline_colorization::color_bright_red"
            let v1087 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1086 
            v1087
        | US0_1 -> (* Debug *)
            let v1080 : string = "inline_colorization::color_bright_blue"
            let v1081 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1080 
            v1081
        | US0_2 -> (* Info *)
            let v1082 : string = "inline_colorization::color_bright_green"
            let v1083 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1082 
            v1083
        | US0_0 -> (* Verbose *)
            let v1078 : string = "inline_colorization::color_bright_black"
            let v1079 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1078 
            v1079
        | US0_3 -> (* Warning *)
            let v1084 : string = "inline_colorization::color_yellow"
            let v1085 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1084 
            v1085
    let v1093 : string = "&*$0"
    let v1094 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v997 v1093 
    let v1095 : string = "inline_colorization::color_reset"
    let v1096 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1095 
    let v1097 : string = "\"{v1092}{v1094}{v1096}\""
    let v1098 : string = @$"format!(" + v1097 + ")"
    let v1099 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v1098 
    let v1100 : string = "fable_library_rust::String_::fromString($0)"
    let v1101 : string = Fable.Core.RustInterop.emitRustExpr v1099 v1100 
    v1101 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v1111 : string =
        match v0 with
        | US0_4 -> (* Critical *)
            let v1106 : string = "\u001b[91m"
            v1106
        | US0_1 -> (* Debug *)
            let v1103 : string = "\u001b[94m"
            v1103
        | US0_2 -> (* Info *)
            let v1104 : string = "\u001b[92m"
            v1104
        | US0_0 -> (* Verbose *)
            let v1102 : string = "\u001b[90m"
            v1102
        | US0_3 -> (* Warning *)
            let v1105 : string = "\u001b[93m"
            v1105
    let v1112 : string = method8()
    let v1113 : string = v1111 + v997 
    let v1114 : string = v1113 + v1112 
    v1114 
    #endif
#if FABLE_COMPILER_PYTHON
    let v1124 : string =
        match v0 with
        | US0_4 -> (* Critical *)
            let v1119 : string = "\u001b[91m"
            v1119
        | US0_1 -> (* Debug *)
            let v1116 : string = "\u001b[94m"
            v1116
        | US0_2 -> (* Info *)
            let v1117 : string = "\u001b[92m"
            v1117
        | US0_0 -> (* Verbose *)
            let v1115 : string = "\u001b[90m"
            v1115
        | US0_3 -> (* Warning *)
            let v1118 : string = "\u001b[93m"
            v1118
    let v1125 : string = method8()
    let v1126 : string = v1124 + v997 
    let v1127 : string = v1126 + v1125 
    v1127 
    #endif
#else
    let v1137 : string =
        match v0 with
        | US0_4 -> (* Critical *)
            let v1132 : string = "\u001b[91m"
            v1132
        | US0_1 -> (* Debug *)
            let v1129 : string = "\u001b[94m"
            v1129
        | US0_2 -> (* Info *)
            let v1130 : string = "\u001b[92m"
            v1130
        | US0_0 -> (* Verbose *)
            let v1128 : string = "\u001b[90m"
            v1128
        | US0_3 -> (* Warning *)
            let v1131 : string = "\u001b[93m"
            v1131
    let v1138 : string = method8()
    let v1139 : string = v1137 + v997 
    let v1140 : string = v1139 + v1138 
    v1140 
    #endif
    |> fun x -> _v1029 <- Some x
    let v1141 : string = match _v1029 with Some x -> x | None -> failwith "base.run_target / _v1029=None"
    let v1160 : int64 = v14.l0
    let struct (v1161 : int32, v1162 : string) = v2 ()
    let v1163 : string = ""
    let v1164 : Mut4 = {l0 = v1163} : Mut4
    method9(v1164, v1161, v1162)
    let v1165 : string = v1164.l0
    let v1168 : string = $"{v772} {v1141} #{v1160} %s{v1 ()} / {v1165}"
    let v1175 : char list = []
    let v1180 : (char list -> (char [])) = List.toArray
    let v1181 : (char []) = v1180 v1175
    let v1188 : string = v1168.TrimStart v1181 
    let v1227 : char list = []
    let v1230 : char list = '/' :: v1227 
    let v1239 : char list = ' ' :: v1230 
    let v1250 : (char list -> (char [])) = List.toArray
    let v1251 : (char []) = v1250 v1239
    let v1258 : string = v1188.TrimEnd v1251 
    v1258
and method13 (v0 : US0, v1 : (unit -> string)) : unit =
    let v4 : (US0 -> struct (Mut0 * Mut1 * Mut2 * Mut3 * int64 option)) = closure0()
    let v5 : US0 = US0_0
    if State.trace_state.IsNone then State.trace_state <- v4 v5 |> Some
    let struct (v13 : Mut0, v14 : Mut1, v15 : Mut2, v16 : Mut3, v17 : int64 option) = State.trace_state.Value
    let v34 : US0 = US0_0
    if State.trace_state.IsNone then State.trace_state <- v4 v34 |> Some
    let struct (v42 : Mut0, v43 : Mut1, v44 : Mut2, v45 : Mut3, v46 : int64 option) = State.trace_state.Value
    let v61 : US0 = v45.l0
    let v62 : bool = v44.l0
    let v63 : bool = v62 = false
    let v67 : bool =
        if v63 then
            false
        else
            let v64 : int32 = [ US0_0, 0; US0_1, 1; US0_2, 2; US0_3, 3; US0_4, 4 ] |> Map |> Map.find v0
            let v65 : int32 = [ US0_0, 0; US0_1, 1; US0_2, 2; US0_3, 3; US0_4, 4 ] |> Map |> Map.find v61
            let v66 : bool = v64 >= v65
            v66
    if v67 then
        let v68 : int64 = v13.l0
        let v69 : int64 = v68 + 1L
        v13.l0 <- v69
        let v72 : string = $"%s{v1 ()}"
        let v81 : bool = true
        let mutable _v81 : unit option = None 
        
#if FABLE_COMPILER || WASM || CONTRACT
        
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
        let v82 : string = @"println!(""{}"", $0)"
        Fable.Core.RustInterop.emitRustExpr v72 v82 
        () 
        #endif
#if FABLE_COMPILER_RUST && WASM
        let v83 : string = @"println!(""{}"", $0)"
        Fable.Core.RustInterop.emitRustExpr v72 v83 
        () 
        #endif
#if FABLE_COMPILER_RUST && CONTRACT
        let v84 : string = @"println!(""{}"", $0)"
        Fable.Core.RustInterop.emitRustExpr v72 v84 
        () 
        #endif
#if FABLE_COMPILER_TYPESCRIPT
        System.Console.WriteLine v72 
        () 
        #endif
#if FABLE_COMPILER_PYTHON
        System.Console.WriteLine v72 
        () 
        #endif
#else
        System.Console.WriteLine v72 
        () 
        #endif
        |> fun x -> _v81 <- Some x
        match _v81 with Some x -> x | None -> failwith "base.run_target / _v81=None"
        let v113 : (string -> unit) = v14.l0
        v113 v72
and method4 (v0 : US0, v1 : (unit -> string), v2 : (unit -> struct (int32 * string))) : unit =
    let v3 : (unit -> string) = closure6(v0, v1, v2)
    method13(v0, v3)
and closure3 (v0 : string) (v1 : int32) : Async<bool> =
    let v4 : bool = true
    let mutable _v4 : Async<bool> option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v7 : Async<bool> = null |> unbox<Async<bool>>
    v7 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v16 : Async<bool> = null |> unbox<Async<bool>>
    v16 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v25 : Async<bool> = null |> unbox<Async<bool>>
    v25 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v34 : Async<bool> = null |> unbox<Async<bool>>
    v34 
    #endif
#if FABLE_COMPILER_PYTHON
    let v43 : Async<bool> = null |> unbox<Async<bool>>
    v43 
    #endif
#else
    let v50 : Async<bool> option = None
    let mutable _v50 = v50 
    async {
    let v51 : Async<System.Threading.CancellationToken> = Async.CancellationToken
    let! v51 = v51 
    let v52 : System.Threading.CancellationToken = v51 
    let v53 : System.Net.Sockets.TcpClient = new System.Net.Sockets.TcpClient ()
    use v53 = v53 
    let v54 : System.Net.Sockets.TcpClient = v53 
    try
    let v55 : System.Threading.Tasks.ValueTask = v54.ConnectAsync (v0, v1, v52)
    let v56 : (unit -> System.Threading.Tasks.Task) = v55.AsTask
    let v57 : System.Threading.Tasks.Task = v56 ()
    let v60 : bool = true
    let mutable _v60 : Async<unit> option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v63 : Async<unit> = null |> unbox<Async<unit>>
    v63 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v72 : Async<unit> = null |> unbox<Async<unit>>
    v72 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v81 : Async<unit> = null |> unbox<Async<unit>>
    v81 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v90 : Async<unit> = null |> unbox<Async<unit>>
    v90 
    #endif
#if FABLE_COMPILER_PYTHON
    let v99 : Async<unit> = null |> unbox<Async<unit>>
    v99 
    #endif
#else
    let v106 : (System.Threading.Tasks.Task -> Async<unit>) = Async.AwaitTask
    let v107 : Async<unit> = v106 v57
    v107 
    #endif
    |> fun x -> _v60 <- Some x
    let v108 : Async<unit> = match _v60 with Some x -> x | None -> failwith "base.run_target / _v60=None"
    do! v108 
    return true 
    with ex ->
    let v123 : exn = ex
    let v126 : bool = true
    let mutable _v126 : string option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v129 : string = $"%A{v123}"
    v129 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v138 : string = $"%A{v123}"
    v138 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v147 : string = $"%A{v123}"
    v147 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v156 : string = $"%A{v123}"
    v156 
    #endif
#if FABLE_COMPILER_PYTHON
    let v165 : string = $"%A{v123}"
    v165 
    #endif
#else
    let v172 : string = $"{v123.GetType ()}: {v123.Message}"
    v172 
    #endif
    |> fun x -> _v126 <- Some x
    let v173 : string = match _v126 with Some x -> x | None -> failwith "base.run_target / _v126=None"
    let v188 : US0 = US0_0
    let v189 : (unit -> string) = closure4()
    let v190 : (unit -> struct (int32 * string)) = closure5(v1, v173)
    method4(v188, v189, v190)
    return false 
    (*
    let v191 : bool = *)
    }
    |> fun x -> _v50 <- Some x
    let v192 : Async<bool> = match _v50 with Some x -> x | None -> failwith "async.new_async_unit / _v50=None"
    v192 
    #endif
    |> fun x -> _v4 <- Some x
    let v193 : Async<bool> = match _v4 with Some x -> x | None -> failwith "base.run_target / _v4=None"
    v193
and closure2 () (v0 : string) : (int32 -> Async<bool>) =
    closure3(v0)
and closure10 () (v0 : bool) : US5 =
    US5_0(v0)
and closure11 () (v0 : exn) : US5 =
    US5_1(v0)
and closure12 () () : string =
    let v0 : string = "async.run_with_timeout_async"
    v0
and closure13 (v0 : int32) () : int32 =
    v0
and method15 (v0 : Mut4, v1 : int32) : unit =
    let v2 : string = "{ "
    method10(v0, v2)
    method11(v0)
    let v3 : string = "timeout"
    method10(v0, v3)
    let v4 : string = " = "
    method10(v0, v4)
    method12(v0, v1)
    let v5 : string = " }"
    method10(v0, v5)
and closure14 (v0 : US0, v1 : (unit -> string), v2 : (unit -> int32)) () : string =
    let v5 : (US0 -> struct (Mut0 * Mut1 * Mut2 * Mut3 * int64 option)) = closure0()
    let v6 : US0 = US0_0
    if State.trace_state.IsNone then State.trace_state <- v5 v6 |> Some
    let struct (v14 : Mut0, v15 : Mut1, v16 : Mut2, v17 : Mut3, v18 : int64 option) = State.trace_state.Value
    let v35 : bool = true
    let mutable _v35 : string option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v38 : US2 option = None
    let _v38 = ref v38 
    match v18 with
    | Some x -> (
    (fun () ->
    (fun () ->
    let v39 : int64 = x
    let v40 : US2 = US2_0(v39)
    v40 
    )
    |> fun x -> x () |> Some
    ) () ) | None -> None
    |> fun x -> _v38.Value <- x
    let v41 : US2 option = _v38.Value 
    let v64 : US2 = US2_1
    let v65 : US2 = v41 |> Option.defaultValue v64 
    let v163 : System.DateTime =
        match v65 with
        | US2_1 -> (* None *)
            let v155 : System.DateTime = System.DateTime.Now
            v155
        | US2_0(v73) -> (* Some *)
            let v76 : System.DateTime = System.DateTime.Now
            let v85 : (System.DateTime -> int64) = _.Ticks
            let v86 : int64 = v85 v76
            let v93 : int64 = v86 - v73
            let v96 : (int64 -> System.TimeSpan) = System.TimeSpan 
            let v97 : System.TimeSpan = v96 v93
            let v106 : (System.TimeSpan -> int32) = _.Hours
            let v107 : int32 = v106 v97
            let v116 : (System.TimeSpan -> int32) = _.Minutes
            let v117 : int32 = v116 v97
            let v126 : (System.TimeSpan -> int32) = _.Seconds
            let v127 : int32 = v126 v97
            let v136 : (System.TimeSpan -> int32) = _.Milliseconds
            let v137 : int32 = v136 v97
            let v146 : System.DateTime = System.DateTime (1, 1, 1, v107, v117, v127, v137)
            v146
    let v166 : string = method5()
    let v175 : (string -> string) = v163.ToString
    let v176 : string = v175 v166
    v176 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v185 : US2 option = None
    let _v185 = ref v185 
    match v18 with
    | Some x -> (
    (fun () ->
    (fun () ->
    let v186 : int64 = x
    let v187 : US2 = US2_0(v186)
    v187 
    )
    |> fun x -> x () |> Some
    ) () ) | None -> None
    |> fun x -> _v185.Value <- x
    let v188 : US2 option = _v185.Value 
    let v211 : US2 = US2_1
    let v212 : US2 = v188 |> Option.defaultValue v211 
    let v310 : System.DateTime =
        match v212 with
        | US2_1 -> (* None *)
            let v302 : System.DateTime = System.DateTime.Now
            v302
        | US2_0(v220) -> (* Some *)
            let v223 : System.DateTime = System.DateTime.Now
            let v232 : (System.DateTime -> int64) = _.Ticks
            let v233 : int64 = v232 v223
            let v240 : int64 = v233 - v220
            let v243 : (int64 -> System.TimeSpan) = System.TimeSpan 
            let v244 : System.TimeSpan = v243 v240
            let v253 : (System.TimeSpan -> int32) = _.Hours
            let v254 : int32 = v253 v244
            let v263 : (System.TimeSpan -> int32) = _.Minutes
            let v264 : int32 = v263 v244
            let v273 : (System.TimeSpan -> int32) = _.Seconds
            let v274 : int32 = v273 v244
            let v283 : (System.TimeSpan -> int32) = _.Milliseconds
            let v284 : int32 = v283 v244
            let v293 : System.DateTime = System.DateTime (1, 1, 1, v254, v264, v274, v284)
            v293
    let v313 : string = method5()
    let v322 : (string -> string) = v310.ToString
    let v323 : string = v322 v313
    v323 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v330 : string = method6()
    v330 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v333 : US2 option = None
    let _v333 = ref v333 
    match v18 with
    | Some x -> (
    (fun () ->
    (fun () ->
    let v334 : int64 = x
    let v335 : US2 = US2_0(v334)
    v335 
    )
    |> fun x -> x () |> Some
    ) () ) | None -> None
    |> fun x -> _v333.Value <- x
    let v336 : US2 option = _v333.Value 
    let v359 : US2 = US2_1
    let v360 : US2 = v336 |> Option.defaultValue v359 
    let v458 : System.DateTime =
        match v360 with
        | US2_1 -> (* None *)
            let v450 : System.DateTime = System.DateTime.Now
            v450
        | US2_0(v368) -> (* Some *)
            let v371 : System.DateTime = System.DateTime.Now
            let v380 : (System.DateTime -> int64) = _.Ticks
            let v381 : int64 = v380 v371
            let v388 : int64 = v381 - v368
            let v391 : (int64 -> System.TimeSpan) = System.TimeSpan 
            let v392 : System.TimeSpan = v391 v388
            let v401 : (System.TimeSpan -> int32) = _.Hours
            let v402 : int32 = v401 v392
            let v411 : (System.TimeSpan -> int32) = _.Minutes
            let v412 : int32 = v411 v392
            let v421 : (System.TimeSpan -> int32) = _.Seconds
            let v422 : int32 = v421 v392
            let v431 : (System.TimeSpan -> int32) = _.Milliseconds
            let v432 : int32 = v431 v392
            let v441 : System.DateTime = System.DateTime (1, 1, 1, v402, v412, v422, v432)
            v441
    let v461 : string = method7()
    let v470 : (string -> string) = v458.ToString
    let v471 : string = v470 v461
    v471 
    #endif
#if FABLE_COMPILER_PYTHON
    let v480 : US2 option = None
    let _v480 = ref v480 
    match v18 with
    | Some x -> (
    (fun () ->
    (fun () ->
    let v481 : int64 = x
    let v482 : US2 = US2_0(v481)
    v482 
    )
    |> fun x -> x () |> Some
    ) () ) | None -> None
    |> fun x -> _v480.Value <- x
    let v483 : US2 option = _v480.Value 
    let v506 : US2 = US2_1
    let v507 : US2 = v483 |> Option.defaultValue v506 
    let v605 : System.DateTime =
        match v507 with
        | US2_1 -> (* None *)
            let v597 : System.DateTime = System.DateTime.Now
            v597
        | US2_0(v515) -> (* Some *)
            let v518 : System.DateTime = System.DateTime.Now
            let v527 : (System.DateTime -> int64) = _.Ticks
            let v528 : int64 = v527 v518
            let v535 : int64 = v528 - v515
            let v538 : (int64 -> System.TimeSpan) = System.TimeSpan 
            let v539 : System.TimeSpan = v538 v535
            let v548 : (System.TimeSpan -> int32) = _.Hours
            let v549 : int32 = v548 v539
            let v558 : (System.TimeSpan -> int32) = _.Minutes
            let v559 : int32 = v558 v539
            let v568 : (System.TimeSpan -> int32) = _.Seconds
            let v569 : int32 = v568 v539
            let v578 : (System.TimeSpan -> int32) = _.Milliseconds
            let v579 : int32 = v578 v539
            let v588 : System.DateTime = System.DateTime (1, 1, 1, v549, v559, v569, v579)
            v588
    let v608 : string = method7()
    let v617 : (string -> string) = v605.ToString
    let v618 : string = v617 v608
    v618 
    #endif
#else
    let v627 : US2 option = None
    let _v627 = ref v627 
    match v18 with
    | Some x -> (
    (fun () ->
    (fun () ->
    let v628 : int64 = x
    let v629 : US2 = US2_0(v628)
    v629 
    )
    |> fun x -> x () |> Some
    ) () ) | None -> None
    |> fun x -> _v627.Value <- x
    let v630 : US2 option = _v627.Value 
    let v653 : US2 = US2_1
    let v654 : US2 = v630 |> Option.defaultValue v653 
    let v752 : System.DateTime =
        match v654 with
        | US2_1 -> (* None *)
            let v744 : System.DateTime = System.DateTime.Now
            v744
        | US2_0(v662) -> (* Some *)
            let v665 : System.DateTime = System.DateTime.Now
            let v674 : (System.DateTime -> int64) = _.Ticks
            let v675 : int64 = v674 v665
            let v682 : int64 = v675 - v662
            let v685 : (int64 -> System.TimeSpan) = System.TimeSpan 
            let v686 : System.TimeSpan = v685 v682
            let v695 : (System.TimeSpan -> int32) = _.Hours
            let v696 : int32 = v695 v686
            let v705 : (System.TimeSpan -> int32) = _.Minutes
            let v706 : int32 = v705 v686
            let v715 : (System.TimeSpan -> int32) = _.Seconds
            let v716 : int32 = v715 v686
            let v725 : (System.TimeSpan -> int32) = _.Milliseconds
            let v726 : int32 = v725 v686
            let v735 : System.DateTime = System.DateTime (1, 1, 1, v696, v706, v716, v726)
            v735
    let v755 : string = method7()
    let v764 : (string -> string) = v752.ToString
    let v765 : string = v764 v755
    v765 
    #endif
    |> fun x -> _v35 <- Some x
    let v772 : string = match _v35 with Some x -> x | None -> failwith "base.run_target / _v35=None"
    let v927 : bool =
        match v0 with
        | US0_0 -> (* Verbose *)
            true
        | _ ->
            false
    let v931 : US3 =
        if v927 then
            let v928 : string = "Verbose"
            US3_0(v928)
        else
            US3_1
    let v980 : US3 =
        match v931 with
        | US3_1 -> (* None *)
            let v936 : bool =
                match v0 with
                | US0_1 -> (* Debug *)
                    true
                | _ ->
                    false
            let v940 : US3 =
                if v936 then
                    let v937 : string = "Debug"
                    US3_0(v937)
                else
                    US3_1
            match v940 with
            | US3_1 -> (* None *)
                let v945 : bool =
                    match v0 with
                    | US0_2 -> (* Info *)
                        true
                    | _ ->
                        false
                let v949 : US3 =
                    if v945 then
                        let v946 : string = "Info"
                        US3_0(v946)
                    else
                        US3_1
                match v949 with
                | US3_1 -> (* None *)
                    let v954 : bool =
                        match v0 with
                        | US0_3 -> (* Warning *)
                            true
                        | _ ->
                            false
                    let v958 : US3 =
                        if v954 then
                            let v955 : string = "Warning"
                            US3_0(v955)
                        else
                            US3_1
                    match v958 with
                    | US3_1 -> (* None *)
                        let v963 : bool =
                            match v0 with
                            | US0_4 -> (* Critical *)
                                true
                            | _ ->
                                false
                        let v967 : US3 =
                            if v963 then
                                let v964 : string = "Critical"
                                US3_0(v964)
                            else
                                US3_1
                        match v967 with
                        | US3_1 -> (* None *)
                            US3_1
                        | US3_0(v968) -> (* Some *)
                            US3_0(v968)
                    | US3_0(v959) -> (* Some *)
                        US3_0(v959)
                | US3_0(v950) -> (* Some *)
                    US3_0(v950)
            | US3_0(v941) -> (* Some *)
                US3_0(v941)
        | US3_0(v932) -> (* Some *)
            US3_0(v932)
    let v984 : string =
        match v980 with
        | US3_1 -> (* None *)
            failwith<string> "Option does not have a value."
        | US3_0(v981) -> (* Some *)
            v981
    let v987 : (unit -> string) = v984.ToLower
    let v988 : string = v987 ()
    let v997 : string = v988.PadLeft (7, ' ')
    let v1029 : bool = true
    let mutable _v1029 : string option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v1044 : Ref<Str> =
        match v0 with
        | US0_4 -> (* Critical *)
            let v1038 : string = "inline_colorization::color_bright_red"
            let v1039 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1038 
            v1039
        | US0_1 -> (* Debug *)
            let v1032 : string = "inline_colorization::color_bright_blue"
            let v1033 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1032 
            v1033
        | US0_2 -> (* Info *)
            let v1034 : string = "inline_colorization::color_bright_green"
            let v1035 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1034 
            v1035
        | US0_0 -> (* Verbose *)
            let v1030 : string = "inline_colorization::color_bright_black"
            let v1031 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1030 
            v1031
        | US0_3 -> (* Warning *)
            let v1036 : string = "inline_colorization::color_yellow"
            let v1037 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1036 
            v1037
    let v1045 : string = "&*$0"
    let v1046 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v997 v1045 
    let v1047 : string = "inline_colorization::color_reset"
    let v1048 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1047 
    let v1049 : string = "\"{v1044}{v1046}{v1048}\""
    let v1050 : string = @$"format!(" + v1049 + ")"
    let v1051 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v1050 
    let v1052 : string = "fable_library_rust::String_::fromString($0)"
    let v1053 : string = Fable.Core.RustInterop.emitRustExpr v1051 v1052 
    v1053 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v1068 : Ref<Str> =
        match v0 with
        | US0_4 -> (* Critical *)
            let v1062 : string = "inline_colorization::color_bright_red"
            let v1063 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1062 
            v1063
        | US0_1 -> (* Debug *)
            let v1056 : string = "inline_colorization::color_bright_blue"
            let v1057 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1056 
            v1057
        | US0_2 -> (* Info *)
            let v1058 : string = "inline_colorization::color_bright_green"
            let v1059 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1058 
            v1059
        | US0_0 -> (* Verbose *)
            let v1054 : string = "inline_colorization::color_bright_black"
            let v1055 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1054 
            v1055
        | US0_3 -> (* Warning *)
            let v1060 : string = "inline_colorization::color_yellow"
            let v1061 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1060 
            v1061
    let v1069 : string = "&*$0"
    let v1070 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v997 v1069 
    let v1071 : string = "inline_colorization::color_reset"
    let v1072 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1071 
    let v1073 : string = "\"{v1068}{v1070}{v1072}\""
    let v1074 : string = @$"format!(" + v1073 + ")"
    let v1075 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v1074 
    let v1076 : string = "fable_library_rust::String_::fromString($0)"
    let v1077 : string = Fable.Core.RustInterop.emitRustExpr v1075 v1076 
    v1077 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v1092 : Ref<Str> =
        match v0 with
        | US0_4 -> (* Critical *)
            let v1086 : string = "inline_colorization::color_bright_red"
            let v1087 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1086 
            v1087
        | US0_1 -> (* Debug *)
            let v1080 : string = "inline_colorization::color_bright_blue"
            let v1081 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1080 
            v1081
        | US0_2 -> (* Info *)
            let v1082 : string = "inline_colorization::color_bright_green"
            let v1083 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1082 
            v1083
        | US0_0 -> (* Verbose *)
            let v1078 : string = "inline_colorization::color_bright_black"
            let v1079 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1078 
            v1079
        | US0_3 -> (* Warning *)
            let v1084 : string = "inline_colorization::color_yellow"
            let v1085 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1084 
            v1085
    let v1093 : string = "&*$0"
    let v1094 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v997 v1093 
    let v1095 : string = "inline_colorization::color_reset"
    let v1096 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1095 
    let v1097 : string = "\"{v1092}{v1094}{v1096}\""
    let v1098 : string = @$"format!(" + v1097 + ")"
    let v1099 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v1098 
    let v1100 : string = "fable_library_rust::String_::fromString($0)"
    let v1101 : string = Fable.Core.RustInterop.emitRustExpr v1099 v1100 
    v1101 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v1111 : string =
        match v0 with
        | US0_4 -> (* Critical *)
            let v1106 : string = "\u001b[91m"
            v1106
        | US0_1 -> (* Debug *)
            let v1103 : string = "\u001b[94m"
            v1103
        | US0_2 -> (* Info *)
            let v1104 : string = "\u001b[92m"
            v1104
        | US0_0 -> (* Verbose *)
            let v1102 : string = "\u001b[90m"
            v1102
        | US0_3 -> (* Warning *)
            let v1105 : string = "\u001b[93m"
            v1105
    let v1112 : string = method8()
    let v1113 : string = v1111 + v997 
    let v1114 : string = v1113 + v1112 
    v1114 
    #endif
#if FABLE_COMPILER_PYTHON
    let v1124 : string =
        match v0 with
        | US0_4 -> (* Critical *)
            let v1119 : string = "\u001b[91m"
            v1119
        | US0_1 -> (* Debug *)
            let v1116 : string = "\u001b[94m"
            v1116
        | US0_2 -> (* Info *)
            let v1117 : string = "\u001b[92m"
            v1117
        | US0_0 -> (* Verbose *)
            let v1115 : string = "\u001b[90m"
            v1115
        | US0_3 -> (* Warning *)
            let v1118 : string = "\u001b[93m"
            v1118
    let v1125 : string = method8()
    let v1126 : string = v1124 + v997 
    let v1127 : string = v1126 + v1125 
    v1127 
    #endif
#else
    let v1137 : string =
        match v0 with
        | US0_4 -> (* Critical *)
            let v1132 : string = "\u001b[91m"
            v1132
        | US0_1 -> (* Debug *)
            let v1129 : string = "\u001b[94m"
            v1129
        | US0_2 -> (* Info *)
            let v1130 : string = "\u001b[92m"
            v1130
        | US0_0 -> (* Verbose *)
            let v1128 : string = "\u001b[90m"
            v1128
        | US0_3 -> (* Warning *)
            let v1131 : string = "\u001b[93m"
            v1131
    let v1138 : string = method8()
    let v1139 : string = v1137 + v997 
    let v1140 : string = v1139 + v1138 
    v1140 
    #endif
    |> fun x -> _v1029 <- Some x
    let v1141 : string = match _v1029 with Some x -> x | None -> failwith "base.run_target / _v1029=None"
    let v1160 : int64 = v14.l0
    let v1161 : int32 = v2 ()
    let v1162 : string = ""
    let v1163 : Mut4 = {l0 = v1162} : Mut4
    method15(v1163, v1161)
    let v1164 : string = v1163.l0
    let v1167 : string = $"{v772} {v1141} #{v1160} %s{v1 ()} / {v1164}"
    let v1174 : char list = []
    let v1179 : (char list -> (char [])) = List.toArray
    let v1180 : (char []) = v1179 v1174
    let v1187 : string = v1167.TrimStart v1180 
    let v1226 : char list = []
    let v1229 : char list = '/' :: v1226 
    let v1238 : char list = ' ' :: v1229 
    let v1249 : (char list -> (char [])) = List.toArray
    let v1250 : (char []) = v1249 v1238
    let v1257 : string = v1187.TrimEnd v1250 
    v1257
and method14 (v0 : US0, v1 : (unit -> string), v2 : (unit -> int32)) : unit =
    let v3 : (unit -> string) = closure14(v0, v1, v2)
    method13(v0, v3)
and closure15 () () : string =
    let v0 : string = $"async.run_with_timeout_async**"
    v0
and closure16 (v0 : int32, v1 : exn) () : struct (int32 * string) =
    let v4 : bool = true
    let mutable _v4 : string option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v7 : string = $"%A{v1}"
    v7 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v16 : string = $"%A{v1}"
    v16 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v25 : string = $"%A{v1}"
    v25 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v34 : string = $"%A{v1}"
    v34 
    #endif
#if FABLE_COMPILER_PYTHON
    let v43 : string = $"%A{v1}"
    v43 
    #endif
#else
    let v50 : string = $"{v1.GetType ()}: {v1.Message}"
    v50 
    #endif
    |> fun x -> _v4 <- Some x
    let v51 : string = match _v4 with Some x -> x | None -> failwith "base.run_target / _v4=None"
    struct (v0, v51)
and method17 (v0 : Mut4, v1 : int32, v2 : string) : unit =
    let v3 : string = "{ "
    method10(v0, v3)
    method11(v0)
    let v4 : string = "timeout"
    method10(v0, v4)
    let v5 : string = " = "
    method10(v0, v5)
    method12(v0, v1)
    let v6 : string = "; "
    method10(v0, v6)
    let v7 : string = "ex"
    method10(v0, v7)
    method10(v0, v5)
    method10(v0, v2)
    let v8 : string = " }"
    method10(v0, v8)
and closure17 (v0 : US0, v1 : (unit -> string), v2 : (unit -> struct (int32 * string))) () : string =
    let v5 : (US0 -> struct (Mut0 * Mut1 * Mut2 * Mut3 * int64 option)) = closure0()
    let v6 : US0 = US0_0
    if State.trace_state.IsNone then State.trace_state <- v5 v6 |> Some
    let struct (v14 : Mut0, v15 : Mut1, v16 : Mut2, v17 : Mut3, v18 : int64 option) = State.trace_state.Value
    let v35 : bool = true
    let mutable _v35 : string option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v38 : US2 option = None
    let _v38 = ref v38 
    match v18 with
    | Some x -> (
    (fun () ->
    (fun () ->
    let v39 : int64 = x
    let v40 : US2 = US2_0(v39)
    v40 
    )
    |> fun x -> x () |> Some
    ) () ) | None -> None
    |> fun x -> _v38.Value <- x
    let v41 : US2 option = _v38.Value 
    let v64 : US2 = US2_1
    let v65 : US2 = v41 |> Option.defaultValue v64 
    let v163 : System.DateTime =
        match v65 with
        | US2_1 -> (* None *)
            let v155 : System.DateTime = System.DateTime.Now
            v155
        | US2_0(v73) -> (* Some *)
            let v76 : System.DateTime = System.DateTime.Now
            let v85 : (System.DateTime -> int64) = _.Ticks
            let v86 : int64 = v85 v76
            let v93 : int64 = v86 - v73
            let v96 : (int64 -> System.TimeSpan) = System.TimeSpan 
            let v97 : System.TimeSpan = v96 v93
            let v106 : (System.TimeSpan -> int32) = _.Hours
            let v107 : int32 = v106 v97
            let v116 : (System.TimeSpan -> int32) = _.Minutes
            let v117 : int32 = v116 v97
            let v126 : (System.TimeSpan -> int32) = _.Seconds
            let v127 : int32 = v126 v97
            let v136 : (System.TimeSpan -> int32) = _.Milliseconds
            let v137 : int32 = v136 v97
            let v146 : System.DateTime = System.DateTime (1, 1, 1, v107, v117, v127, v137)
            v146
    let v166 : string = method5()
    let v175 : (string -> string) = v163.ToString
    let v176 : string = v175 v166
    v176 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v185 : US2 option = None
    let _v185 = ref v185 
    match v18 with
    | Some x -> (
    (fun () ->
    (fun () ->
    let v186 : int64 = x
    let v187 : US2 = US2_0(v186)
    v187 
    )
    |> fun x -> x () |> Some
    ) () ) | None -> None
    |> fun x -> _v185.Value <- x
    let v188 : US2 option = _v185.Value 
    let v211 : US2 = US2_1
    let v212 : US2 = v188 |> Option.defaultValue v211 
    let v310 : System.DateTime =
        match v212 with
        | US2_1 -> (* None *)
            let v302 : System.DateTime = System.DateTime.Now
            v302
        | US2_0(v220) -> (* Some *)
            let v223 : System.DateTime = System.DateTime.Now
            let v232 : (System.DateTime -> int64) = _.Ticks
            let v233 : int64 = v232 v223
            let v240 : int64 = v233 - v220
            let v243 : (int64 -> System.TimeSpan) = System.TimeSpan 
            let v244 : System.TimeSpan = v243 v240
            let v253 : (System.TimeSpan -> int32) = _.Hours
            let v254 : int32 = v253 v244
            let v263 : (System.TimeSpan -> int32) = _.Minutes
            let v264 : int32 = v263 v244
            let v273 : (System.TimeSpan -> int32) = _.Seconds
            let v274 : int32 = v273 v244
            let v283 : (System.TimeSpan -> int32) = _.Milliseconds
            let v284 : int32 = v283 v244
            let v293 : System.DateTime = System.DateTime (1, 1, 1, v254, v264, v274, v284)
            v293
    let v313 : string = method5()
    let v322 : (string -> string) = v310.ToString
    let v323 : string = v322 v313
    v323 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v330 : string = method6()
    v330 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v333 : US2 option = None
    let _v333 = ref v333 
    match v18 with
    | Some x -> (
    (fun () ->
    (fun () ->
    let v334 : int64 = x
    let v335 : US2 = US2_0(v334)
    v335 
    )
    |> fun x -> x () |> Some
    ) () ) | None -> None
    |> fun x -> _v333.Value <- x
    let v336 : US2 option = _v333.Value 
    let v359 : US2 = US2_1
    let v360 : US2 = v336 |> Option.defaultValue v359 
    let v458 : System.DateTime =
        match v360 with
        | US2_1 -> (* None *)
            let v450 : System.DateTime = System.DateTime.Now
            v450
        | US2_0(v368) -> (* Some *)
            let v371 : System.DateTime = System.DateTime.Now
            let v380 : (System.DateTime -> int64) = _.Ticks
            let v381 : int64 = v380 v371
            let v388 : int64 = v381 - v368
            let v391 : (int64 -> System.TimeSpan) = System.TimeSpan 
            let v392 : System.TimeSpan = v391 v388
            let v401 : (System.TimeSpan -> int32) = _.Hours
            let v402 : int32 = v401 v392
            let v411 : (System.TimeSpan -> int32) = _.Minutes
            let v412 : int32 = v411 v392
            let v421 : (System.TimeSpan -> int32) = _.Seconds
            let v422 : int32 = v421 v392
            let v431 : (System.TimeSpan -> int32) = _.Milliseconds
            let v432 : int32 = v431 v392
            let v441 : System.DateTime = System.DateTime (1, 1, 1, v402, v412, v422, v432)
            v441
    let v461 : string = method7()
    let v470 : (string -> string) = v458.ToString
    let v471 : string = v470 v461
    v471 
    #endif
#if FABLE_COMPILER_PYTHON
    let v480 : US2 option = None
    let _v480 = ref v480 
    match v18 with
    | Some x -> (
    (fun () ->
    (fun () ->
    let v481 : int64 = x
    let v482 : US2 = US2_0(v481)
    v482 
    )
    |> fun x -> x () |> Some
    ) () ) | None -> None
    |> fun x -> _v480.Value <- x
    let v483 : US2 option = _v480.Value 
    let v506 : US2 = US2_1
    let v507 : US2 = v483 |> Option.defaultValue v506 
    let v605 : System.DateTime =
        match v507 with
        | US2_1 -> (* None *)
            let v597 : System.DateTime = System.DateTime.Now
            v597
        | US2_0(v515) -> (* Some *)
            let v518 : System.DateTime = System.DateTime.Now
            let v527 : (System.DateTime -> int64) = _.Ticks
            let v528 : int64 = v527 v518
            let v535 : int64 = v528 - v515
            let v538 : (int64 -> System.TimeSpan) = System.TimeSpan 
            let v539 : System.TimeSpan = v538 v535
            let v548 : (System.TimeSpan -> int32) = _.Hours
            let v549 : int32 = v548 v539
            let v558 : (System.TimeSpan -> int32) = _.Minutes
            let v559 : int32 = v558 v539
            let v568 : (System.TimeSpan -> int32) = _.Seconds
            let v569 : int32 = v568 v539
            let v578 : (System.TimeSpan -> int32) = _.Milliseconds
            let v579 : int32 = v578 v539
            let v588 : System.DateTime = System.DateTime (1, 1, 1, v549, v559, v569, v579)
            v588
    let v608 : string = method7()
    let v617 : (string -> string) = v605.ToString
    let v618 : string = v617 v608
    v618 
    #endif
#else
    let v627 : US2 option = None
    let _v627 = ref v627 
    match v18 with
    | Some x -> (
    (fun () ->
    (fun () ->
    let v628 : int64 = x
    let v629 : US2 = US2_0(v628)
    v629 
    )
    |> fun x -> x () |> Some
    ) () ) | None -> None
    |> fun x -> _v627.Value <- x
    let v630 : US2 option = _v627.Value 
    let v653 : US2 = US2_1
    let v654 : US2 = v630 |> Option.defaultValue v653 
    let v752 : System.DateTime =
        match v654 with
        | US2_1 -> (* None *)
            let v744 : System.DateTime = System.DateTime.Now
            v744
        | US2_0(v662) -> (* Some *)
            let v665 : System.DateTime = System.DateTime.Now
            let v674 : (System.DateTime -> int64) = _.Ticks
            let v675 : int64 = v674 v665
            let v682 : int64 = v675 - v662
            let v685 : (int64 -> System.TimeSpan) = System.TimeSpan 
            let v686 : System.TimeSpan = v685 v682
            let v695 : (System.TimeSpan -> int32) = _.Hours
            let v696 : int32 = v695 v686
            let v705 : (System.TimeSpan -> int32) = _.Minutes
            let v706 : int32 = v705 v686
            let v715 : (System.TimeSpan -> int32) = _.Seconds
            let v716 : int32 = v715 v686
            let v725 : (System.TimeSpan -> int32) = _.Milliseconds
            let v726 : int32 = v725 v686
            let v735 : System.DateTime = System.DateTime (1, 1, 1, v696, v706, v716, v726)
            v735
    let v755 : string = method7()
    let v764 : (string -> string) = v752.ToString
    let v765 : string = v764 v755
    v765 
    #endif
    |> fun x -> _v35 <- Some x
    let v772 : string = match _v35 with Some x -> x | None -> failwith "base.run_target / _v35=None"
    let v927 : bool =
        match v0 with
        | US0_0 -> (* Verbose *)
            true
        | _ ->
            false
    let v931 : US3 =
        if v927 then
            let v928 : string = "Verbose"
            US3_0(v928)
        else
            US3_1
    let v980 : US3 =
        match v931 with
        | US3_1 -> (* None *)
            let v936 : bool =
                match v0 with
                | US0_1 -> (* Debug *)
                    true
                | _ ->
                    false
            let v940 : US3 =
                if v936 then
                    let v937 : string = "Debug"
                    US3_0(v937)
                else
                    US3_1
            match v940 with
            | US3_1 -> (* None *)
                let v945 : bool =
                    match v0 with
                    | US0_2 -> (* Info *)
                        true
                    | _ ->
                        false
                let v949 : US3 =
                    if v945 then
                        let v946 : string = "Info"
                        US3_0(v946)
                    else
                        US3_1
                match v949 with
                | US3_1 -> (* None *)
                    let v954 : bool =
                        match v0 with
                        | US0_3 -> (* Warning *)
                            true
                        | _ ->
                            false
                    let v958 : US3 =
                        if v954 then
                            let v955 : string = "Warning"
                            US3_0(v955)
                        else
                            US3_1
                    match v958 with
                    | US3_1 -> (* None *)
                        let v963 : bool =
                            match v0 with
                            | US0_4 -> (* Critical *)
                                true
                            | _ ->
                                false
                        let v967 : US3 =
                            if v963 then
                                let v964 : string = "Critical"
                                US3_0(v964)
                            else
                                US3_1
                        match v967 with
                        | US3_1 -> (* None *)
                            US3_1
                        | US3_0(v968) -> (* Some *)
                            US3_0(v968)
                    | US3_0(v959) -> (* Some *)
                        US3_0(v959)
                | US3_0(v950) -> (* Some *)
                    US3_0(v950)
            | US3_0(v941) -> (* Some *)
                US3_0(v941)
        | US3_0(v932) -> (* Some *)
            US3_0(v932)
    let v984 : string =
        match v980 with
        | US3_1 -> (* None *)
            failwith<string> "Option does not have a value."
        | US3_0(v981) -> (* Some *)
            v981
    let v987 : (unit -> string) = v984.ToLower
    let v988 : string = v987 ()
    let v997 : string = v988.PadLeft (7, ' ')
    let v1029 : bool = true
    let mutable _v1029 : string option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v1044 : Ref<Str> =
        match v0 with
        | US0_4 -> (* Critical *)
            let v1038 : string = "inline_colorization::color_bright_red"
            let v1039 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1038 
            v1039
        | US0_1 -> (* Debug *)
            let v1032 : string = "inline_colorization::color_bright_blue"
            let v1033 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1032 
            v1033
        | US0_2 -> (* Info *)
            let v1034 : string = "inline_colorization::color_bright_green"
            let v1035 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1034 
            v1035
        | US0_0 -> (* Verbose *)
            let v1030 : string = "inline_colorization::color_bright_black"
            let v1031 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1030 
            v1031
        | US0_3 -> (* Warning *)
            let v1036 : string = "inline_colorization::color_yellow"
            let v1037 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1036 
            v1037
    let v1045 : string = "&*$0"
    let v1046 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v997 v1045 
    let v1047 : string = "inline_colorization::color_reset"
    let v1048 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1047 
    let v1049 : string = "\"{v1044}{v1046}{v1048}\""
    let v1050 : string = @$"format!(" + v1049 + ")"
    let v1051 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v1050 
    let v1052 : string = "fable_library_rust::String_::fromString($0)"
    let v1053 : string = Fable.Core.RustInterop.emitRustExpr v1051 v1052 
    v1053 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v1068 : Ref<Str> =
        match v0 with
        | US0_4 -> (* Critical *)
            let v1062 : string = "inline_colorization::color_bright_red"
            let v1063 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1062 
            v1063
        | US0_1 -> (* Debug *)
            let v1056 : string = "inline_colorization::color_bright_blue"
            let v1057 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1056 
            v1057
        | US0_2 -> (* Info *)
            let v1058 : string = "inline_colorization::color_bright_green"
            let v1059 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1058 
            v1059
        | US0_0 -> (* Verbose *)
            let v1054 : string = "inline_colorization::color_bright_black"
            let v1055 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1054 
            v1055
        | US0_3 -> (* Warning *)
            let v1060 : string = "inline_colorization::color_yellow"
            let v1061 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1060 
            v1061
    let v1069 : string = "&*$0"
    let v1070 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v997 v1069 
    let v1071 : string = "inline_colorization::color_reset"
    let v1072 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1071 
    let v1073 : string = "\"{v1068}{v1070}{v1072}\""
    let v1074 : string = @$"format!(" + v1073 + ")"
    let v1075 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v1074 
    let v1076 : string = "fable_library_rust::String_::fromString($0)"
    let v1077 : string = Fable.Core.RustInterop.emitRustExpr v1075 v1076 
    v1077 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v1092 : Ref<Str> =
        match v0 with
        | US0_4 -> (* Critical *)
            let v1086 : string = "inline_colorization::color_bright_red"
            let v1087 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1086 
            v1087
        | US0_1 -> (* Debug *)
            let v1080 : string = "inline_colorization::color_bright_blue"
            let v1081 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1080 
            v1081
        | US0_2 -> (* Info *)
            let v1082 : string = "inline_colorization::color_bright_green"
            let v1083 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1082 
            v1083
        | US0_0 -> (* Verbose *)
            let v1078 : string = "inline_colorization::color_bright_black"
            let v1079 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1078 
            v1079
        | US0_3 -> (* Warning *)
            let v1084 : string = "inline_colorization::color_yellow"
            let v1085 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1084 
            v1085
    let v1093 : string = "&*$0"
    let v1094 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v997 v1093 
    let v1095 : string = "inline_colorization::color_reset"
    let v1096 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1095 
    let v1097 : string = "\"{v1092}{v1094}{v1096}\""
    let v1098 : string = @$"format!(" + v1097 + ")"
    let v1099 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v1098 
    let v1100 : string = "fable_library_rust::String_::fromString($0)"
    let v1101 : string = Fable.Core.RustInterop.emitRustExpr v1099 v1100 
    v1101 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v1111 : string =
        match v0 with
        | US0_4 -> (* Critical *)
            let v1106 : string = "\u001b[91m"
            v1106
        | US0_1 -> (* Debug *)
            let v1103 : string = "\u001b[94m"
            v1103
        | US0_2 -> (* Info *)
            let v1104 : string = "\u001b[92m"
            v1104
        | US0_0 -> (* Verbose *)
            let v1102 : string = "\u001b[90m"
            v1102
        | US0_3 -> (* Warning *)
            let v1105 : string = "\u001b[93m"
            v1105
    let v1112 : string = method8()
    let v1113 : string = v1111 + v997 
    let v1114 : string = v1113 + v1112 
    v1114 
    #endif
#if FABLE_COMPILER_PYTHON
    let v1124 : string =
        match v0 with
        | US0_4 -> (* Critical *)
            let v1119 : string = "\u001b[91m"
            v1119
        | US0_1 -> (* Debug *)
            let v1116 : string = "\u001b[94m"
            v1116
        | US0_2 -> (* Info *)
            let v1117 : string = "\u001b[92m"
            v1117
        | US0_0 -> (* Verbose *)
            let v1115 : string = "\u001b[90m"
            v1115
        | US0_3 -> (* Warning *)
            let v1118 : string = "\u001b[93m"
            v1118
    let v1125 : string = method8()
    let v1126 : string = v1124 + v997 
    let v1127 : string = v1126 + v1125 
    v1127 
    #endif
#else
    let v1137 : string =
        match v0 with
        | US0_4 -> (* Critical *)
            let v1132 : string = "\u001b[91m"
            v1132
        | US0_1 -> (* Debug *)
            let v1129 : string = "\u001b[94m"
            v1129
        | US0_2 -> (* Info *)
            let v1130 : string = "\u001b[92m"
            v1130
        | US0_0 -> (* Verbose *)
            let v1128 : string = "\u001b[90m"
            v1128
        | US0_3 -> (* Warning *)
            let v1131 : string = "\u001b[93m"
            v1131
    let v1138 : string = method8()
    let v1139 : string = v1137 + v997 
    let v1140 : string = v1139 + v1138 
    v1140 
    #endif
    |> fun x -> _v1029 <- Some x
    let v1141 : string = match _v1029 with Some x -> x | None -> failwith "base.run_target / _v1029=None"
    let v1160 : int64 = v14.l0
    let struct (v1161 : int32, v1162 : string) = v2 ()
    let v1163 : string = ""
    let v1164 : Mut4 = {l0 = v1163} : Mut4
    method17(v1164, v1161, v1162)
    let v1165 : string = v1164.l0
    let v1168 : string = $"{v772} {v1141} #{v1160} %s{v1 ()} / {v1165}"
    let v1175 : char list = []
    let v1180 : (char list -> (char [])) = List.toArray
    let v1181 : (char []) = v1180 v1175
    let v1188 : string = v1168.TrimStart v1181 
    let v1227 : char list = []
    let v1230 : char list = '/' :: v1227 
    let v1239 : char list = ' ' :: v1230 
    let v1250 : (char list -> (char [])) = List.toArray
    let v1251 : (char []) = v1250 v1239
    let v1258 : string = v1188.TrimEnd v1251 
    v1258
and method16 (v0 : US0, v1 : (unit -> string), v2 : (unit -> struct (int32 * string))) : unit =
    let v3 : (unit -> string) = closure17(v0, v1, v2)
    method13(v0, v3)
and closure9 (v0 : int32, v1 : string) (v2 : int32) : Async<bool> =
    let v5 : bool = true
    let mutable _v5 : Async<bool> option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v8 : Async<bool> = null |> unbox<Async<bool>>
    v8 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v17 : Async<bool> = null |> unbox<Async<bool>>
    v17 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v26 : Async<bool> = null |> unbox<Async<bool>>
    v26 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v35 : Async<bool> = null |> unbox<Async<bool>>
    v35 
    #endif
#if FABLE_COMPILER_PYTHON
    let v44 : Async<bool> = null |> unbox<Async<bool>>
    v44 
    #endif
#else
    let v51 : Async<bool> option = None
    let mutable _v51 = v51 
    async {
    let v54 : bool = true
    let mutable _v54 : Async<bool> option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v57 : Async<bool> = null |> unbox<Async<bool>>
    v57 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v66 : Async<bool> = null |> unbox<Async<bool>>
    v66 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v75 : Async<bool> = null |> unbox<Async<bool>>
    v75 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v84 : Async<bool> = null |> unbox<Async<bool>>
    v84 
    #endif
#if FABLE_COMPILER_PYTHON
    let v93 : Async<bool> = null |> unbox<Async<bool>>
    v93 
    #endif
#else
    let v100 : Async<bool> option = None
    let mutable _v100 = v100 
    async {
    let v101 : Async<System.Threading.CancellationToken> = Async.CancellationToken
    let! v101 = v101 
    let v102 : System.Threading.CancellationToken = v101 
    let v103 : System.Net.Sockets.TcpClient = new System.Net.Sockets.TcpClient ()
    use v103 = v103 
    let v104 : System.Net.Sockets.TcpClient = v103 
    try
    let v105 : System.Threading.Tasks.ValueTask = v104.ConnectAsync (v1, v2, v102)
    let v106 : (unit -> System.Threading.Tasks.Task) = v105.AsTask
    let v107 : System.Threading.Tasks.Task = v106 ()
    let v110 : bool = true
    let mutable _v110 : Async<unit> option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v113 : Async<unit> = null |> unbox<Async<unit>>
    v113 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v122 : Async<unit> = null |> unbox<Async<unit>>
    v122 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v131 : Async<unit> = null |> unbox<Async<unit>>
    v131 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v140 : Async<unit> = null |> unbox<Async<unit>>
    v140 
    #endif
#if FABLE_COMPILER_PYTHON
    let v149 : Async<unit> = null |> unbox<Async<unit>>
    v149 
    #endif
#else
    let v156 : (System.Threading.Tasks.Task -> Async<unit>) = Async.AwaitTask
    let v157 : Async<unit> = v156 v107
    v157 
    #endif
    |> fun x -> _v110 <- Some x
    let v158 : Async<unit> = match _v110 with Some x -> x | None -> failwith "base.run_target / _v110=None"
    do! v158 
    return true 
    with ex ->
    let v173 : exn = ex
    let v176 : bool = true
    let mutable _v176 : string option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v179 : string = $"%A{v173}"
    v179 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v188 : string = $"%A{v173}"
    v188 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v197 : string = $"%A{v173}"
    v197 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v206 : string = $"%A{v173}"
    v206 
    #endif
#if FABLE_COMPILER_PYTHON
    let v215 : string = $"%A{v173}"
    v215 
    #endif
#else
    let v222 : string = $"{v173.GetType ()}: {v173.Message}"
    v222 
    #endif
    |> fun x -> _v176 <- Some x
    let v223 : string = match _v176 with Some x -> x | None -> failwith "base.run_target / _v176=None"
    let v238 : US0 = US0_0
    let v239 : (unit -> string) = closure4()
    let v240 : (unit -> struct (int32 * string)) = closure5(v2, v223)
    method4(v238, v239, v240)
    return false 
    (*
    let v241 : bool = *)
    }
    |> fun x -> _v100 <- Some x
    let v242 : Async<bool> = match _v100 with Some x -> x | None -> failwith "async.new_async_unit / _v100=None"
    v242 
    #endif
    |> fun x -> _v54 <- Some x
    let v243 : Async<bool> = match _v54 with Some x -> x | None -> failwith "base.run_target / _v54=None"
    let v260 : bool = true
    let mutable _v260 : Async<US4> option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v263 : Async<US4> = null |> unbox<Async<US4>>
    v263 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v272 : Async<US4> = null |> unbox<Async<US4>>
    v272 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v281 : Async<US4> = null |> unbox<Async<US4>>
    v281 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v290 : Async<US4> = null |> unbox<Async<US4>>
    v290 
    #endif
#if FABLE_COMPILER_PYTHON
    let v299 : Async<US4> = null |> unbox<Async<US4>>
    v299 
    #endif
#else
    let v308 : bool = true
    let mutable _v308 : Async<US4> option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v311 : Async<US4> = null |> unbox<Async<US4>>
    v311 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v320 : Async<US4> = null |> unbox<Async<US4>>
    v320 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v329 : Async<US4> = null |> unbox<Async<US4>>
    v329 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v338 : Async<US4> = null |> unbox<Async<US4>>
    v338 
    #endif
#if FABLE_COMPILER_PYTHON
    let v347 : Async<US4> = null |> unbox<Async<US4>>
    v347 
    #endif
#else
    let v354 : Async<US4> option = None
    let mutable _v354 = v354 
    async {
    let v357 : bool = true
    let mutable _v357 : Async<Async<bool>> option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v360 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
    v360 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v369 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
    v369 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v378 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
    v378 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v387 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
    v387 
    #endif
#if FABLE_COMPILER_PYTHON
    let v396 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
    v396 
    #endif
#else
    let v403 : Async<Async<bool>> = Async.StartChild (v243, v0)
    v403 
    #endif
    |> fun x -> _v357 <- Some x
    let v404 : Async<Async<bool>> = match _v357 with Some x -> x | None -> failwith "base.run_target / _v357=None"
    let! v404 = v404 
    let v419 : Async<bool> = v404 
    let v422 : bool = true
    let mutable _v422 : Async<Choice<bool, exn>> option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v425 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
    v425 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v434 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
    v434 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v443 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
    v443 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v452 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
    v452 
    #endif
#if FABLE_COMPILER_PYTHON
    let v461 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
    v461 
    #endif
#else
    let v468 : (Async<bool> -> Async<Choice<bool, exn>>) = Async.Catch
    let v469 : Async<Choice<bool, exn>> = v468 v419
    v469 
    #endif
    |> fun x -> _v422 <- Some x
    let v470 : Async<Choice<bool, exn>> = match _v422 with Some x -> x | None -> failwith "base.run_target / _v422=None"
    let v487 : bool = true
    let mutable _v487 : Async<US5> option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v490 : Async<US5> = null |> unbox<Async<US5>>
    v490 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v499 : Async<US5> = null |> unbox<Async<US5>>
    v499 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v508 : Async<US5> = null |> unbox<Async<US5>>
    v508 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v517 : Async<US5> = null |> unbox<Async<US5>>
    v517 
    #endif
#if FABLE_COMPILER_PYTHON
    let v526 : Async<US5> = null |> unbox<Async<US5>>
    v526 
    #endif
#else
    let v533 : Async<US5> option = None
    let mutable _v533 = v533 
    async {
    let! v470 = v470 
    let v534 : Choice<bool, exn> = v470 
    let v537 : bool = true
    let mutable _v537 : US5 option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v540 : US5 = null |> unbox<US5>
    v540 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v549 : US5 = null |> unbox<US5>
    v549 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v558 : US5 = null |> unbox<US5>
    v558 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v567 : US5 = null |> unbox<US5>
    v567 
    #endif
#if FABLE_COMPILER_PYTHON
    let v576 : US5 = null |> unbox<US5>
    v576 
    #endif
#else
    let v583 : (bool -> US5) = closure10()
    let v584 : (exn -> US5) = closure11()
    let v585 : US5 = match v534 with Choice1Of2 x -> v583 x | Choice2Of2 x -> v584 x
    v585 
    #endif
    |> fun x -> _v537 <- Some x
    let v586 : US5 = match _v537 with Some x -> x | None -> failwith "base.run_target / _v537=None"
    return v586 
    }
    |> fun x -> _v533 <- Some x
    let v601 : Async<US5> = match _v533 with Some x -> x | None -> failwith "async.new_async_unit / _v533=None"
    v601 
    #endif
    |> fun x -> _v487 <- Some x
    let v602 : Async<US5> = match _v487 with Some x -> x | None -> failwith "base.run_target / _v487=None"
    let v619 : bool = true
    let mutable _v619 : Async<US6> option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v622 : Async<US6> = null |> unbox<Async<US6>>
    v622 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v631 : Async<US6> = null |> unbox<Async<US6>>
    v631 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v640 : Async<US6> = null |> unbox<Async<US6>>
    v640 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v649 : Async<US6> = null |> unbox<Async<US6>>
    v649 
    #endif
#if FABLE_COMPILER_PYTHON
    let v658 : Async<US6> = null |> unbox<Async<US6>>
    v658 
    #endif
#else
    let v665 : Async<US6> option = None
    let mutable _v665 = v665 
    async {
    let! v602 = v602 
    let v666 : US5 = v602 
    let v672 : US6 =
        match v666 with
        | US5_0(v667) -> (* C1of2 *)
            US6_0(v667)
        | US5_1(v669) -> (* C2of2 *)
            US6_1(v669)
    return v672 
    }
    |> fun x -> _v665 <- Some x
    let v673 : Async<US6> = match _v665 with Some x -> x | None -> failwith "async.new_async_unit / _v665=None"
    v673 
    #endif
    |> fun x -> _v619 <- Some x
    let v674 : Async<US6> = match _v619 with Some x -> x | None -> failwith "base.run_target / _v619=None"
    let v691 : bool = true
    let mutable _v691 : Async<US4> option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v694 : Async<US4> = null |> unbox<Async<US4>>
    v694 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v703 : Async<US4> = null |> unbox<Async<US4>>
    v703 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v712 : Async<US4> = null |> unbox<Async<US4>>
    v712 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v721 : Async<US4> = null |> unbox<Async<US4>>
    v721 
    #endif
#if FABLE_COMPILER_PYTHON
    let v730 : Async<US4> = null |> unbox<Async<US4>>
    v730 
    #endif
#else
    let v737 : Async<US4> option = None
    let mutable _v737 = v737 
    async {
    let! v674 = v674 
    let v738 : US6 = v674 
    let v771 : US4 =
        match v738 with
        | US6_1(v741) -> (* Error *)
            let v744 : string = $"%A{v741}"
            let v753 : string = "System.TimeoutException"
            let v754 : bool = v744.Contains v753 
            if v754 then
                let v761 : US0 = US0_0
                let v762 : (unit -> string) = closure12()
                let v763 : (unit -> int32) = closure13(v0)
                method14(v761, v762, v763)
                US4_1
            else
                let v765 : US0 = US0_4
                let v766 : (unit -> string) = closure15()
                let v767 : (unit -> struct (int32 * string)) = closure16(v0, v741)
                method16(v765, v766, v767)
                US4_1
        | US6_0(v739) -> (* Ok *)
            US4_0(v739)
    return v771 
    }
    |> fun x -> _v737 <- Some x
    let v772 : Async<US4> = match _v737 with Some x -> x | None -> failwith "async.new_async_unit / _v737=None"
    v772 
    #endif
    |> fun x -> _v691 <- Some x
    let v773 : Async<US4> = match _v691 with Some x -> x | None -> failwith "base.run_target / _v691=None"
    return! v773 
    }
    |> fun x -> _v354 <- Some x
    let v788 : Async<US4> = match _v354 with Some x -> x | None -> failwith "async.new_async_unit / _v354=None"
    v788 
    #endif
    |> fun x -> _v308 <- Some x
    let v789 : Async<US4> = match _v308 with Some x -> x | None -> failwith "base.run_target / _v308=None"
    v789 
    #endif
    |> fun x -> _v260 <- Some x
    let v804 : Async<US4> = match _v260 with Some x -> x | None -> failwith "base.run_target / _v260=None"
    let! v804 = v804 
    let v819 : US4 = v804 
    let v822 : bool =
        match v819 with
        | US4_1 -> (* None *)
            false
        | US4_0(v820) -> (* Some *)
            v820
    return v822 
    }
    |> fun x -> _v51 <- Some x
    let v823 : Async<bool> = match _v51 with Some x -> x | None -> failwith "async.new_async_unit / _v51=None"
    v823 
    #endif
    |> fun x -> _v5 <- Some x
    let v824 : Async<bool> = match _v5 with Some x -> x | None -> failwith "base.run_target / _v5=None"
    v824
and closure8 (v0 : int32) (v1 : string) : (int32 -> Async<bool>) =
    closure9(v0, v1)
and closure7 () (v0 : int32) : (string -> (int32 -> Async<bool>)) =
    closure8(v0)
and closure22 () () : string =
    let v0 : string = "networking.wait_for_port_access"
    v0
and closure23 (v0 : int32 option, v1 : bool, v2 : int32, v3 : int64) () : struct (int32 * int64 * int32 option * bool) =
    struct (v2, v3, v0, v1)
and method21 (v0 : Mut4, v1 : int64) : unit =
    let v4 : string = $"{v1}"
    let v11 : string = v0.l0
    let v12 : string = v11 + v4 
    v0.l0 <- v12
    ()
and method22 (v0 : Mut4, v1 : int32 option) : unit =
    let v4 : string = $"%A{v1}"
    method10(v0, v4)
and method23 (v0 : Mut4, v1 : bool) : unit =
    let v4 : string =
        if v1 then
            let v2 : string = "true"
            v2
        else
            let v3 : string = "false"
            v3
    let v7 : string = $"{v4}"
    let v14 : string = v0.l0
    let v15 : string = v14 + v7 
    v0.l0 <- v15
    ()
and method20 (v0 : Mut4, v1 : int32, v2 : int64, v3 : int32 option, v4 : bool) : unit =
    let v5 : string = "{ "
    method10(v0, v5)
    method11(v0)
    let v6 : string = "port"
    method10(v0, v6)
    let v7 : string = " = "
    method10(v0, v7)
    method12(v0, v1)
    let v8 : string = "; "
    method10(v0, v8)
    let v9 : string = "retry"
    method10(v0, v9)
    method10(v0, v7)
    method21(v0, v2)
    method10(v0, v8)
    let v10 : string = "timeout"
    method10(v0, v10)
    method10(v0, v7)
    method22(v0, v3)
    method10(v0, v8)
    let v11 : string = "status"
    method10(v0, v11)
    method10(v0, v7)
    method23(v0, v4)
    let v12 : string = " }"
    method10(v0, v12)
and closure24 (v0 : US0, v1 : (unit -> string), v2 : (unit -> struct (int32 * int64 * int32 option * bool))) () : string =
    let v5 : (US0 -> struct (Mut0 * Mut1 * Mut2 * Mut3 * int64 option)) = closure0()
    let v6 : US0 = US0_0
    if State.trace_state.IsNone then State.trace_state <- v5 v6 |> Some
    let struct (v14 : Mut0, v15 : Mut1, v16 : Mut2, v17 : Mut3, v18 : int64 option) = State.trace_state.Value
    let v35 : bool = true
    let mutable _v35 : string option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v38 : US2 option = None
    let _v38 = ref v38 
    match v18 with
    | Some x -> (
    (fun () ->
    (fun () ->
    let v39 : int64 = x
    let v40 : US2 = US2_0(v39)
    v40 
    )
    |> fun x -> x () |> Some
    ) () ) | None -> None
    |> fun x -> _v38.Value <- x
    let v41 : US2 option = _v38.Value 
    let v64 : US2 = US2_1
    let v65 : US2 = v41 |> Option.defaultValue v64 
    let v163 : System.DateTime =
        match v65 with
        | US2_1 -> (* None *)
            let v155 : System.DateTime = System.DateTime.Now
            v155
        | US2_0(v73) -> (* Some *)
            let v76 : System.DateTime = System.DateTime.Now
            let v85 : (System.DateTime -> int64) = _.Ticks
            let v86 : int64 = v85 v76
            let v93 : int64 = v86 - v73
            let v96 : (int64 -> System.TimeSpan) = System.TimeSpan 
            let v97 : System.TimeSpan = v96 v93
            let v106 : (System.TimeSpan -> int32) = _.Hours
            let v107 : int32 = v106 v97
            let v116 : (System.TimeSpan -> int32) = _.Minutes
            let v117 : int32 = v116 v97
            let v126 : (System.TimeSpan -> int32) = _.Seconds
            let v127 : int32 = v126 v97
            let v136 : (System.TimeSpan -> int32) = _.Milliseconds
            let v137 : int32 = v136 v97
            let v146 : System.DateTime = System.DateTime (1, 1, 1, v107, v117, v127, v137)
            v146
    let v166 : string = method5()
    let v175 : (string -> string) = v163.ToString
    let v176 : string = v175 v166
    v176 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v185 : US2 option = None
    let _v185 = ref v185 
    match v18 with
    | Some x -> (
    (fun () ->
    (fun () ->
    let v186 : int64 = x
    let v187 : US2 = US2_0(v186)
    v187 
    )
    |> fun x -> x () |> Some
    ) () ) | None -> None
    |> fun x -> _v185.Value <- x
    let v188 : US2 option = _v185.Value 
    let v211 : US2 = US2_1
    let v212 : US2 = v188 |> Option.defaultValue v211 
    let v310 : System.DateTime =
        match v212 with
        | US2_1 -> (* None *)
            let v302 : System.DateTime = System.DateTime.Now
            v302
        | US2_0(v220) -> (* Some *)
            let v223 : System.DateTime = System.DateTime.Now
            let v232 : (System.DateTime -> int64) = _.Ticks
            let v233 : int64 = v232 v223
            let v240 : int64 = v233 - v220
            let v243 : (int64 -> System.TimeSpan) = System.TimeSpan 
            let v244 : System.TimeSpan = v243 v240
            let v253 : (System.TimeSpan -> int32) = _.Hours
            let v254 : int32 = v253 v244
            let v263 : (System.TimeSpan -> int32) = _.Minutes
            let v264 : int32 = v263 v244
            let v273 : (System.TimeSpan -> int32) = _.Seconds
            let v274 : int32 = v273 v244
            let v283 : (System.TimeSpan -> int32) = _.Milliseconds
            let v284 : int32 = v283 v244
            let v293 : System.DateTime = System.DateTime (1, 1, 1, v254, v264, v274, v284)
            v293
    let v313 : string = method5()
    let v322 : (string -> string) = v310.ToString
    let v323 : string = v322 v313
    v323 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v330 : string = method6()
    v330 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v333 : US2 option = None
    let _v333 = ref v333 
    match v18 with
    | Some x -> (
    (fun () ->
    (fun () ->
    let v334 : int64 = x
    let v335 : US2 = US2_0(v334)
    v335 
    )
    |> fun x -> x () |> Some
    ) () ) | None -> None
    |> fun x -> _v333.Value <- x
    let v336 : US2 option = _v333.Value 
    let v359 : US2 = US2_1
    let v360 : US2 = v336 |> Option.defaultValue v359 
    let v458 : System.DateTime =
        match v360 with
        | US2_1 -> (* None *)
            let v450 : System.DateTime = System.DateTime.Now
            v450
        | US2_0(v368) -> (* Some *)
            let v371 : System.DateTime = System.DateTime.Now
            let v380 : (System.DateTime -> int64) = _.Ticks
            let v381 : int64 = v380 v371
            let v388 : int64 = v381 - v368
            let v391 : (int64 -> System.TimeSpan) = System.TimeSpan 
            let v392 : System.TimeSpan = v391 v388
            let v401 : (System.TimeSpan -> int32) = _.Hours
            let v402 : int32 = v401 v392
            let v411 : (System.TimeSpan -> int32) = _.Minutes
            let v412 : int32 = v411 v392
            let v421 : (System.TimeSpan -> int32) = _.Seconds
            let v422 : int32 = v421 v392
            let v431 : (System.TimeSpan -> int32) = _.Milliseconds
            let v432 : int32 = v431 v392
            let v441 : System.DateTime = System.DateTime (1, 1, 1, v402, v412, v422, v432)
            v441
    let v461 : string = method7()
    let v470 : (string -> string) = v458.ToString
    let v471 : string = v470 v461
    v471 
    #endif
#if FABLE_COMPILER_PYTHON
    let v480 : US2 option = None
    let _v480 = ref v480 
    match v18 with
    | Some x -> (
    (fun () ->
    (fun () ->
    let v481 : int64 = x
    let v482 : US2 = US2_0(v481)
    v482 
    )
    |> fun x -> x () |> Some
    ) () ) | None -> None
    |> fun x -> _v480.Value <- x
    let v483 : US2 option = _v480.Value 
    let v506 : US2 = US2_1
    let v507 : US2 = v483 |> Option.defaultValue v506 
    let v605 : System.DateTime =
        match v507 with
        | US2_1 -> (* None *)
            let v597 : System.DateTime = System.DateTime.Now
            v597
        | US2_0(v515) -> (* Some *)
            let v518 : System.DateTime = System.DateTime.Now
            let v527 : (System.DateTime -> int64) = _.Ticks
            let v528 : int64 = v527 v518
            let v535 : int64 = v528 - v515
            let v538 : (int64 -> System.TimeSpan) = System.TimeSpan 
            let v539 : System.TimeSpan = v538 v535
            let v548 : (System.TimeSpan -> int32) = _.Hours
            let v549 : int32 = v548 v539
            let v558 : (System.TimeSpan -> int32) = _.Minutes
            let v559 : int32 = v558 v539
            let v568 : (System.TimeSpan -> int32) = _.Seconds
            let v569 : int32 = v568 v539
            let v578 : (System.TimeSpan -> int32) = _.Milliseconds
            let v579 : int32 = v578 v539
            let v588 : System.DateTime = System.DateTime (1, 1, 1, v549, v559, v569, v579)
            v588
    let v608 : string = method7()
    let v617 : (string -> string) = v605.ToString
    let v618 : string = v617 v608
    v618 
    #endif
#else
    let v627 : US2 option = None
    let _v627 = ref v627 
    match v18 with
    | Some x -> (
    (fun () ->
    (fun () ->
    let v628 : int64 = x
    let v629 : US2 = US2_0(v628)
    v629 
    )
    |> fun x -> x () |> Some
    ) () ) | None -> None
    |> fun x -> _v627.Value <- x
    let v630 : US2 option = _v627.Value 
    let v653 : US2 = US2_1
    let v654 : US2 = v630 |> Option.defaultValue v653 
    let v752 : System.DateTime =
        match v654 with
        | US2_1 -> (* None *)
            let v744 : System.DateTime = System.DateTime.Now
            v744
        | US2_0(v662) -> (* Some *)
            let v665 : System.DateTime = System.DateTime.Now
            let v674 : (System.DateTime -> int64) = _.Ticks
            let v675 : int64 = v674 v665
            let v682 : int64 = v675 - v662
            let v685 : (int64 -> System.TimeSpan) = System.TimeSpan 
            let v686 : System.TimeSpan = v685 v682
            let v695 : (System.TimeSpan -> int32) = _.Hours
            let v696 : int32 = v695 v686
            let v705 : (System.TimeSpan -> int32) = _.Minutes
            let v706 : int32 = v705 v686
            let v715 : (System.TimeSpan -> int32) = _.Seconds
            let v716 : int32 = v715 v686
            let v725 : (System.TimeSpan -> int32) = _.Milliseconds
            let v726 : int32 = v725 v686
            let v735 : System.DateTime = System.DateTime (1, 1, 1, v696, v706, v716, v726)
            v735
    let v755 : string = method7()
    let v764 : (string -> string) = v752.ToString
    let v765 : string = v764 v755
    v765 
    #endif
    |> fun x -> _v35 <- Some x
    let v772 : string = match _v35 with Some x -> x | None -> failwith "base.run_target / _v35=None"
    let v927 : bool =
        match v0 with
        | US0_0 -> (* Verbose *)
            true
        | _ ->
            false
    let v931 : US3 =
        if v927 then
            let v928 : string = "Verbose"
            US3_0(v928)
        else
            US3_1
    let v980 : US3 =
        match v931 with
        | US3_1 -> (* None *)
            let v936 : bool =
                match v0 with
                | US0_1 -> (* Debug *)
                    true
                | _ ->
                    false
            let v940 : US3 =
                if v936 then
                    let v937 : string = "Debug"
                    US3_0(v937)
                else
                    US3_1
            match v940 with
            | US3_1 -> (* None *)
                let v945 : bool =
                    match v0 with
                    | US0_2 -> (* Info *)
                        true
                    | _ ->
                        false
                let v949 : US3 =
                    if v945 then
                        let v946 : string = "Info"
                        US3_0(v946)
                    else
                        US3_1
                match v949 with
                | US3_1 -> (* None *)
                    let v954 : bool =
                        match v0 with
                        | US0_3 -> (* Warning *)
                            true
                        | _ ->
                            false
                    let v958 : US3 =
                        if v954 then
                            let v955 : string = "Warning"
                            US3_0(v955)
                        else
                            US3_1
                    match v958 with
                    | US3_1 -> (* None *)
                        let v963 : bool =
                            match v0 with
                            | US0_4 -> (* Critical *)
                                true
                            | _ ->
                                false
                        let v967 : US3 =
                            if v963 then
                                let v964 : string = "Critical"
                                US3_0(v964)
                            else
                                US3_1
                        match v967 with
                        | US3_1 -> (* None *)
                            US3_1
                        | US3_0(v968) -> (* Some *)
                            US3_0(v968)
                    | US3_0(v959) -> (* Some *)
                        US3_0(v959)
                | US3_0(v950) -> (* Some *)
                    US3_0(v950)
            | US3_0(v941) -> (* Some *)
                US3_0(v941)
        | US3_0(v932) -> (* Some *)
            US3_0(v932)
    let v984 : string =
        match v980 with
        | US3_1 -> (* None *)
            failwith<string> "Option does not have a value."
        | US3_0(v981) -> (* Some *)
            v981
    let v987 : (unit -> string) = v984.ToLower
    let v988 : string = v987 ()
    let v997 : string = v988.PadLeft (7, ' ')
    let v1029 : bool = true
    let mutable _v1029 : string option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v1044 : Ref<Str> =
        match v0 with
        | US0_4 -> (* Critical *)
            let v1038 : string = "inline_colorization::color_bright_red"
            let v1039 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1038 
            v1039
        | US0_1 -> (* Debug *)
            let v1032 : string = "inline_colorization::color_bright_blue"
            let v1033 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1032 
            v1033
        | US0_2 -> (* Info *)
            let v1034 : string = "inline_colorization::color_bright_green"
            let v1035 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1034 
            v1035
        | US0_0 -> (* Verbose *)
            let v1030 : string = "inline_colorization::color_bright_black"
            let v1031 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1030 
            v1031
        | US0_3 -> (* Warning *)
            let v1036 : string = "inline_colorization::color_yellow"
            let v1037 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1036 
            v1037
    let v1045 : string = "&*$0"
    let v1046 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v997 v1045 
    let v1047 : string = "inline_colorization::color_reset"
    let v1048 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1047 
    let v1049 : string = "\"{v1044}{v1046}{v1048}\""
    let v1050 : string = @$"format!(" + v1049 + ")"
    let v1051 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v1050 
    let v1052 : string = "fable_library_rust::String_::fromString($0)"
    let v1053 : string = Fable.Core.RustInterop.emitRustExpr v1051 v1052 
    v1053 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v1068 : Ref<Str> =
        match v0 with
        | US0_4 -> (* Critical *)
            let v1062 : string = "inline_colorization::color_bright_red"
            let v1063 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1062 
            v1063
        | US0_1 -> (* Debug *)
            let v1056 : string = "inline_colorization::color_bright_blue"
            let v1057 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1056 
            v1057
        | US0_2 -> (* Info *)
            let v1058 : string = "inline_colorization::color_bright_green"
            let v1059 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1058 
            v1059
        | US0_0 -> (* Verbose *)
            let v1054 : string = "inline_colorization::color_bright_black"
            let v1055 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1054 
            v1055
        | US0_3 -> (* Warning *)
            let v1060 : string = "inline_colorization::color_yellow"
            let v1061 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1060 
            v1061
    let v1069 : string = "&*$0"
    let v1070 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v997 v1069 
    let v1071 : string = "inline_colorization::color_reset"
    let v1072 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1071 
    let v1073 : string = "\"{v1068}{v1070}{v1072}\""
    let v1074 : string = @$"format!(" + v1073 + ")"
    let v1075 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v1074 
    let v1076 : string = "fable_library_rust::String_::fromString($0)"
    let v1077 : string = Fable.Core.RustInterop.emitRustExpr v1075 v1076 
    v1077 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v1092 : Ref<Str> =
        match v0 with
        | US0_4 -> (* Critical *)
            let v1086 : string = "inline_colorization::color_bright_red"
            let v1087 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1086 
            v1087
        | US0_1 -> (* Debug *)
            let v1080 : string = "inline_colorization::color_bright_blue"
            let v1081 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1080 
            v1081
        | US0_2 -> (* Info *)
            let v1082 : string = "inline_colorization::color_bright_green"
            let v1083 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1082 
            v1083
        | US0_0 -> (* Verbose *)
            let v1078 : string = "inline_colorization::color_bright_black"
            let v1079 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1078 
            v1079
        | US0_3 -> (* Warning *)
            let v1084 : string = "inline_colorization::color_yellow"
            let v1085 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1084 
            v1085
    let v1093 : string = "&*$0"
    let v1094 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr v997 v1093 
    let v1095 : string = "inline_colorization::color_reset"
    let v1096 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v1095 
    let v1097 : string = "\"{v1092}{v1094}{v1096}\""
    let v1098 : string = @$"format!(" + v1097 + ")"
    let v1099 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v1098 
    let v1100 : string = "fable_library_rust::String_::fromString($0)"
    let v1101 : string = Fable.Core.RustInterop.emitRustExpr v1099 v1100 
    v1101 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v1111 : string =
        match v0 with
        | US0_4 -> (* Critical *)
            let v1106 : string = "\u001b[91m"
            v1106
        | US0_1 -> (* Debug *)
            let v1103 : string = "\u001b[94m"
            v1103
        | US0_2 -> (* Info *)
            let v1104 : string = "\u001b[92m"
            v1104
        | US0_0 -> (* Verbose *)
            let v1102 : string = "\u001b[90m"
            v1102
        | US0_3 -> (* Warning *)
            let v1105 : string = "\u001b[93m"
            v1105
    let v1112 : string = method8()
    let v1113 : string = v1111 + v997 
    let v1114 : string = v1113 + v1112 
    v1114 
    #endif
#if FABLE_COMPILER_PYTHON
    let v1124 : string =
        match v0 with
        | US0_4 -> (* Critical *)
            let v1119 : string = "\u001b[91m"
            v1119
        | US0_1 -> (* Debug *)
            let v1116 : string = "\u001b[94m"
            v1116
        | US0_2 -> (* Info *)
            let v1117 : string = "\u001b[92m"
            v1117
        | US0_0 -> (* Verbose *)
            let v1115 : string = "\u001b[90m"
            v1115
        | US0_3 -> (* Warning *)
            let v1118 : string = "\u001b[93m"
            v1118
    let v1125 : string = method8()
    let v1126 : string = v1124 + v997 
    let v1127 : string = v1126 + v1125 
    v1127 
    #endif
#else
    let v1137 : string =
        match v0 with
        | US0_4 -> (* Critical *)
            let v1132 : string = "\u001b[91m"
            v1132
        | US0_1 -> (* Debug *)
            let v1129 : string = "\u001b[94m"
            v1129
        | US0_2 -> (* Info *)
            let v1130 : string = "\u001b[92m"
            v1130
        | US0_0 -> (* Verbose *)
            let v1128 : string = "\u001b[90m"
            v1128
        | US0_3 -> (* Warning *)
            let v1131 : string = "\u001b[93m"
            v1131
    let v1138 : string = method8()
    let v1139 : string = v1137 + v997 
    let v1140 : string = v1139 + v1138 
    v1140 
    #endif
    |> fun x -> _v1029 <- Some x
    let v1141 : string = match _v1029 with Some x -> x | None -> failwith "base.run_target / _v1029=None"
    let v1160 : int64 = v14.l0
    let struct (v1161 : int32, v1162 : int64, v1163 : int32 option, v1164 : bool) = v2 ()
    let v1165 : string = ""
    let v1166 : Mut4 = {l0 = v1165} : Mut4
    method20(v1166, v1161, v1162, v1163, v1164)
    let v1167 : string = v1166.l0
    let v1170 : string = $"{v772} {v1141} #{v1160} %s{v1 ()} / {v1167}"
    let v1177 : char list = []
    let v1182 : (char list -> (char [])) = List.toArray
    let v1183 : (char []) = v1182 v1177
    let v1190 : string = v1170.TrimStart v1183 
    let v1229 : char list = []
    let v1232 : char list = '/' :: v1229 
    let v1241 : char list = ' ' :: v1232 
    let v1252 : (char list -> (char [])) = List.toArray
    let v1253 : (char []) = v1252 v1241
    let v1260 : string = v1190.TrimEnd v1253 
    v1260
and method19 (v0 : US0, v1 : (unit -> string), v2 : (unit -> struct (int32 * int64 * int32 option * bool))) : unit =
    let v3 : (unit -> string) = closure24(v0, v1, v2)
    method13(v0, v3)
and method18 (v0 : int32 option, v1 : bool, v2 : string, v3 : int32, v4 : int64) : Async<int64> =
    let v7 : bool = true
    let mutable _v7 : Async<int64> option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v10 : Async<int64> = null |> unbox<Async<int64>>
    v10 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v19 : Async<int64> = null |> unbox<Async<int64>>
    v19 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v28 : Async<int64> = null |> unbox<Async<int64>>
    v28 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v37 : Async<int64> = null |> unbox<Async<int64>>
    v37 
    #endif
#if FABLE_COMPILER_PYTHON
    let v46 : Async<int64> = null |> unbox<Async<int64>>
    v46 
    #endif
#else
    let v53 : Async<int64> option = None
    let mutable _v53 = v53 
    async {
    let v56 : US7 option = None
    let _v56 = ref v56 
    match v0 with
    | Some x -> (
    (fun () ->
    (fun () ->
    let v57 : int32 = x
    let v58 : US7 = US7_0(v57)
    v58 
    )
    |> fun x -> x () |> Some
    ) () ) | None -> None
    |> fun x -> _v56.Value <- x
    let v59 : US7 option = _v56.Value 
    let v82 : US7 = US7_1
    let v83 : US7 = v59 |> Option.defaultValue v82 
    let v1135 : Async<bool> =
        match v83 with
        | US7_1 -> (* None *)
            let v93 : bool = true
            let mutable _v93 : Async<bool> option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v96 : Async<bool> = null |> unbox<Async<bool>>
            v96 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v105 : Async<bool> = null |> unbox<Async<bool>>
            v105 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v114 : Async<bool> = null |> unbox<Async<bool>>
            v114 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v123 : Async<bool> = null |> unbox<Async<bool>>
            v123 
            #endif
#if FABLE_COMPILER_PYTHON
            let v132 : Async<bool> = null |> unbox<Async<bool>>
            v132 
            #endif
#else
            let v139 : Async<bool> option = None
            let mutable _v139 = v139 
            async {
            let v140 : Async<System.Threading.CancellationToken> = Async.CancellationToken
            let! v140 = v140 
            let v141 : System.Threading.CancellationToken = v140 
            let v142 : System.Net.Sockets.TcpClient = new System.Net.Sockets.TcpClient ()
            use v142 = v142 
            let v143 : System.Net.Sockets.TcpClient = v142 
            try
            let v144 : System.Threading.Tasks.ValueTask = v143.ConnectAsync (v2, v3, v141)
            let v145 : (unit -> System.Threading.Tasks.Task) = v144.AsTask
            let v146 : System.Threading.Tasks.Task = v145 ()
            let v149 : bool = true
            let mutable _v149 : Async<unit> option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v152 : Async<unit> = null |> unbox<Async<unit>>
            v152 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v161 : Async<unit> = null |> unbox<Async<unit>>
            v161 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v170 : Async<unit> = null |> unbox<Async<unit>>
            v170 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v179 : Async<unit> = null |> unbox<Async<unit>>
            v179 
            #endif
#if FABLE_COMPILER_PYTHON
            let v188 : Async<unit> = null |> unbox<Async<unit>>
            v188 
            #endif
#else
            let v195 : (System.Threading.Tasks.Task -> Async<unit>) = Async.AwaitTask
            let v196 : Async<unit> = v195 v146
            v196 
            #endif
            |> fun x -> _v149 <- Some x
            let v197 : Async<unit> = match _v149 with Some x -> x | None -> failwith "base.run_target / _v149=None"
            do! v197 
            return true 
            with ex ->
            let v212 : exn = ex
            let v215 : bool = true
            let mutable _v215 : string option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v218 : string = $"%A{v212}"
            v218 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v227 : string = $"%A{v212}"
            v227 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v236 : string = $"%A{v212}"
            v236 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v245 : string = $"%A{v212}"
            v245 
            #endif
#if FABLE_COMPILER_PYTHON
            let v254 : string = $"%A{v212}"
            v254 
            #endif
#else
            let v261 : string = $"{v212.GetType ()}: {v212.Message}"
            v261 
            #endif
            |> fun x -> _v215 <- Some x
            let v262 : string = match _v215 with Some x -> x | None -> failwith "base.run_target / _v215=None"
            let v277 : US0 = US0_0
            let v278 : (unit -> string) = closure4()
            let v279 : (unit -> struct (int32 * string)) = closure5(v3, v262)
            method4(v277, v278, v279)
            return false 
            (*
            let v280 : bool = *)
            }
            |> fun x -> _v139 <- Some x
            let v281 : Async<bool> = match _v139 with Some x -> x | None -> failwith "async.new_async_unit / _v139=None"
            v281 
            #endif
            |> fun x -> _v93 <- Some x
            let v282 : Async<bool> = match _v93 with Some x -> x | None -> failwith "base.run_target / _v93=None"
            v282
        | US7_0(v297) -> (* Some *)
            let v300 : bool = true
            let mutable _v300 : Async<bool> option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v303 : Async<bool> = null |> unbox<Async<bool>>
            v303 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v312 : Async<bool> = null |> unbox<Async<bool>>
            v312 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v321 : Async<bool> = null |> unbox<Async<bool>>
            v321 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v330 : Async<bool> = null |> unbox<Async<bool>>
            v330 
            #endif
#if FABLE_COMPILER_PYTHON
            let v339 : Async<bool> = null |> unbox<Async<bool>>
            v339 
            #endif
#else
            let v346 : Async<bool> option = None
            let mutable _v346 = v346 
            async {
            let v349 : bool = true
            let mutable _v349 : Async<bool> option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v352 : Async<bool> = null |> unbox<Async<bool>>
            v352 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v361 : Async<bool> = null |> unbox<Async<bool>>
            v361 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v370 : Async<bool> = null |> unbox<Async<bool>>
            v370 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v379 : Async<bool> = null |> unbox<Async<bool>>
            v379 
            #endif
#if FABLE_COMPILER_PYTHON
            let v388 : Async<bool> = null |> unbox<Async<bool>>
            v388 
            #endif
#else
            let v395 : Async<bool> option = None
            let mutable _v395 = v395 
            async {
            let v396 : Async<System.Threading.CancellationToken> = Async.CancellationToken
            let! v396 = v396 
            let v397 : System.Threading.CancellationToken = v396 
            let v398 : System.Net.Sockets.TcpClient = new System.Net.Sockets.TcpClient ()
            use v398 = v398 
            let v399 : System.Net.Sockets.TcpClient = v398 
            try
            let v400 : System.Threading.Tasks.ValueTask = v399.ConnectAsync (v2, v3, v397)
            let v401 : (unit -> System.Threading.Tasks.Task) = v400.AsTask
            let v402 : System.Threading.Tasks.Task = v401 ()
            let v405 : bool = true
            let mutable _v405 : Async<unit> option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v408 : Async<unit> = null |> unbox<Async<unit>>
            v408 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v417 : Async<unit> = null |> unbox<Async<unit>>
            v417 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v426 : Async<unit> = null |> unbox<Async<unit>>
            v426 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v435 : Async<unit> = null |> unbox<Async<unit>>
            v435 
            #endif
#if FABLE_COMPILER_PYTHON
            let v444 : Async<unit> = null |> unbox<Async<unit>>
            v444 
            #endif
#else
            let v451 : (System.Threading.Tasks.Task -> Async<unit>) = Async.AwaitTask
            let v452 : Async<unit> = v451 v402
            v452 
            #endif
            |> fun x -> _v405 <- Some x
            let v453 : Async<unit> = match _v405 with Some x -> x | None -> failwith "base.run_target / _v405=None"
            do! v453 
            return true 
            with ex ->
            let v468 : exn = ex
            let v471 : bool = true
            let mutable _v471 : string option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v474 : string = $"%A{v468}"
            v474 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v483 : string = $"%A{v468}"
            v483 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v492 : string = $"%A{v468}"
            v492 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v501 : string = $"%A{v468}"
            v501 
            #endif
#if FABLE_COMPILER_PYTHON
            let v510 : string = $"%A{v468}"
            v510 
            #endif
#else
            let v517 : string = $"{v468.GetType ()}: {v468.Message}"
            v517 
            #endif
            |> fun x -> _v471 <- Some x
            let v518 : string = match _v471 with Some x -> x | None -> failwith "base.run_target / _v471=None"
            let v533 : US0 = US0_0
            let v534 : (unit -> string) = closure4()
            let v535 : (unit -> struct (int32 * string)) = closure5(v3, v518)
            method4(v533, v534, v535)
            return false 
            (*
            let v536 : bool = *)
            }
            |> fun x -> _v395 <- Some x
            let v537 : Async<bool> = match _v395 with Some x -> x | None -> failwith "async.new_async_unit / _v395=None"
            v537 
            #endif
            |> fun x -> _v349 <- Some x
            let v538 : Async<bool> = match _v349 with Some x -> x | None -> failwith "base.run_target / _v349=None"
            let v555 : bool = true
            let mutable _v555 : Async<US4> option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v558 : Async<US4> = null |> unbox<Async<US4>>
            v558 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v567 : Async<US4> = null |> unbox<Async<US4>>
            v567 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v576 : Async<US4> = null |> unbox<Async<US4>>
            v576 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v585 : Async<US4> = null |> unbox<Async<US4>>
            v585 
            #endif
#if FABLE_COMPILER_PYTHON
            let v594 : Async<US4> = null |> unbox<Async<US4>>
            v594 
            #endif
#else
            let v603 : bool = true
            let mutable _v603 : Async<US4> option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v606 : Async<US4> = null |> unbox<Async<US4>>
            v606 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v615 : Async<US4> = null |> unbox<Async<US4>>
            v615 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v624 : Async<US4> = null |> unbox<Async<US4>>
            v624 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v633 : Async<US4> = null |> unbox<Async<US4>>
            v633 
            #endif
#if FABLE_COMPILER_PYTHON
            let v642 : Async<US4> = null |> unbox<Async<US4>>
            v642 
            #endif
#else
            let v649 : Async<US4> option = None
            let mutable _v649 = v649 
            async {
            let v652 : bool = true
            let mutable _v652 : Async<Async<bool>> option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v655 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
            v655 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v664 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
            v664 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v673 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
            v673 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v682 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
            v682 
            #endif
#if FABLE_COMPILER_PYTHON
            let v691 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
            v691 
            #endif
#else
            let v698 : Async<Async<bool>> = Async.StartChild (v538, v297)
            v698 
            #endif
            |> fun x -> _v652 <- Some x
            let v699 : Async<Async<bool>> = match _v652 with Some x -> x | None -> failwith "base.run_target / _v652=None"
            let! v699 = v699 
            let v714 : Async<bool> = v699 
            let v717 : bool = true
            let mutable _v717 : Async<Choice<bool, exn>> option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v720 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
            v720 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v729 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
            v729 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v738 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
            v738 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v747 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
            v747 
            #endif
#if FABLE_COMPILER_PYTHON
            let v756 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
            v756 
            #endif
#else
            let v763 : (Async<bool> -> Async<Choice<bool, exn>>) = Async.Catch
            let v764 : Async<Choice<bool, exn>> = v763 v714
            v764 
            #endif
            |> fun x -> _v717 <- Some x
            let v765 : Async<Choice<bool, exn>> = match _v717 with Some x -> x | None -> failwith "base.run_target / _v717=None"
            let v782 : bool = true
            let mutable _v782 : Async<US5> option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v785 : Async<US5> = null |> unbox<Async<US5>>
            v785 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v794 : Async<US5> = null |> unbox<Async<US5>>
            v794 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v803 : Async<US5> = null |> unbox<Async<US5>>
            v803 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v812 : Async<US5> = null |> unbox<Async<US5>>
            v812 
            #endif
#if FABLE_COMPILER_PYTHON
            let v821 : Async<US5> = null |> unbox<Async<US5>>
            v821 
            #endif
#else
            let v828 : Async<US5> option = None
            let mutable _v828 = v828 
            async {
            let! v765 = v765 
            let v829 : Choice<bool, exn> = v765 
            let v832 : bool = true
            let mutable _v832 : US5 option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v835 : US5 = null |> unbox<US5>
            v835 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v844 : US5 = null |> unbox<US5>
            v844 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v853 : US5 = null |> unbox<US5>
            v853 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v862 : US5 = null |> unbox<US5>
            v862 
            #endif
#if FABLE_COMPILER_PYTHON
            let v871 : US5 = null |> unbox<US5>
            v871 
            #endif
#else
            let v878 : (bool -> US5) = closure10()
            let v879 : (exn -> US5) = closure11()
            let v880 : US5 = match v829 with Choice1Of2 x -> v878 x | Choice2Of2 x -> v879 x
            v880 
            #endif
            |> fun x -> _v832 <- Some x
            let v881 : US5 = match _v832 with Some x -> x | None -> failwith "base.run_target / _v832=None"
            return v881 
            }
            |> fun x -> _v828 <- Some x
            let v896 : Async<US5> = match _v828 with Some x -> x | None -> failwith "async.new_async_unit / _v828=None"
            v896 
            #endif
            |> fun x -> _v782 <- Some x
            let v897 : Async<US5> = match _v782 with Some x -> x | None -> failwith "base.run_target / _v782=None"
            let v914 : bool = true
            let mutable _v914 : Async<US6> option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v917 : Async<US6> = null |> unbox<Async<US6>>
            v917 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v926 : Async<US6> = null |> unbox<Async<US6>>
            v926 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v935 : Async<US6> = null |> unbox<Async<US6>>
            v935 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v944 : Async<US6> = null |> unbox<Async<US6>>
            v944 
            #endif
#if FABLE_COMPILER_PYTHON
            let v953 : Async<US6> = null |> unbox<Async<US6>>
            v953 
            #endif
#else
            let v960 : Async<US6> option = None
            let mutable _v960 = v960 
            async {
            let! v897 = v897 
            let v961 : US5 = v897 
            let v967 : US6 =
                match v961 with
                | US5_0(v962) -> (* C1of2 *)
                    US6_0(v962)
                | US5_1(v964) -> (* C2of2 *)
                    US6_1(v964)
            return v967 
            }
            |> fun x -> _v960 <- Some x
            let v968 : Async<US6> = match _v960 with Some x -> x | None -> failwith "async.new_async_unit / _v960=None"
            v968 
            #endif
            |> fun x -> _v914 <- Some x
            let v969 : Async<US6> = match _v914 with Some x -> x | None -> failwith "base.run_target / _v914=None"
            let v986 : bool = true
            let mutable _v986 : Async<US4> option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v989 : Async<US4> = null |> unbox<Async<US4>>
            v989 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v998 : Async<US4> = null |> unbox<Async<US4>>
            v998 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v1007 : Async<US4> = null |> unbox<Async<US4>>
            v1007 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v1016 : Async<US4> = null |> unbox<Async<US4>>
            v1016 
            #endif
#if FABLE_COMPILER_PYTHON
            let v1025 : Async<US4> = null |> unbox<Async<US4>>
            v1025 
            #endif
#else
            let v1032 : Async<US4> option = None
            let mutable _v1032 = v1032 
            async {
            let! v969 = v969 
            let v1033 : US6 = v969 
            let v1066 : US4 =
                match v1033 with
                | US6_1(v1036) -> (* Error *)
                    let v1039 : string = $"%A{v1036}"
                    let v1048 : string = "System.TimeoutException"
                    let v1049 : bool = v1039.Contains v1048 
                    if v1049 then
                        let v1056 : US0 = US0_0
                        let v1057 : (unit -> string) = closure12()
                        let v1058 : (unit -> int32) = closure13(v297)
                        method14(v1056, v1057, v1058)
                        US4_1
                    else
                        let v1060 : US0 = US0_4
                        let v1061 : (unit -> string) = closure15()
                        let v1062 : (unit -> struct (int32 * string)) = closure16(v297, v1036)
                        method16(v1060, v1061, v1062)
                        US4_1
                | US6_0(v1034) -> (* Ok *)
                    US4_0(v1034)
            return v1066 
            }
            |> fun x -> _v1032 <- Some x
            let v1067 : Async<US4> = match _v1032 with Some x -> x | None -> failwith "async.new_async_unit / _v1032=None"
            v1067 
            #endif
            |> fun x -> _v986 <- Some x
            let v1068 : Async<US4> = match _v986 with Some x -> x | None -> failwith "base.run_target / _v986=None"
            return! v1068 
            }
            |> fun x -> _v649 <- Some x
            let v1083 : Async<US4> = match _v649 with Some x -> x | None -> failwith "async.new_async_unit / _v649=None"
            v1083 
            #endif
            |> fun x -> _v603 <- Some x
            let v1084 : Async<US4> = match _v603 with Some x -> x | None -> failwith "base.run_target / _v603=None"
            v1084 
            #endif
            |> fun x -> _v555 <- Some x
            let v1099 : Async<US4> = match _v555 with Some x -> x | None -> failwith "base.run_target / _v555=None"
            let! v1099 = v1099 
            let v1114 : US4 = v1099 
            let v1117 : bool =
                match v1114 with
                | US4_1 -> (* None *)
                    false
                | US4_0(v1115) -> (* Some *)
                    v1115
            return v1117 
            }
            |> fun x -> _v346 <- Some x
            let v1118 : Async<bool> = match _v346 with Some x -> x | None -> failwith "async.new_async_unit / _v346=None"
            v1118 
            #endif
            |> fun x -> _v300 <- Some x
            let v1119 : Async<bool> = match _v300 with Some x -> x | None -> failwith "base.run_target / _v300=None"
            v1119
    let! v1135 = v1135 
    let v1136 : bool = v1135 
    let v1137 : bool = v1136 = v1
    if v1137 then
        return v4 
        (*
        ()
    else
        *) else
        let v1138 : int64 = v4 % 100L
        let v1139 : bool = v1138 = 0L
        if v1139 then
            let v1140 : US0 = US0_0
            let v1141 : (unit -> string) = closure22()
            let v1142 : (unit -> struct (int32 * int64 * int32 option * bool)) = closure23(v0, v1, v3, v4)
            method19(v1140, v1141, v1142)
        let v1145 : bool = true
        let mutable _v1145 : Async<unit> option = None 
        
#if FABLE_COMPILER || WASM || CONTRACT
        
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
        let v1148 : Async<unit> = null |> unbox<Async<unit>>
        v1148 
        #endif
#if FABLE_COMPILER_RUST && WASM
        let v1157 : Async<unit> = null |> unbox<Async<unit>>
        v1157 
        #endif
#if FABLE_COMPILER_RUST && CONTRACT
        let v1166 : Async<unit> = null |> unbox<Async<unit>>
        v1166 
        #endif
#if FABLE_COMPILER_TYPESCRIPT
        let v1175 : Async<unit> = null |> unbox<Async<unit>>
        v1175 
        #endif
#if FABLE_COMPILER_PYTHON
        let v1184 : Async<unit> = null |> unbox<Async<unit>>
        v1184 
        #endif
#else
        let v1191 : (int32 -> Async<unit>) = Async.Sleep
        let v1192 : Async<unit> = v1191 10
        v1192 
        #endif
        |> fun x -> _v1145 <- Some x
        let v1193 : Async<unit> = match _v1145 with Some x -> x | None -> failwith "base.run_target / _v1145=None"
        do! v1193 
        let v1208 : int64 = v4 + 1L
        let v1209 : Async<int64> = method18(v0, v1, v2, v3, v1208)
        return! v1209 
        (*
        ()
    *)
    }
    |> fun x -> _v53 <- Some x
    let v1210 : Async<int64> = match _v53 with Some x -> x | None -> failwith "async.new_async_unit / _v53=None"
    v1210 
    #endif
    |> fun x -> _v7 <- Some x
    let v1211 : Async<int64> = match _v7 with Some x -> x | None -> failwith "base.run_target / _v7=None"
    v1211
and closure21 (v0 : int32 option, v1 : bool, v2 : string) (v3 : int32) : Async<int64> =
    let v4 : int64 = 0L
    method18(v0, v1, v2, v3, v4)
and closure20 (v0 : int32 option, v1 : bool) (v2 : string) : (int32 -> Async<int64>) =
    closure21(v0, v1, v2)
and closure19 (v0 : int32 option) (v1 : bool) : (string -> (int32 -> Async<int64>)) =
    closure20(v0, v1)
and closure18 () (v0 : int32 option) : (bool -> (string -> (int32 -> Async<int64>))) =
    closure19(v0)
and method24 (v0 : int32 option, v1 : string, v2 : int32) : Async<int32> =
    let v5 : bool = true
    let mutable _v5 : Async<int32> option = None 
    
#if FABLE_COMPILER || WASM || CONTRACT
    
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
    let v8 : Async<int32> = null |> unbox<Async<int32>>
    v8 
    #endif
#if FABLE_COMPILER_RUST && WASM
    let v17 : Async<int32> = null |> unbox<Async<int32>>
    v17 
    #endif
#if FABLE_COMPILER_RUST && CONTRACT
    let v26 : Async<int32> = null |> unbox<Async<int32>>
    v26 
    #endif
#if FABLE_COMPILER_TYPESCRIPT
    let v35 : Async<int32> = null |> unbox<Async<int32>>
    v35 
    #endif
#if FABLE_COMPILER_PYTHON
    let v44 : Async<int32> = null |> unbox<Async<int32>>
    v44 
    #endif
#else
    let v51 : Async<int32> option = None
    let mutable _v51 = v51 
    async {
    let v54 : US7 option = None
    let _v54 = ref v54 
    match v0 with
    | Some x -> (
    (fun () ->
    (fun () ->
    let v55 : int32 = x
    let v56 : US7 = US7_0(v55)
    v56 
    )
    |> fun x -> x () |> Some
    ) () ) | None -> None
    |> fun x -> _v54.Value <- x
    let v57 : US7 option = _v54.Value 
    let v80 : US7 = US7_1
    let v81 : US7 = v57 |> Option.defaultValue v80 
    let v1133 : Async<bool> =
        match v81 with
        | US7_1 -> (* None *)
            let v91 : bool = true
            let mutable _v91 : Async<bool> option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v94 : Async<bool> = null |> unbox<Async<bool>>
            v94 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v103 : Async<bool> = null |> unbox<Async<bool>>
            v103 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v112 : Async<bool> = null |> unbox<Async<bool>>
            v112 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v121 : Async<bool> = null |> unbox<Async<bool>>
            v121 
            #endif
#if FABLE_COMPILER_PYTHON
            let v130 : Async<bool> = null |> unbox<Async<bool>>
            v130 
            #endif
#else
            let v137 : Async<bool> option = None
            let mutable _v137 = v137 
            async {
            let v138 : Async<System.Threading.CancellationToken> = Async.CancellationToken
            let! v138 = v138 
            let v139 : System.Threading.CancellationToken = v138 
            let v140 : System.Net.Sockets.TcpClient = new System.Net.Sockets.TcpClient ()
            use v140 = v140 
            let v141 : System.Net.Sockets.TcpClient = v140 
            try
            let v142 : System.Threading.Tasks.ValueTask = v141.ConnectAsync (v1, v2, v139)
            let v143 : (unit -> System.Threading.Tasks.Task) = v142.AsTask
            let v144 : System.Threading.Tasks.Task = v143 ()
            let v147 : bool = true
            let mutable _v147 : Async<unit> option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v150 : Async<unit> = null |> unbox<Async<unit>>
            v150 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v159 : Async<unit> = null |> unbox<Async<unit>>
            v159 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v168 : Async<unit> = null |> unbox<Async<unit>>
            v168 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v177 : Async<unit> = null |> unbox<Async<unit>>
            v177 
            #endif
#if FABLE_COMPILER_PYTHON
            let v186 : Async<unit> = null |> unbox<Async<unit>>
            v186 
            #endif
#else
            let v193 : (System.Threading.Tasks.Task -> Async<unit>) = Async.AwaitTask
            let v194 : Async<unit> = v193 v144
            v194 
            #endif
            |> fun x -> _v147 <- Some x
            let v195 : Async<unit> = match _v147 with Some x -> x | None -> failwith "base.run_target / _v147=None"
            do! v195 
            return true 
            with ex ->
            let v210 : exn = ex
            let v213 : bool = true
            let mutable _v213 : string option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v216 : string = $"%A{v210}"
            v216 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v225 : string = $"%A{v210}"
            v225 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v234 : string = $"%A{v210}"
            v234 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v243 : string = $"%A{v210}"
            v243 
            #endif
#if FABLE_COMPILER_PYTHON
            let v252 : string = $"%A{v210}"
            v252 
            #endif
#else
            let v259 : string = $"{v210.GetType ()}: {v210.Message}"
            v259 
            #endif
            |> fun x -> _v213 <- Some x
            let v260 : string = match _v213 with Some x -> x | None -> failwith "base.run_target / _v213=None"
            let v275 : US0 = US0_0
            let v276 : (unit -> string) = closure4()
            let v277 : (unit -> struct (int32 * string)) = closure5(v2, v260)
            method4(v275, v276, v277)
            return false 
            (*
            let v278 : bool = *)
            }
            |> fun x -> _v137 <- Some x
            let v279 : Async<bool> = match _v137 with Some x -> x | None -> failwith "async.new_async_unit / _v137=None"
            v279 
            #endif
            |> fun x -> _v91 <- Some x
            let v280 : Async<bool> = match _v91 with Some x -> x | None -> failwith "base.run_target / _v91=None"
            v280
        | US7_0(v295) -> (* Some *)
            let v298 : bool = true
            let mutable _v298 : Async<bool> option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v301 : Async<bool> = null |> unbox<Async<bool>>
            v301 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v310 : Async<bool> = null |> unbox<Async<bool>>
            v310 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v319 : Async<bool> = null |> unbox<Async<bool>>
            v319 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v328 : Async<bool> = null |> unbox<Async<bool>>
            v328 
            #endif
#if FABLE_COMPILER_PYTHON
            let v337 : Async<bool> = null |> unbox<Async<bool>>
            v337 
            #endif
#else
            let v344 : Async<bool> option = None
            let mutable _v344 = v344 
            async {
            let v347 : bool = true
            let mutable _v347 : Async<bool> option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v350 : Async<bool> = null |> unbox<Async<bool>>
            v350 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v359 : Async<bool> = null |> unbox<Async<bool>>
            v359 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v368 : Async<bool> = null |> unbox<Async<bool>>
            v368 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v377 : Async<bool> = null |> unbox<Async<bool>>
            v377 
            #endif
#if FABLE_COMPILER_PYTHON
            let v386 : Async<bool> = null |> unbox<Async<bool>>
            v386 
            #endif
#else
            let v393 : Async<bool> option = None
            let mutable _v393 = v393 
            async {
            let v394 : Async<System.Threading.CancellationToken> = Async.CancellationToken
            let! v394 = v394 
            let v395 : System.Threading.CancellationToken = v394 
            let v396 : System.Net.Sockets.TcpClient = new System.Net.Sockets.TcpClient ()
            use v396 = v396 
            let v397 : System.Net.Sockets.TcpClient = v396 
            try
            let v398 : System.Threading.Tasks.ValueTask = v397.ConnectAsync (v1, v2, v395)
            let v399 : (unit -> System.Threading.Tasks.Task) = v398.AsTask
            let v400 : System.Threading.Tasks.Task = v399 ()
            let v403 : bool = true
            let mutable _v403 : Async<unit> option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v406 : Async<unit> = null |> unbox<Async<unit>>
            v406 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v415 : Async<unit> = null |> unbox<Async<unit>>
            v415 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v424 : Async<unit> = null |> unbox<Async<unit>>
            v424 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v433 : Async<unit> = null |> unbox<Async<unit>>
            v433 
            #endif
#if FABLE_COMPILER_PYTHON
            let v442 : Async<unit> = null |> unbox<Async<unit>>
            v442 
            #endif
#else
            let v449 : (System.Threading.Tasks.Task -> Async<unit>) = Async.AwaitTask
            let v450 : Async<unit> = v449 v400
            v450 
            #endif
            |> fun x -> _v403 <- Some x
            let v451 : Async<unit> = match _v403 with Some x -> x | None -> failwith "base.run_target / _v403=None"
            do! v451 
            return true 
            with ex ->
            let v466 : exn = ex
            let v469 : bool = true
            let mutable _v469 : string option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v472 : string = $"%A{v466}"
            v472 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v481 : string = $"%A{v466}"
            v481 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v490 : string = $"%A{v466}"
            v490 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v499 : string = $"%A{v466}"
            v499 
            #endif
#if FABLE_COMPILER_PYTHON
            let v508 : string = $"%A{v466}"
            v508 
            #endif
#else
            let v515 : string = $"{v466.GetType ()}: {v466.Message}"
            v515 
            #endif
            |> fun x -> _v469 <- Some x
            let v516 : string = match _v469 with Some x -> x | None -> failwith "base.run_target / _v469=None"
            let v531 : US0 = US0_0
            let v532 : (unit -> string) = closure4()
            let v533 : (unit -> struct (int32 * string)) = closure5(v2, v516)
            method4(v531, v532, v533)
            return false 
            (*
            let v534 : bool = *)
            }
            |> fun x -> _v393 <- Some x
            let v535 : Async<bool> = match _v393 with Some x -> x | None -> failwith "async.new_async_unit / _v393=None"
            v535 
            #endif
            |> fun x -> _v347 <- Some x
            let v536 : Async<bool> = match _v347 with Some x -> x | None -> failwith "base.run_target / _v347=None"
            let v553 : bool = true
            let mutable _v553 : Async<US4> option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v556 : Async<US4> = null |> unbox<Async<US4>>
            v556 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v565 : Async<US4> = null |> unbox<Async<US4>>
            v565 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v574 : Async<US4> = null |> unbox<Async<US4>>
            v574 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v583 : Async<US4> = null |> unbox<Async<US4>>
            v583 
            #endif
#if FABLE_COMPILER_PYTHON
            let v592 : Async<US4> = null |> unbox<Async<US4>>
            v592 
            #endif
#else
            let v601 : bool = true
            let mutable _v601 : Async<US4> option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v604 : Async<US4> = null |> unbox<Async<US4>>
            v604 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v613 : Async<US4> = null |> unbox<Async<US4>>
            v613 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v622 : Async<US4> = null |> unbox<Async<US4>>
            v622 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v631 : Async<US4> = null |> unbox<Async<US4>>
            v631 
            #endif
#if FABLE_COMPILER_PYTHON
            let v640 : Async<US4> = null |> unbox<Async<US4>>
            v640 
            #endif
#else
            let v647 : Async<US4> option = None
            let mutable _v647 = v647 
            async {
            let v650 : bool = true
            let mutable _v650 : Async<Async<bool>> option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v653 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
            v653 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v662 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
            v662 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v671 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
            v671 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v680 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
            v680 
            #endif
#if FABLE_COMPILER_PYTHON
            let v689 : Async<Async<bool>> = null |> unbox<Async<Async<bool>>>
            v689 
            #endif
#else
            let v696 : Async<Async<bool>> = Async.StartChild (v536, v295)
            v696 
            #endif
            |> fun x -> _v650 <- Some x
            let v697 : Async<Async<bool>> = match _v650 with Some x -> x | None -> failwith "base.run_target / _v650=None"
            let! v697 = v697 
            let v712 : Async<bool> = v697 
            let v715 : bool = true
            let mutable _v715 : Async<Choice<bool, exn>> option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v718 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
            v718 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v727 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
            v727 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v736 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
            v736 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v745 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
            v745 
            #endif
#if FABLE_COMPILER_PYTHON
            let v754 : Async<Choice<bool, exn>> = null |> unbox<Async<Choice<bool, exn>>>
            v754 
            #endif
#else
            let v761 : (Async<bool> -> Async<Choice<bool, exn>>) = Async.Catch
            let v762 : Async<Choice<bool, exn>> = v761 v712
            v762 
            #endif
            |> fun x -> _v715 <- Some x
            let v763 : Async<Choice<bool, exn>> = match _v715 with Some x -> x | None -> failwith "base.run_target / _v715=None"
            let v780 : bool = true
            let mutable _v780 : Async<US5> option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v783 : Async<US5> = null |> unbox<Async<US5>>
            v783 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v792 : Async<US5> = null |> unbox<Async<US5>>
            v792 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v801 : Async<US5> = null |> unbox<Async<US5>>
            v801 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v810 : Async<US5> = null |> unbox<Async<US5>>
            v810 
            #endif
#if FABLE_COMPILER_PYTHON
            let v819 : Async<US5> = null |> unbox<Async<US5>>
            v819 
            #endif
#else
            let v826 : Async<US5> option = None
            let mutable _v826 = v826 
            async {
            let! v763 = v763 
            let v827 : Choice<bool, exn> = v763 
            let v830 : bool = true
            let mutable _v830 : US5 option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v833 : US5 = null |> unbox<US5>
            v833 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v842 : US5 = null |> unbox<US5>
            v842 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v851 : US5 = null |> unbox<US5>
            v851 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v860 : US5 = null |> unbox<US5>
            v860 
            #endif
#if FABLE_COMPILER_PYTHON
            let v869 : US5 = null |> unbox<US5>
            v869 
            #endif
#else
            let v876 : (bool -> US5) = closure10()
            let v877 : (exn -> US5) = closure11()
            let v878 : US5 = match v827 with Choice1Of2 x -> v876 x | Choice2Of2 x -> v877 x
            v878 
            #endif
            |> fun x -> _v830 <- Some x
            let v879 : US5 = match _v830 with Some x -> x | None -> failwith "base.run_target / _v830=None"
            return v879 
            }
            |> fun x -> _v826 <- Some x
            let v894 : Async<US5> = match _v826 with Some x -> x | None -> failwith "async.new_async_unit / _v826=None"
            v894 
            #endif
            |> fun x -> _v780 <- Some x
            let v895 : Async<US5> = match _v780 with Some x -> x | None -> failwith "base.run_target / _v780=None"
            let v912 : bool = true
            let mutable _v912 : Async<US6> option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v915 : Async<US6> = null |> unbox<Async<US6>>
            v915 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v924 : Async<US6> = null |> unbox<Async<US6>>
            v924 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v933 : Async<US6> = null |> unbox<Async<US6>>
            v933 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v942 : Async<US6> = null |> unbox<Async<US6>>
            v942 
            #endif
#if FABLE_COMPILER_PYTHON
            let v951 : Async<US6> = null |> unbox<Async<US6>>
            v951 
            #endif
#else
            let v958 : Async<US6> option = None
            let mutable _v958 = v958 
            async {
            let! v895 = v895 
            let v959 : US5 = v895 
            let v965 : US6 =
                match v959 with
                | US5_0(v960) -> (* C1of2 *)
                    US6_0(v960)
                | US5_1(v962) -> (* C2of2 *)
                    US6_1(v962)
            return v965 
            }
            |> fun x -> _v958 <- Some x
            let v966 : Async<US6> = match _v958 with Some x -> x | None -> failwith "async.new_async_unit / _v958=None"
            v966 
            #endif
            |> fun x -> _v912 <- Some x
            let v967 : Async<US6> = match _v912 with Some x -> x | None -> failwith "base.run_target / _v912=None"
            let v984 : bool = true
            let mutable _v984 : Async<US4> option = None 
            
#if FABLE_COMPILER || WASM || CONTRACT
            
#if FABLE_COMPILER_RUST && !WASM && !CONTRACT
            let v987 : Async<US4> = null |> unbox<Async<US4>>
            v987 
            #endif
#if FABLE_COMPILER_RUST && WASM
            let v996 : Async<US4> = null |> unbox<Async<US4>>
            v996 
            #endif
#if FABLE_COMPILER_RUST && CONTRACT
            let v1005 : Async<US4> = null |> unbox<Async<US4>>
            v1005 
            #endif
#if FABLE_COMPILER_TYPESCRIPT
            let v1014 : Async<US4> = null |> unbox<Async<US4>>
            v1014 
            #endif
#if FABLE_COMPILER_PYTHON
            let v1023 : Async<US4> = null |> unbox<Async<US4>>
            v1023 
            #endif
#else
            let v1030 : Async<US4> option = None
            let mutable _v1030 = v1030 
            async {
            let! v967 = v967 
            let v1031 : US6 = v967 
            let v1064 : US4 =
                match v1031 with
                | US6_1(v1034) -> (* Error *)
                    let v1037 : string = $"%A{v1034}"
                    let v1046 : string = "System.TimeoutException"
                    let v1047 : bool = v1037.Contains v1046 
                    if v1047 then
                        let v1054 : US0 = US0_0
                        let v1055 : (unit -> string) = closure12()
                        let v1056 : (unit -> int32) = closure13(v295)
                        method14(v1054, v1055, v1056)
                        US4_1
                    else
                        let v1058 : US0 = US0_4
                        let v1059 : (unit -> string) = closure15()
                        let v1060 : (unit -> struct (int32 * string)) = closure16(v295, v1034)
                        method16(v1058, v1059, v1060)
                        US4_1
                | US6_0(v1032) -> (* Ok *)
                    US4_0(v1032)
            return v1064 
            }
            |> fun x -> _v1030 <- Some x
            let v1065 : Async<US4> = match _v1030 with Some x -> x | None -> failwith "async.new_async_unit / _v1030=None"
            v1065 
            #endif
            |> fun x -> _v984 <- Some x
            let v1066 : Async<US4> = match _v984 with Some x -> x | None -> failwith "base.run_target / _v984=None"
            return! v1066 
            }
            |> fun x -> _v647 <- Some x
            let v1081 : Async<US4> = match _v647 with Some x -> x | None -> failwith "async.new_async_unit / _v647=None"
            v1081 
            #endif
            |> fun x -> _v601 <- Some x
            let v1082 : Async<US4> = match _v601 with Some x -> x | None -> failwith "base.run_target / _v601=None"
            v1082 
            #endif
            |> fun x -> _v553 <- Some x
            let v1097 : Async<US4> = match _v553 with Some x -> x | None -> failwith "base.run_target / _v553=None"
            let! v1097 = v1097 
            let v1112 : US4 = v1097 
            let v1115 : bool =
                match v1112 with
                | US4_1 -> (* None *)
                    false
                | US4_0(v1113) -> (* Some *)
                    v1113
            return v1115 
            }
            |> fun x -> _v344 <- Some x
            let v1116 : Async<bool> = match _v344 with Some x -> x | None -> failwith "async.new_async_unit / _v344=None"
            v1116 
            #endif
            |> fun x -> _v298 <- Some x
            let v1117 : Async<bool> = match _v298 with Some x -> x | None -> failwith "base.run_target / _v298=None"
            v1117
    let! v1133 = v1133 
    let v1134 : bool = v1133 
    let v1135 : bool = v1134 = false
    if v1135 then
        return v2 
        (*
        ()
    else
        *) else
        let v1136 : int32 = v2 + 1
        let v1137 : Async<int32> = method24(v0, v1, v1136)
        return! v1137 
        (*
        ()
    *)
    }
    |> fun x -> _v51 <- Some x
    let v1138 : Async<int32> = match _v51 with Some x -> x | None -> failwith "async.new_async_unit / _v51=None"
    v1138 
    #endif
    |> fun x -> _v5 <- Some x
    let v1139 : Async<int32> = match _v5 with Some x -> x | None -> failwith "base.run_target / _v5=None"
    v1139
and closure27 (v0 : int32 option, v1 : string) (v2 : int32) : Async<int32> =
    method24(v0, v1, v2)
and closure26 (v0 : int32 option) (v1 : string) : (int32 -> Async<int32>) =
    closure27(v0, v1)
and closure25 () (v0 : int32 option) : (string -> (int32 -> Async<int32>)) =
    closure26(v0)
let v44 : (US0 -> struct (Mut0 * Mut1 * Mut2 * Mut3 * int64 option)) = closure0()
let v45 : US0 = US0_0
if State.trace_state.IsNone then State.trace_state <- v44 v45 |> Some
let v51 : (string -> (int32 -> Async<bool>)) = closure2()
let test_port_open x = v51 x
let v52 : (int32 -> (string -> (int32 -> Async<bool>))) = closure7()
let test_port_open_timeout x = v52 x
let v53 : (int32 option -> (bool -> (string -> (int32 -> Async<int64>)))) = closure18()
let wait_for_port_access x = v53 x
let v54 : (int32 option -> (string -> (int32 -> Async<int32>))) = closure25()
let get_available_port x = v54 x
()
00:00:00   debug #1 writeDibCode / output: Fs / path: DirTreeHtml.dib
00:00:00   debug #2 parseDibCode / output: Fs / file: DirTreeHtml.dib
00:00:00   debug #1 persistCodeProject / packages: [Argu; Falco.Markup; FSharp.Control.AsyncSeq; ... ] / modules: [lib/spiral/common.fsx; lib/spiral/sm.fsx; lib/spiral/crypto.fsx; ... ] / name: DirTreeHtml / hash:  / code.Length: 4638
00:00:00   debug #2 buildProject / fullPath: C:\home\git\polyglot\target\Builder\DirTreeHtml\DirTreeHtml.fsproj
00:00:00   debug #1 runtime.execute_with_options_async / { options = { command = dotnet publish "C:\home\git\polyglot\target/Builder\DirTreeHtml\DirTreeHtml.fsproj" --configuration Release --output "C:\home\git\polyglot\apps\dir-tree-html\dist" --runtime linux-x64; cancellation_token = None; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot\target\Builder\DirTreeHtml" } }
00:00:00 verbose #2 > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET
00:00:01 verbose #3 >   Determining projects to restore...
00:00:02 verbose #4 >   Restored C:\home\git\polyglot\target\Builder\DirTreeHtml\DirTreeHtml.fsproj (in 523 ms).
00:00:02 verbose #5 > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\Builder\DirTreeHtml\DirTreeHtml.fsproj]
00:00:15 verbose #6 >   DirTreeHtml -> C:\home\git\polyglot\target\Builder\DirTreeHtml\bin\Release\net9.0\linux-x64\DirTreeHtml.dll
00:00:16 verbose #7 >   DirTreeHtml -> C:\home\git\polyglot\apps\dir-tree-html\dist\
00:00:16   debug #8 runtime.execute_with_options_async / { exit_code = 0; output_length = 703 }
00:00:16   debug #9 runtime.execute_with_options_async / { options = { command = dotnet publish "C:\home\git\polyglot\target/Builder\DirTreeHtml\DirTreeHtml.fsproj" --configuration Release --output "C:\home\git\polyglot\apps\dir-tree-html\dist" --runtime win-x64; cancellation_token = None; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot\target\Builder\DirTreeHtml" } }
00:00:16 verbose #10 > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET
00:00:17 verbose #11 >   Determining projects to restore...
00:00:18 verbose #12 >   Restored C:\home\git\polyglot\target\Builder\DirTreeHtml\DirTreeHtml.fsproj (in 399 ms).
00:00:18 verbose #13 > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\Builder\DirTreeHtml\DirTreeHtml.fsproj]
00:00:30 verbose #14 >   DirTreeHtml -> C:\home\git\polyglot\target\Builder\DirTreeHtml\bin\Release\net9.0\win-x64\DirTreeHtml.dll
00:00:33 verbose #15 >   DirTreeHtml -> C:\home\git\polyglot\apps\dir-tree-html\dist\
00:00:33   debug #16 runtime.execute_with_options_async / { exit_code = 0; output_length = 701 }
In [ ]:
{ pwsh ../lib/spiral/build.ps1 -sequential 1 } | Invoke-Block
00:00:00 verbose #1 async.run_with_timeout_async / { timeout = 180 }
00:00:00   debug #1 runtime.execute_with_options_async / { options = { command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = Some <fun:main@570-7>; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot" } }
00:00:00 verbose #2 > 00:00:00   debug #1 pwd: C:\home\git\polyglot
00:00:01 verbose #3 > 00:00:00   debug #2 dllPath: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:01 verbose #4 > 00:00:00   debug #3 targetDir: C:\home\git\polyglot\target/spiral_Eval
00:00:01 verbose #2 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #3 networking.wait_for_port_access / { port = 13805; retry = 0; timeout = Some 100; status = true }
00:00:01 verbose #4 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #5 > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:01 verbose #5 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #1 Supervisor.sendJson / port: 13805 / json: {"Ping":true} / result:
00:00:01 verbose #2 awaitCompiler / Ping / result: 'Some(null)' / port: 13805 / retry: 0
00:00:01 verbose #6 > Server bound to: http://localhost:13805
00:00:01   debug #7 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path sm'.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:01 verbose #8 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "sm'.dib", "--retries", "3"])) }
00:00:01 verbose #9 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/sm'.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/sm'.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/sm'.dib" --output-path "c:/home/git/polyglot/lib/spiral/sm'.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:00:04 verbose #10 > >
00:00:04 verbose #11 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:04 verbose #12 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:04 verbose #13 > > │ # sm'                                                                        │
00:00:04 verbose #14 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:08 verbose #15 > >
00:00:08 verbose #16 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:08 verbose #17 > > //// test
00:00:08 verbose #18 > >
00:00:08 verbose #19 > > open testing
00:00:09 verbose #20 > 00:00:08   debug #4 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7845de436c12d0ca65282fe0cd65832468ca943e72feba50e6b1bb441e251a/main.spi
00:00:12 verbose #21 > >
00:00:12 verbose #22 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 verbose #23 > > open rust_operators
00:00:12 verbose #24 > > open real_sm'
00:00:12 verbose #25 > 00:00:11   debug #5 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ebea24b8477e59babab47c05eede757d66ae8cd2c0097b06db75f418e158efb1/main.spi
00:00:12 verbose #26 > >
00:00:12 verbose #27 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 verbose #28 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 verbose #29 > > │ ## types                                                                     │
00:00:12 verbose #30 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 verbose #31 > >
00:00:12 verbose #32 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 verbose #33 > > inl types () =
00:00:12 verbose #34 > >     backend_switch {
00:00:12 verbose #35 > >         Fsharp = fun () =>
00:00:12 verbose #36 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:12 verbose #37 > > Fable.Core.Emit(\"str\")>]]\n#endif\ntype Str = class end"
00:00:12 verbose #38 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:12 verbose #39 > > Fable.Core.Emit(\"base64::DecodeError\")>]]\n#endif\ntype base64_DecodeError =
00:00:12 verbose #40 > > class end"
00:00:12 verbose #41 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:12 verbose #42 > > Fable.Core.Emit(\"borsh::io::Error\")>]]\n#endif\ntype borsh_io_Error = class
00:00:12 verbose #43 > > end"
00:00:12 verbose #44 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:12 verbose #45 > > Fable.Core.Emit(\"encoding_rs::Encoding\")>]]\n#endif\ntype encoding_rs_Encoding
00:00:12 verbose #46 > > = class end"
00:00:12 verbose #47 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:12 verbose #48 > > Fable.Core.Emit(\"js_sys::JsString\")>]]\n#endif\ntype js_sys_JsString = class
00:00:12 verbose #49 > > end"
00:00:12 verbose #50 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:12 verbose #51 > > Fable.Core.Emit(\"serde_json::Error\")>]]\n#endif\ntype serde_json_Error = class
00:00:12 verbose #52 > > end"
00:00:12 verbose #53 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:12 verbose #54 > > Fable.Core.Emit(\"serde_json::Value\")>]]\n#endif\ntype serde_json_Value = class
00:00:12 verbose #55 > > end"
00:00:12 verbose #56 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:12 verbose #57 > > Fable.Core.Emit(\"serde_wasm_bindgen::Error\")>]]\n#endif\ntype
00:00:12 verbose #58 > > serde_wasm_bindgen_Error = class end"
00:00:12 verbose #59 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:12 verbose #60 > > Fable.Core.Emit(\"std::ffi::OsStr\")>]]\n#endif\ntype std_ffi_OsStr = class end"
00:00:12 verbose #61 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:12 verbose #62 > > Fable.Core.Emit(\"std::ffi::OsString\")>]]\n#endif\ntype std_ffi_OsString =
00:00:12 verbose #63 > > class end"
00:00:12 verbose #64 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:12 verbose #65 > > Fable.Core.Emit(\"std::fmt::Display<$0>\")>]]\n#endif\ntype std_fmt_Display<'T>
00:00:12 verbose #66 > > = class end"
00:00:12 verbose #67 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:12 verbose #68 > > Fable.Core.Emit(\"std::str::Utf8Error\")>]]\n#endif\ntype std_str_Utf8Error =
00:00:12 verbose #69 > > class end"
00:00:12 verbose #70 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:12 verbose #71 > > Fable.Core.Emit(\"std::string::FromUtf8Error\")>]]\n#endif\ntype
00:00:12 verbose #72 > > std_string_FromUtf8Error = class end"
00:00:12 verbose #73 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:12 verbose #74 > > Fable.Core.Emit(\"std::string::String\")>]]\n#endif\ntype std_string_String =
00:00:12 verbose #75 > > class end"
00:00:12 verbose #76 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:12 verbose #77 > > Fable.Core.Emit(\"std::slice::Windows<$0>\")>]]\n#endif\ntype
00:00:12 verbose #78 > > std_slice_Windows<'T> = class end"
00:00:12 verbose #79 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:12 verbose #80 > > Fable.Core.Emit(\"regex::Regex\")>]]\n#endif\ntype regex_Regex = class end"
00:00:12 verbose #81 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:12 verbose #82 > > Fable.Core.Emit(\"regex::Captures<$0>\")>]]\n#endif\ntype regex_Captures<'T> =
00:00:12 verbose #83 > > class end"
00:00:12 verbose #84 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:12 verbose #85 > > Fable.Core.Emit(\"regex::CaptureMatches\")>]]\n#endif\ntype regex_CaptureMatches
00:00:12 verbose #86 > > = class end"
00:00:12 verbose #87 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:12 verbose #88 > > Fable.Core.Emit(\"regex::CaptureNames\")>]]\n#endif\ntype regex_CaptureNames =
00:00:12 verbose #89 > > class end"
00:00:12 verbose #90 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:12 verbose #91 > > Fable.Core.Emit(\"regex::Match\")>]]\n#endif\ntype regex_Match = class end"
00:00:12 verbose #92 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:00:12 verbose #93 > > Fable.Core.Emit(\"regex::Error\")>]]\n#endif\ntype regex_Error = class end"
00:00:12 verbose #94 > >         Python = fun () => ()
00:00:12 verbose #95 > >     }
00:00:12 verbose #96 > 00:00:12   debug #6 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6bba1ee10d4a303fad212df913eeb7f94dd287737725612b2f00506df7933e1d/main.spi
00:00:12 verbose #97 > >
00:00:12 verbose #98 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 verbose #99 > > inl types () =
00:00:12 verbose #100 > >     rust.types ()
00:00:12 verbose #101 > >     mapm.types ()
00:00:12 verbose #102 > >     am'.types ()
00:00:12 verbose #103 > >     types ()
00:00:13 verbose #104 > 00:00:12   debug #7 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0c80eb213fbbeea391916ce8dc41678cf55dc80888953ac1e868dab96639878d/main.spi
00:00:13 verbose #105 > >
00:00:13 verbose #106 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 verbose #107 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 verbose #108 > > │ ## sm'                                                                       │
00:00:13 verbose #109 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 verbose #110 > >
00:00:13 verbose #111 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 verbose #112 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 verbose #113 > > │ ### symbol_to_string                                                         │
00:00:13 verbose #114 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 verbose #115 > >
00:00:13 verbose #116 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 verbose #117 > > //// real
00:00:13 verbose #118 > >
00:00:13 verbose #119 > > inl symbol_to_string forall t {symbol}. : string =
00:00:13 verbose #120 > >     // inl x = real_core.type_lit_to_lit `t
00:00:13 verbose #121 > >     // inl x = real_core.type_to_symbol `t
00:00:13 verbose #122 > >     // inl x = real_core.type_lit_to_lit `t
00:00:13 verbose #123 > >     // !!!!SymbolToString (`(`t))
00:00:13 verbose #124 > >     inl x = real_core.type_to_symbol `t
00:00:13 verbose #125 > >     !!!!SymbolToString (x)
00:00:13 verbose #126 > 00:00:12   debug #8 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7c8d083ce3a9ddd32b9434df453de9ed4eba364751f0afa3b1fa2ac4e655f7af/real_main.spir
00:00:13 verbose #127 > >
00:00:13 verbose #128 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 verbose #129 > > inl symbol_to_string forall t {symbol}. (x : t) : string =
00:00:13 verbose #130 > >     real symbol_to_string `t
00:00:14 verbose #131 > 00:00:13   debug #9 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/79610fdb1935bdc3c9c2b5ba117ddd2460d635cba77e0717a2d38eae30f64fa8/main.spi
00:00:14 verbose #132 > >
00:00:14 verbose #133 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 verbose #134 > > //// test
00:00:14 verbose #135 > >
00:00:14 verbose #136 > > .test
00:00:14 verbose #137 > > |> symbol_to_string
00:00:14 verbose #138 > > |> _assert_eq "test"
00:00:14 verbose #139 > 00:00:13   debug #10 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f35a4fb9cae16c2c83864c3d8e0bbb1b2cd6123b255b49fa71fcfb897ee0ebd1/main.spi
00:00:15 verbose #140 > >
00:00:15 verbose #141 > > ╭─[ 1.46s - stdout ]───────────────────────────────────────────────────────────╮
00:00:15 verbose #142 > > │ assert_eq / actual: "test" / expected: "test"                                │
00:00:15 verbose #143 > > │                                                                              │
00:00:15 verbose #144 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 verbose #145 > >
00:00:15 verbose #146 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 verbose #147 > > //// test
00:00:15 verbose #148 > > //// real
00:00:15 verbose #149 > >
00:00:15 verbose #150 > > open testing
00:00:15 verbose #151 > > inl x = .test
00:00:15 verbose #152 > > inl x = symbol_to_string `(`x)
00:00:15 verbose #153 > > _assert_eq `string "test" x
00:00:16 verbose #154 > 00:00:15   debug #11 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/249aef808fadbfe422f12abbe3dd7355e5a8595437e091480ae7630c72648ecc/real_main.spir
00:00:16 verbose #155 > >
00:00:16 verbose #156 > > ╭─[ 355.61ms - stdout ]────────────────────────────────────────────────────────╮
00:00:16 verbose #157 > > │ assert_eq / actual: "test" / expected: "test"                                │
00:00:16 verbose #158 > > │                                                                              │
00:00:16 verbose #159 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 verbose #160 > >
00:00:16 verbose #161 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:16 verbose #162 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:16 verbose #163 > > │ ### index                                                                    │
00:00:16 verbose #164 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 verbose #165 > >
00:00:16 verbose #166 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 verbose #167 > > inl index i (str : string) : char =
00:00:16 verbose #168 > >     sm.index str i
00:00:16 verbose #169 > 00:00:15   debug #12 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3a2fbf903615d9c78afd8bf07f1aa01087b170df3663af1d75f452114df2c0b9/main.spi
00:00:16 verbose #170 > >
00:00:16 verbose #171 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:16 verbose #172 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:16 verbose #173 > > │ ### length                                                                   │
00:00:16 verbose #174 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 verbose #175 > >
00:00:16 verbose #176 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 verbose #177 > > inl length forall dim {int}. (input : string) : dim =
00:00:16 verbose #178 > >     input |> sm.length
00:00:16 verbose #179 > 00:00:16   debug #13 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/17edc146a3b91a2525d7f63c04734585c398ffef3d7861847c2f6dd543764160/main.spi
00:00:17 verbose #180 > >
00:00:17 verbose #181 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:17 verbose #182 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:17 verbose #183 > > │ ### to_char_array                                                            │
00:00:17 verbose #184 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 verbose #185 > >
00:00:17 verbose #186 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 verbose #187 > > inl to_char_array (str : string) : array_base char =
00:00:17 verbose #188 > >     am.init (str |> length) (fun i => str |> index i)
00:00:17 verbose #189 > >     |> fun (a x : _ int _) => x
00:00:17 verbose #190 > 00:00:16   debug #14 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e529e803f376d29c32411ed985b3c0662582061c3f6c28000373e88bfa86a085/main.spi
00:00:17 verbose #191 > >
00:00:17 verbose #192 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 verbose #193 > > //// test
00:00:17 verbose #194 > >
00:00:17 verbose #195 > > "abc"
00:00:17 verbose #196 > > |> to_char_array
00:00:17 verbose #197 > > |> _assert_eq' ;[[ 'a'; 'b'; 'c' ]]
00:00:17 verbose #198 > 00:00:16   debug #15 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/645488671a39f68c7c5e267f85a3e73c5e3f38b800433a7f39996c9fe3588d76/main.spi
00:00:18 verbose #199 > >
00:00:18 verbose #200 > > ╭─[ 1.07s - stdout ]───────────────────────────────────────────────────────────╮
00:00:18 verbose #201 > > │ assert_eq' / actual: [|'a'; 'b'; 'c'|] / expected: [|'a'; 'b'; 'c'|]         │
00:00:18 verbose #202 > > │                                                                              │
00:00:18 verbose #203 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 verbose #204 > >
00:00:18 verbose #205 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:18 verbose #206 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:18 verbose #207 > > │ ### to_char_list                                                             │
00:00:18 verbose #208 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 verbose #209 > >
00:00:18 verbose #210 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 verbose #211 > > inl to_char_list (str : string) : list char =
00:00:18 verbose #212 > >     listm.init (str |> length) (fun (i : i64) => str |> index i)
00:00:18 verbose #213 > 00:00:17   debug #16 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8d6907899ff419a0da6de752c2f5b45ec08b44ffc1cd039d7bafe88b32a4fec2/main.spi
00:00:18 verbose #214 > >
00:00:18 verbose #215 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 verbose #216 > > //// test
00:00:18 verbose #217 > >
00:00:18 verbose #218 > > "abc"
00:00:18 verbose #219 > > |> to_char_list
00:00:18 verbose #220 > > |> _assert_eq [[ 'a'; 'b'; 'c' ]]
00:00:19 verbose #221 > 00:00:18   debug #17 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0a497efc6ded9caed895ebbcfc14516f40aa30b6ded38a4c55d277745e0e0b0c/main.spi
00:00:19 verbose #222 > >
00:00:19 verbose #223 > > ╭─[ 572.66ms - stdout ]────────────────────────────────────────────────────────╮
00:00:19 verbose #224 > > │ assert_eq / actual: UH0_1 ('a', UH0_1 ('b', UH0_1 ('c', UH0_0))) / expected: │
00:00:19 verbose #225 > > │ UH0_1 ('a', UH0_1 ('b', UH0_1 ('c', UH0_0)))                                 │
00:00:19 verbose #226 > > │                                                                              │
00:00:19 verbose #227 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 verbose #228 > >
00:00:19 verbose #229 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:19 verbose #230 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:19 verbose #231 > > │ ### is_empty                                                                 │
00:00:19 verbose #232 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 verbose #233 > >
00:00:19 verbose #234 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:19 verbose #235 > > inl is_empty (input : string) : bool =
00:00:19 verbose #236 > >     length input = 0i32
00:00:19 verbose #237 > 00:00:18   debug #18 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a02f6f458e227da73b7b61f51c408ca6677fd047f9bea34177e90366e0283468/main.spi
00:00:19 verbose #238 > >
00:00:19 verbose #239 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:19 verbose #240 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:19 verbose #241 > > │ ### slice                                                                    │
00:00:19 verbose #242 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 verbose #243 > >
00:00:19 verbose #244 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:19 verbose #245 > > inl slice from to s : string =
00:00:19 verbose #246 > >     sm.slice s { from to }
00:00:19 verbose #247 > 00:00:19   debug #19 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b17de7684e7c0000f691b428f4e85c8035f1a08457a0706881c63abd62636854/main.spi
00:00:20 verbose #248 > >
00:00:20 verbose #249 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:20 verbose #250 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:20 verbose #251 > > │ ### format_debug                                                             │
00:00:20 verbose #252 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 verbose #253 > >
00:00:20 verbose #254 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:20 verbose #255 > > //// real
00:00:20 verbose #256 > >
00:00:20 verbose #257 > > inl format_debug forall t. (x : t) : string =
00:00:20 verbose #258 > >     backend_switch `string `({}) {
00:00:20 verbose #259 > >         Fsharp = (fun () => $'$"%A{!x}"' : string) : () -> string
00:00:20 verbose #260 > >         Python = (fun () => $'f"{!x}"' : string) : () -> string
00:00:20 verbose #261 > >     }
00:00:20 verbose #262 > 00:00:19   debug #20 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b3547381588ba03a92b7afe8904349093563710a94c2610f05c055855a9dd8fa/real_main.spir
00:00:20 verbose #263 > >
00:00:20 verbose #264 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:20 verbose #265 > > inl format_debug forall t. (x : t) : string =
00:00:20 verbose #266 > >     real format_debug `t x
00:00:20 verbose #267 > 00:00:20   debug #21 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d39f5ce2359ccfd5a2ab75b66891e07e9eaad0e43468c0fef51d7323224bd7b5/main.spi
00:00:21 verbose #268 > >
00:00:21 verbose #269 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:21 verbose #270 > > //// test
00:00:21 verbose #271 > >
00:00:21 verbose #272 > > { c = "1"; a = "2"; b = "3" }
00:00:21 verbose #273 > > |> format_debug
00:00:21 verbose #274 > > |> _assert_eq "struct (\"1\", \"2\", \"3\")"
00:00:21 verbose #275 > 00:00:20   debug #22 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bc6958d9713b3885bf326328e884e885202ee16456acb201cbe9e87addaf8bd3/main.spi
00:00:21 verbose #276 > >
00:00:21 verbose #277 > > ╭─[ 391.41ms - stdout ]────────────────────────────────────────────────────────╮
00:00:21 verbose #278 > > │ assert_eq / actual: "struct ("1", "2", "3")" / expected: "struct ("1", "2",  │
00:00:21 verbose #279 > > │ "3")"                                                                        │
00:00:21 verbose #280 > > │                                                                              │
00:00:21 verbose #281 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 verbose #282 > >
00:00:21 verbose #283 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:21 verbose #284 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:21 verbose #285 > > │ ### prim                                                                     │
00:00:21 verbose #286 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 verbose #287 > >
00:00:21 verbose #288 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:21 verbose #289 > > inl prim x = real
00:00:21 verbose #290 > >     match x with
00:00:21 verbose #291 > >     | (x : i8) | (x : i16) | (x : i32) | (x : i64) => "%d", x
00:00:21 verbose #292 > >     | (x : u8) | (x : u16) | (x : u32) | (x : u64) => "%u", x
00:00:21 verbose #293 > >     | (x : f32) | (x : f64) => "%f", x
00:00:21 verbose #294 > >     | (x : string) => "%s", x
00:00:21 verbose #295 > >     | (x : char) => "%c", x
00:00:21 verbose #296 > 00:00:21   debug #23 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1f68d2edcd1ac78a5a32741d6fbd045ff4de26c2c09ae64a7f1c670896e0eb03/main.spi
00:00:22 verbose #297 > >
00:00:22 verbose #298 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:22 verbose #299 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:22 verbose #300 > > │ ### printable                                                                │
00:00:22 verbose #301 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 verbose #302 > >
00:00:22 verbose #303 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:22 verbose #304 > > //// real
00:00:22 verbose #305 > >
00:00:22 verbose #306 > > prototype printable t : t -> ()
00:00:22 verbose #307 > 00:00:21   debug #24 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/39051806b93c5368db5de08be73cbf8e25d92597effe00c956f9303f72fb4f7f/real_main.spir
00:00:22 verbose #308 > >
00:00:22 verbose #309 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:22 verbose #310 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:22 verbose #311 > > │ ### real_format                                                              │
00:00:22 verbose #312 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 verbose #313 > >
00:00:22 verbose #314 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:22 verbose #315 > > //// real
00:00:22 verbose #316 > >
00:00:22 verbose #317 > > inl real_format forall t. (x : t) : string =
00:00:22 verbose #318 > >     inl result = mut `string ""
00:00:22 verbose #319 > >     real
00:00:22 verbose #320 > >         let rec write x =
00:00:22 verbose #321 > >             inl p ((a : string), b) =
00:00:22 verbose #322 > >                 inl s : string =
00:00:22 verbose #323 > >                     backend_switch `string `({}) {
00:00:22 verbose #324 > >                         Fsharp =
00:00:22 verbose #325 > >                             (fun () =>
00:00:22 verbose #326 > >                                 match b with
00:00:22 verbose #327 > >                                 | (_ : f32) | (_ : f64) => $'$"%+.6f{!b}"' :
00:00:22 verbose #328 > > string
00:00:22 verbose #329 > >                                 | _ => $'$"{!b}"' : string
00:00:22 verbose #330 > >                             ) : () -> string
00:00:22 verbose #331 > >                         Python =
00:00:22 verbose #332 > >                             (fun () =>
00:00:22 verbose #333 > >                                 match b with
00:00:22 verbose #334 > >                                 | (_ : f32) | (_ : f64) =>
00:00:22 verbose #335 > > $'"{:.6f}".format(!b)' : string
00:00:22 verbose #336 > >                                 | _ => $'!b ' : string
00:00:22 verbose #337 > >                             ) : () -> string
00:00:22 verbose #338 > >                     }
00:00:22 verbose #339 > >                 result <- (+.) `string ((~*) `string result) s
00:00:22 verbose #340 > >
00:00:22 verbose #341 > >             match x with // According to Bing it shouldn't matter whether these
00:00:22 verbose #342 > > are %d or %lld in printf.
00:00:22 verbose #343 > >             | () => ()
00:00:22 verbose #344 > >             | (x : i8) | (x : i16) | (x : i32) | (x : i64) => p ("%d", x)
00:00:22 verbose #345 > >             | (x : u8) | (x : u16) | (x : u32) | (x : u64) => p ("%u", x)
00:00:22 verbose #346 > >             | (x : f32) | (x : f64) => p ("%f", x)
00:00:22 verbose #347 > >             | (x : string) => p ("%s", x)
00:00:22 verbose #348 > >             | (x : char) => p ("%c", x)
00:00:22 verbose #349 > >             | (x : bool) => p ("%s", if x then "true" else "false")
00:00:22 verbose #350 > >             | (a,b) => write a . write ", " . write b
00:00:22 verbose #351 > >             | {} as x =>
00:00:22 verbose #352 > >                 write "{ "
00:00:22 verbose #353 > >                 inl _result =
00:00:22 verbose #354 > >                     real_core.record_fold
00:00:22 verbose #355 > >                         fun { state = separator key value } =>
00:00:22 verbose #356 > >                             write separator
00:00:22 verbose #357 > >                             write (symbol_to_string `(`key)) . write " = " .
00:00:22 verbose #358 > > write value
00:00:22 verbose #359 > >                             "; "
00:00:22 verbose #360 > >                         () x
00:00:22 verbose #361 > >                 write " }"
00:00:22 verbose #362 > >             | x when real_core.symbol_is x => write (symbol_to_string `(`x))
00:00:22 verbose #363 > >             | x when real_core.function_is x => write (x ())
00:00:22 verbose #364 > >             | x =>
00:00:22 verbose #365 > >                 if real_core.union_is x then
00:00:22 verbose #366 > >                     if real_core.prototype_has `(`x) printable then printable
00:00:22 verbose #367 > > `(`x) x
00:00:22 verbose #368 > >                     else
00:00:22 verbose #369 > >                         write (format_debug `(`x) x)
00:00:22 verbose #370 > >                         // real_core.unbox x (fun (k, v) =>
00:00:22 verbose #371 > >                         //     write k
00:00:22 verbose #372 > >                         //     match v with
00:00:22 verbose #373 > >                         //     | () => ()
00:00:22 verbose #374 > >                         //     | _ => write "(" . write v . write ")"
00:00:22 verbose #375 > >                         //     )
00:00:22 verbose #376 > >                 elif real_core.nominal_is x && real_core.prototype_has `(`x)
00:00:22 verbose #377 > > printable then printable `(`x) x
00:00:22 verbose #378 > >                 // elif layout_is x then write *x // TODO: Deal with all the
00:00:22 verbose #379 > > layout type cases.
00:00:22 verbose #380 > >                 else write (format_debug `(`x) x)
00:00:22 verbose #381 > >         write x
00:00:22 verbose #382 > >     (~*) `string result
00:00:22 verbose #383 > 00:00:21   debug #25 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0446514e4e9a54e1e45299708cb05aa18d5a91bee4ecf4885d074a51a91eb4e7/real_main.spir
00:00:22 verbose #384 > >
00:00:22 verbose #385 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:22 verbose #386 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:22 verbose #387 > > │ ### format                                                                   │
00:00:22 verbose #388 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 verbose #389 > >
00:00:22 verbose #390 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:22 verbose #391 > > inl format forall t. (x : t) : string =
00:00:22 verbose #392 > >     real real_format `t x
00:00:23 verbose #393 > 00:00:22   debug #26 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/16af0d6412a26798802b98108940115a83db4b617963ef557bad0e0b54b49762/main.spi
00:00:23 verbose #394 > >
00:00:23 verbose #395 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:23 verbose #396 > > //// test
00:00:23 verbose #397 > > ///! fsharp
00:00:23 verbose #398 > > ////! cuda
00:00:23 verbose #399 > > ////! rust
00:00:23 verbose #400 > > ////! typescript
00:00:23 verbose #401 > > ////! python
00:00:23 verbose #402 > >
00:00:23 verbose #403 > > ("1", "2", [["3"; "4"]], { b = "5"; c = "6"; a = fun () => "7" })
00:00:23 verbose #404 > > |> format
00:00:23 verbose #405 > > |> _assert_eq "1, 2, UH0_1 (\"3\", UH0_1 (\"4\", UH0_0)), { b = 5; c = 6; a = 7
00:00:23 verbose #406 > > }"
00:00:23 verbose #407 > 00:00:22   debug #27 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4146359e0a25062d040c941f5d8827ea2553997adf902071e32478032f1a05de/main.spi
00:00:23 verbose #408 > >
00:00:23 verbose #409 > > ╭─[ 569.44ms - stdout ]────────────────────────────────────────────────────────╮
00:00:23 verbose #410 > > │ assert_eq / actual: "1, 2, UH0_1 ("3", UH0_1 ("4", UH0_0)), { b = 5; c = 6;  │
00:00:23 verbose #411 > > │ a = 7 }" / expected: "1, 2, UH0_1 ("3", UH0_1 ("4", UH0_0)), { b = 5; c = 6; │
00:00:23 verbose #412 > > │ a = 7 }"                                                                     │
00:00:23 verbose #413 > > │                                                                              │
00:00:23 verbose #414 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 verbose #415 > >
00:00:23 verbose #416 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:23 verbose #417 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:23 verbose #418 > > │ ### concat_array_trailing                                                    │
00:00:23 verbose #419 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 verbose #420 > >
00:00:23 verbose #421 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:23 verbose #422 > > inl concat_array_trailing (separator : string) (input : a i32 string) =
00:00:23 verbose #423 > >     ("", input)
00:00:23 verbose #424 > >     ||> am.fold fun acc (x : string) =>
00:00:23 verbose #425 > >         $'!acc + !x + !separator + ""'
00:00:23 verbose #426 > 00:00:23   debug #28 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/71e613d21d4631266358f3c4683c17ae12e02db5b26b0eb90dddff188d8c29dc/main.spi
00:00:24 verbose #427 > >
00:00:24 verbose #428 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:24 verbose #429 > > //// test
00:00:24 verbose #430 > > ///! typescript
00:00:24 verbose #431 > >
00:00:24 verbose #432 > > ;[[
00:00:24 verbose #433 > >     "1"
00:00:24 verbose #434 > >     "2"
00:00:24 verbose #435 > >     "3"
00:00:24 verbose #436 > > ]]
00:00:24 verbose #437 > > |> fun x =>
00:00:24 verbose #438 > >     inl code = (a x : _ i32 _) |> concat_array_trailing "\n"
00:00:24 verbose #439 > >     code
00:00:24 verbose #440 > >     |> _assert_eq "1\n2\n3\n"
00:00:24 verbose #441 > 00:00:23   debug #29 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f4fe6d91efdbc91ce3cb6d24db8ecef4bb6d0fcd354ce79261a90b58fd6f004d/main.spi
00:00:26 verbose #442 > >
00:00:26 verbose #443 > > ╭─[ 2.21s - return value ]─────────────────────────────────────────────────────╮
00:00:26 verbose #444 > > │ assert_eq / actual: 1                                                        │
00:00:26 verbose #445 > > │ 2                                                                            │
00:00:26 verbose #446 > > │ 3                                                                            │
00:00:26 verbose #447 > > │  / expected: 1                                                               │
00:00:26 verbose #448 > > │ 2                                                                            │
00:00:26 verbose #449 > > │ 3                                                                            │
00:00:26 verbose #450 > > │                                                                              │
00:00:26 verbose #451 > > │                                                                              │
00:00:26 verbose #452 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:26 verbose #453 > >
00:00:26 verbose #454 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:26 verbose #455 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:26 verbose #456 > > │ ### concat_list_trailing                                                     │
00:00:26 verbose #457 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:26 verbose #458 > >
00:00:26 verbose #459 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:26 verbose #460 > > inl concat_list_trailing separator input =
00:00:26 verbose #461 > >     ("", input)
00:00:26 verbose #462 > >     ||> listm.fold fun acc (x : string) =>
00:00:26 verbose #463 > >         $'!acc + !x + !separator + ""'
00:00:26 verbose #464 > 00:00:25   debug #30 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8cf629f95ef31103dd0cabe68754beaf4fbbdb43c02cea8fcdd787d69d24e8d3/main.spi
00:00:26 verbose #465 > >
00:00:26 verbose #466 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:26 verbose #467 > > //// test
00:00:26 verbose #468 > > ///! rust
00:00:26 verbose #469 > >
00:00:26 verbose #470 > > [[
00:00:26 verbose #471 > >     "1"
00:00:26 verbose #472 > >     "2"
00:00:26 verbose #473 > >     "3"
00:00:26 verbose #474 > > ]]
00:00:26 verbose #475 > > |> fun x =>
00:00:26 verbose #476 > >     inl code = (x : _) |> concat_list_trailing "\n"
00:00:26 verbose #477 > >     code
00:00:26 verbose #478 > >     |> _assert_eq "1\n2\n3\n"
00:00:26 verbose #479 > 00:00:26   debug #31 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/501d8a671783ae862d7f0c8ccbc358732178e0e54fe52bb8972513caef865b29/main.spi
00:00:31 verbose #480 > >
00:00:31 verbose #481 > > ╭─[ 5.17s - return value ]─────────────────────────────────────────────────────╮
00:00:31 verbose #482 > > │ assert_eq / actual: "1                                                       │
00:00:31 verbose #483 > > │ 2                                                                            │
00:00:31 verbose #484 > > │ 3                                                                            │
00:00:31 verbose #485 > > │ " / expected: "1                                                             │
00:00:31 verbose #486 > > │ 2                                                                            │
00:00:31 verbose #487 > > │ 3                                                                            │
00:00:31 verbose #488 > > │ "                                                                            │
00:00:31 verbose #489 > > │                                                                              │
00:00:31 verbose #490 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:31 verbose #491 > >
00:00:31 verbose #492 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:31 verbose #493 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:31 verbose #494 > > │ ### concat_list_heap_trailing                                                │
00:00:31 verbose #495 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:31 verbose #496 > >
00:00:31 verbose #497 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:31 verbose #498 > > inl concat_list_heap_trailing separator input =
00:00:31 verbose #499 > >     inl separator = join separator
00:00:31 verbose #500 > >     inl separator = separator
00:00:31 verbose #501 > >     ("", input)
00:00:31 verbose #502 > >     ||> listm.fold fun acc (x : string) =>
00:00:31 verbose #503 > >         $'$"{!acc}{!x}{!separator}"'
00:00:32 verbose #504 > 00:00:31   debug #32 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7188c1bdb172e1302e15cbb3ea746cafa307f04ae442bd7d79e7a30955b959ba/main.spi
00:00:32 verbose #505 > >
00:00:32 verbose #506 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:32 verbose #507 > > //// test
00:00:32 verbose #508 > > ///! rust
00:00:32 verbose #509 > >
00:00:32 verbose #510 > > types ()
00:00:32 verbose #511 > >
00:00:32 verbose #512 > > [[
00:00:32 verbose #513 > >     "1"
00:00:32 verbose #514 > >     "2"
00:00:32 verbose #515 > >     "3"
00:00:32 verbose #516 > > ]]
00:00:32 verbose #517 > > |> fun x =>
00:00:32 verbose #518 > >     inl code = (x : _) |> concat_list_heap_trailing "\n"
00:00:32 verbose #519 > >     code
00:00:32 verbose #520 > >     |> _assert_eq "1\n2\n3\n"
00:00:32 verbose #521 > 00:00:31   debug #33 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/358a7f01ff436568d3da11ba75d0e271a9fcfa1672355804cbfc3b01b52dce34/main.spi
00:00:35 verbose #522 > >
00:00:35 verbose #523 > > ╭─[ 2.91s - return value ]─────────────────────────────────────────────────────╮
00:00:35 verbose #524 > > │ assert_eq / actual: "1                                                       │
00:00:35 verbose #525 > > │ 2                                                                            │
00:00:35 verbose #526 > > │ 3                                                                            │
00:00:35 verbose #527 > > │ " / expected: "1                                                             │
00:00:35 verbose #528 > > │ 2                                                                            │
00:00:35 verbose #529 > > │ 3                                                                            │
00:00:35 verbose #530 > > │ "                                                                            │
00:00:35 verbose #531 > > │                                                                              │
00:00:35 verbose #532 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:35 verbose #533 > >
00:00:35 verbose #534 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:35 verbose #535 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:35 verbose #536 > > │ ### ellipsis                                                                 │
00:00:35 verbose #537 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:35 verbose #538 > >
00:00:35 verbose #539 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:35 verbose #540 > > inl ellipsis (max : i32) (s : string) =
00:00:35 verbose #541 > >     if sm.length s <= max
00:00:35 verbose #542 > >     then s
00:00:35 verbose #543 > >     else s |> slice 0 (max - 1) |> fun x => $'!x + "..."'
00:00:35 verbose #544 > 00:00:34   debug #34 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c556f9fc1b7b79ad07367d5534cb1a3a3d3ec282149047239dab04630a701696/main.spi
00:00:35 verbose #545 > >
00:00:35 verbose #546 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:35 verbose #547 > > //// test
00:00:35 verbose #548 > >
00:00:35 verbose #549 > > "12345"
00:00:35 verbose #550 > > |> ellipsis 2
00:00:35 verbose #551 > > |> _assert_eq "12..."
00:00:35 verbose #552 > >
00:00:35 verbose #553 > > "12345"
00:00:35 verbose #554 > > |> ellipsis 4
00:00:35 verbose #555 > > |> _assert_eq "1234..."
00:00:35 verbose #556 > 00:00:35   debug #35 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e8cb42e983101cbbf61b6ba9e602d9a0e4a5d635b4521c94a5247c725fd11eea/main.spi
00:00:36 verbose #557 > >
00:00:36 verbose #558 > > ╭─[ 399.02ms - stdout ]────────────────────────────────────────────────────────╮
00:00:36 verbose #559 > > │ assert_eq / actual: "12..." / expected: "12..."                              │
00:00:36 verbose #560 > > │ assert_eq / actual: "1234..." / expected: "1234..."                          │
00:00:36 verbose #561 > > │                                                                              │
00:00:36 verbose #562 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:36 verbose #563 > >
00:00:36 verbose #564 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:36 verbose #565 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:36 verbose #566 > > │ ## fsharp                                                                    │
00:00:36 verbose #567 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:36 verbose #568 > >
00:00:36 verbose #569 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:36 verbose #570 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:36 verbose #571 > > │ ### ends_with                                                                │
00:00:36 verbose #572 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:36 verbose #573 > >
00:00:36 verbose #574 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:36 verbose #575 > > inl ends_with (value : string) (s : string) : bool =
00:00:36 verbose #576 > >     $'!s.EndsWith !value '
00:00:36 verbose #577 > 00:00:35   debug #36 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a48909b4086fc44faeb7b86d5276a22ee9d2b86c3cf5b4acac7795444a30b97f/main.spi
00:00:36 verbose #578 > >
00:00:36 verbose #579 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:36 verbose #580 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:36 verbose #581 > > │ ### last_index_of                                                            │
00:00:36 verbose #582 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:36 verbose #583 > >
00:00:36 verbose #584 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:36 verbose #585 > > inl last_index_of (search : string) (s : string) : i32 =
00:00:36 verbose #586 > >     $'!s.LastIndexOf !search '
00:00:36 verbose #587 > 00:00:35   debug #37 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/125d5615363edb0d86e1984092c37bf17b060def9f34747bdb59fdcd5a8a5c79/main.spi
00:00:36 verbose #588 > >
00:00:36 verbose #589 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:36 verbose #590 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:36 verbose #591 > > │ ### index_of                                                                 │
00:00:36 verbose #592 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:36 verbose #593 > >
00:00:36 verbose #594 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:36 verbose #595 > > inl index_of (search : string) (s : string) : i32 =
00:00:36 verbose #596 > >     $'!s.IndexOf !search '
00:00:36 verbose #597 > 00:00:36   debug #38 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e7ca37e5f8ef79d10058d84338da5a4c82dfb7fd2f8c19650cc72bff268f5403/main.spi
00:00:37 verbose #598 > >
00:00:37 verbose #599 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:37 verbose #600 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:37 verbose #601 > > │ ### replicate                                                                │
00:00:37 verbose #602 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:37 verbose #603 > >
00:00:37 verbose #604 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:37 verbose #605 > > inl replicate (n : i32) (s : string) : string =
00:00:37 verbose #606 > >     backend_switch {
00:00:37 verbose #607 > >         Fsharp = fun () => s |> $'String.replicate' n : string
00:00:37 verbose #608 > >         Python = fun () => $'!s * !n ' : string
00:00:37 verbose #609 > >     }
00:00:37 verbose #610 > 00:00:36   debug #39 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5aed5def7729b399333b1108306865cfd56746590249c2ef118b6faf18b6e523/main.spi
00:00:37 verbose #611 > >
00:00:37 verbose #612 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:37 verbose #613 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:37 verbose #614 > > │ ### obj_to_string                                                            │
00:00:37 verbose #615 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:37 verbose #616 > >
00:00:37 verbose #617 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:37 verbose #618 > > inl obj_to_string x : string =
00:00:37 verbose #619 > >     backend_switch {
00:00:37 verbose #620 > >         Fsharp = fun () => x |> $'_.ToString()' : string
00:00:37 verbose #621 > >         Python = fun () => $'str(!x)' : string
00:00:37 verbose #622 > >     }
00:00:37 verbose #623 > 00:00:36   debug #40 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0ee5e6b9ed04d5b5656ba60ff1773427c689a076ff5e3149c8d184f1c385c694/main.spi
00:00:37 verbose #624 > >
00:00:37 verbose #625 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:37 verbose #626 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:37 verbose #627 > > │ ### pad_left                                                                 │
00:00:37 verbose #628 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:37 verbose #629 > >
00:00:37 verbose #630 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:37 verbose #631 > > inl pad_left (total_width : i32) (padding_char : char) (s : string) : string =
00:00:37 verbose #632 > >     backend_switch {
00:00:37 verbose #633 > >         Fsharp = fun () => $'!s.PadLeft (!total_width, !padding_char)' : string
00:00:37 verbose #634 > >         Python = fun () =>
00:00:37 verbose #635 > >             inl padding = padding_char |> obj_to_string |> replicate
00:00:37 verbose #636 > > (total_width - length s)
00:00:37 verbose #637 > >             padding +. s
00:00:37 verbose #638 > >     }
00:00:38 verbose #639 > 00:00:37   debug #41 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/27e55277bc4a3b88be40ae6644929d9cd55d0bd2488713d898b5ae1f50cba77c/main.spi
00:00:38 verbose #640 > >
00:00:38 verbose #641 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:38 verbose #642 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:38 verbose #643 > > │ ### pad_right                                                                │
00:00:38 verbose #644 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:38 verbose #645 > >
00:00:38 verbose #646 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:38 verbose #647 > > inl pad_right (total_width : i32) (padding_char : char) (s : string) : string =
00:00:38 verbose #648 > >     $'!s.PadRight (!total_width, !padding_char)'
00:00:38 verbose #649 > 00:00:37   debug #42 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2eb71ac6ce50771d89616b8e8b93fa34be98ae1a1ac0549b6ac851d83c4f6270/main.spi
00:00:38 verbose #650 > >
00:00:38 verbose #651 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:38 verbose #652 > > //// test
00:00:38 verbose #653 > >
00:00:38 verbose #654 > > "123"
00:00:38 verbose #655 > > |> pad_right 6 ' '
00:00:38 verbose #656 > > |> _assert_eq "123   "
00:00:38 verbose #657 > 00:00:38   debug #43 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c05655208572cbb2ea54219f5bd3678b4b1d1ffd909a0ac43ceed36f6299b0ec/main.spi
00:00:38 verbose #658 > >
00:00:38 verbose #659 > > ╭─[ 401.86ms - stdout ]────────────────────────────────────────────────────────╮
00:00:38 verbose #660 > > │ assert_eq / actual: "123   " / expected: "123   "                            │
00:00:38 verbose #661 > > │                                                                              │
00:00:38 verbose #662 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:38 verbose #663 > >
00:00:38 verbose #664 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:38 verbose #665 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:38 verbose #666 > > │ ### starts_with                                                              │
00:00:38 verbose #667 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:38 verbose #668 > >
00:00:38 verbose #669 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:38 verbose #670 > > inl starts_with (value : string) (s : string) : bool =
00:00:38 verbose #671 > >     $'!s.StartsWith !value '
00:00:39 verbose #672 > 00:00:38   debug #44 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/276bdceb6d9efa02c77f0ce0099ef8590b1e97a9a2c6eefb8606295112041043/main.spi
00:00:39 verbose #673 > >
00:00:39 verbose #674 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:39 verbose #675 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:39 verbose #676 > > │ ### is_white_space                                                           │
00:00:39 verbose #677 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:39 verbose #678 > >
00:00:39 verbose #679 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:39 verbose #680 > > inl is_white_space (c : char) : bool =
00:00:39 verbose #681 > >     c |> $'System.Char.IsWhiteSpace'
00:00:39 verbose #682 > 00:00:38   debug #45 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cddd734e5c75e4ed0029b5873fcee134e024a81f8fe453cf2aec055ec5c6d9ef/main.spi
00:00:39 verbose #683 > >
00:00:39 verbose #684 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:39 verbose #685 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:39 verbose #686 > > │ ### substring                                                                │
00:00:39 verbose #687 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:39 verbose #688 > >
00:00:39 verbose #689 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:39 verbose #690 > > inl substring (start : i32) (len : i32) (str : string) : string =
00:00:39 verbose #691 > >     $'!str.Substring (!start, !len)'
00:00:39 verbose #692 > 00:00:39   debug #46 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d60113d07ebdde6e3e0eb5618acc77de0b61a1056411e7c8432fbf4d95b96245/main.spi
00:00:40 verbose #693 > >
00:00:40 verbose #694 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:40 verbose #695 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:40 verbose #696 > > │ ### to_lower                                                                 │
00:00:40 verbose #697 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:40 verbose #698 > >
00:00:40 verbose #699 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:40 verbose #700 > > inl to_lower (input : string) : string =
00:00:40 verbose #701 > >     backend_switch {
00:00:40 verbose #702 > >         Fsharp = fun () => $'!input.ToLower' () : string
00:00:40 verbose #703 > >         Python = fun () => $'!input.lower()' : string
00:00:40 verbose #704 > >     }
00:00:40 verbose #705 > 00:00:39   debug #47 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/13cffb27dc212a9dadc13518a276e551bd7b362020c172d612b4a54febc4e667/main.spi
00:00:40 verbose #706 > >
00:00:40 verbose #707 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:40 verbose #708 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:40 verbose #709 > > │ ### to_upper                                                                 │
00:00:40 verbose #710 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:40 verbose #711 > >
00:00:40 verbose #712 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:40 verbose #713 > > inl to_upper (input : string) : string =
00:00:40 verbose #714 > >     $'!input.ToUpper' ()
00:00:40 verbose #715 > 00:00:40   debug #48 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dc36bd1954f5285565fc3e07b63ea9c0637d0cab2c3c74664fc402028cdd2fe5/main.spi
00:00:40 verbose #716 > >
00:00:40 verbose #717 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:40 verbose #718 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:40 verbose #719 > > │ ### char_to_upper                                                            │
00:00:40 verbose #720 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:40 verbose #721 > >
00:00:40 verbose #722 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:40 verbose #723 > > inl char_to_upper (input : char) : char =
00:00:40 verbose #724 > >     $'System.Char.ToUpper !input '
00:00:41 verbose #725 > 00:00:40   debug #49 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a16fa2d926ae372a121428aed86a16b5fc00600f79c32af8aeaf8d661cdb3a83/main.spi
00:00:41 verbose #726 > >
00:00:41 verbose #727 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:41 verbose #728 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:41 verbose #729 > > │ ### string_builder                                                           │
00:00:41 verbose #730 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:41 verbose #731 > >
00:00:41 verbose #732 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:41 verbose #733 > > nominal string_builder = $'System.Text.StringBuilder'
00:00:41 verbose #734 > >
00:00:41 verbose #735 > > inl string_builder (initial : string) : string_builder =
00:00:41 verbose #736 > >     initial |> $'`string_builder '
00:00:41 verbose #737 > 00:00:40   debug #50 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/393ab2e2972c5e3f0a45cd46c9af471649772f64411afa4854b301ca65ba718f/main.spi
00:00:41 verbose #738 > >
00:00:41 verbose #739 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:41 verbose #740 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:41 verbose #741 > > │ ### builder_append                                                           │
00:00:41 verbose #742 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:41 verbose #743 > >
00:00:41 verbose #744 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:41 verbose #745 > > inl builder_append (item : string) (sb : string_builder) : string_builder =
00:00:41 verbose #746 > >     ($'!sb.Append' item : string_builder) |> ignore
00:00:41 verbose #747 > >     sb
00:00:41 verbose #748 > 00:00:41   debug #51 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3c5feccc105d3747f53b4959bd1c854037a0644e17f616b4da6d28d819e1982a/main.spi
00:00:41 verbose #749 > >
00:00:41 verbose #750 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:41 verbose #751 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:41 verbose #752 > > │ ### builder_replace                                                          │
00:00:41 verbose #753 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:41 verbose #754 > >
00:00:41 verbose #755 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:41 verbose #756 > > inl builder_replace (old : string) (new : string) (sb : string_builder) :
00:00:41 verbose #757 > > string_builder =
00:00:41 verbose #758 > >     ($'!sb.Replace (!old, !new)' : string_builder) |> ignore
00:00:41 verbose #759 > >     sb
00:00:42 verbose #760 > 00:00:41   debug #52 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/76cd4e7cfc94c662cee1eef79e3e809ef3803a2725850edeb7299f4e4fd3a7f5/main.spi
00:00:42 verbose #761 > >
00:00:42 verbose #762 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:42 verbose #763 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:42 verbose #764 > > │ ### builder_insert                                                           │
00:00:42 verbose #765 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:42 verbose #766 > >
00:00:42 verbose #767 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:42 verbose #768 > > inl builder_insert (n : i32) (s : string) (sb : string_builder) : string_builder
00:00:42 verbose #769 > > =
00:00:42 verbose #770 > >     ($'!sb.Insert (!n, !s)' : string_builder) |> ignore
00:00:42 verbose #771 > >     sb
00:00:42 verbose #772 > 00:00:41   debug #53 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0cc416c33fe0b0210f3eca1439ff775e688520c1bca88c4e9cb43d6c3d381f8a/main.spi
00:00:42 verbose #773 > >
00:00:42 verbose #774 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:42 verbose #775 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:42 verbose #776 > > │ ### builder_clear                                                            │
00:00:42 verbose #777 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:42 verbose #778 > >
00:00:42 verbose #779 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:42 verbose #780 > > inl builder_clear (sb : string_builder) : string_builder =
00:00:42 verbose #781 > >     ($'!sb.Clear' () : string_builder) |> ignore
00:00:42 verbose #782 > >     sb
00:00:42 verbose #783 > 00:00:42   debug #54 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c6c18ce5ab46bff1b27939559c155803e39f01cc5f99efa67160d55c0e71deec/main.spi
00:00:43 verbose #784 > >
00:00:43 verbose #785 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:43 verbose #786 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:43 verbose #787 > > │ ### trim                                                                     │
00:00:43 verbose #788 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:43 verbose #789 > >
00:00:43 verbose #790 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:43 verbose #791 > > inl trim (input : string) : string =
00:00:43 verbose #792 > >     $'!input.Trim' ()
00:00:43 verbose #793 > 00:00:42   debug #55 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3d1670d163c78c10d71183087a63e22906fc00e37b5fdcfaa8268829351a18d4/main.spi
00:00:43 verbose #794 > >
00:00:43 verbose #795 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:43 verbose #796 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:43 verbose #797 > > │ ### concat                                                                   │
00:00:43 verbose #798 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:43 verbose #799 > >
00:00:43 verbose #800 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:43 verbose #801 > > inl concat (a : string) (b : seq.seq' string) : string =
00:00:43 verbose #802 > >     backend_switch {
00:00:43 verbose #803 > >         Fsharp = fun () =>
00:00:43 verbose #804 > >             b |> $'String.concat' a : string
00:00:43 verbose #805 > >         Python = fun () =>
00:00:43 verbose #806 > >             $'!a.join(!b)' : string
00:00:43 verbose #807 > >     }
00:00:43 verbose #808 > 00:00:42   debug #56 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/283390bb1a218c457f191e67dea4d5e593da9e2767d452af98b2c7ac7a8d4e00/main.spi
00:00:43 verbose #809 > >
00:00:43 verbose #810 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:43 verbose #811 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:43 verbose #812 > > │ ### trim_end                                                                 │
00:00:43 verbose #813 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:43 verbose #814 > >
00:00:43 verbose #815 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:43 verbose #816 > > inl trim_end (trim_chars : list char) (input : string) : string =
00:00:43 verbose #817 > >     inl trim_chars = trim_chars |> listm'.box
00:00:43 verbose #818 > >     backend_switch {
00:00:43 verbose #819 > >         Fsharp = fun () =>
00:00:43 verbose #820 > >             inl trim_chars = trim_chars |> listm'.to_array'
00:00:43 verbose #821 > >             $'!input.TrimEnd !trim_chars ' : string
00:00:43 verbose #822 > >         Python = fun () =>
00:00:43 verbose #823 > >             inl trim_chars = trim_chars |> listm'.map obj_to_string |>
00:00:43 verbose #824 > > seq.of_list' |> concat ""
00:00:43 verbose #825 > >             $'!input.rstrip(!trim_chars)' : string
00:00:43 verbose #826 > >     }
00:00:44 verbose #827 > 00:00:43   debug #57 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/84a0fcd1c2ee796598770a73ba37086a1e0842a279111620041f171a641e9006/main.spi
00:00:44 verbose #828 > >
00:00:44 verbose #829 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:44 verbose #830 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:44 verbose #831 > > │ ### trim_start                                                               │
00:00:44 verbose #832 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:44 verbose #833 > >
00:00:44 verbose #834 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:44 verbose #835 > > inl trim_start (trim_chars : list char) (input : string) : string =
00:00:44 verbose #836 > >     inl trim_chars = trim_chars |> listm'.box
00:00:44 verbose #837 > >     backend_switch {
00:00:44 verbose #838 > >         Fsharp = fun () =>
00:00:44 verbose #839 > >             inl trim_chars = trim_chars |> listm'.to_array'
00:00:44 verbose #840 > >             $'!input.TrimStart !trim_chars ' : string
00:00:44 verbose #841 > >         Python = fun () =>
00:00:44 verbose #842 > >             inl trim_chars = trim_chars |> listm'.map obj_to_string |>
00:00:44 verbose #843 > > seq.of_list' |> concat ""
00:00:44 verbose #844 > >             $'!input.lstrip(!trim_chars)' : string
00:00:44 verbose #845 > >     }
00:00:44 verbose #846 > 00:00:43   debug #58 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/25fdc625c159079a291809425b74fc66fe6a656f433e34ffc1a0de88f7b43542/main.spi
00:00:44 verbose #847 > >
00:00:44 verbose #848 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:44 verbose #849 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:44 verbose #850 > > │ ### length'                                                                  │
00:00:44 verbose #851 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:44 verbose #852 > >
00:00:44 verbose #853 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:44 verbose #854 > > inl length' forall dim. (input : string) : dim =
00:00:44 verbose #855 > >     input |> $'String.length'
00:00:44 verbose #856 > 00:00:44   debug #59 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/88fe86af23e0f1f6b094e898e32bf63a58ec0647c0c3446c73712f94543437f9/main.spi
00:00:44 verbose #857 > >
00:00:44 verbose #858 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:44 verbose #859 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:44 verbose #860 > > │ ### to_string any                                                            │
00:00:44 verbose #861 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:44 verbose #862 > >
00:00:44 verbose #863 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:44 verbose #864 > > instance to_string any =
00:00:44 verbose #865 > >     obj_to_string
00:00:45 verbose #866 > 00:00:44   debug #60 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/aa381862fbf31384bb82933ecb48d4988707bac3b93ff1c8ae29b39e6705f894/main.spi
00:00:45 verbose #867 > >
00:00:45 verbose #868 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:45 verbose #869 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:45 verbose #870 > > │ ### replace                                                                  │
00:00:45 verbose #871 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:45 verbose #872 > >
00:00:45 verbose #873 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:45 verbose #874 > > inl replace (old_value : string) (new_value : string) (s : string) : string =
00:00:45 verbose #875 > >     $'!s.Replace (!old_value, !new_value)'
00:00:45 verbose #876 > 00:00:44   debug #61 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/94e59f1ddce244b4b262fc7fecf11ec1132cdb193e196fd1f6980d22b380deaf/main.spi
00:00:45 verbose #877 > >
00:00:45 verbose #878 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:45 verbose #879 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:45 verbose #880 > > │ ### split                                                                    │
00:00:45 verbose #881 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:45 verbose #882 > >
00:00:45 verbose #883 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:45 verbose #884 > > inl split (separator : string) (str : string) : array_base string =
00:00:45 verbose #885 > >     $'!str.Split !separator '
00:00:45 verbose #886 > 00:00:45   debug #62 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c75762217f8002389ff504a15b6f014ee38a0daed6b6b85c52a0307cbfa47d8a/main.spi
00:00:46 verbose #887 > >
00:00:46 verbose #888 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:46 verbose #889 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:46 verbose #890 > > │ ### split_string                                                             │
00:00:46 verbose #891 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:46 verbose #892 > >
00:00:46 verbose #893 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:46 verbose #894 > > inl split_string (separator : array_base string) (str : string) : array_base
00:00:46 verbose #895 > > string =
00:00:46 verbose #896 > >     run_target function
00:00:46 verbose #897 > >         | Fsharp (Native) => fun () => $'!str.Split (!separator,
00:00:46 verbose #898 > > System.StringSplitOptions.None)'
00:00:46 verbose #899 > >         | _ => fun () => str |> split ((a separator : _ int _) |> seq.of_array
00:00:46 verbose #900 > > |> concat (join ""))
00:00:46 verbose #901 > 00:00:45   debug #63 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5aff3cbcf0143c2ad361690aa4a2529b773bdd48a21ad0617905fdd19881ca29/main.spi
00:00:46 verbose #902 > >
00:00:46 verbose #903 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:46 verbose #904 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:46 verbose #905 > > │ ### join'                                                                    │
00:00:46 verbose #906 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:46 verbose #907 > >
00:00:46 verbose #908 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:46 verbose #909 > > inl join' (concat : string) (s : a int string) : string =
00:00:46 verbose #910 > >     $'System.String.Join (!concat, !s)'
00:00:46 verbose #911 > 00:00:45   debug #64 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3f3bdcbf7fdaeea019c777fbf2664ef0b653f224aa43bc776624b33808c126f2/main.spi
00:00:46 verbose #912 > >
00:00:46 verbose #913 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:46 verbose #914 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:46 verbose #915 > > │ ### encoding                                                                 │
00:00:46 verbose #916 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:46 verbose #917 > >
00:00:46 verbose #918 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:46 verbose #919 > > nominal encoding = $'System.Text.Encoding'
00:00:47 verbose #920 > 00:00:46   debug #65 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d599274b958773f2a2ad3db614eaf17b4e6935112ff4192345ed7dc20731804f/main.spi
00:00:47 verbose #921 > >
00:00:47 verbose #922 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:47 verbose #923 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:47 verbose #924 > > │ ### encoding_utf8                                                            │
00:00:47 verbose #925 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:47 verbose #926 > >
00:00:47 verbose #927 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:47 verbose #928 > > inl encoding_utf8 () : encoding =
00:00:47 verbose #929 > >     $'`encoding.UTF8'
00:00:47 verbose #930 > 00:00:46   debug #66 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/91973756eac35d12f9e13ddd57a01da08930bc221b6a617ec1fc778a0203923f/main.spi
00:00:47 verbose #931 > >
00:00:47 verbose #932 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:47 verbose #933 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:47 verbose #934 > > │ ### utf8_get_bytes                                                           │
00:00:47 verbose #935 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:47 verbose #936 > >
00:00:47 verbose #937 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:47 verbose #938 > > inl utf8_get_bytes (s : string) : a i32 u8 =
00:00:47 verbose #939 > >     s |> (encoding_utf8 () |> $'_.GetBytes')
00:00:47 verbose #940 > 00:00:47   debug #67 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e7d2d99ae1cb6c719e5213f48b87a666d8d7b72c401f97fcb100d5a44cbd0bad/main.spi
00:00:47 verbose #941 > >
00:00:47 verbose #942 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:47 verbose #943 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:47 verbose #944 > > │ ### byte_to_string                                                           │
00:00:47 verbose #945 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:47 verbose #946 > >
00:00:47 verbose #947 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:47 verbose #948 > > inl byte_to_string (format : string) (x : u8) : string =
00:00:47 verbose #949 > >     $'!x.ToString' format
00:00:48 verbose #950 > 00:00:47   debug #68 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/73307f67e7f350735aceb8b45d3745b6ffbd8337d57d96df8429d048b3458f63/main.spi
00:00:48 verbose #951 > >
00:00:48 verbose #952 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:48 verbose #953 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:48 verbose #954 > > │ ## rust                                                                      │
00:00:48 verbose #955 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:48 verbose #956 > >
00:00:48 verbose #957 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:48 verbose #958 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:48 verbose #959 > > │ ### display                                                                  │
00:00:48 verbose #960 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:48 verbose #961 > >
00:00:48 verbose #962 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:48 verbose #963 > > nominal display t = $'std_fmt_Display<`t>'
00:00:48 verbose #964 > 00:00:47   debug #69 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/81e78e0bdceed3e7c205f7a92aab10bfde38cd8399ba0d466795f28d039a73ef/main.spi
00:00:48 verbose #965 > >
00:00:48 verbose #966 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:48 verbose #967 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:48 verbose #968 > > │ ### str                                                                      │
00:00:48 verbose #969 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:48 verbose #970 > >
00:00:48 verbose #971 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:48 verbose #972 > > nominal str = $'Str'
00:00:48 verbose #973 > 00:00:48   debug #70 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5b57fd0b5467e8da98e8684ee91f35273acfaf90ce8b857b5d6ad70cfc0e0539/main.spi
00:00:49 verbose #974 > >
00:00:49 verbose #975 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:49 verbose #976 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:49 verbose #977 > > │ ### base64_decode_error                                                      │
00:00:49 verbose #978 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:49 verbose #979 > >
00:00:49 verbose #980 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:49 verbose #981 > > nominal base64_decode_error = $'base64_DecodeError'
00:00:49 verbose #982 > 00:00:48   debug #71 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c065a341162c7d74ff2c3ffeaf9cae054d61f5238939257e718eae60596e2ca0/main.spi
00:00:49 verbose #983 > >
00:00:49 verbose #984 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:49 verbose #985 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:49 verbose #986 > > │ ### borsh_io_error                                                           │
00:00:49 verbose #987 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:49 verbose #988 > >
00:00:49 verbose #989 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:49 verbose #990 > > nominal borsh_io_error = $'borsh_io_Error'
00:00:49 verbose #991 > 00:00:48   debug #72 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fe0124b7bfcc1e03b4ac4e48cf96e1fe9d507493634ca3099cde247777ff33fd/main.spi
00:00:49 verbose #992 > >
00:00:49 verbose #993 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:49 verbose #994 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:49 verbose #995 > > │ ### utf8_error                                                               │
00:00:49 verbose #996 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:49 verbose #997 > >
00:00:49 verbose #998 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:49 verbose #999 > > nominal utf8_error = $'std_str_Utf8Error'
00:00:49 verbose #1000 > 00:00:49   debug #73 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/35172aa3acc04b261087e6b4e36d6500f842da9828404606449bb52cf73f5764/main.spi
00:00:50 verbose #1001 > >
00:00:50 verbose #1002 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:50 verbose #1003 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:50 verbose #1004 > > │ ### from_utf8_error                                                          │
00:00:50 verbose #1005 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:50 verbose #1006 > >
00:00:50 verbose #1007 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:50 verbose #1008 > > nominal from_utf8_error = $'std_string_FromUtf8Error'
00:00:50 verbose #1009 > 00:00:49   debug #74 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/811662df4e9414dea5f0a445ad5d2e7c1be9d085c6bb2a4c7865123def7228c9/main.spi
00:00:50 verbose #1010 > >
00:00:50 verbose #1011 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:50 verbose #1012 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:50 verbose #1013 > > │ ### json_value                                                               │
00:00:50 verbose #1014 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:50 verbose #1015 > >
00:00:50 verbose #1016 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:50 verbose #1017 > > nominal json_value = $'serde_json_Value'
00:00:50 verbose #1018 > 00:00:50   debug #75 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/06de4f692449cd7bca5be13ef5b6401ae57b9f04f0ed7774afa0c84a7ee066b0/main.spi
00:00:50 verbose #1019 > >
00:00:50 verbose #1020 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:50 verbose #1021 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:50 verbose #1022 > > │ ### json_error                                                               │
00:00:50 verbose #1023 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:50 verbose #1024 > >
00:00:50 verbose #1025 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:50 verbose #1026 > > nominal json_error = $'serde_json_Error'
00:00:51 verbose #1027 > 00:00:50   debug #76 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/816eab68ec1e0638e7dfb0f692e024c4680c3696d222542ca914bda4924ffa1e/main.spi
00:00:51 verbose #1028 > >
00:00:51 verbose #1029 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:51 verbose #1030 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:51 verbose #1031 > > │ ### serde_wasm_bindgen_error                                                 │
00:00:51 verbose #1032 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:51 verbose #1033 > >
00:00:51 verbose #1034 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:51 verbose #1035 > > nominal serde_wasm_bindgen_error = $'serde_wasm_bindgen_Error'
00:00:51 verbose #1036 > 00:00:50   debug #77 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6e5092947fbeb85a15fe03dbc3af11e39966c6b9ab54c4b90d886d3fb05195c0/main.spi
00:00:51 verbose #1037 > >
00:00:51 verbose #1038 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:51 verbose #1039 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:51 verbose #1040 > > │ ### js_string                                                                │
00:00:51 verbose #1041 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:51 verbose #1042 > >
00:00:51 verbose #1043 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:51 verbose #1044 > > nominal js_string = $'js_sys_JsString'
00:00:51 verbose #1045 > 00:00:51   debug #78 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b0b8673acab806c338a680ad8be31e018c2f95d711479096760d6324f8374b83/main.spi
00:00:51 verbose #1046 > >
00:00:51 verbose #1047 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:51 verbose #1048 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:51 verbose #1049 > > │ ### os_str                                                                   │
00:00:51 verbose #1050 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:51 verbose #1051 > >
00:00:51 verbose #1052 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:51 verbose #1053 > > nominal os_str = $'std_ffi_OsStr'
00:00:52 verbose #1054 > 00:00:51   debug #79 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1ddf033c5dadb9fd77b3a30cba50f36f2a112c913cb1977d2d9517dc5a187898/main.spi
00:00:52 verbose #1055 > >
00:00:52 verbose #1056 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:52 verbose #1057 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:52 verbose #1058 > > │ ### os_string                                                                │
00:00:52 verbose #1059 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:52 verbose #1060 > >
00:00:52 verbose #1061 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:52 verbose #1062 > > nominal os_string = $'std_ffi_OsString'
00:00:52 verbose #1063 > 00:00:51   debug #80 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6a4d4ebd06386f70de4656181c9162e601262000623d1a17ac249342b60838a3/main.spi
00:00:52 verbose #1064 > >
00:00:52 verbose #1065 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:52 verbose #1066 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:52 verbose #1067 > > │ ### std_string                                                               │
00:00:52 verbose #1068 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:52 verbose #1069 > >
00:00:52 verbose #1070 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:52 verbose #1071 > > nominal std_string = $'std_string_String'
00:00:52 verbose #1072 > 00:00:52   debug #81 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/709507d121e96e1f6437cf809b8e7de7fe3329c4bab139bf26952b0e5e8b6b85/main.spi
00:00:53 verbose #1073 > >
00:00:53 verbose #1074 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:53 verbose #1075 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:53 verbose #1076 > > │ ### raw_string_literal                                                       │
00:00:53 verbose #1077 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:53 verbose #1078 > >
00:00:53 verbose #1079 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:53 verbose #1080 > > inl raw_string_literal (s : string) : rust.ref' str =
00:00:53 verbose #1081 > >     !\($'"r#\\"" + !s + "\\"#"')
00:00:53 verbose #1082 > 00:00:52   debug #82 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/667c96adbab48c6ae390543699b078ba478a52c4c8b04deacae29657ca214622/main.spi
00:00:53 verbose #1083 > >
00:00:53 verbose #1084 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:53 verbose #1085 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:53 verbose #1086 > > │ ### raw_string_literal_static                                                │
00:00:53 verbose #1087 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:53 verbose #1088 > >
00:00:53 verbose #1089 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:53 verbose #1090 > > inl raw_string_literal_static (s : string) : rust.static_ref str =
00:00:53 verbose #1091 > >     !\($'"r#\\"" + !s + "\\"#"')
00:00:53 verbose #1092 > 00:00:53   debug #83 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b78f293eaf2fd1e7b21641c7f6720c6d56ac514c29e16b1678ad7e036ea22cda/main.spi
00:00:53 verbose #1093 > >
00:00:53 verbose #1094 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:53 verbose #1095 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:53 verbose #1096 > > │ ### (~#)                                                                     │
00:00:53 verbose #1097 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:53 verbose #1098 > >
00:00:53 verbose #1099 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:53 verbose #1100 > > inl (~#) s =
00:00:53 verbose #1101 > >     s |> raw_string_literal
00:00:54 verbose #1102 > 00:00:53   debug #84 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/16e197671ce12ce90d527c7a79ab81b79fd0b791d25cd4026d1daa04a3215012/main.spi
00:00:54 verbose #1103 > >
00:00:54 verbose #1104 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:54 verbose #1105 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:54 verbose #1106 > > │ ### (~##)                                                                    │
00:00:54 verbose #1107 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:54 verbose #1108 > >
00:00:54 verbose #1109 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:54 verbose #1110 > > inl (~##) s =
00:00:54 verbose #1111 > >     s |> raw_string_literal_static
00:00:54 verbose #1112 > 00:00:53   debug #85 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/de914d024f1141e29b7b49730a4bfa108e58f0cb698bd91df6e1115925812a46/main.spi
00:00:54 verbose #1113 > >
00:00:54 verbose #1114 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:54 verbose #1115 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:54 verbose #1116 > > │ ### include_str                                                              │
00:00:54 verbose #1117 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:54 verbose #1118 > >
00:00:54 verbose #1119 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:54 verbose #1120 > > inl include_str (path : string) : rust.ref' str =
00:00:54 verbose #1121 > >     !\($'"include_str\!(\\\"" + !path + "\\\")"')
00:00:54 verbose #1122 > 00:00:54   debug #86 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/56b396ac3c5acadb5ff35ef0d9440657b5bd5656f7e27465014b1f349d58f68e/main.spi
00:00:55 verbose #1123 > >
00:00:55 verbose #1124 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:55 verbose #1125 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:55 verbose #1126 > > │ ### as_str                                                                   │
00:00:55 verbose #1127 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:55 verbose #1128 > >
00:00:55 verbose #1129 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:55 verbose #1130 > > inl as_str (s : string) : rust.ref' str =
00:00:55 verbose #1131 > >     // !\\(s, $'"fable_library_rust::String_::LrcStr::as_str(&$0)"')
00:00:55 verbose #1132 > >     !\\(s, $'"&*$0"')
00:00:55 verbose #1133 > 00:00:54   debug #87 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/62f0c96fab63c9e8f31641056adc3d60d9ee9d434cf001bc32ff4e0b9ad64775/main.spi
00:00:55 verbose #1134 > >
00:00:55 verbose #1135 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:55 verbose #1136 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:55 verbose #1137 > > │ ### from_std_string                                                          │
00:00:55 verbose #1138 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:55 verbose #1139 > >
00:00:55 verbose #1140 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:55 verbose #1141 > > inl from_std_string (str : std_string) : string =
00:00:55 verbose #1142 > >     !\\(str, $'"fable_library_rust::String_::fromString($0)"')
00:00:55 verbose #1143 > 00:00:54   debug #88 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f8b1011e722fcf0753cecba8918de1149efbc8cf74319a102117226d104bf99a/main.spi
00:00:55 verbose #1144 > >
00:00:55 verbose #1145 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:55 verbose #1146 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:55 verbose #1147 > > │ ### ref_to_std_string                                                        │
00:00:55 verbose #1148 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:55 verbose #1149 > >
00:00:55 verbose #1150 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:55 verbose #1151 > > inl ref_to_std_string (str : rust.ref' str) : std_string =
00:00:55 verbose #1152 > >     !\\(str, $'"String::from($0)"')
00:00:56 verbose #1153 > 00:00:55   debug #89 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6c4eb63b5ddddd85056f62681aaa30c041f03bf66304e36bab91d3cd340a946c/main.spi
00:00:56 verbose #1154 > >
00:00:56 verbose #1155 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:56 verbose #1156 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:56 verbose #1157 > > │ ### cow_to_std_string                                                        │
00:00:56 verbose #1158 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:56 verbose #1159 > >
00:00:56 verbose #1160 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:56 verbose #1161 > > inl cow_to_std_string (str : rust.cow str) : std_string =
00:00:56 verbose #1162 > >     !\\(str, $'"String::from($0)"')
00:00:56 verbose #1163 > 00:00:55   debug #90 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9adf374e5b2a0fb3fdf5a15aeae0d7a6b68da52135485c7c3240e3bc38e6d839/main.spi
00:00:56 verbose #1164 > >
00:00:56 verbose #1165 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:56 verbose #1166 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:56 verbose #1167 > > │ ### to_std_string                                                            │
00:00:56 verbose #1168 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:56 verbose #1169 > >
00:00:56 verbose #1170 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:56 verbose #1171 > > inl to_std_string (s : string) : std_string =
00:00:56 verbose #1172 > >     s |> as_str |> ref_to_std_string
00:00:56 verbose #1173 > 00:00:56   debug #91 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c496c82f0692ac850280fcf6989d294195227684dd4d18adca089c75595f780d/main.spi
00:00:56 verbose #1174 > >
00:00:56 verbose #1175 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:56 verbose #1176 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:56 verbose #1177 > > │ ### as_str_std                                                               │
00:00:56 verbose #1178 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:56 verbose #1179 > >
00:00:56 verbose #1180 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:56 verbose #1181 > > inl as_str_std (s : std_string) : rust.ref' str =
00:00:56 verbose #1182 > >     !\\(s, $'"$0.as_str()"')
00:00:57 verbose #1183 > 00:00:56   debug #92 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/33d3525d12b1f6bd39b02dbfb69b308d10b7053d001844ff8b78439b4dc9c87f/main.spi
00:00:57 verbose #1184 > >
00:00:57 verbose #1185 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:57 verbose #1186 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:57 verbose #1187 > > │ ### into_boxed_str                                                           │
00:00:57 verbose #1188 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:57 verbose #1189 > >
00:00:57 verbose #1190 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:57 verbose #1191 > > inl into_boxed_str (s : std_string) : rust.box str =
00:00:57 verbose #1192 > >     !\\(s, $'"$0.into_boxed_str()"')
00:00:57 verbose #1193 > 00:00:56   debug #93 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4a074ab2aa588939a985ea8d98a963c7f413f68450bcd0e9027d6c694566b5c3/main.spi
00:00:57 verbose #1194 > >
00:00:57 verbose #1195 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:57 verbose #1196 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:57 verbose #1197 > > │ ### os_string_as_ref                                                         │
00:00:57 verbose #1198 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:57 verbose #1199 > >
00:00:57 verbose #1200 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:57 verbose #1201 > > inl os_string_as_ref (s : os_string) : rust.ref' os_str =
00:00:57 verbose #1202 > >     !\\(s, $'"$0.as_ref()"')
00:00:58 verbose #1203 > 00:00:57   debug #94 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c4e61f5521676ea7c9313ea0cc04b415e4f2aae462d55fed8e5944409e377a35/main.spi
00:00:58 verbose #1204 > >
00:00:58 verbose #1205 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:58 verbose #1206 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:58 verbose #1207 > > │ ### to_os_string                                                             │
00:00:58 verbose #1208 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:58 verbose #1209 > >
00:00:58 verbose #1210 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:58 verbose #1211 > > inl to_os_string (s : rust.ref' os_str) : os_string =
00:00:58 verbose #1212 > >     !\\(s, $'"$0.to_os_string()"')
00:00:58 verbose #1213 > 00:00:57   debug #95 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/57ac8bd46e078accc81cc1fa91bcbad06de44c81d875376c675ada2a8ceca9f7/main.spi
00:00:58 verbose #1214 > >
00:00:58 verbose #1215 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:58 verbose #1216 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:58 verbose #1217 > > │ ### os_to_str                                                                │
00:00:58 verbose #1218 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:58 verbose #1219 > >
00:00:58 verbose #1220 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:58 verbose #1221 > > inl os_to_str (s : os_string) : optionm'.option' (rust.ref' str) =
00:00:58 verbose #1222 > >     !\\(s, $'"$0.to_str()"')
00:00:58 verbose #1223 > 00:00:58   debug #96 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/737f063612e63c93c8f0aad48fa9bc2f56cafe4d1a9f69a00378285ccbbc857c/main.spi
00:00:58 verbose #1224 > >
00:00:58 verbose #1225 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:58 verbose #1226 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:58 verbose #1227 > > │ ### from_os_str_ref                                                          │
00:00:58 verbose #1228 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:58 verbose #1229 > >
00:00:58 verbose #1230 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:58 verbose #1231 > > inl from_os_str_ref s =
00:00:58 verbose #1232 > >     s
00:00:58 verbose #1233 > >     |> to_os_string
00:00:58 verbose #1234 > >     |> os_to_str
00:00:58 verbose #1235 > >     |> optionm'.unwrap
00:00:58 verbose #1236 > >     |> ref_to_std_string
00:00:58 verbose #1237 > >     |> from_std_string
00:00:59 verbose #1238 > 00:00:58   debug #97 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3807aefe648ebac45f28052a33efd52578527d8398880dbe4c7dc9492b7f2511/main.spi
00:00:59 verbose #1239 > >
00:00:59 verbose #1240 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:59 verbose #1241 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:59 verbose #1242 > > │ ### format_custom'                                                           │
00:00:59 verbose #1243 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:59 verbose #1244 > >
00:00:59 verbose #1245 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:59 verbose #1246 > > inl format_custom' (format : string) x : std_string =
00:00:59 verbose #1247 > >     run_target function
00:00:59 verbose #1248 > >         | Rust _ => fun () =>
00:00:59 verbose #1249 > >             !\\(x, $'"format\!(\\\"" + !format + "\\\", $0)"')
00:00:59 verbose #1250 > >         | _ => fun () => null ()
00:00:59 verbose #1251 > 00:00:58   debug #98 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6969506f84a6834f7daadeca316884871434bad7ba0b782d9c581b91ed878527/main.spi
00:00:59 verbose #1252 > >
00:00:59 verbose #1253 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:59 verbose #1254 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:59 verbose #1255 > > │ ### format'                                                                  │
00:00:59 verbose #1256 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:59 verbose #1257 > >
00:00:59 verbose #1258 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:59 verbose #1259 > > inl format' x : std_string =
00:00:59 verbose #1260 > >     run_target function
00:00:59 verbose #1261 > >         | Rust _ => fun () =>
00:00:59 verbose #1262 > >             !\\(x, $'"format\!(\\\"{}\\\", $0)"')
00:00:59 verbose #1263 > >         | _ => fun () => null ()
00:00:59 verbose #1264 > 00:00:59   debug #99 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/990391e6f2a8b72a9b460ef1066d2733799cf908c769b1451c3cac5d72331643/main.spi
00:01:00 verbose #1265 > >
00:01:00 verbose #1266 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:00 verbose #1267 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:00 verbose #1268 > > │ ### format_debug'                                                            │
00:01:00 verbose #1269 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:00 verbose #1270 > >
00:01:00 verbose #1271 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:00 verbose #1272 > > inl format_debug' x : std_string =
00:01:00 verbose #1273 > >     run_target function
00:01:00 verbose #1274 > >         | Rust _ => fun () =>
00:01:00 verbose #1275 > >             !\\(x, $'"format\!(\\\"{:?}\\\", $0)"')
00:01:00 verbose #1276 > >         | _ => fun () => null ()
00:01:00 verbose #1277 > 00:00:59   debug #100 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1f8b66d2b30629844d32bf3e6c22ed06b1efb2b35a22a0d44af404ace6bd17c8/main.spi
00:01:00 verbose #1278 > >
00:01:00 verbose #1279 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:00 verbose #1280 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:00 verbose #1281 > > │ ### format_pretty'                                                           │
00:01:00 verbose #1282 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:00 verbose #1283 > >
00:01:00 verbose #1284 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:00 verbose #1285 > > inl format_pretty' x : std_string =
00:01:00 verbose #1286 > >     run_target function
00:01:00 verbose #1287 > >         | Rust _ => fun () =>
00:01:00 verbose #1288 > >             !\\(x, $'"format\!(\\\"{:#?}\\\", $0)"')
00:01:00 verbose #1289 > >         | _ => fun () => null ()
00:01:00 verbose #1290 > 00:00:59   debug #101 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5b0bfccffa09271daa8fe998317acaeca61a0be84e16df1b79f931c9eb0195d1/main.spi
00:01:00 verbose #1291 > >
00:01:00 verbose #1292 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:00 verbose #1293 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:00 verbose #1294 > > │ ### format_hex'                                                              │
00:01:00 verbose #1295 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:00 verbose #1296 > >
00:01:00 verbose #1297 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:00 verbose #1298 > > inl format_hex' x : std_string =
00:01:00 verbose #1299 > >     !\\(x, $'"format\!(\\\"{:02x}\\\", $0)"')
00:01:00 verbose #1300 > 00:01:00   debug #102 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2a61e198866be0215c9700d5e93789542732470d762b3493db0228990fcf56fa/main.spi
00:01:01 verbose #1301 > >
00:01:01 verbose #1302 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:01 verbose #1303 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:01 verbose #1304 > > │ ### format''                                                                 │
00:01:01 verbose #1305 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:01 verbose #1306 > >
00:01:01 verbose #1307 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:01 verbose #1308 > > inl format'' (format : string) : std_string =
00:01:01 verbose #1309 > >     !\($'@@$"format\!(" + !format + ")"')
00:01:01 verbose #1310 > 00:01:00   debug #103 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dcf9f12acf4ff3ab8a96f7650c2f4daddea52b8c53f2f1c78692cfb72b45407d/main.spi
00:01:01 verbose #1311 > >
00:01:01 verbose #1312 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:01 verbose #1313 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:01 verbose #1314 > > │ ### regex                                                                    │
00:01:01 verbose #1315 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:01 verbose #1316 > >
00:01:01 verbose #1317 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:01 verbose #1318 > > nominal regex = $'regex_Regex'
00:01:01 verbose #1319 > 00:01:01   debug #104 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7a7b13f4567bfbdfdd8e18fe87312056d903e108c32a1aaf5ccb564070482400/main.spi
00:01:01 verbose #1320 > >
00:01:01 verbose #1321 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:01 verbose #1322 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:01 verbose #1323 > > │ ### regex_error                                                              │
00:01:01 verbose #1324 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:01 verbose #1325 > >
00:01:01 verbose #1326 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:01 verbose #1327 > > nominal regex_error = $'regex_Error'
00:01:02 verbose #1328 > 00:01:01   debug #105 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0cf16f9f4f4ed558744e48851498e2af3970fc0ae48b1b85e7ac9acaf14bcb0a/main.spi
00:01:02 verbose #1329 > >
00:01:02 verbose #1330 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:02 verbose #1331 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:02 verbose #1332 > > │ ### new_regex                                                                │
00:01:02 verbose #1333 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:02 verbose #1334 > >
00:01:02 verbose #1335 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:02 verbose #1336 > > inl new_regex (pattern : string) : resultm.result' regex regex_error =
00:01:02 verbose #1337 > >     !\\(pattern, $'$"regex::Regex::new(&$0)"')
00:01:02 verbose #1338 > 00:01:01   debug #106 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fb2f7fef2cbba6511829af32dcceabb294fdc6781a0b15806bc421daf9f3df3f/main.spi
00:01:02 verbose #1339 > >
00:01:02 verbose #1340 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:02 verbose #1341 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:02 verbose #1342 > > │ ### captures                                                                 │
00:01:02 verbose #1343 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:02 verbose #1344 > >
00:01:02 verbose #1345 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:02 verbose #1346 > > nominal regex_captures t = $'regex_Captures<`t>'
00:01:02 verbose #1347 > 00:01:02   debug #107 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8f1448a43774a91430dd7caceb0f3432c35d1aa9af5146f0f40c5d2df6e1beea/main.spi
00:01:03 verbose #1348 > >
00:01:03 verbose #1349 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:03 verbose #1350 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:03 verbose #1351 > > │ ### regex_capture_matches                                                    │
00:01:03 verbose #1352 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:03 verbose #1353 > >
00:01:03 verbose #1354 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:03 verbose #1355 > > nominal regex_capture_matches = $'regex_CaptureMatches'
00:01:03 verbose #1356 > 00:01:02   debug #108 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/14dd492a54c4d7bb23511123cfec25eca27cdfd00399cdcdbae281b6e8b87646/main.spi
00:01:03 verbose #1357 > >
00:01:03 verbose #1358 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:03 verbose #1359 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:03 verbose #1360 > > │ ### regex_capture_names                                                      │
00:01:03 verbose #1361 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:03 verbose #1362 > >
00:01:03 verbose #1363 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:03 verbose #1364 > > nominal regex_capture_names = $'regex_CaptureNames'
00:01:03 verbose #1365 > >
00:01:03 verbose #1366 > > inl regex_capture_names (regex : regex) : regex_capture_names =
00:01:03 verbose #1367 > >     !\\(regex, $'$"$0.capture_names()"')
00:01:03 verbose #1368 > 00:01:03   debug #109 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/455cfe98048f287b85c54ab40d87a77971ff449e7ab605d8c23285f64e03f063/main.spi
00:01:03 verbose #1369 > >
00:01:03 verbose #1370 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:03 verbose #1371 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:03 verbose #1372 > > │ ### match'                                                                   │
00:01:03 verbose #1373 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:03 verbose #1374 > >
00:01:03 verbose #1375 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:03 verbose #1376 > > nominal match' = $'regex_Match'
00:01:04 verbose #1377 > 00:01:03   debug #110 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/351d3beaea28eb4f576f6f9ededf8e5fc3a74027d37402cba052acdf455fb166/main.spi
00:01:04 verbose #1378 > >
00:01:04 verbose #1379 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:04 verbose #1380 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:04 verbose #1381 > > │ ### regex_captures_iter                                                      │
00:01:04 verbose #1382 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:04 verbose #1383 > >
00:01:04 verbose #1384 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:04 verbose #1385 > > inl regex_captures_iter (s : rust.static_ref (rust.mut' std_string)) (regex :
00:01:04 verbose #1386 > > regex) : regex_capture_matches =
00:01:04 verbose #1387 > >     !\($'$"!regex.captures_iter(!s)"')
00:01:04 verbose #1388 > 00:01:03   debug #111 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9a88f525ac811099194e26abf8ed8edac04627ec6e9f474a4ce3bd72c53233cb/main.spi
00:01:04 verbose #1389 > >
00:01:04 verbose #1390 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:04 verbose #1391 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:04 verbose #1392 > > │ ### regex_captures                                                           │
00:01:04 verbose #1393 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:04 verbose #1394 > >
00:01:04 verbose #1395 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:04 verbose #1396 > > inl regex_captures (s : string) (regex : regex) : am'.vec (mapm.hash_map string
00:01:04 verbose #1397 > > string) =
00:01:04 verbose #1398 > >     // inl s = join s
00:01:04 verbose #1399 > >     // !\\(regex, $'$"$0.captures_iter(&*!s).map(|caps|
00:01:04 verbose #1400 > > $0.capture_names().map(|x| x.and_then(|n| Some((n,
00:01:04 verbose #1401 > > caps.name(n)?.as_str())))).flatten().collect()).collect()"')
00:01:04 verbose #1402 > >
00:01:04 verbose #1403 > >     inl s = s |> to_std_string
00:01:04 verbose #1404 > >     fun () =>
00:01:04 verbose #1405 > >         inl matches =
00:01:04 verbose #1406 > >             inl s = s |> rust.new_box |> rust.box_leak
00:01:04 verbose #1407 > >             regex |> regex_captures_iter s
00:01:04 verbose #1408 > >
00:01:04 verbose #1409 > >         (!\($'"true; let _result : Vec<_> = !matches.map(|x| { //"') : bool) |>
00:01:04 verbose #1410 > > ignore
00:01:04 verbose #1411 > >
00:01:04 verbose #1412 > >         inl fn (match' : rust.static_ref (rust.mut' (regex_captures
00:01:04 verbose #1413 > > rust.static_lifetime))) : mapm.hash_map string string =
00:01:04 verbose #1414 > >
00:01:04 verbose #1415 > >             inl names = regex |> regex_capture_names
00:01:04 verbose #1416 > >
00:01:04 verbose #1417 > >             (!\($'"true; let _result : std::collections::HashMap<_, _> =
00:01:04 verbose #1418 > > !names.map(|x| { //"') : bool) |> ignore
00:01:04 verbose #1419 > >
00:01:04 verbose #1420 > >             inl fn (n : string) : pair string string =
00:01:04 verbose #1421 > >                 inl n' = n |> rust.clone
00:01:04 verbose #1422 > >
00:01:04 verbose #1423 > >                 new_pair n' !\\(n, $'$"!match'.name(&$0).map(|x|
00:01:04 verbose #1424 > > x.as_str()).unwrap_or(\\\"\\\").to_string().into()"')
00:01:04 verbose #1425 > >
00:01:04 verbose #1426 > >             (!\\(fn !\($'"x.unwrap_or(\\\"\\\").to_string().into()"'), $'"true;
00:01:04 verbose #1427 > > $0 }).map(|x| std::sync::Arc::try_unwrap(x).unwrap_or_else(|x|
00:01:04 verbose #1428 > > (*x).clone())).collect()"') : bool) |> ignore
00:01:04 verbose #1429 > >
00:01:04 verbose #1430 > >             !\($'"_result"')
00:01:04 verbose #1431 > >
00:01:04 verbose #1432 > >         inl x =
00:01:04 verbose #1433 > >             !\($'$"x"')
00:01:04 verbose #1434 > >             |> rust.new_box
00:01:04 verbose #1435 > >             |> rust.box_leak
00:01:04 verbose #1436 > >
00:01:04 verbose #1437 > >         (!\\(fn x, $'"true; $0 }).collect::<Vec<_>>()"') : bool) |> ignore
00:01:04 verbose #1438 > >
00:01:04 verbose #1439 > >         !\($'"_result"')
00:01:04 verbose #1440 > >
00:01:04 verbose #1441 > >     |> rust.capture_move
00:01:04 verbose #1442 > 00:01:04   debug #112 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c0a1bb10d9620cb6fc1ad6d87b93f4193d5a415127b07481004050456386f24c/main.spi
00:01:05 verbose #1443 > >
00:01:05 verbose #1444 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:05 verbose #1445 > > //// test
00:01:05 verbose #1446 > > ///! rust -d regex
00:01:05 verbose #1447 > >
00:01:05 verbose #1448 > > types ()
00:01:05 verbose #1449 > > "fable-library-ts\\.(?<a>[[\\d.]]+)$"
00:01:05 verbose #1450 > > |> new_regex
00:01:05 verbose #1451 > > |> resultm.unwrap'
00:01:05 verbose #1452 > > |> regex_captures "fable_modules/fable-library-ts.4.17.0"
00:01:05 verbose #1453 > > |> am'.vec_map (mapm.to_vec >> am'.vec_sort_by_key id)
00:01:05 verbose #1454 > > |> sm'.format_debug
00:01:05 verbose #1455 > > |> _assert_eq (
00:01:05 verbose #1456 > >     ;[[
00:01:05 verbose #1457 > >         ;[[ "", ""; "a", "4.17.0" ]]
00:01:05 verbose #1458 > >         |> am'.to_vec
00:01:05 verbose #1459 > >     ]]
00:01:05 verbose #1460 > >     |> am'.to_vec
00:01:05 verbose #1461 > >     |> sm'.format_debug
00:01:05 verbose #1462 > > )
00:01:05 verbose #1463 > 00:01:04   debug #113 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/09a9b9f11614bb89d7bf4e62a43b76b3f931ba453343c18f6cb0a8aacb8d9be8/main.spi
00:01:08 verbose #1464 > >
00:01:08 verbose #1465 > > ╭─[ 3.96s - return value ]─────────────────────────────────────────────────────╮
00:01:08 verbose #1466 > > │ assert_eq / actual: "[[("", ""), ("a", "4.17.0")]]" / expected: "[[("", ""), │
00:01:08 verbose #1467 > > │ ("a", "4.17.0")]]"                                                           │
00:01:08 verbose #1468 > > │                                                                              │
00:01:08 verbose #1469 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:08 verbose #1470 > >
00:01:08 verbose #1471 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:08 verbose #1472 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:08 verbose #1473 > > │ ### replace_regex'                                                           │
00:01:08 verbose #1474 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:08 verbose #1475 > >
00:01:08 verbose #1476 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:08 verbose #1477 > > inl replace_regex' (pattern : string) (replacement : a i32 string) (s : string)
00:01:08 verbose #1478 > > : string =
00:01:08 verbose #1479 > >     run_target function
00:01:08 verbose #1480 > >         | Rust (Native) => fun () =>
00:01:08 verbose #1481 > >             inl s = join s
00:01:08 verbose #1482 > >             inl replacement = join replacement
00:01:08 verbose #1483 > >             inl regex = pattern |> new_regex |> resultm.unwrap'
00:01:08 verbose #1484 > >             !\\((regex, #s, replacement), $'$"$0.replace_all($1, &*$2)"')
00:01:08 verbose #1485 > >             |> cow_to_std_string
00:01:08 verbose #1486 > >             |> from_std_string
00:01:08 verbose #1487 > >         | _ => fun () => null ()
00:01:09 verbose #1488 > 00:01:08   debug #114 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/676a26926d51e4824c1f4beb1c59e1cea79b2600ad53e21b8522ca9b674a7001/main.spi
00:01:09 verbose #1489 > >
00:01:09 verbose #1490 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:09 verbose #1491 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:09 verbose #1492 > > │ ### serialize                                                                │
00:01:09 verbose #1493 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:09 verbose #1494 > >
00:01:09 verbose #1495 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:09 verbose #1496 > > inl serialize forall t. (x : t) : resultm.result' std_string json_error =
00:01:09 verbose #1497 > >     !\($'"serde_json::to_string(&!x)"')
00:01:09 verbose #1498 > 00:01:08   debug #115 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6abaead21aa5d72c881cf7e8675f49ab7f26f12cf3d68114046a1d108bb577af/main.spi
00:01:09 verbose #1499 > >
00:01:09 verbose #1500 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:09 verbose #1501 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:09 verbose #1502 > > │ ### deserialize                                                              │
00:01:09 verbose #1503 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:09 verbose #1504 > >
00:01:09 verbose #1505 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:09 verbose #1506 > > inl deserialize forall t. (json : string) : resultm.result' t std_string =
00:01:09 verbose #1507 > >     inl json = join json
00:01:09 verbose #1508 > >     inl json = json |> as_str
00:01:09 verbose #1509 > >     !\($'"serde_json::from_str(&!json)"')
00:01:09 verbose #1510 > >     |> resultm.map_error' fun (x : json_error) => x |> format'
00:01:10 verbose #1511 > 00:01:09   debug #116 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c63a1143a09dc0915d993f2c9e04f0146ff1179e48dab8bef2bf369cfbf56a15/main.spi
00:01:10 verbose #1512 > >
00:01:10 verbose #1513 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:10 verbose #1514 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:10 verbose #1515 > > │ ### borsh_deserialize                                                        │
00:01:10 verbose #1516 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:10 verbose #1517 > >
00:01:10 verbose #1518 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:10 verbose #1519 > > inl borsh_deserialize forall t. (data : array_base u8) : resultm.result' t
00:01:10 verbose #1520 > > std_string =
00:01:10 verbose #1521 > >     inl data = data |> am'.as_slice
00:01:10 verbose #1522 > >     (!\($'"true; let mut !data = !data"') : bool) |> ignore
00:01:10 verbose #1523 > >     inl result = !\($'"borsh::BorshDeserialize::deserialize(&mut !data)"')
00:01:10 verbose #1524 > >     result
00:01:10 verbose #1525 > >     |> resultm.map_error' fun (x : borsh_io_error) => x |> format'
00:01:10 verbose #1526 > 00:01:09   debug #117 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6385d362385bb35dbf445332f93ee514b4a4f28ffed04edaca4c6f3668e3fa2a/main.spi
00:01:10 verbose #1527 > >
00:01:10 verbose #1528 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:10 verbose #1529 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:10 verbose #1530 > > │ ### deserialize_vec                                                          │
00:01:10 verbose #1531 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:10 verbose #1532 > >
00:01:10 verbose #1533 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:10 verbose #1534 > > inl deserialize_vec (value : json_value) : resultm.result' (am'.vec u8)
00:01:10 verbose #1535 > > std_string =
00:01:10 verbose #1536 > >     inl value = join value
00:01:10 verbose #1537 > >     !\($'"serde_json::from_value(!value)"')
00:01:10 verbose #1538 > >     |> resultm.map_error' fun (x : json_error) => x |> format'
00:01:10 verbose #1539 > 00:01:10   debug #118 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/59a58d3d20deac286edbaaff55b2ef8718f80d2abc2916d6ca5bc4aa36c1cc0f/main.spi
00:01:11 verbose #1540 > >
00:01:11 verbose #1541 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:11 verbose #1542 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:11 verbose #1543 > > │ ### encode_uri_component                                                     │
00:01:11 verbose #1544 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:11 verbose #1545 > >
00:01:11 verbose #1546 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:11 verbose #1547 > > inl encode_uri_component (s : std_string) : js_string =
00:01:11 verbose #1548 > >     !\($'"js_sys::encode_uri_component(&!s)"')
00:01:11 verbose #1549 > 00:01:10   debug #119 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e8c91c3b19d2b1add84caa86fff96dea4fa696f984f287ce214816b90c639158/main.spi
00:01:11 verbose #1550 > >
00:01:11 verbose #1551 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:11 verbose #1552 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:11 verbose #1553 > > │ ### strip_prefix                                                             │
00:01:11 verbose #1554 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:11 verbose #1555 > >
00:01:11 verbose #1556 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:11 verbose #1557 > > inl strip_prefix (prefix : char) (s : std_string) : optionm'.option' (rust.ref'
00:01:11 verbose #1558 > > str) =
00:01:11 verbose #1559 > >     inl s = join s
00:01:11 verbose #1560 > >     !\($'"!s.strip_prefix(!prefix)"')
00:01:11 verbose #1561 > 00:01:10   debug #120 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6fb94de5df2fbd0ce068194c3dcc97bee8e41e92485946cc2e000b1ea4838d4f/main.spi
00:01:11 verbose #1562 > >
00:01:11 verbose #1563 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:11 verbose #1564 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:11 verbose #1565 > > │ ### str_from_utf8                                                            │
00:01:11 verbose #1566 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:11 verbose #1567 > >
00:01:11 verbose #1568 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:11 verbose #1569 > > inl str_from_utf8 (bytes : rust.ref' (am'.slice u8)) : resultm.result'
00:01:11 verbose #1570 > > (rust.ref' str) utf8_error =
00:01:11 verbose #1571 > >     !\\(bytes, $'"std::str::from_utf8($0)"')
00:01:12 verbose #1572 > 00:01:11   debug #121 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d7f7ba346932ab0bce4d1151659dd4cf389948a62b7320e092212c476d827030/main.spi
00:01:12 verbose #1573 > >
00:01:12 verbose #1574 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:12 verbose #1575 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:12 verbose #1576 > > │ ### string_from_utf8                                                         │
00:01:12 verbose #1577 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:12 verbose #1578 > >
00:01:12 verbose #1579 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:12 verbose #1580 > > inl string_from_utf8 (bytes : am'.vec u8) : resultm.result' std_string
00:01:12 verbose #1581 > > from_utf8_error =
00:01:12 verbose #1582 > >     inl bytes = join bytes
00:01:12 verbose #1583 > >     !\\(bytes, $'"std::string::String::from_utf8($0)"')
00:01:12 verbose #1584 > 00:01:11   debug #122 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/788d8433056654fe16cf9ce2fba2204451eeb07524a233889e17f658cfae166c/main.spi
00:01:12 verbose #1585 > >
00:01:12 verbose #1586 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:12 verbose #1587 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:12 verbose #1588 > > │ ### base64_decode                                                            │
00:01:12 verbose #1589 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:12 verbose #1590 > >
00:01:12 verbose #1591 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:12 verbose #1592 > > inl base64_decode (s : std_string) : result std_string std_string =
00:01:12 verbose #1593 > >     fun () =>
00:01:12 verbose #1594 > >         inl s = join s
00:01:12 verbose #1595 > >         inl bytes : resultm.result' (am'.vec u8) base64_decode_error =
00:01:12 verbose #1596 > >
00:01:12 verbose #1597 > > !\($'"base64::Engine::decode(&base64::engine::general_purpose::STANDARD, !s)"')
00:01:12 verbose #1598 > >         bytes
00:01:12 verbose #1599 > >         |> resultm.map_error' format'
00:01:12 verbose #1600 > >         |> resultm.try'
00:01:12 verbose #1601 > >         |> string_from_utf8
00:01:12 verbose #1602 > >         |> resultm.map_error' format'
00:01:12 verbose #1603 > >     |> fun x =>
00:01:12 verbose #1604 > >         join x ()
00:01:12 verbose #1605 > >         |> resultm.unbox
00:01:12 verbose #1606 > 00:01:12   debug #123 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3e3e3551629f89cdcdfbafa93ce444d2c07e5c6ea34d2f893d778dcca387e634/main.spi
00:01:13 verbose #1607 > >
00:01:13 verbose #1608 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:13 verbose #1609 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:13 verbose #1610 > > │ ### encoding'                                                                │
00:01:13 verbose #1611 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:13 verbose #1612 > >
00:01:13 verbose #1613 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:13 verbose #1614 > > nominal encoding' = $'encoding_rs_Encoding'
00:01:13 verbose #1615 > 00:01:12   debug #124 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3eb9b2936595f7ea31e78e074bdeca8b6d7fc12596f1933cf83337de5b01b87e/main.spi
00:01:13 verbose #1616 > >
00:01:13 verbose #1617 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:13 verbose #1618 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:13 verbose #1619 > > │ ### encoding_utf8'                                                           │
00:01:13 verbose #1620 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:13 verbose #1621 > >
00:01:13 verbose #1622 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:13 verbose #1623 > > inl encoding_utf8' () : rust.ref' encoding' =
00:01:13 verbose #1624 > >     !\($'"encoding_rs::UTF_8"')
00:01:13 verbose #1625 > 00:01:12   debug #125 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3df3d6b5a83a9aa00e1d68bfa22e8bd4114be61c4f862b67c3e66bbb24adbb49/main.spi
00:01:13 verbose #1626 > >
00:01:13 verbose #1627 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:13 verbose #1628 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:13 verbose #1629 > > │ ### encoding_1252                                                            │
00:01:13 verbose #1630 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:13 verbose #1631 > >
00:01:13 verbose #1632 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:13 verbose #1633 > > inl encoding_1252' () : rust.ref' encoding' =
00:01:13 verbose #1634 > >     !\($'"encoding_rs::WINDOWS_1252"')
00:01:14 verbose #1635 > 00:01:13   debug #126 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/76c0266c4d0c462abd194079c691e317b9034875e280c994f59bafee04da6e84/main.spi
00:01:14 verbose #1636 > >
00:01:14 verbose #1637 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:14 verbose #1638 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:14 verbose #1639 > > │ ### encoding_encode                                                          │
00:01:14 verbose #1640 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:14 verbose #1641 > >
00:01:14 verbose #1642 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:14 verbose #1643 > > inl encoding_encode' (encoding : rust.ref' encoding') (text : string) : rust.cow
00:01:14 verbose #1644 > > (am'.slice u8) =
00:01:14 verbose #1645 > >     !\\((encoding, text), $'"$0.encode(&*$1).0"')
00:01:14 verbose #1646 > 00:01:13   debug #127 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/54ebf2f56a53f5d6598d88046c04efccdc498e9c5ed55ce6e6214ce8a1b69dbb/main.spi
00:01:14 verbose #1647 > >
00:01:14 verbose #1648 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:14 verbose #1649 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:14 verbose #1650 > > │ ### utf8_decode                                                              │
00:01:14 verbose #1651 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:14 verbose #1652 > >
00:01:14 verbose #1653 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:14 verbose #1654 > > inl utf8_decode (data : am'.vec u8) : resultm.result' std_string (rust.cow str)
00:01:14 verbose #1655 > > =
00:01:14 verbose #1656 > >     !\($'$"encoding::Encoding::decode(encoding::all::UTF_8, &!data,
00:01:14 verbose #1657 > > encoding::DecoderTrap::Replace)"')
00:01:14 verbose #1658 > 00:01:14   debug #128 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/74b4c0389ee7af474bc12a7913679fef2eb2d647f9de97f52d2429dc7ff539a3/main.spi
00:01:14 verbose #1659 > >
00:01:14 verbose #1660 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:14 verbose #1661 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:14 verbose #1662 > > │ ### windows                                                                  │
00:01:14 verbose #1663 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:14 verbose #1664 > >
00:01:14 verbose #1665 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:14 verbose #1666 > > nominal windows t = $'std_slice_Windows<`t>'
00:01:14 verbose #1667 > >
00:01:14 verbose #1668 > > inl windows (len : unativeint) (source : am'.vec u8) : windows u8 =
00:01:14 verbose #1669 > >     inl source = source |> rust.new_box |> rust.box_leak
00:01:14 verbose #1670 > >     // inl source' = source |> rust.clone
00:01:14 verbose #1671 > >     inl result = !\\(len, $'"<[[_]]>::windows(!source, $0)"')
00:01:14 verbose #1672 > >     // source |> rust.drop
00:01:14 verbose #1673 > >     result
00:01:15 verbose #1674 > 00:01:14   debug #129 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f0b5e101ac1e60046a6cd8fea10fae302e4b91f656aaaef319b4c917b80763c3/main.spi
00:01:15 verbose #1675 > >
00:01:15 verbose #1676 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:15 verbose #1677 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:15 verbose #1678 > > │ ### any                                                                      │
00:01:15 verbose #1679 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:15 verbose #1680 > >
00:01:15 verbose #1681 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:15 verbose #1682 > > inl any forall t. (fn : string -> bool) (source : windows t) : bool =
00:01:15 verbose #1683 > >     (!\($'"true; let mut !source = !source"') : bool) |> ignore
00:01:15 verbose #1684 > >     inl fn' x =
00:01:15 verbose #1685 > >         x
00:01:15 verbose #1686 > >         |> str_from_utf8
00:01:15 verbose #1687 > >         |> resultm.unwrap_or' #""
00:01:15 verbose #1688 > >         |> ref_to_std_string
00:01:15 verbose #1689 > >         |> from_std_string
00:01:15 verbose #1690 > >         |> fn
00:01:15 verbose #1691 > >     !\\(fn', $'"!source.any(move |x| $0(x))"')
00:01:15 verbose #1692 > 00:01:14   debug #130 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a8ebe51567eebb373d7624756cf146c2aefd02d36bc790095a6139470a3b0614/main.spi
00:01:15 verbose #1693 > >
00:01:15 verbose #1694 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:15 verbose #1695 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:15 verbose #1696 > > │ ### slice_contains                                                           │
00:01:15 verbose #1697 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:15 verbose #1698 > >
00:01:15 verbose #1699 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:15 verbose #1700 > > inl slice_contains (text : string) (source : am'.vec u8) : bool =
00:01:15 verbose #1701 > >     fun () =>
00:01:15 verbose #1702 > >         inl source = join source
00:01:15 verbose #1703 > >         source
00:01:15 verbose #1704 > >         |> windows (text |> length |> (fun x => x : i32) |> convert)
00:01:15 verbose #1705 > >         |> any ((=.) text)
00:01:15 verbose #1706 > >     |> fun x => join x ()
00:01:15 verbose #1707 > 00:01:15   debug #131 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d0baf6b94208045e29bb922b93a7490ee3257de01692dfeef2c7ea91046712b9/main.spi
00:01:16 verbose #1708 > >
00:01:16 verbose #1709 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:16 verbose #1710 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:16 verbose #1711 > > │ ### as_bytes                                                                 │
00:01:16 verbose #1712 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:16 verbose #1713 > >
00:01:16 verbose #1714 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:16 verbose #1715 > > inl as_bytes (text : string) : rust.ref' (am'.slice u8) =
00:01:16 verbose #1716 > >     inl text = join text
00:01:16 verbose #1717 > >     !\($'"!text.as_bytes()"')
00:01:16 verbose #1718 > 00:01:15   debug #132 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/db51c364e939350bfd8b0d95c242a193406419149db03004900e19b798f5372e/main.spi
00:01:16 verbose #1719 > >
00:01:16 verbose #1720 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:16 verbose #1721 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:16 verbose #1722 > > │ ## python                                                                    │
00:01:16 verbose #1723 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:16 verbose #1724 > >
00:01:16 verbose #1725 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:16 verbose #1726 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:16 verbose #1727 > > │ ### encode_utf8                                                              │
00:01:16 verbose #1728 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:16 verbose #1729 > >
00:01:16 verbose #1730 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:16 verbose #1731 > > inl encode_utf8 (s : string) : string =
00:01:16 verbose #1732 > >     inl encoding = "utf-8"
00:01:16 verbose #1733 > >     backend_switch {
00:01:16 verbose #1734 > >         Fsharp = fun () =>
00:01:16 verbose #1735 > >             open python_operators
00:01:16 verbose #1736 > >             !\\((s, encoding), $'"$0.encode($1)"') : string
00:01:16 verbose #1737 > >         Python = fun () =>
00:01:16 verbose #1738 > >             $'!s.encode(!encoding)' : string
00:01:16 verbose #1739 > >     }
00:01:16 verbose #1740 > 00:01:15   debug #133 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e42c5a963f8e9cd6d192e7c4c879bc40a7b38959ea49b58c1180ce76e7fc3691/main.spi
00:01:16 verbose #1741 > >
00:01:16 verbose #1742 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:16 verbose #1743 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:16 verbose #1744 > > │ ## sm'                                                                       │
00:01:16 verbose #1745 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:16 verbose #1746 > >
00:01:16 verbose #1747 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:16 verbose #1748 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:16 verbose #1749 > > │ ### contains                                                                 │
00:01:16 verbose #1750 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:16 verbose #1751 > >
00:01:16 verbose #1752 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:16 verbose #1753 > > inl contains (value : string) (s : string) : bool =
00:01:16 verbose #1754 > >     backend_switch {
00:01:16 verbose #1755 > >         Fsharp = fun () => $'!s.Contains !value ' : bool
00:01:16 verbose #1756 > >         Python = fun () => $'!value in !s ' : bool
00:01:16 verbose #1757 > >     }
00:01:17 verbose #1758 > 00:01:16   debug #134 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/38e0a6b4c275b4c6354d0d07d786cfee852bf9ea433ebd6a1268b36e4e01d78e/main.spi
00:01:17 verbose #1759 > >
00:01:17 verbose #1760 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:17 verbose #1761 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:17 verbose #1762 > > │ ### to_string result t u                                                     │
00:01:17 verbose #1763 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:17 verbose #1764 > >
00:01:17 verbose #1765 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:17 verbose #1766 > > instance to_string result t u = fun x =>
00:01:17 verbose #1767 > >     real
00:01:17 verbose #1768 > >         open rust
00:01:17 verbose #1769 > >         typecase (t * u) with
00:01:17 verbose #1770 > >         | string * string =>
00:01:17 verbose #1771 > >             match x with
00:01:17 verbose #1772 > >             | Ok x => x
00:01:17 verbose #1773 > >             | Error x => $'"sm\'.to_string result / Error: " + !x + ""' : string
00:01:17 verbose #1774 > >         | std_string * std_string =>
00:01:17 verbose #1775 > >             match x with
00:01:17 verbose #1776 > >             | Ok x => from_std_string x
00:01:17 verbose #1777 > >             | Error x => $'"sm\'.to_string result / Error: " + string !x + ""' :
00:01:17 verbose #1778 > > string
00:01:17 verbose #1779 > >         | _ => obj_to_string `u x
00:01:17 verbose #1780 > 00:01:16   debug #135 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/06178ae6fe967a77ea54248998019977f8aad31cdad47dd94b33b82bc5b190df/main.spi
00:01:17 verbose #1781 > >
00:01:17 verbose #1782 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:17 verbose #1783 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:17 verbose #1784 > > │ ### format_exception                                                         │
00:01:17 verbose #1785 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:17 verbose #1786 > >
00:01:17 verbose #1787 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:17 verbose #1788 > > inl format_exception (ex : exn) : string =
00:01:17 verbose #1789 > >     run_target function
00:01:17 verbose #1790 > >         | Fsharp (Native) => fun () => $'$"{!ex.GetType ()}: {!ex.Message}"'
00:01:17 verbose #1791 > >         | _ => fun () => ex |> format_debug
00:01:17 verbose #1792 > 00:01:17   debug #136 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1fc43c8b988398b99b521bead21698a27c1a477d718c214fef3799621cad6763/main.spi
00:01:18 verbose #1793 > >
00:01:18 verbose #1794 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:18 verbose #1795 > > //// test
00:01:18 verbose #1796 > > ///! fsharp
00:01:18 verbose #1797 > > ///! rust
00:01:18 verbose #1798 > > ///! typescript
00:01:18 verbose #1799 > > ///! python
00:01:18 verbose #1800 > >
00:01:18 verbose #1801 > > fun () => failwith "test"
00:01:18 verbose #1802 > > |> _throws
00:01:18 verbose #1803 > > |> optionm.value
00:01:18 verbose #1804 > > |> sm'.format_exception
00:01:18 verbose #1805 > > |> _assert_eq (run_target function
00:01:18 verbose #1806 > >     | Fsharp _ => fun () => "System.Exception: test"
00:01:18 verbose #1807 > >     | Rust _ => fun () => "Exception { message: \"test\" }"
00:01:18 verbose #1808 > >     | TypeScript _ => fun () => "Error: test"
00:01:18 verbose #1809 > >     | Python _ => fun () => "test"
00:01:18 verbose #1810 > >     | _ => fun () => null ()
00:01:18 verbose #1811 > > )
00:01:18 verbose #1812 > 00:01:17   debug #137 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/313b21a484cd9331048f1f6eac7d256bca8bc9316a874bc28611712a207a8b7f/main.spi
00:01:21 verbose #1813 > >
00:01:21 verbose #1814 > > ╭─[ 3.76s - return value ]─────────────────────────────────────────────────────╮
00:01:21 verbose #1815 > > │ .rs output:                                                                  │
00:01:21 verbose #1816 > > │ assert_eq / actual: "Exception { message: "test" }" / expected: "Exception { │
00:01:21 verbose #1817 > > │ message: "test" }"                                                           │
00:01:21 verbose #1818 > > │                                                                              │
00:01:21 verbose #1819 > > │ .ts output:                                                                  │
00:01:21 verbose #1820 > > │ assert_eq / actual: Error: test / expected: Error: test                      │
00:01:21 verbose #1821 > > │                                                                              │
00:01:21 verbose #1822 > > │ .py output:                                                                  │
00:01:21 verbose #1823 > > │ assert_eq / actual: test / expected: test                                    │
00:01:21 verbose #1824 > > │                                                                              │
00:01:21 verbose #1825 > > │                                                                              │
00:01:21 verbose #1826 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:21 verbose #1827 > >
00:01:21 verbose #1828 > > ╭─[ 3.76s - stdout ]───────────────────────────────────────────────────────────╮
00:01:21 verbose #1829 > > │ .fsx output:                                                                 │
00:01:21 verbose #1830 > > │ assert_eq / actual: "System.Exception: test" / expected: "System.Exception:  │
00:01:21 verbose #1831 > > │ test"                                                                        │
00:01:21 verbose #1832 > > │                                                                              │
00:01:21 verbose #1833 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:21 verbose #1834 > >
00:01:21 verbose #1835 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:21 verbose #1836 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:21 verbose #1837 > > │ ### range                                                                    │
00:01:21 verbose #1838 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:21 verbose #1839 > >
00:01:21 verbose #1840 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:21 verbose #1841 > > inl range forall t. (start : am'.range t) (end : am'.range t) s =
00:01:21 verbose #1842 > >     inl start, end =
00:01:21 verbose #1843 > >         match start, end with
00:01:21 verbose #1844 > >         | Start start, End fn =>
00:01:21 verbose #1845 > >             start, s |> length' |> fn
00:01:21 verbose #1846 > >         | End start_fn, End end_fn =>
00:01:21 verbose #1847 > >             inl len = s |> length'
00:01:21 verbose #1848 > >             start_fn len, end_fn len
00:01:21 verbose #1849 > >     s |> slice (start |> i32) (end |> i32)
00:01:22 verbose #1850 > 00:01:21   debug #138 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d27e6b166e5c09e5ab5138b4aa578f0dc60572da0f08b2093a69fa1c3267214b/main.spi
00:01:22 verbose #1851 > >
00:01:22 verbose #1852 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:22 verbose #1853 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:22 verbose #1854 > > │ ### concat_list                                                              │
00:01:22 verbose #1855 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:22 verbose #1856 > >
00:01:22 verbose #1857 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:22 verbose #1858 > > inl concat_list s list =
00:01:22 verbose #1859 > >     list
00:01:22 verbose #1860 > >     |> listm'.box
00:01:22 verbose #1861 > >     |> seq.of_list'
00:01:22 verbose #1862 > >     |> concat s
00:01:22 verbose #1863 > 00:01:21   debug #139 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/830d14ed71dbe8460a31dec6789ad5020c4b4e9d92c47a4f8add35612661b6e6/main.spi
00:01:22 verbose #1864 > >
00:01:22 verbose #1865 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:22 verbose #1866 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:22 verbose #1867 > > │ ### ellipsis_end                                                             │
00:01:22 verbose #1868 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:22 verbose #1869 > >
00:01:22 verbose #1870 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:22 verbose #1871 > > let ellipsis_end (max : i64) (s : string) =
00:01:22 verbose #1872 > >     inl len = sm.length s
00:01:22 verbose #1873 > >     if len <= max
00:01:22 verbose #1874 > >     then s
00:01:22 verbose #1875 > >     else
00:01:22 verbose #1876 > >         inl half = f64 max / 2
00:01:22 verbose #1877 > >         inl start_half = half |> math.ceil |> i64
00:01:22 verbose #1878 > >         inl end_half = half |> math.floor |> i64
00:01:22 verbose #1879 > >         inl start = s |> slice 0 (start_half - 1)
00:01:22 verbose #1880 > >         inl end = s |> slice (len - end_half) (len - 1)
00:01:22 verbose #1881 > >         (a ;[[start; "..."; end]] : _ i32 _)
00:01:22 verbose #1882 > >         |> seq.of_array
00:01:22 verbose #1883 > >         |> concat ""
00:01:22 verbose #1884 > 00:01:22   debug #140 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cfca24391b6ce552ff273a6801709968e705ef2ba78553690b0236b1b6a4d05e/main.spi
00:01:23 verbose #1885 > >
00:01:23 verbose #1886 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:23 verbose #1887 > > //// test
00:01:23 verbose #1888 > >
00:01:23 verbose #1889 > > "12345"
00:01:23 verbose #1890 > > |> ellipsis_end 2
00:01:23 verbose #1891 > > |> _assert_eq "1...5"
00:01:23 verbose #1892 > >
00:01:23 verbose #1893 > > "12345"
00:01:23 verbose #1894 > > |> ellipsis_end 3
00:01:23 verbose #1895 > > |> _assert_eq "12...5"
00:01:23 verbose #1896 > >
00:01:23 verbose #1897 > > "1234567"
00:01:23 verbose #1898 > > |> ellipsis_end 4
00:01:23 verbose #1899 > > |> _assert_eq "12...67"
00:01:23 verbose #1900 > 00:01:22   debug #141 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b1b11f115b7be378cf1c37d95deb83b97866bd95a747237be017eb3721e121b8/main.spi
00:01:23 verbose #1901 > >
00:01:23 verbose #1902 > > ╭─[ 559.03ms - stdout ]────────────────────────────────────────────────────────╮
00:01:23 verbose #1903 > > │ assert_eq / actual: "1...5" / expected: "1...5"                              │
00:01:23 verbose #1904 > > │ assert_eq / actual: "12...5" / expected: "12...5"                            │
00:01:23 verbose #1905 > > │ assert_eq / actual: "12...67" / expected: "12...67"                          │
00:01:23 verbose #1906 > > │                                                                              │
00:01:23 verbose #1907 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:23 verbose #1908 > >
00:01:23 verbose #1909 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:23 verbose #1910 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:23 verbose #1911 > > │ ### format_ellipsis                                                          │
00:01:23 verbose #1912 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:23 verbose #1913 > >
00:01:23 verbose #1914 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:23 verbose #1915 > > inl format_ellipsis s =
00:01:23 verbose #1916 > >     s
00:01:23 verbose #1917 > >     |> format_debug
00:01:23 verbose #1918 > >     |> ellipsis_end 400
00:01:23 verbose #1919 > 00:01:23   debug #142 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/677e3f75fcd9e556183a0388a0760d9f9a9538de080abb79b8f7f4529910e6a0/main.spi
00:01:24 verbose #1920 > >
00:01:24 verbose #1921 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:24 verbose #1922 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:24 verbose #1923 > > │ ### replace_regex                                                            │
00:01:24 verbose #1924 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:24 verbose #1925 > >
00:01:24 verbose #1926 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:24 verbose #1927 > > inl replace_regex (pattern : string) (replacement : string) (s : string) :
00:01:24 verbose #1928 > > string =
00:01:24 verbose #1929 > >     inl replacement = join replacement
00:01:24 verbose #1930 > >     run_target function
00:01:24 verbose #1931 > >         | Fsharp (Native) => fun () =>
00:01:24 verbose #1932 > >             inl pattern = join pattern
00:01:24 verbose #1933 > >             $'System.Text.RegularExpressions.Regex.Replace (!s, !pattern,
00:01:24 verbose #1934 > > !replacement)'
00:01:24 verbose #1935 > >         | Rust (Native) => fun () =>
00:01:24 verbose #1936 > >             inl s = join s
00:01:24 verbose #1937 > >             inl regex = pattern |> new_regex |> resultm.unwrap'
00:01:24 verbose #1938 > >             !\\((regex, s, replacement), $'$"$0.replace_all(&$1, &*$2)"')
00:01:24 verbose #1939 > >             |> cow_to_std_string
00:01:24 verbose #1940 > >             |> from_std_string
00:01:24 verbose #1941 > >         | _ => fun () => null ()
00:01:24 verbose #1942 > 00:01:23   debug #143 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ee1ed3175682418810c2a2a71ce7a2bf8dc9eca32189fb7cdd7222cf765c21c2/main.spi
00:01:24 verbose #1943 > >
00:01:24 verbose #1944 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:24 verbose #1945 > > //// test
00:01:24 verbose #1946 > >
00:01:24 verbose #1947 > > " 123"
00:01:24 verbose #1948 > > |> replace_regex "\\s\\w2" ""
00:01:24 verbose #1949 > > |> _assert_eq "3"
00:01:24 verbose #1950 > 00:01:24   debug #144 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/50c2bf875357689b74a24a6c51ca0676f9051fd3f53e52790f80de1f34721f4d/main.spi
00:01:24 verbose #1951 > >
00:01:24 verbose #1952 > > ╭─[ 421.18ms - stdout ]────────────────────────────────────────────────────────╮
00:01:24 verbose #1953 > > │ assert_eq / actual: "3" / expected: "3"                                      │
00:01:24 verbose #1954 > > │                                                                              │
00:01:24 verbose #1955 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:24 verbose #1956 > >
00:01:24 verbose #1957 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:24 verbose #1958 > > //// test
00:01:24 verbose #1959 > > ///! rust -d regex
00:01:24 verbose #1960 > >
00:01:24 verbose #1961 > > types ()
00:01:24 verbose #1962 > > " 123"
00:01:24 verbose #1963 > > |> replace_regex "\\s\\w2" ""
00:01:24 verbose #1964 > > |> _assert_eq "3"
00:01:25 verbose #1965 > 00:01:24   debug #145 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2445ea068eed971aa2d47d1c93a3b7baaa13a93407ddc0829b7579b25a76ec0f/main.spi
00:01:28 verbose #1966 > >
00:01:28 verbose #1967 > > ╭─[ 3.28s - return value ]─────────────────────────────────────────────────────╮
00:01:28 verbose #1968 > > │ assert_eq / actual: "3" / expected: "3"                                      │
00:01:28 verbose #1969 > > │                                                                              │
00:01:28 verbose #1970 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:28 verbose #1971 > >
00:01:28 verbose #1972 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:28 verbose #1973 > > //// test
00:01:28 verbose #1974 > > ///! rust -d regex
00:01:28 verbose #1975 > >
00:01:28 verbose #1976 > > types ()
00:01:28 verbose #1977 > > "    let main args =\n        ()\n"
00:01:28 verbose #1978 > > |> replace_regex $'@@"(?P<a> *)(?P<b>let\\s+main\\s+.*?\\s*=)"'
00:01:28 verbose #1979 > > "$a[[<EntryPoint>]]\n$a$b"
00:01:28 verbose #1980 > > |> _assert_eq "    [[<EntryPoint>]]\n    let main args =\n        ()\n"
00:01:28 verbose #1981 > 00:01:27   debug #146 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e0547075f162b0fa23d23ad325266462ac3ac4c37fae55022f50d23143ab7905/main.spi
00:01:31 verbose #1982 > >
00:01:31 verbose #1983 > > ╭─[ 3.39s - return value ]─────────────────────────────────────────────────────╮
00:01:31 verbose #1984 > > │ assert_eq / actual: "    [<EntryPoint>]                                      │
00:01:31 verbose #1985 > > │     let main args =                                                          │
00:01:31 verbose #1986 > > │         ()                                                                   │
00:01:31 verbose #1987 > > │ " / expected: "    [<EntryPoint>]                                            │
00:01:31 verbose #1988 > > │     let main args =                                                          │
00:01:31 verbose #1989 > > │         ()                                                                   │
00:01:31 verbose #1990 > > │ "                                                                            │
00:01:31 verbose #1991 > > │                                                                              │
00:01:31 verbose #1992 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:31 verbose #1993 > >
00:01:31 verbose #1994 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:31 verbose #1995 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:31 verbose #1996 > > │ ## main                                                                      │
00:01:31 verbose #1997 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:31 verbose #1998 > >
00:01:31 verbose #1999 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:31 verbose #2000 > > inl main () =
00:01:31 verbose #2001 > >     types ()
00:01:31 verbose #2002 > >     $'let contains x = !contains x' : ()
00:01:31 verbose #2003 > >     $'let ends_with x = !ends_with x' : ()
00:01:31 verbose #2004 > >     $'let pad_left x = !pad_left x' : ()
00:01:31 verbose #2005 > >     $'let pad_right x = !pad_right x' : ()
00:01:31 verbose #2006 > >     $'let replace x = !replace x' : ()
00:01:31 verbose #2007 > >     $'let replace_regex x = !replace_regex x' : ()
00:01:31 verbose #2008 > >     inl slice (a : i32) (b : i32) c = slice a b c
00:01:31 verbose #2009 > >     $'let slice x = !slice x' : ()
00:01:31 verbose #2010 > >     $'let split x = !split x' : ()
00:01:31 verbose #2011 > >     $'let split_string x = !split_string x' : ()
00:01:31 verbose #2012 > >     $'let starts_with x = !starts_with x' : ()
00:01:31 verbose #2013 > >     $'let substring x = !substring x' : ()
00:01:31 verbose #2014 > >     $'let to_lower x = !to_lower x' : ()
00:01:31 verbose #2015 > >     $'let to_upper x = !to_upper x' : ()
00:01:31 verbose #2016 > >     $'let trim x = !trim x' : ()
00:01:31 verbose #2017 > >     inl trim_end x = (a x : _ int _) |> am'.to_list' |> listm'.unbox |> trim_end
00:01:31 verbose #2018 > >     $'let trim_end x = !trim_end x' : ()
00:01:31 verbose #2019 > >     inl trim_start x = (a x : _ int _) |> am'.to_list' |> listm'.unbox |>
00:01:31 verbose #2020 > > trim_start
00:01:31 verbose #2021 > >     $'let trim_start x = !trim_start x' : ()
00:01:31 verbose #2022 > >     $'let ellipsis x = !ellipsis x' : ()
00:01:31 verbose #2023 > >     $'let ellipsis_end x = !ellipsis_end x' : ()
00:01:31 verbose #2024 > >     $'let format_exception x = !format_exception x' : ()
00:01:31 verbose #2025 > >     $'let concat_array_trailing x = !concat_array_trailing x' : ()
00:01:31 verbose #2026 > >     inl concat a (b : seq.seq' string) = concat a b
00:01:31 verbose #2027 > >     $'let concat x = !concat x' : ()
00:01:31 verbose #2028 > >     $'let join\' x = !join' x' : ()
00:01:31 verbose #2029 > >     $'let to_char_array x = !to_char_array x' : ()
00:01:31 verbose #2030 > 00:01:31   debug #147 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/46fedc3095b8f2f96995ec5e1ee9ea7fc70f98da05c38b0e3cdaa45ea959a933/main.spi
00:01:32 verbose #2031 > >
00:01:32 verbose #2032 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:32 verbose #2033 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:32 verbose #2034 > > │ ## rust                                                                      │
00:01:32 verbose #2035 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:32 verbose #2036 > >
00:01:32 verbose #2037 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:32 verbose #2038 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:32 verbose #2039 > > │ ### to_string std_string                                                     │
00:01:32 verbose #2040 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:32 verbose #2041 > >
00:01:32 verbose #2042 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:32 verbose #2043 > > open rust
00:01:32 verbose #2044 > > instance to_string std_string = from_std_string
00:01:32 verbose #2045 > 00:01:31   debug #148 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/45eb623669e53b6ad84e35709fb69f899f1c4df7a6435ecab2a1921892cc94dc/main.spi
00:01:32 verbose #2046 > 00:01:30 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 92143 }
00:01:32 verbose #2047 > 00:01:31   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/sm'.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/sm'.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:34 verbose #2048 > 00:01:33 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/sm'.dib.ipynb to html
00:01:34 verbose #2049 > 00:01:33 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:01:34 verbose #2050 > 00:01:33 verbose #7 !   validate(nb)
00:01:37 verbose #2051 > 00:01:35 verbose #8 ! [NbConvertApp] Writing 560547 bytes to c:\home\git\polyglot\lib\spiral\sm'.dib.html
00:01:37 verbose #2052 > 00:01:36 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 637 }
00:01:37 verbose #2053 > 00:01:36   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 637 }
00:01:37 verbose #2054 > 00:01:36   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/sm''.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/sm''.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:38 verbose #2055 > 00:01:37 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:01:38 verbose #2056 > 00:01:37   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:01:39 verbose #2057 > 00:01:37   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 92839 }
00:01:39   debug #2058 runtime.execute_with_options_async / { exit_code = 0; output_length = 99213 }
00:01:39   debug #3 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path sm'.dib --retries 3
00:01:39   debug #2059 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path rust.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:39 verbose #2060 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "rust.dib", "--retries", "3"])) }
00:01:39 verbose #2061 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/rust.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/rust.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/rust.dib" --output-path "c:/home/git/polyglot/lib/spiral/rust.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:01:41 verbose #2062 > >
00:01:41 verbose #2063 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:41 verbose #2064 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:41 verbose #2065 > > │ # rust                                                                       │
00:01:41 verbose #2066 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:45 verbose #2067 > >
00:01:45 verbose #2068 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:45 verbose #2069 > > //// test
00:01:45 verbose #2070 > >
00:01:45 verbose #2071 > > open testing
00:01:45 verbose #2072 > 00:01:45   debug #149 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7845de436c12d0ca65282fe0cd65832468ca943e72feba50e6b1bb441e251a/main.spi
00:01:46 verbose #2073 > >
00:01:46 verbose #2074 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:46 verbose #2075 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:46 verbose #2076 > > │ ## types                                                                     │
00:01:46 verbose #2077 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:46 verbose #2078 > >
00:01:46 verbose #2079 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:46 verbose #2080 > > inl types () =
00:01:46 verbose #2081 > >     backend_switch {
00:01:46 verbose #2082 > >         Fsharp = fun () =>
00:01:46 verbose #2083 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:01:46 verbose #2084 > > Fable.Core.Emit(\"core::any::Any\")>]]\n#endif\ntype core_any_Any = class end"
00:01:46 verbose #2085 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:01:46 verbose #2086 > > Fable.Core.Emit(\"_\")>]]\n#endif\ntype core_ops_Try<'T> = class end"
00:01:46 verbose #2087 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:01:46 verbose #2088 > > Fable.Core.Emit(\"Func0<$0>\")>]]\n#endif\ntype Func0<'T> = class end"
00:01:46 verbose #2089 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:01:46 verbose #2090 > > Fable.Core.Emit(\"Func1<$0, $1>\")>]]\n#endif\ntype Func0<'T, 'U> = class end"
00:01:46 verbose #2091 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:01:46 verbose #2092 > > Fable.Core.Emit(\"Box<$0>\")>]]\n#endif\ntype Box<'T> = class end"
00:01:46 verbose #2093 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:01:46 verbose #2094 > > Fable.Core.Emit(\"dyn $0\")>]]\n#endif\ntype Dyn<'T> = class end"
00:01:46 verbose #2095 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:01:46 verbose #2096 > > Fable.Core.Emit(\"Send\")>]]\n#endif\ntype Send<'T> = class end"
00:01:46 verbose #2097 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:01:46 verbose #2098 > > Fable.Core.Emit(\"Fn() -> $0\")>]]\n#endif\ntype Fn<'T> = class end"
00:01:46 verbose #2099 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:01:46 verbose #2100 > > Fable.Core.Emit(\"Fn()\")>]]\n#endif\ntype FnUnit = class end"
00:01:46 verbose #2101 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:01:46 verbose #2102 > > Fable.Core.Emit(\"FnOnce() -> $0\")>]]\n#endif\ntype FnOnce<'T> = class end"
00:01:46 verbose #2103 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:01:46 verbose #2104 > > Fable.Core.Emit(\"Fn($0)\")>]]\n#endif\ntype ActionFn<'T> = class end"
00:01:46 verbose #2105 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:01:46 verbose #2106 > > Fable.Core.Emit(\"Fn($0, $1)\")>]]\n#endif\ntype ActionFn2<'T, 'U> = class end"
00:01:46 verbose #2107 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:01:46 verbose #2108 > > Fable.Core.Emit(\"impl $0\")>]]\n#endif\ntype Impl<'T> = class end"
00:01:46 verbose #2109 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:01:46 verbose #2110 > > Fable.Core.Emit(\"mut $0\")>]]\n#endif\ntype Mut<'T> = class end"
00:01:46 verbose #2111 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:01:46 verbose #2112 > > Fable.Core.Emit(\"&$0\")>]]\n#endif\ntype Ref<'T> = class end"
00:01:46 verbose #2113 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:01:46 verbose #2114 > > Fable.Core.Emit(\"$0 + $1\")>]]\n#endif\ntype LifetimeJoin<'T, 'U> = class end"
00:01:46 verbose #2115 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:01:46 verbose #2116 > > Fable.Core.Emit(\"'static\")>]]\n#endif\ntype StaticLifetime = class end"
00:01:46 verbose #2117 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:01:46 verbose #2118 > > Fable.Core.Emit(\"$0\")>]]\n#endif\ntype LifetimeRef<'T> = class end"
00:01:46 verbose #2119 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:01:46 verbose #2120 > > Fable.Core.Emit(\"$0 $1\")>]]\n#endif\ntype Lifetime<'T, 'U> = class end"
00:01:46 verbose #2121 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:01:46 verbose #2122 > > Fable.Core.Emit(\"MutCell<$0>\")>]]\n#endif\ntype MutCell<'T> = class end"
00:01:46 verbose #2123 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:01:46 verbose #2124 > > Fable.Core.Emit(\"std::any::Any\")>]]\n#endif\ntype std_any_Any = class end"
00:01:46 verbose #2125 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:01:46 verbose #2126 > > Fable.Core.Emit(\"std::borrow::Cow<$0>\")>]]\n#endif\ntype std_borrow_Cow<'T> =
00:01:46 verbose #2127 > > class end"
00:01:46 verbose #2128 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:01:46 verbose #2129 > > Fable.Core.Emit(\"std::cell::RefCell<$0>\")>]]\n#endif\ntype
00:01:46 verbose #2130 > > std_cell_RefCell<'T> = class end"
00:01:46 verbose #2131 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:01:46 verbose #2132 > > Fable.Core.Emit(\"std::pin::Pin<$0>\")>]]\n#endif\ntype std_pin_Pin<'T> = class
00:01:46 verbose #2133 > > end"
00:01:46 verbose #2134 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:01:46 verbose #2135 > > Fable.Core.Emit(\"std::rc::Rc<$0>\")>]]\n#endif\ntype std_rc_Rc<'T> = class end"
00:01:46 verbose #2136 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:01:46 verbose #2137 > > Fable.Core.Emit(\"std::rc::Weak<$0>\")>]]\n#endif\ntype std_rc_Weak<'T> = class
00:01:46 verbose #2138 > > end"
00:01:46 verbose #2139 > >         Python = fun () => ()
00:01:46 verbose #2140 > >     }
00:01:46 verbose #2141 > 00:01:45   debug #150 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/17c830e2b83a7a3fa4529bbd60dc16d2107058710cfbcca3875967daa9b12252/main.spi
00:01:46 verbose #2142 > >
00:01:46 verbose #2143 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:46 verbose #2144 > > inl types () =
00:01:46 verbose #2145 > >     types ()
00:01:46 verbose #2146 > 00:01:46   debug #151 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/69df2d1afcea11cc1f764bb6b59cf81a22c30add6a08af627238838068eb7ea4/main.spi
00:01:47 verbose #2147 > >
00:01:47 verbose #2148 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:47 verbose #2149 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:47 verbose #2150 > > │ ## rust                                                                      │
00:01:47 verbose #2151 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:47 verbose #2152 > >
00:01:47 verbose #2153 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:47 verbose #2154 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:47 verbose #2155 > > │ ###                                                                          │
00:01:47 verbose #2156 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:47 verbose #2157 > >
00:01:47 verbose #2158 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:47 verbose #2159 > > nominal any = $'core_any_Any'
00:01:47 verbose #2160 > 00:01:46   debug #152 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8180989d1907a45894e49334e8757d4e05896ba13e4df86c57fad16224cae7d0/main.spi
00:01:47 verbose #2161 > >
00:01:47 verbose #2162 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:47 verbose #2163 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:47 verbose #2164 > > │ ###                                                                          │
00:01:47 verbose #2165 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:47 verbose #2166 > >
00:01:47 verbose #2167 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:47 verbose #2168 > > nominal try t = $'core_ops_Try<`t>'
00:01:47 verbose #2169 > 00:01:46   debug #153 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b2988a6cfd02c870f5707882619484835c92d14a6423c5316ecf96d68e1f4593/main.spi
00:01:47 verbose #2170 > >
00:01:47 verbose #2171 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:47 verbose #2172 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:47 verbose #2173 > > │ ###                                                                          │
00:01:47 verbose #2174 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:47 verbose #2175 > >
00:01:47 verbose #2176 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:47 verbose #2177 > > nominal cow t = $'std_borrow_Cow<`t>'
00:01:48 verbose #2178 > 00:01:47   debug #154 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8ecd8b6453ea4abfae27558043788f524cdec7d3cba5996ee41ecb4169d5603b/main.spi
00:01:48 verbose #2179 > >
00:01:48 verbose #2180 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:48 verbose #2181 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:48 verbose #2182 > > │ ###                                                                          │
00:01:48 verbose #2183 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:48 verbose #2184 > >
00:01:48 verbose #2185 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:48 verbose #2186 > > nominal ref_cell t = $'std_cell_RefCell<`t>'
00:01:48 verbose #2187 > 00:01:47   debug #155 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c86c5649753441af203f327caa3d75997d9c0ea198e06cc996975a7815b84066/main.spi
00:01:48 verbose #2188 > >
00:01:48 verbose #2189 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:48 verbose #2190 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:48 verbose #2191 > > │ ###                                                                          │
00:01:48 verbose #2192 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:48 verbose #2193 > >
00:01:48 verbose #2194 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:48 verbose #2195 > > nominal rc t = $'std_rc_Rc<`t>'
00:01:48 verbose #2196 > 00:01:48   debug #156 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3cbbbfae795dd62b7055191b21e50c116f56526e3055823cd4ad21b6766d8d3b/main.spi
00:01:48 verbose #2197 > >
00:01:48 verbose #2198 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:48 verbose #2199 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:48 verbose #2200 > > │ ###                                                                          │
00:01:48 verbose #2201 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:48 verbose #2202 > >
00:01:48 verbose #2203 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:48 verbose #2204 > > nominal lifetime_join' (t : * -> *) u = $'LifetimeRef<`(t u)>'
00:01:49 verbose #2205 > 00:01:48   debug #157 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0ea0926380638f338c2e350c2589fa90e93902eac934307898604af2374acf8b/main.spi
00:01:49 verbose #2206 > >
00:01:49 verbose #2207 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:49 verbose #2208 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:49 verbose #2209 > > │ ###                                                                          │
00:01:49 verbose #2210 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:49 verbose #2211 > >
00:01:49 verbose #2212 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:49 verbose #2213 > > nominal lifetime_join t u = $'LifetimeJoin<`t, `u>'
00:01:49 verbose #2214 > 00:01:48   debug #158 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6c6397be9dfbfde050d4126ee905f75afe6d5866347e39c785c7e9cffe4a78bb/main.spi
00:01:49 verbose #2215 > >
00:01:49 verbose #2216 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:49 verbose #2217 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:49 verbose #2218 > > │ ###                                                                          │
00:01:49 verbose #2219 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:49 verbose #2220 > >
00:01:49 verbose #2221 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:49 verbose #2222 > > nominal lifetime t u = $'Lifetime<`t, `u>'
00:01:49 verbose #2223 > 00:01:49   debug #159 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/001bacf75ee972c39f9bba82646bfdba2387cceb7ded23aaecf35e84c3d401cd/main.spi
00:01:49 verbose #2224 > >
00:01:49 verbose #2225 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:49 verbose #2226 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:49 verbose #2227 > > │ ###                                                                          │
00:01:49 verbose #2228 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:49 verbose #2229 > >
00:01:49 verbose #2230 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:49 verbose #2231 > > nominal static_lifetime = $'StaticLifetime'
00:01:50 verbose #2232 > 00:01:49   debug #160 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/46ddf0ad633613e75fee33a83873e5e544df843571966091dffe2165c0ce97b2/main.spi
00:01:50 verbose #2233 > >
00:01:50 verbose #2234 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:50 verbose #2235 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:50 verbose #2236 > > │ ###                                                                          │
00:01:50 verbose #2237 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:50 verbose #2238 > >
00:01:50 verbose #2239 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:50 verbose #2240 > > nominal ref t = $'Ref<`t>'
00:01:50 verbose #2241 > 00:01:49   debug #161 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a53a0bd855c589bfad3a36d41403d03d7350ab1a2648f0c181091e9eee8c1fc7/main.spi
00:01:50 verbose #2242 > >
00:01:50 verbose #2243 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:50 verbose #2244 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:50 verbose #2245 > > │ ###                                                                          │
00:01:50 verbose #2246 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:50 verbose #2247 > >
00:01:50 verbose #2248 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:50 verbose #2249 > > nominal static_ref t = ref (lifetime static_lifetime t)
00:01:50 verbose #2250 > 00:01:50   debug #162 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3754d851e33200b94866a8d3978e61f869442def4096b441cf3093bcd8e59b79/main.spi
00:01:51 verbose #2251 > >
00:01:51 verbose #2252 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:51 verbose #2253 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:51 verbose #2254 > > │ ###                                                                          │
00:01:51 verbose #2255 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:51 verbose #2256 > >
00:01:51 verbose #2257 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:51 verbose #2258 > > nominal weak_rc t = $'std_rc_Weak<`t>'
00:01:51 verbose #2259 > 00:01:50   debug #163 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/71df13614b4a6e06e60bd06463a98eea58d92f10207af511c962022be74af286/main.spi
00:01:51 verbose #2260 > >
00:01:51 verbose #2261 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:51 verbose #2262 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:51 verbose #2263 > > │ ###                                                                          │
00:01:51 verbose #2264 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:51 verbose #2265 > >
00:01:51 verbose #2266 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:51 verbose #2267 > > nominal box t = $'Box<`t>'
00:01:51 verbose #2268 > 00:01:50   debug #164 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/79c091f52c5ce2d43b259fa271803485ce9b2ae710a3e772389dee7d7b889ad8/main.spi
00:01:51 verbose #2269 > >
00:01:51 verbose #2270 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:51 verbose #2271 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:51 verbose #2272 > > │ ###                                                                          │
00:01:51 verbose #2273 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:51 verbose #2274 > >
00:01:51 verbose #2275 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:51 verbose #2276 > > nominal mut_cell t = $'MutCell<`t>'
00:01:51 verbose #2277 > 00:01:51   debug #165 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f2d4e395c705ef41fbc438b136ffe3aea8e10356f3f8d13e364673f686b1ccbf/main.spi
00:01:51 verbose #2278 > >
00:01:51 verbose #2279 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:51 verbose #2280 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:51 verbose #2281 > > │ ###                                                                          │
00:01:51 verbose #2282 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:51 verbose #2283 > >
00:01:51 verbose #2284 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:51 verbose #2285 > > nominal pin t = $'std_pin_Pin<`t>'
00:01:52 verbose #2286 > 00:01:51   debug #166 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/85c41ecf1f109c5eccafbb482d64a20eda1d0fb0380bb66475893f73dd1d7532/main.spi
00:01:52 verbose #2287 > >
00:01:52 verbose #2288 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:52 verbose #2289 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:52 verbose #2290 > > │ ###                                                                          │
00:01:52 verbose #2291 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:52 verbose #2292 > >
00:01:52 verbose #2293 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:52 verbose #2294 > > nominal dyn' t = $'Dyn<`t>'
00:01:52 verbose #2295 > 00:01:51   debug #167 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4db43bd113541e4efd16cd482cd4178bf6b88bde742e97ed507ddd096db7e0f7/main.spi
00:01:52 verbose #2296 > >
00:01:52 verbose #2297 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:52 verbose #2298 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:52 verbose #2299 > > │ ###                                                                          │
00:01:52 verbose #2300 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:52 verbose #2301 > >
00:01:52 verbose #2302 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:52 verbose #2303 > > nominal fn' t = $'Fn<`t>'
00:01:52 verbose #2304 > 00:01:52   debug #168 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f561800d73a33a1584fbbb74507bd81183c60092cda1731c366b696bc877471e/main.spi
00:01:52 verbose #2305 > >
00:01:52 verbose #2306 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:52 verbose #2307 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:52 verbose #2308 > > │ ###                                                                          │
00:01:52 verbose #2309 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:52 verbose #2310 > >
00:01:52 verbose #2311 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:52 verbose #2312 > > nominal action_fn t = $'ActionFn<`t>'
00:01:53 verbose #2313 > 00:01:52   debug #169 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/64a31d7ef1790b8edac795d55552ea6d69b82749ed372ccf329a14c6e90d1510/main.spi
00:01:53 verbose #2314 > >
00:01:53 verbose #2315 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:53 verbose #2316 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:53 verbose #2317 > > │ ###                                                                          │
00:01:53 verbose #2318 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:53 verbose #2319 > >
00:01:53 verbose #2320 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:53 verbose #2321 > > nominal action_fn2 t u = $'ActionFn2<`t, `u>'
00:01:53 verbose #2322 > 00:01:52   debug #170 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/807a25b3eab3024397449e3de4acdea52b5eb6504a969c69015c836c4f2ce0a4/main.spi
00:01:53 verbose #2323 > >
00:01:53 verbose #2324 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:53 verbose #2325 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:53 verbose #2326 > > │ ###                                                                          │
00:01:53 verbose #2327 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:53 verbose #2328 > >
00:01:53 verbose #2329 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:53 verbose #2330 > > nominal fn_once t = $'FnOnce<`t>'
00:01:53 verbose #2331 > 00:01:53   debug #171 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/052ca5bf6ba969c3c8a9729bd5b9a7177775f19b9099441710ded372fb9bf524/main.spi
00:01:54 verbose #2332 > >
00:01:54 verbose #2333 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:54 verbose #2334 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:54 verbose #2335 > > │ ###                                                                          │
00:01:54 verbose #2336 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:54 verbose #2337 > >
00:01:54 verbose #2338 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:54 verbose #2339 > > nominal fn_unit = $'FnUnit'
00:01:54 verbose #2340 > 00:01:53   debug #172 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/acff4f58438619fedf504b2bf41a82d5307f916cbe2a379355f979e633d8d431/main.spi
00:01:54 verbose #2341 > >
00:01:54 verbose #2342 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:54 verbose #2343 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:54 verbose #2344 > > │ ###                                                                          │
00:01:54 verbose #2345 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:54 verbose #2346 > >
00:01:54 verbose #2347 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:54 verbose #2348 > > nominal func0 t = $'Func0<`t>'
00:01:54 verbose #2349 > 00:01:53   debug #173 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f2271868163beaf4559fb0edd2bd7fc831b7865c1d8e0b23488c2461453cd584/main.spi
00:01:54 verbose #2350 > >
00:01:54 verbose #2351 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:54 verbose #2352 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:54 verbose #2353 > > │ ###                                                                          │
00:01:54 verbose #2354 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:54 verbose #2355 > >
00:01:54 verbose #2356 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:54 verbose #2357 > > nominal func1 t u =
00:01:54 verbose #2358 > >     `(
00:01:54 verbose #2359 > >         typecase t with
00:01:54 verbose #2360 > >         | () => `func0 `u
00:01:54 verbose #2361 > >         | _ => $'' : $'Func0<`t, `u>'
00:01:54 verbose #2362 > >     )
00:01:55 verbose #2363 > 00:01:54   debug #174 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5dcb5b3603658f11d2d6eee66eb0e34163af59a0daa5f7219f86c2fd7c18cb51/main.spi
00:01:55 verbose #2364 > >
00:01:55 verbose #2365 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:55 verbose #2366 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:55 verbose #2367 > > │ ###                                                                          │
00:01:55 verbose #2368 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:55 verbose #2369 > >
00:01:55 verbose #2370 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:55 verbose #2371 > > nominal impl t = $'Impl<`t>'
00:01:55 verbose #2372 > 00:01:54   debug #175 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d6220d585bfb69937ae528002c64cecdd39c402f9a69b983fd2cdbf3e2630118/main.spi
00:01:55 verbose #2373 > >
00:01:55 verbose #2374 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:55 verbose #2375 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:55 verbose #2376 > > │ ###                                                                          │
00:01:55 verbose #2377 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:55 verbose #2378 > >
00:01:55 verbose #2379 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:55 verbose #2380 > > nominal mut' t = $'Mut<`t>'
00:01:55 verbose #2381 > 00:01:55   debug #176 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/97dd097d1f5793ff9334cbdc59e4f32335c05bd7e93be637209cc9a2b61212c9/main.spi
00:01:55 verbose #2382 > >
00:01:55 verbose #2383 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:55 verbose #2384 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:55 verbose #2385 > > │ ###                                                                          │
00:01:55 verbose #2386 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:55 verbose #2387 > >
00:01:55 verbose #2388 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:55 verbose #2389 > > nominal ref' t = $'Ref<`t>'
00:01:56 verbose #2390 > 00:01:55   debug #177 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/18fb855aa45920dc22eb7e3c50ffb879365b9fc596d16821457c5c4a941cd26c/main.spi
00:01:56 verbose #2391 > >
00:01:56 verbose #2392 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:56 verbose #2393 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:56 verbose #2394 > > │ ###                                                                          │
00:01:56 verbose #2395 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:56 verbose #2396 > >
00:01:56 verbose #2397 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:56 verbose #2398 > > nominal send t = lifetime_join t $'Send<`t>'
00:01:56 verbose #2399 > 00:01:55   debug #178 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0dea76cbf8e856f5a534eff813e0f62f78cfdac999533058d227af9dd2b8c0ef/main.spi
00:01:56 verbose #2400 > >
00:01:56 verbose #2401 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:56 verbose #2402 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:56 verbose #2403 > > │ ### emit_expr                                                                │
00:01:56 verbose #2404 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:56 verbose #2405 > >
00:01:56 verbose #2406 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:56 verbose #2407 > > inl emit_expr forall a t. (args : a) (code : string) : t =
00:01:56 verbose #2408 > >     real
00:01:56 verbose #2409 > >         $'Fable.Core.RustInterop.emitRustExpr !args !code ' : t
00:01:56 verbose #2410 > 00:01:56   debug #179 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/12c1e17491a0ed3219718f0534659d2b3738da2ac12b845d73865f6d379f8976/main.spi
00:01:56 verbose #2411 > >
00:01:56 verbose #2412 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:56 verbose #2413 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:56 verbose #2414 > > │ ### (~!\\)                                                                   │
00:01:56 verbose #2415 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:56 verbose #2416 > >
00:01:56 verbose #2417 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:56 verbose #2418 > > inl (~!\) forall t. (code : string) : t =
00:01:56 verbose #2419 > >     emit_expr () code
00:01:57 verbose #2420 > 00:01:56   debug #180 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e8267b6d6f578ad588f45681ef55896d065c13e509638a6000d61e04b1eb6761/main.spi
00:01:57 verbose #2421 > >
00:01:57 verbose #2422 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:57 verbose #2423 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:57 verbose #2424 > > │ ### (~!\\\\)                                                                 │
00:01:57 verbose #2425 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:57 verbose #2426 > >
00:01:57 verbose #2427 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:57 verbose #2428 > > inl (~!\\) forall t u. ((args : t), (code : string)) : u =
00:01:57 verbose #2429 > >     emit_expr args code
00:01:57 verbose #2430 > 00:01:56   debug #181 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bd241648c818115fcd595b26a2dce290a002aa1d5d3c859db630b5573a49c5d0/main.spi
00:01:57 verbose #2431 > >
00:01:57 verbose #2432 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:57 verbose #2433 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:57 verbose #2434 > > │ ### emit                                                                     │
00:01:57 verbose #2435 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:57 verbose #2436 > >
00:01:57 verbose #2437 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:57 verbose #2438 > > inl emit forall t. (x : t) : t =
00:01:57 verbose #2439 > >     !\\(x, $'"$0"')
00:01:57 verbose #2440 > 00:01:57   debug #182 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/346851ee39afe68948af8d75a3803cb87a8736ab43a851c44f7f6273fb33a383/main.spi
00:01:58 verbose #2441 > >
00:01:58 verbose #2442 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:58 verbose #2443 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:58 verbose #2444 > > │ ### emit'                                                                    │
00:01:58 verbose #2445 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:58 verbose #2446 > >
00:01:58 verbose #2447 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:58 verbose #2448 > > inl emit' forall t. (x : t) : t =
00:01:58 verbose #2449 > >     !\\(x, $'"let !x = $0"')
00:01:58 verbose #2450 > >     x
00:01:58 verbose #2451 > 00:01:57   debug #183 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6722a1e32f31f112072c075d4a60134e300060f6b93ec8d8f7b2ac5cc43cc657/main.spi
00:01:58 verbose #2452 > >
00:01:58 verbose #2453 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:58 verbose #2454 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:58 verbose #2455 > > │ ### clone                                                                    │
00:01:58 verbose #2456 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:58 verbose #2457 > >
00:01:58 verbose #2458 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:58 verbose #2459 > > inl clone forall t. (x : t) : t =
00:01:58 verbose #2460 > >     !\\(x, $'"$0.clone()"')
00:01:58 verbose #2461 > 00:01:57   debug #184 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8d7cc2fffe257ca02bf1395e5fdad5abf952deeb1678a37f78a13bc866999999/main.spi
00:01:58 verbose #2462 > >
00:01:58 verbose #2463 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:58 verbose #2464 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:58 verbose #2465 > > │ ### dbg                                                                      │
00:01:58 verbose #2466 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:58 verbose #2467 > >
00:01:58 verbose #2468 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:58 verbose #2469 > > inl dbg forall t. (x : t) : t =
00:01:58 verbose #2470 > >     !\\(x, $'"dbg\!($0)"')
00:01:59 verbose #2471 > 00:01:58   debug #185 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bc7021a6486258898981a984abae6c785491de69f5c5346cbc9dc7704ec597a2/main.spi
00:01:59 verbose #2472 > >
00:01:59 verbose #2473 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:59 verbose #2474 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:59 verbose #2475 > > │ ### new_box                                                                  │
00:01:59 verbose #2476 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:59 verbose #2477 > >
00:01:59 verbose #2478 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:59 verbose #2479 > > inl new_box forall t. (x : t) : box t =
00:01:59 verbose #2480 > >     !\\(x, $'"Box::new($0)"')
00:01:59 verbose #2481 > 00:01:58   debug #186 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fe739b31cb227ec83ca6eee6820f0e5231145d1a3930a12ff87dbd9151c21b15/main.spi
00:01:59 verbose #2482 > >
00:01:59 verbose #2483 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:59 verbose #2484 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:59 verbose #2485 > > │ ### new_rc                                                                   │
00:01:59 verbose #2486 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:59 verbose #2487 > >
00:01:59 verbose #2488 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:59 verbose #2489 > > inl new_rc forall t. (x : t) : rc t =
00:01:59 verbose #2490 > >     !\\(x, $'"std::rc::Rc::new($0)"')
00:01:59 verbose #2491 > 00:01:59   debug #187 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ea3c34ac15d228ad5e3310a651108027d2380a89300c97afd33483cbdb525cce/main.spi
00:01:59 verbose #2492 > >
00:01:59 verbose #2493 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:59 verbose #2494 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:59 verbose #2495 > > │ ### rc_clone                                                                 │
00:01:59 verbose #2496 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:59 verbose #2497 > >
00:01:59 verbose #2498 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:59 verbose #2499 > > inl rc_clone forall t. (x : rc t) : rc t =
00:01:59 verbose #2500 > >     !\\(x, $'"std::rc::Rc::clone(&$0)"')
00:02:00 verbose #2501 > 00:01:59   debug #188 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/699c604c751406522548d21f08429be1608c8ad44dff18de908c9a317d72973f/main.spi
00:02:00 verbose #2502 > >
00:02:00 verbose #2503 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:00 verbose #2504 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:00 verbose #2505 > > │ ### rc_unwrap_or_clone                                                       │
00:02:00 verbose #2506 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:00 verbose #2507 > >
00:02:00 verbose #2508 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:00 verbose #2509 > > inl rc_unwrap_or_clone forall t. (x : rc t) : t =
00:02:00 verbose #2510 > >     !\\(x, $'"std::rc::Rc::unwrap_or_clone($0)"')
00:02:00 verbose #2511 > 00:01:59   debug #189 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/eef062b20ec7766dddcc7c9dea503e61fca4b038433dbead4d136f8213dfcab7/main.spi
00:02:00 verbose #2512 > >
00:02:00 verbose #2513 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:00 verbose #2514 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:00 verbose #2515 > > │ ### rc_downgrade                                                             │
00:02:00 verbose #2516 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:00 verbose #2517 > >
00:02:00 verbose #2518 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:00 verbose #2519 > > inl rc_downgrade forall t. (x : rc t) : weak_rc t =
00:02:00 verbose #2520 > >     inl x = join x
00:02:00 verbose #2521 > >     !\($'"std::rc::Rc::downgrade(&!x)"')
00:02:00 verbose #2522 > 00:02:00   debug #190 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ae299279508ae556dbf4e37d9fb185826417306f7bf25ce7fc81dec675072a55/main.spi
00:02:00 verbose #2523 > >
00:02:00 verbose #2524 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:00 verbose #2525 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:00 verbose #2526 > > │ ### new_ref_cell                                                             │
00:02:00 verbose #2527 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:00 verbose #2528 > >
00:02:00 verbose #2529 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:00 verbose #2530 > > inl new_ref_cell forall t. (x : t) : ref_cell t =
00:02:00 verbose #2531 > >     inl x = join x
00:02:00 verbose #2532 > >     !\($'"std::cell::RefCell::new(!x)"')
00:02:01 verbose #2533 > 00:02:00   debug #191 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3560beebdfdc03dfe59953af8cd3f37da19fadd3f556a637f6213c508db8c1a1/main.spi
00:02:01 verbose #2534 > >
00:02:01 verbose #2535 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:01 verbose #2536 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:01 verbose #2537 > > │ ### ref_cell_borrow                                                          │
00:02:01 verbose #2538 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:01 verbose #2539 > >
00:02:01 verbose #2540 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:01 verbose #2541 > > inl ref_cell_borrow forall t. (x : rc (ref_cell t)) : t =
00:02:01 verbose #2542 > >     inl x = join x
00:02:01 verbose #2543 > >     !\($'"*std::cell::RefCell::borrow(&std::rc::Rc::clone(&!x))"')
00:02:01 verbose #2544 > 00:02:00   debug #192 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0cf01c26871ee6f8dc1d22e16482e287d915b754eb731c931e7c3250388b57bd/main.spi
00:02:01 verbose #2545 > >
00:02:01 verbose #2546 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:01 verbose #2547 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:01 verbose #2548 > > │ ### ref_cell_borrow_mut                                                      │
00:02:01 verbose #2549 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:01 verbose #2550 > >
00:02:01 verbose #2551 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:01 verbose #2552 > > inl ref_cell_borrow_mut forall t. (x : rc (ref_cell t)) : mut' t =
00:02:01 verbose #2553 > >     inl x = join x
00:02:01 verbose #2554 > >     !\($'"*std::cell::RefCell::borrow_mut(&std::rc::Rc::clone(&!x))"')
00:02:01 verbose #2555 > 00:02:01   debug #193 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4564fd3548d1732f12aab7fbb39ba537c219734ab59e101c7cac7bf9a00b2cda/main.spi
00:02:01 verbose #2556 > >
00:02:01 verbose #2557 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:01 verbose #2558 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:01 verbose #2559 > > │ ### to_mut                                                                   │
00:02:01 verbose #2560 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:01 verbose #2561 > >
00:02:01 verbose #2562 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:01 verbose #2563 > > inl to_mut forall t. (x : t) : t =
00:02:01 verbose #2564 > >     (!\($'"true; // 1"') : bool) |> ignore
00:02:01 verbose #2565 > >     (!\($'"true; let mut !x = !x"') : bool) |> ignore
00:02:01 verbose #2566 > >     (!\($'"true; !x"') : bool) |> ignore
00:02:01 verbose #2567 > >     !\($'"!x"')
00:02:01 verbose #2568 > >     // inl result = !\($'"!x"') : mut' t
00:02:01 verbose #2569 > >     // !\($'"!result"')
00:02:01 verbose #2570 > >     // inl result = !\($'"*/ // a"') : mut' t
00:02:01 verbose #2571 > >     // inl result = !\($'"!x"') : mut' t
00:02:01 verbose #2572 > >     // result |> fun x => $'!x |> unbox // b'
00:02:02 verbose #2573 > 00:02:01   debug #194 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b3ed13afcbc54d66fb961b6daa47e5c784a4cd669aa5c710e9106c1b0ee840c4/main.spi
00:02:02 verbose #2574 > >
00:02:02 verbose #2575 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:02 verbose #2576 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:02 verbose #2577 > > │ ### ref_map                                                                  │
00:02:02 verbose #2578 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:02 verbose #2579 > >
00:02:02 verbose #2580 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:02 verbose #2581 > > inl ref_map forall t u. (fn : t -> u) (x : ref' t) : ref' u =
00:02:02 verbose #2582 > >     !\($'"!fn(!x)"')
00:02:02 verbose #2583 > 00:02:01   debug #195 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f13ec00da8c5358ca1e8b2159f9c5b9bf8686020d0c5428951d7c8bd3ea2ba51/main.spi
00:02:02 verbose #2584 > >
00:02:02 verbose #2585 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:02 verbose #2586 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:02 verbose #2587 > > │ ### ref_invoke                                                               │
00:02:02 verbose #2588 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:02 verbose #2589 > >
00:02:02 verbose #2590 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:02 verbose #2591 > > inl ref_invoke forall t u. (fn : t -> u) (ref : ref' t) : u =
00:02:02 verbose #2592 > >     !\\(fn, $'"$0(!ref.clone())"')
00:02:02 verbose #2593 > 00:02:02   debug #196 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7a089d92345c23aa6370338a4953037954a7165f98a4951dbaba19695d74e932/main.spi
00:02:03 verbose #2594 > >
00:02:03 verbose #2595 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:03 verbose #2596 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:03 verbose #2597 > > │ ### cow_as_ref                                                               │
00:02:03 verbose #2598 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:03 verbose #2599 > >
00:02:03 verbose #2600 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:03 verbose #2601 > > inl cow_as_ref forall t. (s : cow t) : ref' t =
00:02:03 verbose #2602 > >     !\\(s, $'"$0.as_ref()"')
00:02:03 verbose #2603 > 00:02:02   debug #197 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0bcd044b17168b4a1ffe60a6de97015dabdecb7df6f3e958f297d928133cdc93/main.spi
00:02:03 verbose #2604 > >
00:02:03 verbose #2605 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:03 verbose #2606 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:03 verbose #2607 > > │ ### from_mut                                                                 │
00:02:03 verbose #2608 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:03 verbose #2609 > >
00:02:03 verbose #2610 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:03 verbose #2611 > > inl from_mut forall t. (x : mut' t) : t =
00:02:03 verbose #2612 > >     !\($'"!x"')
00:02:03 verbose #2613 > 00:02:02   debug #198 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4ddad97a93d6be89063f41b40206c2d8b3b53773a5ca76326cb7b2f9345eef3b/main.spi
00:02:03 verbose #2614 > >
00:02:03 verbose #2615 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:03 verbose #2616 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:03 verbose #2617 > > │ ### box_fn                                                                   │
00:02:03 verbose #2618 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:03 verbose #2619 > >
00:02:03 verbose #2620 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:03 verbose #2621 > > inl box_fn forall t. (x : () -> ()) : box t =
00:02:03 verbose #2622 > >     inl x = join x
00:02:03 verbose #2623 > >     !\($'"Box::new(move || !x())"')
00:02:04 verbose #2624 > 00:02:03   debug #199 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9963cf7abeace79be7f16d7d36b2a41565c0576a435880fc388e9f3648202fd4/main.spi
00:02:04 verbose #2625 > >
00:02:04 verbose #2626 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:04 verbose #2627 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:04 verbose #2628 > > │ ### box_pin                                                                  │
00:02:04 verbose #2629 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:04 verbose #2630 > >
00:02:04 verbose #2631 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:04 verbose #2632 > > inl box_pin forall t. (x : t) : pin (box t) =
00:02:04 verbose #2633 > >     inl x = join x
00:02:04 verbose #2634 > >     !\($'"Box::pin(!x)"')
00:02:04 verbose #2635 > 00:02:03   debug #200 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3c38b9847d46ac9f8d65d20a10f5143c8a4de3ba9c7f57f5390a8ea938c5d081/main.spi
00:02:04 verbose #2636 > >
00:02:04 verbose #2637 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:04 verbose #2638 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:04 verbose #2639 > > │ ### to_ref                                                                   │
00:02:04 verbose #2640 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:04 verbose #2641 > >
00:02:04 verbose #2642 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:04 verbose #2643 > > inl to_ref forall t. (x : t) : ref' t =
00:02:04 verbose #2644 > >     !\\(x, $'"&$0"')
00:02:04 verbose #2645 > 00:02:04   debug #201 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fca7ae63af0581150db8ccc8f80249f6c839411825611d616b83c88c236a5de4/main.spi
00:02:04 verbose #2646 > >
00:02:04 verbose #2647 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:04 verbose #2648 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:04 verbose #2649 > > │ ### deref                                                                    │
00:02:04 verbose #2650 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:04 verbose #2651 > >
00:02:04 verbose #2652 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:04 verbose #2653 > > inl deref forall t. (ref : ref' t) : t =
00:02:04 verbose #2654 > >     !\\(ref, $'"*$0"')
00:02:05 verbose #2655 > 00:02:04   debug #202 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cc2caa208db6e5db9a2d667972c55814adba2e51e07492f1ab52b63b1f054c03/main.spi
00:02:05 verbose #2656 > >
00:02:05 verbose #2657 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:05 verbose #2658 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:05 verbose #2659 > > │ ### ops_deref                                                                │
00:02:05 verbose #2660 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:05 verbose #2661 > >
00:02:05 verbose #2662 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:05 verbose #2663 > > inl ops_deref forall t. (ref : t) : t =
00:02:05 verbose #2664 > >     inl ref = join ref
00:02:05 verbose #2665 > >     !\($'"core::ops::Deref::deref(&!ref)"')
00:02:05 verbose #2666 > 00:02:04   debug #203 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ebb20f0567442db6ee8726c3efd98a42a8907b0afa9f5dd1f9b1cea5c8af0ce0/main.spi
00:02:05 verbose #2667 > >
00:02:05 verbose #2668 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:05 verbose #2669 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:05 verbose #2670 > > │ ### func0_invoke                                                             │
00:02:05 verbose #2671 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:05 verbose #2672 > >
00:02:05 verbose #2673 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:05 verbose #2674 > > inl func0_invoke forall t. (x : func0 t) : t =
00:02:05 verbose #2675 > >     !\\(x, $'"$0()"')
00:02:05 verbose #2676 > 00:02:05   debug #204 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0b6b9574d266b43e9229135a14149961183a1bd224f3f0d046e852884f7c2439/main.spi
00:02:06 verbose #2677 > >
00:02:06 verbose #2678 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:06 verbose #2679 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:06 verbose #2680 > > │ ### func0_move                                                               │
00:02:06 verbose #2681 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:06 verbose #2682 > >
00:02:06 verbose #2683 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:06 verbose #2684 > > inl func0_move forall t. (fn : func0 t) : t =
00:02:06 verbose #2685 > >     inl fn = join fn
00:02:06 verbose #2686 > >     !\($'"(move || !fn())()"')
00:02:06 verbose #2687 > 00:02:05   debug #205 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/36a10de7406a53756d96ca7ab808ab5937c42a9fa42398f508867a677afdcf6d/main.spi
00:02:06 verbose #2688 > >
00:02:06 verbose #2689 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:06 verbose #2690 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:06 verbose #2691 > > │ ### move                                                                     │
00:02:06 verbose #2692 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:06 verbose #2693 > >
00:02:06 verbose #2694 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:06 verbose #2695 > > inl move forall t. (fn : () -> t) : func0 t =
00:02:06 verbose #2696 > >     !\\(fn, $'"Func0::new(move || $0())"')
00:02:06 verbose #2697 > 00:02:05   debug #206 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/84dffee62674a7fe7b3c170bc7b410decd02451a26e3cde7f5334fff8eec4aa3/main.spi
00:02:06 verbose #2698 > >
00:02:06 verbose #2699 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:06 verbose #2700 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:06 verbose #2701 > > │ ### to_static_ref_unbox                                                      │
00:02:06 verbose #2702 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:06 verbose #2703 > >
00:02:06 verbose #2704 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:06 verbose #2705 > > inl to_static_ref_unbox forall t. (x : ref' t) : static_ref t =
00:02:06 verbose #2706 > >     x |> unbox
00:02:06 verbose #2707 > 00:02:06   debug #207 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9432c9c7e869be1d0c84b617899238db4680477c72138d1b1e6935a03a863866/main.spi
00:02:07 verbose #2708 > >
00:02:07 verbose #2709 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:07 verbose #2710 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:07 verbose #2711 > > │ ### from_static_ref_unbox                                                    │
00:02:07 verbose #2712 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:07 verbose #2713 > >
00:02:07 verbose #2714 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:07 verbose #2715 > > inl from_static_ref_unbox forall t. (x : static_ref t) : ref' t =
00:02:07 verbose #2716 > >     x |> unbox
00:02:07 verbose #2717 > 00:02:06   debug #208 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6e5d0714b20babdd1c85188f05fd1f0d3e755ce2e71788c06c9e8a8b25600ec0/main.spi
00:02:07 verbose #2718 > >
00:02:07 verbose #2719 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:07 verbose #2720 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:07 verbose #2721 > > │ ### box_leak                                                                 │
00:02:07 verbose #2722 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:07 verbose #2723 > >
00:02:07 verbose #2724 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:07 verbose #2725 > > inl box_leak forall t. (x : box t) : static_ref (mut' t) =
00:02:07 verbose #2726 > >     !\\(x, $'"Box::leak($0)"')
00:02:07 verbose #2727 > 00:02:06   debug #209 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9aaa0887787ef222ae6ca1f1c62a70143a49559ca2c6e5bf6864b0c6f7a0ac08/main.spi
00:02:07 verbose #2728 > >
00:02:07 verbose #2729 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:07 verbose #2730 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:07 verbose #2731 > > │ ### drop                                                                     │
00:02:07 verbose #2732 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:07 verbose #2733 > >
00:02:07 verbose #2734 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:07 verbose #2735 > > inl drop forall t. (x : t) : () =
00:02:07 verbose #2736 > >     !\\(x, $'"drop($0)"')
00:02:08 verbose #2737 > 00:02:07   debug #210 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a2e964180d387feb0cdb0b238aab17ef84d0c3540785cd0f3c4a1f05daf8a2d8/main.spi
00:02:08 verbose #2738 > >
00:02:08 verbose #2739 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:08 verbose #2740 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:08 verbose #2741 > > │ ### break                                                                    │
00:02:08 verbose #2742 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:08 verbose #2743 > >
00:02:08 verbose #2744 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:08 verbose #2745 > > inl break () : () =
00:02:08 verbose #2746 > >     (!\($'"true; break"') : bool) |> ignore
00:02:08 verbose #2747 > 00:02:07   debug #211 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0401f47cae9c42ee77f2d480fc024b8cd5161e41ec584dc1ff048c3d3bd84957/main.spi
00:02:08 verbose #2748 > >
00:02:08 verbose #2749 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:08 verbose #2750 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:08 verbose #2751 > > │ ### fix_closure'                                                             │
00:02:08 verbose #2752 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:08 verbose #2753 > >
00:02:08 verbose #2754 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:08 verbose #2755 > > inl fix_closure' (depth : u8 * u8) x =
00:02:08 verbose #2756 > >     inl rec loop text (acc : string) n : string =
00:02:08 verbose #2757 > >         if n <= 0
00:02:08 verbose #2758 > >         then acc
00:02:08 verbose #2759 > >         else loop text (acc +. text) (n - 1)
00:02:08 verbose #2760 > >     inl a = depth |> fst |> loop "}" ""
00:02:08 verbose #2761 > >     inl b = depth |> snd |> loop "{" ""
00:02:08 verbose #2762 > >     $'"!x " + !a + "); " + !b + " //"'
00:02:08 verbose #2763 > 00:02:08   debug #212 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5d4fdc26fdeda706f8abe9a28d3e67879744186408354f7b1e6a3cd703348ca5/main.spi
00:02:08 verbose #2764 > >
00:02:08 verbose #2765 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:08 verbose #2766 > > //// test
00:02:08 verbose #2767 > >
00:02:08 verbose #2768 > > fix_closure' (3, 2) 0i32
00:02:08 verbose #2769 > > |> _assert_eq "0 }}}); {{ //"
00:02:09 verbose #2770 > 00:02:08   debug #213 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8d2a077aff69e12767483e3abf1ffc1b0914bb97fe3ca9dcde4cde906c2b0ef1/main.spi
00:02:09 verbose #2771 > >
00:02:09 verbose #2772 > > ╭─[ 1.03s - stdout ]───────────────────────────────────────────────────────────╮
00:02:09 verbose #2773 > > │ assert_eq / actual: "0 }}}); {{ //" / expected: "0 }}}); {{ //"              │
00:02:09 verbose #2774 > > │                                                                              │
00:02:09 verbose #2775 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:09 verbose #2776 > >
00:02:09 verbose #2777 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:09 verbose #2778 > > //// test
00:02:09 verbose #2779 > >
00:02:09 verbose #2780 > > fix_closure' (0, 0) ()
00:02:09 verbose #2781 > > |> _assert_eq "() );  //"
00:02:10 verbose #2782 > 00:02:09   debug #214 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/30f037730ece019f7c0499ffa4152600a5b5114423faa59ae1e384603b665ad8/main.spi
00:02:10 verbose #2783 > >
00:02:10 verbose #2784 > > ╭─[ 347.34ms - stdout ]────────────────────────────────────────────────────────╮
00:02:10 verbose #2785 > > │ assert_eq / actual: "() );  //" / expected: "() );  //"                      │
00:02:10 verbose #2786 > > │                                                                              │
00:02:10 verbose #2787 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:10 verbose #2788 > >
00:02:10 verbose #2789 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:10 verbose #2790 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:10 verbose #2791 > > │ ### fix_closure                                                              │
00:02:10 verbose #2792 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:10 verbose #2793 > >
00:02:10 verbose #2794 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:10 verbose #2795 > > inl fix_closure depth x =
00:02:10 verbose #2796 > >     inl code = fix_closure' depth x
00:02:10 verbose #2797 > >     !\code
00:02:10 verbose #2798 > 00:02:09   debug #215 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/25c0dae3a87b85da72ab2674e391afdbaacf39ce110c776d47f1811c0322f97e/main.spi
00:02:10 verbose #2799 > >
00:02:10 verbose #2800 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:10 verbose #2801 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:10 verbose #2802 > > │ ### loop                                                                     │
00:02:10 verbose #2803 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:10 verbose #2804 > >
00:02:10 verbose #2805 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:10 verbose #2806 > > inl loop (depth : i32) (fn : () -> ()) : () =
00:02:10 verbose #2807 > >     (!\($'"true; loop { // rust.loop"') : bool) |> ignore
00:02:10 verbose #2808 > >     fn ()
00:02:10 verbose #2809 > >
00:02:10 verbose #2810 > >     listm.init depth id
00:02:10 verbose #2811 > >     |> listm.iter fun n =>
00:02:10 verbose #2812 > >         (!\($'"true; } // rust.loop"') : bool) |> ignore
00:02:10 verbose #2813 > >
00:02:10 verbose #2814 > >     (!\($'"true; } // rust.loop"') : bool) |> ignore
00:02:10 verbose #2815 > >
00:02:10 verbose #2816 > >     listm.init depth id
00:02:10 verbose #2817 > >     |> listm.iter fun n =>
00:02:10 verbose #2818 > >         (!\($'"true; { // rust.loop"') : bool) |> ignore
00:02:10 verbose #2819 > 00:02:10   debug #216 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1c4bcd62af27f382345387b3ffb1ab807fbc78d57f3b0dff2b5cb4f7120e303b/main.spi
00:02:11 verbose #2820 > >
00:02:11 verbose #2821 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:11 verbose #2822 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:11 verbose #2823 > > │ ### run_tests                                                                │
00:02:11 verbose #2824 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:11 verbose #2825 > >
00:02:11 verbose #2826 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:11 verbose #2827 > > inl run_tests tests =
00:02:11 verbose #2828 > >     (!\($'"true; () //"') : bool) |> ignore
00:02:11 verbose #2829 > >
00:02:11 verbose #2830 > >     tests
00:02:11 verbose #2831 > >     |> listm.iter fun name, fn =>
00:02:11 verbose #2832 > >         !\($'"} /* /*"')
00:02:11 verbose #2833 > >         (!\($'$"*/ #[[test]] fn " + !name + "() { //"') : bool) |> ignore
00:02:11 verbose #2834 > >         fn name |> ignore
00:02:11 verbose #2835 > >
00:02:11 verbose #2836 > >     tests
00:02:11 verbose #2837 > >     |> listm.iter fun name, fn =>
00:02:11 verbose #2838 > >         !\($'"{ //"') : ()
00:02:11 verbose #2839 > 00:02:10   debug #217 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/44c49747703617092fa38fe8387b3f76cc922b05affaf800ad5270a676cc00dd/main.spi
00:02:11 verbose #2840 > >
00:02:11 verbose #2841 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:11 verbose #2842 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:11 verbose #2843 > > │ ### capture                                                                  │
00:02:11 verbose #2844 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:11 verbose #2845 > >
00:02:11 verbose #2846 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:11 verbose #2847 > > inl capture forall t. (fn : () -> t) : t =
00:02:11 verbose #2848 > >     (!\($'"true; let _result = (|| { //"') : bool) |> ignore
00:02:11 verbose #2849 > >     (!\\(fn (), $'"true; $0 })()"') : bool) |> ignore
00:02:11 verbose #2850 > >     !\($'"_result"')
00:02:11 verbose #2851 > 00:02:10   debug #218 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/94e89a9f45a25fdabc91f649e4c97fb0c90cd98b42809d846ec99c203e26b3ed/main.spi
00:02:11 verbose #2852 > >
00:02:11 verbose #2853 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:11 verbose #2854 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:11 verbose #2855 > > │ ### capture_move                                                             │
00:02:11 verbose #2856 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:11 verbose #2857 > >
00:02:11 verbose #2858 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:11 verbose #2859 > > inl capture_move forall t. (fn : () -> t) : t =
00:02:11 verbose #2860 > >     (!\($'"true; let _result = (move || { //"') : bool) |> ignore
00:02:11 verbose #2861 > >     (!\\(fn (), $'"true; $0 })()"') : bool) |> ignore
00:02:11 verbose #2862 > >     !\($'"_result"')
00:02:12 verbose #2863 > 00:02:11   debug #219 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9bd75bcbfa62f3362cf95dd098bfd9c417139659e16af6d88861efd27c2c2c76/main.spi
00:02:12 verbose #2864 > 00:00:32 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 38369 }
00:02:12 verbose #2865 > 00:00:32   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/rust.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/rust.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:02:14 verbose #2866 > 00:00:34 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/rust.dib.ipynb to html
00:02:14 verbose #2867 > 00:00:34 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:02:14 verbose #2868 > 00:00:34 verbose #7 !   validate(nb)
00:02:15 verbose #2869 > 00:00:36 verbose #8 ! [NbConvertApp] Writing 391533 bytes to c:\home\git\polyglot\lib\spiral\rust.dib.html
00:02:16 verbose #2870 > 00:00:36 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 639 }
00:02:16 verbose #2871 > 00:00:36   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 639 }
00:02:16 verbose #2872 > 00:00:36   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/rust.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/rust.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:02:16 verbose #2873 > 00:00:37 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:02:16 verbose #2874 > 00:00:37   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:02:17 verbose #2875 > 00:00:38   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 39067 }
00:02:17   debug #2876 runtime.execute_with_options_async / { exit_code = 0; output_length = 43128 }
00:02:17   debug #4 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path rust.dib --retries 3
00:02:17   debug #2877 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path testing.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:02:17 verbose #2878 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "testing.dib", "--retries", "3"])) }
00:02:17 verbose #2879 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/testing.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/testing.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/testing.dib" --output-path "c:/home/git/polyglot/lib/spiral/testing.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:02:19 verbose #2880 > >
00:02:19 verbose #2881 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:19 verbose #2882 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:19 verbose #2883 > > │ # testing                                                                    │
00:02:19 verbose #2884 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:19 verbose #2885 > >
00:02:19 verbose #2886 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:19 verbose #2887 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:19 verbose #2888 > > │ ## testing                                                                   │
00:02:19 verbose #2889 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:19 verbose #2890 > >
00:02:19 verbose #2891 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:19 verbose #2892 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:19 verbose #2893 > > │ ### __expect                                                                 │
00:02:19 verbose #2894 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:23 verbose #2895 > >
00:02:23 verbose #2896 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:23 verbose #2897 > > inl __expect fn log name b a =
00:02:23 verbose #2898 > >     inl result = fn a b
00:02:23 verbose #2899 > >     inl result =
00:02:23 verbose #2900 > >         result || join result
00:02:23 verbose #2901 > >     if log |> not
00:02:23 verbose #2902 > >     then "__expect"
00:02:23 verbose #2903 > >     else
00:02:23 verbose #2904 > >         inl text =
00:02:23 verbose #2905 > >             backend_switch {
00:02:23 verbose #2906 > >                 Fsharp = fun () => $'$"{!name} / actual: %A{!a} / expected:
00:02:23 verbose #2907 > > %A{!b}"' : string
00:02:23 verbose #2908 > >                 Python = fun () => $'f"{!name} / actual: {!a} / expected: {!b}"'
00:02:23 verbose #2909 > > : string
00:02:23 verbose #2910 > >             }
00:02:23 verbose #2911 > >         text |> console.write_line
00:02:23 verbose #2912 > >         text
00:02:23 verbose #2913 > >     |> assert result
00:02:24 verbose #2914 > 00:02:23   debug #220 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a908bb2db39526528c19bb3504f98c802a7f801ed253d940ec83b2c996dccfd7/main.spi
00:02:25 verbose #2915 > >
00:02:25 verbose #2916 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:25 verbose #2917 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:25 verbose #2918 > > │ ### __assert_approx_eq                                                       │
00:02:25 verbose #2919 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:25 verbose #2920 > >
00:02:25 verbose #2921 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:25 verbose #2922 > > inl __assert_approx_eq log e b a = __expect (fun a b => abs (b - a) < (e |>
00:02:25 verbose #2923 > > optionm.defaultWith 0.00000001)) log "assert_approx_eq" b a
00:02:25 verbose #2924 > > inl _assert_approx_eq e b a = __assert_approx_eq true e b a
00:02:25 verbose #2925 > 00:02:24   debug #221 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/630fb695a15641a87e56cf037b7f376efbbeff5f33c382b053d9791321a2a022/main.spi
00:02:25 verbose #2926 > >
00:02:25 verbose #2927 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:25 verbose #2928 > > //// test
00:02:25 verbose #2929 > > ///! fsharp
00:02:25 verbose #2930 > > ///! cuda
00:02:25 verbose #2931 > > ///! rust
00:02:25 verbose #2932 > > ///! typescript
00:02:25 verbose #2933 > > ///! python
00:02:25 verbose #2934 > >
00:02:25 verbose #2935 > > 12.345f64
00:02:25 verbose #2936 > > |> _assert_approx_eq (Some 0.0001f64) 12.345f64
00:02:25 verbose #2937 > 00:02:24   debug #222 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e7c5cdb3c55b5b1c640b7ad8a80ec6dd1664e6e21dd71a28f87fe71593e5da4c/main.spi
00:02:25 verbose #2938 > 00:02:24   debug #223 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/750711c3b0c624220af68a0911e1f8c71f3f78fedd45281fdbd42ffe7c45fa80/main.spi
00:02:31 verbose #2939 > >
00:02:31 verbose #2940 > > ╭─[ 6.51s - return value ]─────────────────────────────────────────────────────╮
00:02:31 verbose #2941 > > │ .py output (Cuda):                                                           │
00:02:31 verbose #2942 > > │ assert_approx_eq / actual: 12.345 / expected: 12.345                         │
00:02:31 verbose #2943 > > │                                                                              │
00:02:31 verbose #2944 > > │ .rs output:                                                                  │
00:02:31 verbose #2945 > > │ assert_approx_eq / actual: 12.345 / expected: 12.345                         │
00:02:31 verbose #2946 > > │                                                                              │
00:02:31 verbose #2947 > > │ .ts output:                                                                  │
00:02:31 verbose #2948 > > │ assert_approx_eq / actual: 12.345 / expected: 12.345                         │
00:02:31 verbose #2949 > > │                                                                              │
00:02:31 verbose #2950 > > │ .py output:                                                                  │
00:02:31 verbose #2951 > > │ assert_approx_eq / actual: 12.345 / expected: 12.345                         │
00:02:31 verbose #2952 > > │                                                                              │
00:02:31 verbose #2953 > > │                                                                              │
00:02:31 verbose #2954 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:31 verbose #2955 > >
00:02:31 verbose #2956 > > ╭─[ 6.51s - stdout ]───────────────────────────────────────────────────────────╮
00:02:31 verbose #2957 > > │ .fsx output:                                                                 │
00:02:31 verbose #2958 > > │ assert_approx_eq / actual: 12.345 / expected: 12.345                         │
00:02:31 verbose #2959 > > │                                                                              │
00:02:31 verbose #2960 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:31 verbose #2961 > >
00:02:31 verbose #2962 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:31 verbose #2963 > > //// test
00:02:31 verbose #2964 > >
00:02:31 verbose #2965 > > 1f64
00:02:31 verbose #2966 > > |> _assert_approx_eq (Some 3) 2
00:02:32 verbose #2967 > 00:02:31   debug #224 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f7e3225d53652f951fe7e7657c1582d108d8bb65ead49fff933851ddd4a9a745/main.spi
00:02:32 verbose #2968 > >
00:02:32 verbose #2969 > > ╭─[ 344.16ms - stdout ]────────────────────────────────────────────────────────╮
00:02:32 verbose #2970 > > │ assert_approx_eq / actual: 1.0 / expected: 2.0                               │
00:02:32 verbose #2971 > > │                                                                              │
00:02:32 verbose #2972 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:32 verbose #2973 > >
00:02:32 verbose #2974 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:32 verbose #2975 > > //// test
00:02:32 verbose #2976 > >
00:02:32 verbose #2977 > > (dyn 1f64)
00:02:32 verbose #2978 > > |> _assert_approx_eq (Some 3) 2
00:02:32 verbose #2979 > 00:02:31   debug #225 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ba490665bf8812731ea625ddf4012a10c9dcab2cd5018002fd3d7f06c3e17300/main.spi
00:02:32 verbose #2980 > >
00:02:32 verbose #2981 > > ╭─[ 547.09ms - stdout ]────────────────────────────────────────────────────────╮
00:02:32 verbose #2982 > > │ assert_approx_eq / actual: 1.0 / expected: 2.0                               │
00:02:32 verbose #2983 > > │                                                                              │
00:02:32 verbose #2984 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:32 verbose #2985 > >
00:02:32 verbose #2986 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:32 verbose #2987 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:32 verbose #2988 > > │ ### __assert_eq                                                              │
00:02:32 verbose #2989 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:32 verbose #2990 > >
00:02:32 verbose #2991 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:32 verbose #2992 > > inl __assert_eq log b a = __expect (=) log "assert_eq" b a
00:02:32 verbose #2993 > > inl _assert_eq b a = __assert_eq true b a
00:02:33 verbose #2994 > 00:02:32   debug #226 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0536e123a98842b73c72be4d18c09334a318550c66ba1c298e5059b6e663f972/main.spi
00:02:33 verbose #2995 > >
00:02:33 verbose #2996 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:33 verbose #2997 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:33 verbose #2998 > > │ ### __assert_eq'                                                             │
00:02:33 verbose #2999 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:33 verbose #3000 > >
00:02:33 verbose #3001 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:33 verbose #3002 > > inl __assert_eq' log b a = __expect (=.) log "assert_eq'" b a
00:02:33 verbose #3003 > > inl _assert_eq' b a = __assert_eq' true b a
00:02:33 verbose #3004 > 00:02:32   debug #227 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/25f50f527335a824ae6ab8ca015d3bd520fd702098841a54b6a3b42a22ba9d14/main.spi
00:02:33 verbose #3005 > >
00:02:33 verbose #3006 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:33 verbose #3007 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:33 verbose #3008 > > │ ### __assert_ne                                                              │
00:02:33 verbose #3009 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:33 verbose #3010 > >
00:02:33 verbose #3011 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:33 verbose #3012 > > inl __assert_ne log b a = __expect (<>.) log "assert_ne" b a
00:02:33 verbose #3013 > > inl _assert_ne b a = __assert_ne true b a
00:02:33 verbose #3014 > 00:02:33   debug #228 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7c3b545a37d40672182f34fc97f9e39928f0d1366b943e66e5bb212db10799d3/main.spi
00:02:33 verbose #3015 > >
00:02:33 verbose #3016 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:33 verbose #3017 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:33 verbose #3018 > > │ ### __assert_gt                                                              │
00:02:33 verbose #3019 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:33 verbose #3020 > >
00:02:33 verbose #3021 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:33 verbose #3022 > > inl __assert_gt log b a = __expect (>) log "assert_gt" b a
00:02:33 verbose #3023 > > inl _assert_gt b a = __assert_gt true b a
00:02:34 verbose #3024 > 00:02:33   debug #229 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c35535827852d46bf121f79ffa8c841b6df08aa172a720761eac028194910135/main.spi
00:02:34 verbose #3025 > >
00:02:34 verbose #3026 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:34 verbose #3027 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:34 verbose #3028 > > │ ### __assert_ge                                                              │
00:02:34 verbose #3029 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:34 verbose #3030 > >
00:02:34 verbose #3031 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:34 verbose #3032 > > inl __assert_ge log b a = __expect (>=) log "assert_ge" b a
00:02:34 verbose #3033 > > inl _assert_ge b a = __assert_ge true b a
00:02:34 verbose #3034 > 00:02:33   debug #230 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ad0d5e41e8fbf265d02cd17394551150955653c85a09878bc5708b25566ac7d2/main.spi
00:02:34 verbose #3035 > >
00:02:34 verbose #3036 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:34 verbose #3037 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:34 verbose #3038 > > │ ### __assert_lt                                                              │
00:02:34 verbose #3039 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:34 verbose #3040 > >
00:02:34 verbose #3041 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:34 verbose #3042 > > inl __assert_lt log b a = __expect (<) log "assert_lt" b a
00:02:34 verbose #3043 > > inl _assert_lt b a = __assert_lt true b a
00:02:34 verbose #3044 > 00:02:34   debug #231 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cdea3448765b81b4703fb4449b21426a6601408a827a235b566beb566660b43e/main.spi
00:02:34 verbose #3045 > >
00:02:34 verbose #3046 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:34 verbose #3047 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:34 verbose #3048 > > │ ### __assert_le                                                              │
00:02:34 verbose #3049 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:34 verbose #3050 > >
00:02:34 verbose #3051 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:34 verbose #3052 > > inl __assert_le log b a = __expect (<=) log "assert_le" b a
00:02:34 verbose #3053 > > inl _assert_le b a = __assert_le true b a
00:02:35 verbose #3054 > 00:02:34   debug #232 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c62b926dbb2a354a1358f1bbfe934319789ddb7869c1c6bfd21e25da20927b21/main.spi
00:02:35 verbose #3055 > >
00:02:35 verbose #3056 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:35 verbose #3057 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:35 verbose #3058 > > │ ### __assert_string_contains                                                 │
00:02:35 verbose #3059 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:35 verbose #3060 > >
00:02:35 verbose #3061 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:35 verbose #3062 > > inl __assert_string_contains log b a = __expect sm'.contains log
00:02:35 verbose #3063 > > "assert_string_contains" a b
00:02:35 verbose #3064 > > inl _assert_string_contains b a = __assert_string_contains true b a
00:02:35 verbose #3065 > 00:02:34   debug #233 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/13dfb239e9e67fa86d2ff5d23982efc32b332d650ff954e902059daaf23e1ebf/main.spi
00:02:35 verbose #3066 > >
00:02:35 verbose #3067 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:35 verbose #3068 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:35 verbose #3069 > > │ ### __assert_between                                                         │
00:02:35 verbose #3070 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:35 verbose #3071 > >
00:02:35 verbose #3072 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:35 verbose #3073 > > inl __assert_between log a b actual =
00:02:35 verbose #3074 > >     inl assert_between actual (a, b) =
00:02:35 verbose #3075 > >         __assert_ge false a actual
00:02:35 verbose #3076 > >         __assert_le false b actual
00:02:35 verbose #3077 > >         true
00:02:35 verbose #3078 > >     __expect assert_between log "assert_between" (a, b) actual
00:02:35 verbose #3079 > > inl _assert_between a b actual = __assert_between true a b actual
00:02:35 verbose #3080 > 00:02:35   debug #234 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/444298354c32f35d51cca2c1fd77cedc9a8f918bb2afb0c9c045752474828e18/main.spi
00:02:36 verbose #3081 > >
00:02:36 verbose #3082 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:36 verbose #3083 > > inl _assert_fn fn list =
00:02:36 verbose #3084 > >     list
00:02:36 verbose #3085 > >     |> listm.rev
00:02:36 verbose #3086 > >     |> listm.map fun input, expected => join
00:02:36 verbose #3087 > >         input
00:02:36 verbose #3088 > >         |> fn
00:02:36 verbose #3089 > >         |> resultm.get
00:02:36 verbose #3090 > >         |> fun x =>
00:02:36 verbose #3091 > >             inl expected' = join expected
00:02:36 verbose #3092 > >             try
00:02:36 verbose #3093 > >                 fun () =>
00:02:36 verbose #3094 > >                     console.write_line ""
00:02:36 verbose #3095 > >                     trace Verbose
00:02:36 verbose #3096 > >                         fun () => $'$"testing._assert_fn"'
00:02:36 verbose #3097 > >                         fun () => { input }
00:02:36 verbose #3098 > >                     x
00:02:36 verbose #3099 > >                     |> _assert_eq' expected'
00:02:36 verbose #3100 > >                     true
00:02:36 verbose #3101 > >                 fun ex =>
00:02:36 verbose #3102 > >                     trace Critical
00:02:36 verbose #3103 > >                         fun () => $'$"testing._assert_fn / error"'
00:02:36 verbose #3104 > >                         fun () => { ex expected }
00:02:36 verbose #3105 > >                     Some false
00:02:36 verbose #3106 > >             |> optionm.value
00:02:36 verbose #3107 > >     |> listm'.filter not
00:02:36 verbose #3108 > >     |> function
00:02:36 verbose #3109 > >         | [[]] => ()
00:02:36 verbose #3110 > >         | x => failwith $'$"{!x}"'
00:02:36 verbose #3111 > 00:02:35   debug #235 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/38bffb536ef81a037c7ac12d325611f0809cf5dc3b9de9c042b5d30bced06c03/main.spi
00:02:36 verbose #3112 > >
00:02:36 verbose #3113 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:36 verbose #3114 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:36 verbose #3115 > > │ ## fsharp                                                                    │
00:02:36 verbose #3116 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:36 verbose #3117 > >
00:02:36 verbose #3118 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:36 verbose #3119 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:36 verbose #3120 > > │ ### __assert_contains                                                        │
00:02:36 verbose #3121 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:36 verbose #3122 > >
00:02:36 verbose #3123 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:36 verbose #3124 > > inl __assert_contains forall t. log (b : t) a =
00:02:36 verbose #3125 > >     __expect
00:02:36 verbose #3126 > >         fun a b =>
00:02:36 verbose #3127 > >             a
00:02:36 verbose #3128 > >             |> $'List.ofSeq'
00:02:36 verbose #3129 > >             |> fun x => x : listm'.list' t
00:02:36 verbose #3130 > >             |> $'List.tryFind' ((=) b)
00:02:36 verbose #3131 > >             |> optionm'.unbox
00:02:36 verbose #3132 > >             |> fun (x : _ t) => x <> None
00:02:36 verbose #3133 > >         log "assert_contains" b a
00:02:36 verbose #3134 > > inl _assert_contains b a = __assert_contains true b a
00:02:36 verbose #3135 > 00:02:36   debug #236 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cc56497bb98fedc2ca14e27881c82ad8e84bcb960df89c52f7a3f2f509a373c2/main.spi
00:02:36 verbose #3136 > >
00:02:36 verbose #3137 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:36 verbose #3138 > > //// test
00:02:36 verbose #3139 > >
00:02:36 verbose #3140 > > "abcd"
00:02:36 verbose #3141 > > |> _assert_contains 'b'
00:02:37 verbose #3142 > 00:02:36   debug #237 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e55bf3578dffdd39f7c7b8990b0ff63ffabd527077c8becffb33b9f6012d9d77/main.spi
00:02:37 verbose #3143 > >
00:02:37 verbose #3144 > > ╭─[ 818.68ms - stdout ]────────────────────────────────────────────────────────╮
00:02:37 verbose #3145 > > │ assert_contains / actual: "abcd" / expected: 'b'                             │
00:02:37 verbose #3146 > > │                                                                              │
00:02:37 verbose #3147 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:37 verbose #3148 > >
00:02:37 verbose #3149 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:37 verbose #3150 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:37 verbose #3151 > > │ ### _throws                                                                  │
00:02:37 verbose #3152 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:37 verbose #3153 > >
00:02:37 verbose #3154 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:37 verbose #3155 > > inl _throws (fn : () -> ()) : option exn =
00:02:37 verbose #3156 > >     inl none = None : option exn
00:02:37 verbose #3157 > >     inl some (s : exn) = Some s
00:02:37 verbose #3158 > >     $'try !fn (); !none with ex -> ex |> !some '
00:02:37 verbose #3159 > 00:02:37   debug #238 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/88ebd76b9479253fc7c2377c34a60bcc8991623680f360dcef18fc97d34ef719/main.spi
00:02:38 verbose #3160 > >
00:02:38 verbose #3161 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:38 verbose #3162 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:38 verbose #3163 > > │ ### print_and_return                                                         │
00:02:38 verbose #3164 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:38 verbose #3165 > >
00:02:38 verbose #3166 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:38 verbose #3167 > > inl print_and_return x =
00:02:38 verbose #3168 > >     $'printfn $"print_and_return / x: {!x}"'
00:02:38 verbose #3169 > >     x
00:02:38 verbose #3170 > 00:02:37   debug #239 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e9a63a960305e81ce0b131dbb842b3914805a5d5bcfd1d25fb0ccad6dcd0f5c5/main.spi
00:02:38 verbose #3171 > 00:00:21 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 13237 }
00:02:38 verbose #3172 > 00:00:21   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/testing.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/testing.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:02:40 verbose #3173 > 00:00:23 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/testing.dib.ipynb to html
00:02:40 verbose #3174 > 00:00:23 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:02:40 verbose #3175 > 00:00:23 verbose #7 !   validate(nb)
00:02:41 verbose #3176 > 00:00:24 verbose #8 ! [NbConvertApp] Writing 308251 bytes to c:\home\git\polyglot\lib\spiral\testing.dib.html
00:02:42 verbose #3177 > 00:00:24 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 645 }
00:02:42 verbose #3178 > 00:00:24   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 645 }
00:02:42 verbose #3179 > 00:00:24   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/testing.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/testing.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:02:42 verbose #3180 > 00:00:25 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:02:42 verbose #3181 > 00:00:25   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:02:43 verbose #3182 > 00:00:25   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 13941 }
00:02:43   debug #3183 runtime.execute_with_options_async / { exit_code = 0; output_length = 17109 }
00:02:43   debug #5 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path testing.dib --retries 3
00:02:43   debug #3184 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path guid.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:02:43 verbose #3185 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "guid.dib", "--retries", "3"])) }
00:02:43 verbose #3186 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/guid.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/guid.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/guid.dib" --output-path "c:/home/git/polyglot/lib/spiral/guid.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:02:45 verbose #3187 > >
00:02:45 verbose #3188 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:45 verbose #3189 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:45 verbose #3190 > > │ # guid                                                                       │
00:02:45 verbose #3191 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:49 verbose #3192 > >
00:02:49 verbose #3193 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:49 verbose #3194 > > //// test
00:02:49 verbose #3195 > >
00:02:49 verbose #3196 > > open testing
00:02:50 verbose #3197 > 00:02:49   debug #240 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7845de436c12d0ca65282fe0cd65832468ca943e72feba50e6b1bb441e251a/main.spi
00:02:50 verbose #3198 > >
00:02:50 verbose #3199 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:50 verbose #3200 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:50 verbose #3201 > > │ ## types                                                                     │
00:02:50 verbose #3202 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:50 verbose #3203 > >
00:02:50 verbose #3204 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:50 verbose #3205 > > inl types () =
00:02:50 verbose #3206 > >     backend_switch {
00:02:50 verbose #3207 > >         Fsharp = fun () => ()
00:02:50 verbose #3208 > >         Python = fun () =>
00:02:50 verbose #3209 > >             global "import uuid"
00:02:50 verbose #3210 > >     }
00:02:51 verbose #3211 > 00:02:50   debug #241 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/28c75971ed987f2437021dafe7cd921c7239554975790fa402ae88e27af7f263/main.spi
00:02:51 verbose #3212 > >
00:02:51 verbose #3213 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:51 verbose #3214 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:51 verbose #3215 > > │ ## guid                                                                      │
00:02:51 verbose #3216 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:51 verbose #3217 > >
00:02:51 verbose #3218 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:51 verbose #3219 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:51 verbose #3220 > > │ ### guid                                                                     │
00:02:51 verbose #3221 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:51 verbose #3222 > >
00:02:51 verbose #3223 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:51 verbose #3224 > > nominal guid = $"backend_switch `({ Fsharp : $"System.Guid"; Python :
00:02:51 verbose #3225 > > $"uuid.UUID" })"
00:02:51 verbose #3226 > 00:02:50   debug #242 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/03c00a93466b27b5a1191082f5a700454d08926a4280baaea06541be508b101e/main.spi
00:02:51 verbose #3227 > >
00:02:51 verbose #3228 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:51 verbose #3229 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:51 verbose #3230 > > │ ### new_guid                                                                 │
00:02:51 verbose #3231 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:51 verbose #3232 > >
00:02:51 verbose #3233 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:51 verbose #3234 > > inl new_guid (x : string) : guid =
00:02:51 verbose #3235 > >     x |> convert
00:02:51 verbose #3236 > 00:02:51   debug #243 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f70335b284ad894a0554a3d506fc08f1e350c1b7668fa025ac621fa4c13c46b6/main.spi
00:02:51 verbose #3237 > >
00:02:51 verbose #3238 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:51 verbose #3239 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:51 verbose #3240 > > │ ### new_raw_guid                                                             │
00:02:51 verbose #3241 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:51 verbose #3242 > >
00:02:51 verbose #3243 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:51 verbose #3244 > > inl new_raw_guid () : guid =
00:02:51 verbose #3245 > >     backend_switch {
00:02:51 verbose #3246 > >         Fsharp = fun () => $'System.Guid.NewGuid' () : guid
00:02:51 verbose #3247 > >         Python = fun () => $'uuid.uuid4()' : guid
00:02:51 verbose #3248 > >     }
00:02:52 verbose #3249 > 00:02:51   debug #244 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ec80f982f4ff836b9703d246485157a76bd02981056927ee375c3cdd31f8ad57/main.spi
00:02:52 verbose #3250 > >
00:02:52 verbose #3251 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:52 verbose #3252 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:52 verbose #3253 > > │ ### hash_guid                                                                │
00:02:52 verbose #3254 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:52 verbose #3255 > >
00:02:52 verbose #3256 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:52 verbose #3257 > > type hash_guid = guid
00:02:52 verbose #3258 > >
00:02:52 verbose #3259 > > let hash_guid (~hash : string) : hash_guid =
00:02:52 verbose #3260 > >     run_target function
00:02:52 verbose #3261 > >         | Rust (Contract) => fun () => null ()
00:02:52 verbose #3262 > >         | _ => fun () =>
00:02:52 verbose #3263 > >             inl hash = hash |> sm'.pad_left 32i32 '0'
00:02:52 verbose #3264 > >             backend_switch {
00:02:52 verbose #3265 > >                 Fsharp = fun () =>
00:02:52 verbose #3266 > >                     $'`hash_guid
00:02:52 verbose #3267 > > $"{!hash.[[0..7]]}-{!hash.[[8..11]]}-{!hash.[[12..15]]}-{!hash.[[16..19]]}-{!has
00:02:52 verbose #3268 > > h.[[20..31]]}"' : hash_guid
00:02:52 verbose #3269 > >                 Python = fun () =>
00:02:52 verbose #3270 > > $'f"{!hash[[0:8]]}-{!hash[[8:12]]}-{!hash[[12:16]]}-{!hash[[16:20]]}-{!hash[[20:
00:02:52 verbose #3271 > > 32]]}"' : hash_guid
00:02:52 verbose #3272 > >             }
00:02:52 verbose #3273 > 00:02:51   debug #245 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/483e6aeef1a70dab61044c93666257c02cab7084d2ffa762003feda60839eaed/main.spi
00:02:52 verbose #3274 > >
00:02:52 verbose #3275 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:52 verbose #3276 > > //// test
00:02:52 verbose #3277 > > ///! fsharp
00:02:52 verbose #3278 > > ///! cuda
00:02:52 verbose #3279 > > ///! rust
00:02:52 verbose #3280 > > ///! typescript
00:02:52 verbose #3281 > > ///! python
00:02:52 verbose #3282 > >
00:02:52 verbose #3283 > > types ()
00:02:52 verbose #3284 > >
00:02:52 verbose #3285 > > ""
00:02:52 verbose #3286 > > |> hash_guid
00:02:52 verbose #3287 > > |> _assert_eq' (new_guid "00000000-0000-0000-0000-000000000000")
00:02:52 verbose #3288 > >
00:02:52 verbose #3289 > > "123456789012345678901234567890123"
00:02:52 verbose #3290 > > |> hash_guid
00:02:52 verbose #3291 > > |> _assert_eq' (new_guid "12345678-9012-3456-7890-123456789012")
00:02:52 verbose #3292 > 00:02:52   debug #246 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e957f2ee1c839efcb24b4ea26576b52a81f74076ad20e318f6f5f8952cb24312/main.spi
00:02:52 verbose #3293 > 00:02:52   debug #247 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/02731a12c5d74e6e83a93e5f9a3d527303696d17bd7372e5205491cbd3c01e93/main.spi
00:02:58 verbose #3294 > >
00:02:58 verbose #3295 > > ╭─[ 5.69s - return value ]─────────────────────────────────────────────────────╮
00:02:58 verbose #3296 > > │                                                                              │
00:02:58 verbose #3297 > > │ .py output (Cuda):                                                           │
00:02:58 verbose #3298 > > │ assert_eq' / actual: 00000000-0000-0000-0000-000000000000 / expected:        │
00:02:58 verbose #3299 > > │ 00000000-0000-0000-0000-000000000000                                         │
00:02:58 verbose #3300 > > │ assert_eq' / actual: 12345678-9012-3456-7890-123456789012 / expected:        │
00:02:58 verbose #3301 > > │ 12345678-9012-3456-7890-123456789012                                         │
00:02:58 verbose #3302 > > │                                                                              │
00:02:58 verbose #3303 > > │                                                                              │
00:02:58 verbose #3304 > > │ .rs output:                                                                  │
00:02:58 verbose #3305 > > │ assert_eq' / actual: Guid(00000000-0000-0000-0000-000000000000) / expected:  │
00:02:58 verbose #3306 > > │ Guid(00000000-0000-0000-0000-000000000000)                                   │
00:02:58 verbose #3307 > > │ assert_eq' / actual: Guid(12345678-9012-3456-7890-123456789012) / expected:  │
00:02:58 verbose #3308 > > │ Guid(12345678-9012-3456-7890-123456789012)                                   │
00:02:58 verbose #3309 > > │                                                                              │
00:02:58 verbose #3310 > > │                                                                              │
00:02:58 verbose #3311 > > │ .ts output:                                                                  │
00:02:58 verbose #3312 > > │ assert_eq' / actual: 00000000-0000-0000-0000-000000000000 / expected:        │
00:02:58 verbose #3313 > > │ 00000000-0000-0000-0000-000000000000                                         │
00:02:58 verbose #3314 > > │ assert_eq' / actual: 12345678-9012-3456-7890-123456789012 / expected:        │
00:02:58 verbose #3315 > > │ 12345678-9012-3456-7890-123456789012                                         │
00:02:58 verbose #3316 > > │                                                                              │
00:02:58 verbose #3317 > > │                                                                              │
00:02:58 verbose #3318 > > │ .py output:                                                                  │
00:02:58 verbose #3319 > > │ assert_eq' / actual: 00000000-0000-0000-0000-000000000000 / expected:        │
00:02:58 verbose #3320 > > │ 00000000-0000-0000-0000-000000000000                                         │
00:02:58 verbose #3321 > > │ assert_eq' / actual: 12345678-9012-3456-7890-123456789012 / expected:        │
00:02:58 verbose #3322 > > │ 12345678-9012-3456-7890-123456789012                                         │
00:02:58 verbose #3323 > > │                                                                              │
00:02:58 verbose #3324 > > │                                                                              │
00:02:58 verbose #3325 > > │                                                                              │
00:02:58 verbose #3326 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:58 verbose #3327 > >
00:02:58 verbose #3328 > > ╭─[ 5.70s - stdout ]───────────────────────────────────────────────────────────╮
00:02:58 verbose #3329 > > │ .fsx output:                                                                 │
00:02:58 verbose #3330 > > │ assert_eq' / actual: 00000000-0000-0000-0000-000000000000 / expected:        │
00:02:58 verbose #3331 > > │ 00000000-0000-0000-0000-000000000000                                         │
00:02:58 verbose #3332 > > │ assert_eq' / actual: 12345678-9012-3456-7890-123456789012 / expected:        │
00:02:58 verbose #3333 > > │ 12345678-9012-3456-7890-123456789012                                         │
00:02:58 verbose #3334 > > │                                                                              │
00:02:58 verbose #3335 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:58 verbose #3336 > >
00:02:58 verbose #3337 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:58 verbose #3338 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:58 verbose #3339 > > │ ## main                                                                      │
00:02:58 verbose #3340 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:58 verbose #3341 > >
00:02:58 verbose #3342 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:02:58 verbose #3343 > > inl main () =
00:02:58 verbose #3344 > >     $'let new_guid x = !new_guid x' : ()
00:02:58 verbose #3345 > >     $'let hash_guid x = !hash_guid x' : ()
00:02:58 verbose #3346 > >     $'let new_raw_guid x = !new_raw_guid x' : ()
00:02:58 verbose #3347 > 00:02:57   debug #248 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b542d82f465f24c8cc59752ee695900db09f89faaaf128b3615077dd19022369/main.spi
00:02:58 verbose #3348 > 00:00:15 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 7959 }
00:02:58 verbose #3349 > 00:00:15   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/guid.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/guid.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:03:00 verbose #3350 > 00:00:17 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/guid.dib.ipynb to html
00:03:00 verbose #3351 > 00:00:17 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:03:00 verbose #3352 > 00:00:17 verbose #7 !   validate(nb)
00:03:02 verbose #3353 > 00:00:18 verbose #8 ! [NbConvertApp] Writing 285782 bytes to c:\home\git\polyglot\lib\spiral\guid.dib.html
00:03:02 verbose #3354 > 00:00:18 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 639 }
00:03:02 verbose #3355 > 00:00:18   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 639 }
00:03:02 verbose #3356 > 00:00:18   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/guid.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/guid.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:03:03 verbose #3357 > 00:00:19 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:03:03 verbose #3358 > 00:00:19   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:03:03 verbose #3359 > 00:00:20   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 8657 }
00:03:03   debug #3360 runtime.execute_with_options_async / { exit_code = 0; output_length = 11558 }
00:03:03   debug #6 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path guid.dib --retries 3
00:03:03   debug #3361 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path async.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:03:03 verbose #3362 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "async.dib", "--retries", "3"])) }
00:03:03 verbose #3363 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/async.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/async.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/async.dib" --output-path "c:/home/git/polyglot/lib/spiral/async.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:03:06 verbose #3364 > >
00:03:06 verbose #3365 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:06 verbose #3366 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:06 verbose #3367 > > │ # async                                                                      │
00:03:06 verbose #3368 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:09 verbose #3369 > >
00:03:09 verbose #3370 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:09 verbose #3371 > > //// test
00:03:09 verbose #3372 > >
00:03:09 verbose #3373 > > open testing
00:03:10 verbose #3374 > 00:03:09   debug #249 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7845de436c12d0ca65282fe0cd65832468ca943e72feba50e6b1bb441e251a/main.spi
00:03:10 verbose #3375 > >
00:03:10 verbose #3376 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:10 verbose #3377 > > open rust_operators
00:03:11 verbose #3378 > 00:03:10   debug #250 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/14cf64024e1ad1cf52eeaf1af91f17c5c545fa6f0f762576c8f04b96249ae9ed/main.spi
00:03:11 verbose #3379 > >
00:03:11 verbose #3380 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:11 verbose #3381 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:11 verbose #3382 > > │ ## types                                                                     │
00:03:11 verbose #3383 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:11 verbose #3384 > >
00:03:11 verbose #3385 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:11 verbose #3386 > > inl types () =
00:03:11 verbose #3387 > >     backend_switch {
00:03:11 verbose #3388 > >         Fsharp = fun () =>
00:03:11 verbose #3389 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:03:11 verbose #3390 > > Fable.Core.Emit(\"futures::future::JoinAll<$0>\")>]]\n#endif\ntype
00:03:11 verbose #3391 > > futures_future_JoinAll<'T> = class end"
00:03:11 verbose #3392 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:03:11 verbose #3393 > > Fable.Core.Emit(\"futures::future::TryJoinAll<$0>\")>]]\n#endif\ntype
00:03:11 verbose #3394 > > futures_future_TryJoinAll<'T> = class end"
00:03:11 verbose #3395 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:03:11 verbose #3396 > > Fable.Core.Emit(\"rayon::iter::Map<$0, _>\")>]]\n#endif\ntype rayon_iter_Map<'T>
00:03:11 verbose #3397 > > = class end"
00:03:11 verbose #3398 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:03:11 verbose #3399 > > Fable.Core.Emit(\"rayon::vec::IntoIter<$0>\")>]]\n#endif\ntype
00:03:11 verbose #3400 > > rayon_vec_IntoIter<'T> = class end"
00:03:11 verbose #3401 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:03:11 verbose #3402 > > Fable.Core.Emit(\"std::future::Future<Output = $0>\")>]]\n#endif\ntype
00:03:11 verbose #3403 > > std_future_Future<'T> = class end"
00:03:11 verbose #3404 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:03:11 verbose #3405 > > Fable.Core.Emit(\"tokio::prelude::stream::Fuse<$0>\")>]]\n#endif\ntype
00:03:11 verbose #3406 > > futures_future_Fuse<'T> = class end"
00:03:11 verbose #3407 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:03:11 verbose #3408 > > Fable.Core.Emit(\"tokio::task::JoinHandle<$0>\")>]]\n#endif\ntype
00:03:11 verbose #3409 > > tokio_task_JoinHandle<'T> = class end"
00:03:11 verbose #3410 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:03:11 verbose #3411 > > Fable.Core.Emit(\"tokio_stream::StreamExt\")>]]\n#endif\ntype
00:03:11 verbose #3412 > > tokio_stream_StreamExt = class end"
00:03:11 verbose #3413 > >         Python = fun () => ()
00:03:11 verbose #3414 > >     }
00:03:11 verbose #3415 > 00:03:10   debug #251 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0a52f58d70161c8bd3ad8ab1d7990bdffe9b45248b6c252fb95bc2e0256beed2/main.spi
00:03:11 verbose #3416 > >
00:03:11 verbose #3417 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:11 verbose #3418 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:11 verbose #3419 > > │ ## rust                                                                      │
00:03:11 verbose #3420 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:11 verbose #3421 > >
00:03:11 verbose #3422 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:11 verbose #3423 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:11 verbose #3424 > > │ ### future                                                                   │
00:03:11 verbose #3425 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:11 verbose #3426 > >
00:03:11 verbose #3427 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:11 verbose #3428 > > nominal future t = $'std_future_Future<`t>'
00:03:11 verbose #3429 > 00:03:11   debug #252 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/301c42573312472369197fc03475417f4d99509c13a51e7f27da21c73a4ac0f2/main.spi
00:03:11 verbose #3430 > >
00:03:11 verbose #3431 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:11 verbose #3432 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:11 verbose #3433 > > │ ### future_pin                                                               │
00:03:11 verbose #3434 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:11 verbose #3435 > >
00:03:11 verbose #3436 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:11 verbose #3437 > > type future_pin t = rust.pin (rust.box (rust.dyn' (future t)))
00:03:12 verbose #3438 > 00:03:11   debug #253 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5bfc241fe0c4818683113dc9477b6912c0c661d263cb4e19cc21afd2b2cbe737/main.spi
00:03:12 verbose #3439 > >
00:03:12 verbose #3440 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:12 verbose #3441 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:12 verbose #3442 > > │ ### future_pin_send                                                          │
00:03:12 verbose #3443 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:12 verbose #3444 > >
00:03:12 verbose #3445 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:12 verbose #3446 > > type future_pin_send t = rust.pin (rust.box (rust.send (rust.dyn' (future t))))
00:03:12 verbose #3447 > 00:03:11   debug #254 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/521fcff68e0874d5cba3160fde7ec41f6430cfa4a3c98d5b013771bdb92b8b7c/main.spi
00:03:12 verbose #3448 > >
00:03:12 verbose #3449 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:12 verbose #3450 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:12 verbose #3451 > > │ ### block_on                                                                 │
00:03:12 verbose #3452 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:12 verbose #3453 > >
00:03:12 verbose #3454 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:12 verbose #3455 > > inl block_on forall t. (fn : future_pin t) : t =
00:03:12 verbose #3456 > >     inl runtime : infer =
00:03:12 verbose #3457 > >
00:03:12 verbose #3458 > > !\($'$"tokio::runtime::Builder::new_multi_thread().enable_all().build().unwrap()
00:03:12 verbose #3459 > > "')
00:03:12 verbose #3460 > >     !\\(fn, $'"!runtime.handle().block_on($0)"')
00:03:12 verbose #3461 > 00:03:12   debug #255 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/572b91443a2a18c0b62281e53ff53c2d85397b3e6aabc25a9fc64717596153c4/main.spi
00:03:13 verbose #3462 > >
00:03:13 verbose #3463 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:13 verbose #3464 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:13 verbose #3465 > > │ ### block_on'                                                                │
00:03:13 verbose #3466 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:13 verbose #3467 > >
00:03:13 verbose #3468 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:13 verbose #3469 > > inl block_on' forall t. (fn : future_pin t) : t =
00:03:13 verbose #3470 > >     !\\(fn, $'"futures_lite::future::block_on($0)"')
00:03:13 verbose #3471 > 00:03:12   debug #256 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e54fc51107b7180a6b554a4ab678f75773a7568d2d693685c24a9573c440baa6/main.spi
00:03:13 verbose #3472 > >
00:03:13 verbose #3473 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:13 verbose #3474 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:13 verbose #3475 > > │ ### block_on''                                                               │
00:03:13 verbose #3476 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:13 verbose #3477 > >
00:03:13 verbose #3478 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:13 verbose #3479 > > inl block_on'' forall t. (fn : future_pin t) : t =
00:03:13 verbose #3480 > >     !\\(fn, $'"futures::executor::block_on($0)"')
00:03:13 verbose #3481 > 00:03:12   debug #257 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d0e6122ce10326aa99a9ae7b7183303509dce5a4474b24ca0fc10b158d8bab23/main.spi
00:03:13 verbose #3482 > >
00:03:13 verbose #3483 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:13 verbose #3484 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:13 verbose #3485 > > │ ### block_on'''                                                              │
00:03:13 verbose #3486 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:13 verbose #3487 > >
00:03:13 verbose #3488 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:13 verbose #3489 > > inl block_on''' forall t. (fn : future_pin t) : t =
00:03:13 verbose #3490 > >     !\\(fn, $'"async_std::task::block_on($0)"')
00:03:13 verbose #3491 > 00:03:13   debug #258 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/39cc3e22655c72d040c3f82a2d57f70e7444e1cb8b86f5e1b25fde330d1000d3/main.spi
00:03:14 verbose #3492 > >
00:03:14 verbose #3493 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:14 verbose #3494 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:14 verbose #3495 > > │ ### block_on_send                                                            │
00:03:14 verbose #3496 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:14 verbose #3497 > >
00:03:14 verbose #3498 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:14 verbose #3499 > > inl block_on_send forall t. (fn : future_pin_send t) : t =
00:03:14 verbose #3500 > >     !\($'"tokio::runtime::block_on(!fn)"')
00:03:14 verbose #3501 > 00:03:13   debug #259 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f60b19fba5dd56506144166ed9573bb32b3dc256c65c04f53ed943e085f1bdeb/main.spi
00:03:14 verbose #3502 > >
00:03:14 verbose #3503 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:14 verbose #3504 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:14 verbose #3505 > > │ ### stream_ext                                                               │
00:03:14 verbose #3506 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:14 verbose #3507 > >
00:03:14 verbose #3508 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:14 verbose #3509 > > nominal stream_ext = $'tokio_stream_StreamExt'
00:03:14 verbose #3510 > 00:03:13   debug #260 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7401af6e3a5c8f52043bb203ea56ecc9c8eaf4244865bd4d23dc64a9b00f5e/main.spi
00:03:14 verbose #3511 > >
00:03:14 verbose #3512 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:14 verbose #3513 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:14 verbose #3514 > > │ ### join_handle                                                              │
00:03:14 verbose #3515 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:14 verbose #3516 > >
00:03:14 verbose #3517 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:14 verbose #3518 > > nominal join_handle t = $'tokio_task_JoinHandle<`t>'
00:03:14 verbose #3519 > 00:03:14   debug #261 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/794491035eaedc5e8e1f67e569a84eca8c0268d8305a2612109fcd1eb9f76053/main.spi
00:03:15 verbose #3520 > >
00:03:15 verbose #3521 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:15 verbose #3522 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:15 verbose #3523 > > │ ### spawn                                                                    │
00:03:15 verbose #3524 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:15 verbose #3525 > >
00:03:15 verbose #3526 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:15 verbose #3527 > > inl spawn forall t. (fn : future_pin_send t) : join_handle t =
00:03:15 verbose #3528 > >     !\($'"tokio::runtime::spawn(!fn)"')
00:03:15 verbose #3529 > 00:03:14   debug #262 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/eef4c264dc3f2ade9024ebfd4f8e92632c246a0ad8515690ad3e271286ed710a/main.spi
00:03:15 verbose #3530 > >
00:03:15 verbose #3531 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:15 verbose #3532 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:15 verbose #3533 > > │ ### try_join_all                                                             │
00:03:15 verbose #3534 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:15 verbose #3535 > >
00:03:15 verbose #3536 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:15 verbose #3537 > > nominal try_join_all t = $'futures_future_TryJoinAll<`t>'
00:03:15 verbose #3538 > >
00:03:15 verbose #3539 > > inl try_join_all forall t. (x : am'.vec (future_pin (resultm.result' t
00:03:15 verbose #3540 > > sm'.std_string))) : try_join_all (future_pin (resultm.result' t sm'.std_string))
00:03:15 verbose #3541 > > =
00:03:15 verbose #3542 > >     inl x = join x
00:03:15 verbose #3543 > >     !\($'"futures::future::try_join_all(!x)"')
00:03:15 verbose #3544 > 00:03:14   debug #263 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fb26e1b90742cb7afb69b7b7b038903dbb389b68044847882cd571fb08afb2b9/main.spi
00:03:15 verbose #3545 > >
00:03:15 verbose #3546 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:15 verbose #3547 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:15 verbose #3548 > > │ ### fuse                                                                     │
00:03:15 verbose #3549 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:15 verbose #3550 > >
00:03:15 verbose #3551 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:15 verbose #3552 > > nominal fuse t = $'futures_future_Fuse<`t>'
00:03:15 verbose #3553 > >
00:03:15 verbose #3554 > > inl future_fuse forall t. (x : future_pin t) : fuse (future_pin t) =
00:03:15 verbose #3555 > >     !\($'"futures::future::FutureExt::fuse(!x)"')
00:03:15 verbose #3556 > 00:03:15   debug #264 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bf589d58f086ea3548f69ee4a4c1253f3134b20b7119134d67208481efce5172/main.spi
00:03:16 verbose #3557 > >
00:03:16 verbose #3558 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:16 verbose #3559 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:16 verbose #3560 > > │ ### join_all                                                                 │
00:03:16 verbose #3561 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:16 verbose #3562 > >
00:03:16 verbose #3563 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:16 verbose #3564 > > nominal join_all t = $'futures_future_JoinAll<`t>'
00:03:16 verbose #3565 > >
00:03:16 verbose #3566 > > inl join_all forall t. (x : am'.vec (future_pin t)) : join_all (future_pin t) =
00:03:16 verbose #3567 > >     inl x = join x
00:03:16 verbose #3568 > >     !\($'"futures::future::join_all(!x)"')
00:03:16 verbose #3569 > 00:03:15   debug #265 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/077d31f92b59c73038054678a5fdc1e9e4d8f8b904beece452ef245b8b6ddfc3/main.spi
00:03:16 verbose #3570 > >
00:03:16 verbose #3571 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:16 verbose #3572 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:16 verbose #3573 > > │ ### join_all_send                                                            │
00:03:16 verbose #3574 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:16 verbose #3575 > >
00:03:16 verbose #3576 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:16 verbose #3577 > > inl join_all_send forall t. (x : am'.vec (future_pin_send t)) : join_all
00:03:16 verbose #3578 > > (future_pin_send t) =
00:03:16 verbose #3579 > >     inl x = join x
00:03:16 verbose #3580 > >     !\($'"futures::future::join_all(!x)"')
00:03:16 verbose #3581 > 00:03:15   debug #266 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8027a540e06f654cb902b968bfba2d2b7802e6022e7bfad450942e45a600c932/main.spi
00:03:16 verbose #3582 > >
00:03:16 verbose #3583 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:16 verbose #3584 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:16 verbose #3585 > > │ ### await_handle                                                             │
00:03:16 verbose #3586 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:16 verbose #3587 > >
00:03:16 verbose #3588 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:16 verbose #3589 > > inl await_handle forall t. (x : join_handle t) : t =
00:03:16 verbose #3590 > >     !\($'"!x.await"')
00:03:17 verbose #3591 > 00:03:16   debug #267 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4fd29e6710b894b0bfa89c7a06c020b898fd5afdaf618c642a5fdebd7ebb3455/main.spi
00:03:17 verbose #3592 > >
00:03:17 verbose #3593 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:17 verbose #3594 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:17 verbose #3595 > > │ ### await_all                                                                │
00:03:17 verbose #3596 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:17 verbose #3597 > >
00:03:17 verbose #3598 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:17 verbose #3599 > > inl await_all forall t. (x : join_all (future_pin t)) : am'.vec t =
00:03:17 verbose #3600 > >     !\($'"!x.await"')
00:03:17 verbose #3601 > 00:03:16   debug #268 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/82a2a4178a03dc919b29c54da26fc86401aeea362f3b5e5e51c1e2ddb4da2abd/main.spi
00:03:17 verbose #3602 > >
00:03:17 verbose #3603 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:17 verbose #3604 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:17 verbose #3605 > > │ ### await_all_send                                                           │
00:03:17 verbose #3606 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:17 verbose #3607 > >
00:03:17 verbose #3608 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:17 verbose #3609 > > inl await_all_send forall t. (x : join_all (future_pin_send t)) : am'.vec t =
00:03:17 verbose #3610 > >     !\($'"!x.await"')
00:03:17 verbose #3611 > 00:03:16   debug #269 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/03e218202e71dda60a15bca58028a654aaa3a14cecb57d342b0177ddcda8d826/main.spi
00:03:17 verbose #3612 > >
00:03:17 verbose #3613 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:17 verbose #3614 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:17 verbose #3615 > > │ ### try_await_all                                                            │
00:03:17 verbose #3616 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:17 verbose #3617 > >
00:03:17 verbose #3618 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:17 verbose #3619 > > inl try_await_all forall t. (x : try_join_all (future_pin (resultm.result' t
00:03:17 verbose #3620 > > sm'.std_string))) : resultm.result' (am'.vec t) sm'.std_string =
00:03:17 verbose #3621 > >     !\($'"!x.await"')
00:03:18 verbose #3622 > 00:03:17   debug #270 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0872ce9600ccb7f3b5ebbbf664ef12f754206ee6a5b063725a3a7d123fb5e337/main.spi
00:03:18 verbose #3623 > >
00:03:18 verbose #3624 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:18 verbose #3625 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:18 verbose #3626 > > │ ### try_await_all_send                                                       │
00:03:18 verbose #3627 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:18 verbose #3628 > >
00:03:18 verbose #3629 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:18 verbose #3630 > > inl try_await_all_send forall t. (x : try_join_all (future_pin_send
00:03:18 verbose #3631 > > (resultm.result' t sm'.std_string))) : resultm.result' (am'.vec t)
00:03:18 verbose #3632 > > sm'.std_string =
00:03:18 verbose #3633 > >     !\($'"!x.await"')
00:03:18 verbose #3634 > 00:03:17   debug #271 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d8ce72f1e867e2af697b3acf8084f114c4a83a80546e8976418d3bbfc9b12e91/main.spi
00:03:18 verbose #3635 > >
00:03:18 verbose #3636 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:18 verbose #3637 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:18 verbose #3638 > > │ ### await                                                                    │
00:03:18 verbose #3639 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:18 verbose #3640 > >
00:03:18 verbose #3641 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:18 verbose #3642 > > inl await forall t. (x : future_pin t) : t =
00:03:18 verbose #3643 > >     !\($'"!x.await"')
00:03:18 verbose #3644 > 00:03:18   debug #272 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/eaa9702755a15385a983d0003d8d2767217817b15c8891817ff5af510bba02d2/main.spi
00:03:18 verbose #3645 > >
00:03:18 verbose #3646 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:18 verbose #3647 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:18 verbose #3648 > > │ ### await                                                                    │
00:03:18 verbose #3649 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:18 verbose #3650 > >
00:03:18 verbose #3651 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:18 verbose #3652 > > inl await_send forall t. (x : future_pin_send t) : t =
00:03:18 verbose #3653 > >     !\($'"!x.await"')
00:03:19 verbose #3654 > 00:03:18   debug #273 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ae90c132f71a3e1fd0eefc0800022498fb140fca9863760bea3406267ec0a7a6/main.spi
00:03:19 verbose #3655 > >
00:03:19 verbose #3656 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:19 verbose #3657 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:19 verbose #3658 > > │ ### into_iter                                                                │
00:03:19 verbose #3659 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:19 verbose #3660 > >
00:03:19 verbose #3661 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:19 verbose #3662 > > nominal into_iter t = $'rayon_vec_IntoIter<`t>'
00:03:19 verbose #3663 > 00:03:18   debug #274 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/166c33d12a396f9979439bfc84e2097900dc984c640ce4c725097ad6c5a9e39c/main.spi
00:03:19 verbose #3664 > >
00:03:19 verbose #3665 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:19 verbose #3666 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:19 verbose #3667 > > │ ### into_par_iter                                                            │
00:03:19 verbose #3668 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:19 verbose #3669 > >
00:03:19 verbose #3670 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:19 verbose #3671 > > inl into_par_iter forall t. (x : am'.vec t) : into_iter t =
00:03:19 verbose #3672 > >     !\($'"rayon::iter::IntoParallelIterator::into_par_iter(!x)"')
00:03:19 verbose #3673 > 00:03:19   debug #275 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0aad7bc4c8b3be3ad1e46fe7bfbac9b486fcf51fda84ce42b6460ac7faf6ce7d/main.spi
00:03:20 verbose #3674 > >
00:03:20 verbose #3675 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:20 verbose #3676 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:20 verbose #3677 > > │ ### par_iter                                                                 │
00:03:20 verbose #3678 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:20 verbose #3679 > >
00:03:20 verbose #3680 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:20 verbose #3681 > > inl par_iter forall t. (x : am'.vec t) : into_iter t =
00:03:20 verbose #3682 > >     !\($'"rayon::iter::IntoParallelIterator::par_iter(!x)"')
00:03:20 verbose #3683 > 00:03:19   debug #276 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0bdd0367af965625bce141d1e12e5bd8945a6f19501c60660cf4623494202edd/main.spi
00:03:20 verbose #3684 > >
00:03:20 verbose #3685 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:20 verbose #3686 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:20 verbose #3687 > > │ ### iter_map                                                                 │
00:03:20 verbose #3688 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:20 verbose #3689 > >
00:03:20 verbose #3690 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:20 verbose #3691 > > nominal iter_map t u = $'rayon_iter_Map<`t>'
00:03:20 verbose #3692 > 00:03:19   debug #277 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bcc4a39f44b188a799c41044be37e3560fc9e3c7f5038673298384844b67d2f7/main.spi
00:03:20 verbose #3693 > >
00:03:20 verbose #3694 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:20 verbose #3695 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:20 verbose #3696 > > │ ### par_map                                                                  │
00:03:20 verbose #3697 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:20 verbose #3698 > >
00:03:20 verbose #3699 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:20 verbose #3700 > > inl par_map forall t u. (fn : t -> u) (ar : into_iter t) : iter_map (into_iter
00:03:20 verbose #3701 > > t) u =
00:03:20 verbose #3702 > >     !\\((ar, fn), $'"rayon::iter::ParallelIterator::map($0, |x| $1(x))"')
00:03:20 verbose #3703 > 00:03:20   debug #278 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/360ef330890ac99eb2ca50f213d893a33c93d30e8054e7ff41bd43d860e67d59/main.spi
00:03:21 verbose #3704 > >
00:03:21 verbose #3705 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:21 verbose #3706 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:21 verbose #3707 > > │ ### par_collect                                                              │
00:03:21 verbose #3708 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:21 verbose #3709 > >
00:03:21 verbose #3710 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:21 verbose #3711 > > inl par_collect forall t u. (iter : iter_map (into_iter t) u) : am'.vec u =
00:03:21 verbose #3712 > >     !\\(iter, $'"rayon::iter::ParallelIterator::collect($0)"')
00:03:21 verbose #3713 > 00:03:20   debug #279 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fd0cb17686de51d110a8be69a76a1056c3fd1c6befa48b9674e60305621905c7/main.spi
00:03:21 verbose #3714 > >
00:03:21 verbose #3715 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:21 verbose #3716 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:21 verbose #3717 > > │ ### try_join_all_iter                                                        │
00:03:21 verbose #3718 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:21 verbose #3719 > >
00:03:21 verbose #3720 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:21 verbose #3721 > > inl try_join_all_iter forall t. (x : am'.vec (future_pin_send (resultm.result' t
00:03:21 verbose #3722 > > sm'.std_string))) : try_join_all (future_pin_send (resultm.result' t
00:03:21 verbose #3723 > > sm'.std_string)) =
00:03:21 verbose #3724 > >     inl x = join x
00:03:21 verbose #3725 > >     !\($'"futures::future::try_join_all(!x)"')
00:03:21 verbose #3726 > 00:03:20   debug #280 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4409824b3a47cc7b87e781b2c1b58b954183659563e2a0ac8ecb5ef646e4984b/main.spi
00:03:21 verbose #3727 > >
00:03:21 verbose #3728 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:21 verbose #3729 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:21 verbose #3730 > > │ ### new_future                                                               │
00:03:21 verbose #3731 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:21 verbose #3732 > >
00:03:21 verbose #3733 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:21 verbose #3734 > > inl new_future forall t. (x : () -> t) : future_pin t =
00:03:21 verbose #3735 > >     join
00:03:21 verbose #3736 > >         !\($'"{Box::pin(async { //"')
00:03:21 verbose #3737 > >         x () |> fun x => join $'!x '
00:03:21 verbose #3738 > >         !\($'"}}) //"')
00:03:22 verbose #3739 > 00:03:21   debug #281 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/47adf428c1482231fbc246709c21897ee942f9459eb49c9890f42e7e21c2a9a1/main.spi
00:03:22 verbose #3740 > >
00:03:22 verbose #3741 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:22 verbose #3742 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:22 verbose #3743 > > │ ### new_future_move                                                          │
00:03:22 verbose #3744 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:22 verbose #3745 > >
00:03:22 verbose #3746 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:22 verbose #3747 > > inl new_future_move forall t. (x : () -> t) : future_pin t =
00:03:22 verbose #3748 > >     join
00:03:22 verbose #3749 > >         !\($'"{Box::pin(async move { //"')
00:03:22 verbose #3750 > >         x () |> fun x => join $'!x '
00:03:22 verbose #3751 > >         !\($'"}}) //"')
00:03:22 verbose #3752 > 00:03:21   debug #282 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/46e4aeb15c802cbd98feb92883755696bc607cdfa10291259639f6bb763a5cb0/main.spi
00:03:22 verbose #3753 > >
00:03:22 verbose #3754 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:22 verbose #3755 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:22 verbose #3756 > > │ ### future_init                                                              │
00:03:22 verbose #3757 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:22 verbose #3758 > >
00:03:22 verbose #3759 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:22 verbose #3760 > > inl future_init forall t. (depth : (u8 * u8)) (flag : u8) (x : () -> t) :
00:03:22 verbose #3761 > > future_pin t =
00:03:22 verbose #3762 > >     // join
00:03:22 verbose #3763 > >     //     if flag = 1
00:03:22 verbose #3764 > >     //     then new_future_move x
00:03:22 verbose #3765 > >     //     else new_future x
00:03:22 verbose #3766 > >     if flag = 1
00:03:22 verbose #3767 > >     then !\($'"let __result = Box::pin(async move { //"')
00:03:22 verbose #3768 > >     else !\($'"let __result = Box::pin(async { //"')
00:03:22 verbose #3769 > >
00:03:22 verbose #3770 > >     let x' = x ()
00:03:22 verbose #3771 > >     inl x' = join x'
00:03:22 verbose #3772 > >
00:03:22 verbose #3773 > >     x' |> rust.fix_closure depth
00:03:22 verbose #3774 > >
00:03:22 verbose #3775 > >     !\($'"__result"')
00:03:22 verbose #3776 > 00:03:22   debug #283 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5c753f32a81b1f006b912bfe4eaa29496064c8b4f6bffc546180a86e51e5e514/main.spi
00:03:22 verbose #3777 > >
00:03:22 verbose #3778 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:22 verbose #3779 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:22 verbose #3780 > > │ ### future_init_send                                                         │
00:03:22 verbose #3781 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:22 verbose #3782 > >
00:03:22 verbose #3783 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:22 verbose #3784 > > inl future_init_send forall t. (depth : (u8 * u8)) (flag : u8) (x : () -> t) :
00:03:22 verbose #3785 > > future_pin_send t =
00:03:22 verbose #3786 > >     // join
00:03:22 verbose #3787 > >     //     if flag = 1
00:03:22 verbose #3788 > >     //     then new_future_move x
00:03:22 verbose #3789 > >     //     else new_future x
00:03:22 verbose #3790 > >     join
00:03:22 verbose #3791 > >         if flag = 1
00:03:22 verbose #3792 > >         then !\($'"let __result = Box::pin(async move { //"')
00:03:22 verbose #3793 > >         else !\($'"let __result = Box::pin(async { //"')
00:03:22 verbose #3794 > >
00:03:22 verbose #3795 > >         let x' = x ()
00:03:22 verbose #3796 > >         inl x' = join x'
00:03:22 verbose #3797 > >
00:03:22 verbose #3798 > >         x' |> rust.fix_closure depth
00:03:22 verbose #3799 > >
00:03:22 verbose #3800 > >         !\($'"__result"')
00:03:23 verbose #3801 > 00:03:22   debug #284 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f137ced59dd80df9fad46a90f3713595b88efdaf1dc8cc253b017a5c9686bc93/main.spi
00:03:23 verbose #3802 > >
00:03:23 verbose #3803 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:23 verbose #3804 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:23 verbose #3805 > > │ ### new_future_move_init                                                     │
00:03:23 verbose #3806 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:23 verbose #3807 > >
00:03:23 verbose #3808 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:23 verbose #3809 > > inl new_future_move_init forall t. (depth : (u8 * u8)) (flag : u8) (x : () -> t)
00:03:23 verbose #3810 > > : future_pin t =
00:03:23 verbose #3811 > >     future_init depth flag x
00:03:23 verbose #3812 > >     // join
00:03:23 verbose #3813 > >     //     !\($'"{Box::pin(async move { //"')
00:03:23 verbose #3814 > >     //     inl x' = x () |> fun x => join $'!x '
00:03:23 verbose #3815 > >     //         inl depth = depth |> fst
00:03:23 verbose #3816 > >     //         if depth = 1
00:03:23 verbose #3817 > >     //         then !\($'"!x' })"')
00:03:23 verbose #3818 > >     //         elif depth = 2
00:03:23 verbose #3819 > >     //         then !\($'"!x' }})"')
00:03:23 verbose #3820 > >     //         elif depth = 3
00:03:23 verbose #3821 > >     //         then !\($'"!x' }}})"')
00:03:23 verbose #3822 > >     //         elif depth = 4
00:03:23 verbose #3823 > >     //         then !\($'"!x' }}}})"')
00:03:23 verbose #3824 > >
00:03:23 verbose #3825 > >     //         !\($'"// 1"')
00:03:23 verbose #3826 > 00:03:22   debug #285 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/27ce8dd1e928e42990c5591842efb7ccd030a1b7e38ae80ff46721eead98bbb0/main.spi
00:03:23 verbose #3827 > >
00:03:23 verbose #3828 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:23 verbose #3829 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:23 verbose #3830 > > │ ## fsharp                                                                    │
00:03:23 verbose #3831 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:23 verbose #3832 > >
00:03:23 verbose #3833 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:23 verbose #3834 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:23 verbose #3835 > > │ ### async                                                                    │
00:03:23 verbose #3836 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:23 verbose #3837 > >
00:03:23 verbose #3838 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:23 verbose #3839 > > nominal async t = $'Async<`t>'
00:03:23 verbose #3840 > 00:03:23   debug #286 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/51c245189b37ea9c0fea17c4d47d29b76597e161a0c09b29bdb564654e2d1e6d/main.spi
00:03:24 verbose #3841 > >
00:03:24 verbose #3842 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:24 verbose #3843 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:24 verbose #3844 > > │ ### task                                                                     │
00:03:24 verbose #3845 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:24 verbose #3846 > >
00:03:24 verbose #3847 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:24 verbose #3848 > > nominal task t =
00:03:24 verbose #3849 > >     `(
00:03:24 verbose #3850 > >         typecase t with
00:03:24 verbose #3851 > >         | () => $'' : $'System.Threading.Tasks.Task'
00:03:24 verbose #3852 > >         | _ => $'' : $'System.Threading.Tasks.Task<`t>'
00:03:24 verbose #3853 > >     )
00:03:24 verbose #3854 > 00:03:23   debug #287 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1ec1493851cd255843a5d94630b1872954a36ebcd0daf22b102c031b86612794/main.spi
00:03:24 verbose #3855 > >
00:03:24 verbose #3856 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:24 verbose #3857 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:24 verbose #3858 > > │ ### new_async_unit                                                           │
00:03:24 verbose #3859 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:24 verbose #3860 > >
00:03:24 verbose #3861 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:24 verbose #3862 > > inl new_async_unit forall t. (fn : () -> ()) : async t =
00:03:24 verbose #3863 > >     run_target function
00:03:24 verbose #3864 > >         | Fsharp (Native) => fun () =>
00:03:24 verbose #3865 > >             inl result : optionm'.option' (async t) = optionm'.none' ()
00:03:24 verbose #3866 > >             $'let mutable _!result = !result '
00:03:24 verbose #3867 > >             $'async {'
00:03:24 verbose #3868 > >             fn ()
00:03:24 verbose #3869 > >             $'}'
00:03:24 verbose #3870 > >             $'|> fun x -> _!result <- Some x'
00:03:24 verbose #3871 > >             $'match _!result with Some x -> x | None -> failwith
00:03:24 verbose #3872 > > "async.new_async_unit / _!result=None"'
00:03:24 verbose #3873 > >         | _ => fun () => null ()
00:03:24 verbose #3874 > 00:03:23   debug #288 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d5a2b6b3a455c14b6bfcae17c850da816d70aa988a3568b21a2dfa7c70808294/main.spi
00:03:24 verbose #3875 > >
00:03:24 verbose #3876 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:24 verbose #3877 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:24 verbose #3878 > > │ ### new_async                                                                │
00:03:24 verbose #3879 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:24 verbose #3880 > >
00:03:24 verbose #3881 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:24 verbose #3882 > > inl new_async forall t. (fn : () -> t) : async t =
00:03:24 verbose #3883 > >     new_async_unit (fn >> ignore)
00:03:24 verbose #3884 > 00:03:24   debug #289 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b396eae7cef9f965ada388c4cbae78f4a215b6cf283b3df90fb8a65c860aaf1f/main.spi
00:03:25 verbose #3885 > >
00:03:25 verbose #3886 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:25 verbose #3887 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:25 verbose #3888 > > │ ### new_task                                                                 │
00:03:25 verbose #3889 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:25 verbose #3890 > >
00:03:25 verbose #3891 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:25 verbose #3892 > > inl new_task forall t. (fn : () -> t) : task t =
00:03:25 verbose #3893 > >     run_target function
00:03:25 verbose #3894 > >         | Fsharp (Native) => fun () =>
00:03:25 verbose #3895 > >             inl result : optionm'.option' (task t) = optionm'.none' ()
00:03:25 verbose #3896 > >             $'let mutable _!result = !result '
00:03:25 verbose #3897 > >             $'task {'
00:03:25 verbose #3898 > >             fn () |> ignore
00:03:25 verbose #3899 > >             $'}'
00:03:25 verbose #3900 > >             $'|> fun x -> _!result <- Some x'
00:03:25 verbose #3901 > >             $'match _!result with Some x -> x | None -> failwith "async.new_task
00:03:25 verbose #3902 > > / _!result=None"'
00:03:25 verbose #3903 > >         | _ => fun () => null ()
00:03:25 verbose #3904 > 00:03:24   debug #290 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d35381d6e021118a8accc9eacb9c0c66c7ef31f6f107c51633f4b0379e1428b2/main.spi
00:03:25 verbose #3905 > >
00:03:25 verbose #3906 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:25 verbose #3907 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:25 verbose #3908 > > │ ### await_task                                                               │
00:03:25 verbose #3909 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:25 verbose #3910 > >
00:03:25 verbose #3911 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:25 verbose #3912 > > inl await_task forall t. (a : task t) : async t =
00:03:25 verbose #3913 > >     run_target function
00:03:25 verbose #3914 > >         | Fsharp (Native) => fun () =>
00:03:25 verbose #3915 > >             a |> $'Async.AwaitTask'
00:03:25 verbose #3916 > >         | _ => fun () => null ()
00:03:25 verbose #3917 > 00:03:25   debug #291 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7d3071fa3b03b4ade51f1e3e50e33224fd50535d2213ed0ae42c8c2603049168/main.spi
00:03:25 verbose #3918 > >
00:03:25 verbose #3919 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:25 verbose #3920 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:25 verbose #3921 > > │ ### ignore                                                                   │
00:03:25 verbose #3922 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:25 verbose #3923 > >
00:03:25 verbose #3924 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:25 verbose #3925 > > inl ignore forall t. (a : async t) : async () =
00:03:25 verbose #3926 > >     run_target function
00:03:25 verbose #3927 > >         | Fsharp (Native) => fun () =>
00:03:25 verbose #3928 > >             a |> $'Async.Ignore'
00:03:25 verbose #3929 > >         | _ => fun () => null ()
00:03:26 verbose #3930 > 00:03:25   debug #292 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/12e2dbaa7b851e8e299a103f94aa7492dd66b034ef0a024b5abb99c27634f9dd/main.spi
00:03:26 verbose #3931 > >
00:03:26 verbose #3932 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:26 verbose #3933 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:26 verbose #3934 > > │ ### run_synchronously                                                        │
00:03:26 verbose #3935 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:26 verbose #3936 > >
00:03:26 verbose #3937 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:26 verbose #3938 > > inl run_synchronously forall t. (a : async t) : t =
00:03:26 verbose #3939 > >     run_target function
00:03:26 verbose #3940 > >         | Fsharp (Native) => fun () =>
00:03:26 verbose #3941 > >             a |> $'Async.RunSynchronously'
00:03:26 verbose #3942 > >         | _ => fun () => null ()
00:03:26 verbose #3943 > 00:03:25   debug #293 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/81aa4fcf8a9e69f50f6398840fe57a648f1892485e27f6152693ccc0304c5312/main.spi
00:03:26 verbose #3944 > >
00:03:26 verbose #3945 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:26 verbose #3946 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:26 verbose #3947 > > │ ### start                                                                    │
00:03:26 verbose #3948 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:26 verbose #3949 > >
00:03:26 verbose #3950 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:26 verbose #3951 > > inl start (a : async ()) : () =
00:03:26 verbose #3952 > >     run_target function
00:03:26 verbose #3953 > >         | Fsharp (Native) => fun () =>
00:03:26 verbose #3954 > >             a |> $'Async.Start'
00:03:26 verbose #3955 > >         | _ => fun () => null ()
00:03:26 verbose #3956 > 00:03:26   debug #294 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f14b83fd3cccbf1153a7d298c7cf6d097e36fb5482c9b0b4f4ca7f49ff6597ba/main.spi
00:03:26 verbose #3957 > >
00:03:26 verbose #3958 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:26 verbose #3959 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:26 verbose #3960 > > │ ### start_child                                                              │
00:03:26 verbose #3961 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:26 verbose #3962 > >
00:03:27 verbose #3963 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:27 verbose #3964 > > inl start_child forall t. (a : async t) : async (async t) =
00:03:27 verbose #3965 > >     run_target function
00:03:27 verbose #3966 > >         | Fsharp (Native) => fun () =>
00:03:27 verbose #3967 > >             a |> $'Async.StartChild'
00:03:27 verbose #3968 > >         | _ => fun () => null ()
00:03:27 verbose #3969 > 00:03:26   debug #295 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dcd26dc5582acc3a1fb99d065fe143f4354a064116858e7068fc9d472833bc62/main.spi
00:03:27 verbose #3970 > >
00:03:27 verbose #3971 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:27 verbose #3972 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:27 verbose #3973 > > │ ### start_child_timeout                                                      │
00:03:27 verbose #3974 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:27 verbose #3975 > >
00:03:27 verbose #3976 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:27 verbose #3977 > > inl start_child_timeout forall t. (timeout : i32) (a : async t) : async (async
00:03:27 verbose #3978 > > t) =
00:03:27 verbose #3979 > >     run_target function
00:03:27 verbose #3980 > >         | Fsharp (Native) => fun () =>
00:03:27 verbose #3981 > >             $'Async.StartChild (!a, !timeout)'
00:03:27 verbose #3982 > >         | _ => fun () => null ()
00:03:27 verbose #3983 > 00:03:26   debug #296 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a5ff237c16e496b2251148d0bd4a455082c2ff853ae2b941d7848548b65f8f2b/main.spi
00:03:27 verbose #3984 > >
00:03:27 verbose #3985 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:27 verbose #3986 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:27 verbose #3987 > > │ ### start_immediate                                                          │
00:03:27 verbose #3988 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:27 verbose #3989 > >
00:03:27 verbose #3990 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:27 verbose #3991 > > inl start_immediate forall t. (a : async t) : () =
00:03:27 verbose #3992 > >     run_target function
00:03:27 verbose #3993 > >         | Fsharp (Native) => fun () =>
00:03:27 verbose #3994 > >             a |> $'Async.StartImmediate'
00:03:27 verbose #3995 > >         | _ => fun () => null ()
00:03:27 verbose #3996 > 00:03:27   debug #297 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a80634ccb9675298056123472620e6a3ac8f89f3dd51778e64dd6ab796ca4ceb/main.spi
00:03:28 verbose #3997 > >
00:03:28 verbose #3998 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:28 verbose #3999 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:28 verbose #4000 > > │ ### task_canceled_exception                                                  │
00:03:28 verbose #4001 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:28 verbose #4002 > >
00:03:28 verbose #4003 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:28 verbose #4004 > > nominal task_canceled_exception =
00:03:28 verbose #4005 > > $'System.Threading.Tasks.TaskCanceledException'
00:03:28 verbose #4006 > 00:03:27   debug #298 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/590d14e1695a1d21c20e14bcb7dc80dd84b8af6eda7d3751f43eb3f5c8b27dfe/main.spi
00:03:28 verbose #4007 > >
00:03:28 verbose #4008 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:28 verbose #4009 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:28 verbose #4010 > > │ ### sleep                                                                    │
00:03:28 verbose #4011 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:28 verbose #4012 > >
00:03:28 verbose #4013 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:28 verbose #4014 > > inl sleep (ms : i32) : async () =
00:03:28 verbose #4015 > >     run_target function
00:03:28 verbose #4016 > >         | Fsharp (Native) => fun () =>
00:03:28 verbose #4017 > >             ms |> $'Async.Sleep'
00:03:28 verbose #4018 > >         | _ => fun () => null ()
00:03:28 verbose #4019 > 00:03:28   debug #299 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2f0f1929688480b130686f98bf91c8b16cfc836451fea6386cc45a83f548e964/main.spi
00:03:28 verbose #4020 > >
00:03:28 verbose #4021 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:28 verbose #4022 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:28 verbose #4023 > > │ ### do                                                                       │
00:03:28 verbose #4024 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:28 verbose #4025 > >
00:03:28 verbose #4026 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:28 verbose #4027 > > inl do (a : async ()) : () =
00:03:28 verbose #4028 > >     $'do\! !a '
00:03:29 verbose #4029 > 00:03:28   debug #300 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4b11018370c4eb6ea1157259cf9da1132d30237941ce90c88b967183314877d5/main.spi
00:03:29 verbose #4030 > >
00:03:29 verbose #4031 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:29 verbose #4032 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:29 verbose #4033 > > │ ### let'                                                                     │
00:03:29 verbose #4034 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:29 verbose #4035 > >
00:03:29 verbose #4036 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:29 verbose #4037 > > inl let' forall t. (a : async t) : t =
00:03:29 verbose #4038 > >     $'let\! !a = !a '
00:03:29 verbose #4039 > >     $'!a '
00:03:29 verbose #4040 > 00:03:28   debug #301 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6b11097b587bc4a48008a4980138e7b7492ba578fb2f584e590e3add06110da1/main.spi
00:03:29 verbose #4041 > >
00:03:29 verbose #4042 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:29 verbose #4043 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:29 verbose #4044 > > │ ### return_await                                                             │
00:03:29 verbose #4045 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:29 verbose #4046 > >
00:03:29 verbose #4047 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:29 verbose #4048 > > inl return_await forall t. (a : async t) : () =
00:03:29 verbose #4049 > >     $'return\! !a '
00:03:29 verbose #4050 > 00:03:29   debug #302 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/37a37745c9259e0fa44b3dddee49e5f90c00dd8b46999c586c0e7a331b384d43/main.spi
00:03:30 verbose #4051 > >
00:03:30 verbose #4052 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:30 verbose #4053 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:30 verbose #4054 > > │ ### return_await'                                                            │
00:03:30 verbose #4055 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:30 verbose #4056 > >
00:03:30 verbose #4057 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:30 verbose #4058 > > inl return_await' forall t. (a : async t) : t =
00:03:30 verbose #4059 > >     $'return\! !a '
00:03:30 verbose #4060 > 00:03:29   debug #303 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/668433a8c00fedd826e9d4042d2c2b8062d788014b6f571768952248d2ad33a4/main.spi
00:03:30 verbose #4061 > >
00:03:30 verbose #4062 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:30 verbose #4063 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:30 verbose #4064 > > │ ### map                                                                      │
00:03:30 verbose #4065 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:30 verbose #4066 > >
00:03:30 verbose #4067 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:30 verbose #4068 > > inl map forall t u. (fn : t -> u) (a : async t) : async u =
00:03:30 verbose #4069 > >     fun () =>
00:03:30 verbose #4070 > >         inl x = a |> let'
00:03:30 verbose #4071 > >         fn x |> return
00:03:30 verbose #4072 > >     |> new_async_unit
00:03:30 verbose #4073 > 00:03:29   debug #304 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ab9c03459596dfc4288262cd64c5e02ae922cceb033033d44e6f60c71f3d17fc/main.spi
00:03:30 verbose #4074 > >
00:03:30 verbose #4075 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:30 verbose #4076 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:30 verbose #4077 > > │ ### catch'                                                                   │
00:03:30 verbose #4078 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:30 verbose #4079 > >
00:03:30 verbose #4080 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:30 verbose #4081 > > inl catch' forall t e. (a : async t) : async (choice2' t e) =
00:03:30 verbose #4082 > >     run_target function
00:03:30 verbose #4083 > >         | Fsharp (Native) => fun () =>
00:03:30 verbose #4084 > >             a |> $'Async.Catch'
00:03:30 verbose #4085 > >         | _ => fun () => null ()
00:03:31 verbose #4086 > 00:03:30   debug #305 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f3d2a915ef46f978728f2c2bf2ce4ba6f5c2251197fbb973c02437e4582ab701/main.spi
00:03:31 verbose #4087 > >
00:03:31 verbose #4088 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:31 verbose #4089 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:31 verbose #4090 > > │ ### catch                                                                    │
00:03:31 verbose #4091 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:31 verbose #4092 > >
00:03:31 verbose #4093 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:31 verbose #4094 > > inl catch forall t e. (a : async t) : async (result t e) =
00:03:31 verbose #4095 > >     a
00:03:31 verbose #4096 > >     |> catch'
00:03:31 verbose #4097 > >     |> map choice2_unbox
00:03:31 verbose #4098 > >     |> map function
00:03:31 verbose #4099 > >         | C1of2 result => Ok result
00:03:31 verbose #4100 > >         | C2of2 ex => Error ex
00:03:31 verbose #4101 > 00:03:30   debug #306 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4367317d8b1a478985ffc9ec247e23633058f7ca6e8beed9b1b7cd14c0a78703/main.spi
00:03:31 verbose #4102 > >
00:03:31 verbose #4103 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:31 verbose #4104 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:31 verbose #4105 > > │ ### run_with_timeout_async                                                   │
00:03:31 verbose #4106 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:31 verbose #4107 > >
00:03:31 verbose #4108 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:31 verbose #4109 > > inl run_with_timeout_async forall t. (timeout : i32) (fn : async t) : async
00:03:31 verbose #4110 > > (option t) =
00:03:31 verbose #4111 > >     run_target function
00:03:31 verbose #4112 > >         | Fsharp (Native) => fun () =>
00:03:31 verbose #4113 > >             fun () =>
00:03:31 verbose #4114 > >                 inl child = fn |> start_child_timeout timeout |> let'
00:03:31 verbose #4115 > >                 child
00:03:31 verbose #4116 > >                 |> catch
00:03:31 verbose #4117 > >                 |> map function
00:03:31 verbose #4118 > >                     | Ok result => Some result
00:03:31 verbose #4119 > >                     | Error ex when ex |> sm'.format_debug |> sm'.contains
00:03:31 verbose #4120 > > "System.TimeoutException" =>
00:03:31 verbose #4121 > >                         trace Verbose
00:03:31 verbose #4122 > >                             fun () => $'"async.run_with_timeout_async"'
00:03:31 verbose #4123 > >                             fun () => { timeout }
00:03:31 verbose #4124 > >                         None
00:03:31 verbose #4125 > >                     | Error (ex : exn) =>
00:03:31 verbose #4126 > >                         trace Critical
00:03:31 verbose #4127 > >                             fun () => $'$"async.run_with_timeout_async**"'
00:03:31 verbose #4128 > >                             fun () => { timeout ex = ex |> sm'.format_exception
00:03:31 verbose #4129 > > }
00:03:31 verbose #4130 > >                         None
00:03:31 verbose #4131 > >                 |> return_await
00:03:31 verbose #4132 > >             |> new_async_unit
00:03:31 verbose #4133 > >         | _ => fun () => null ()
00:03:31 verbose #4134 > 00:03:31   debug #307 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f78b0f88654ebdc6d2208c0162a0b9b3153deb623a7976708685eaac15d3af35/main.spi
00:03:31 verbose #4135 > >
00:03:31 verbose #4136 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:31 verbose #4137 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:31 verbose #4138 > > │ ### run_with_timeout                                                         │
00:03:31 verbose #4139 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:31 verbose #4140 > >
00:03:31 verbose #4141 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:31 verbose #4142 > > inl run_with_timeout timeout fn =
00:03:31 verbose #4143 > >     fn
00:03:31 verbose #4144 > >     |> run_with_timeout_async timeout
00:03:31 verbose #4145 > >     |> run_synchronously
00:03:32 verbose #4146 > 00:03:31   debug #308 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/56fefaa0ea4f456bcea9bf19544e02cef58328ef789e70b98ed6f91b32e75e98/main.spi
00:03:32 verbose #4147 > >
00:03:32 verbose #4148 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:32 verbose #4149 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:32 verbose #4150 > > │ ### cancellation_token                                                       │
00:03:32 verbose #4151 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:32 verbose #4152 > >
00:03:32 verbose #4153 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:32 verbose #4154 > > inl cancellation_token () : async threading.cancellation_token =
00:03:32 verbose #4155 > >     $'Async.CancellationToken'
00:03:32 verbose #4156 > 00:03:31   debug #309 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dba84b08693651ad3bd11be5516bff05b0b88e665af63c135fad5c688eb4eb77/main.spi
00:03:32 verbose #4157 > >
00:03:32 verbose #4158 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:32 verbose #4159 > > inl default_cancellation_token () : threading.cancellation_token =
00:03:32 verbose #4160 > >     $'Async.DefaultCancellationToken'
00:03:32 verbose #4161 > 00:03:32   debug #310 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5b8c9f5bf61f2b63d36644c633aa7c78b49076e42cdefff6744eff4bf087e58b/main.spi
00:03:33 verbose #4162 > >
00:03:33 verbose #4163 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:33 verbose #4164 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:33 verbose #4165 > > │ ### merge_cancellation_token_with_default_async                              │
00:03:33 verbose #4166 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:33 verbose #4167 > >
00:03:33 verbose #4168 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:33 verbose #4169 > > inl merge_cancellation_token_with_default_async
00:03:33 verbose #4170 > >     (token : threading.cancellation_token)
00:03:33 verbose #4171 > >     : async threading.cancellation_token
00:03:33 verbose #4172 > >     =
00:03:33 verbose #4173 > >     run_target function
00:03:33 verbose #4174 > >         | Fsharp (Native) => fun () =>
00:03:33 verbose #4175 > >             fun () =>
00:03:33 verbose #4176 > >                 inl ct = cancellation_token () |> let'
00:03:33 verbose #4177 > >                 inl dct = default_cancellation_token ()
00:03:33 verbose #4178 > >                 inl cts = threading.create_linked_token_source ;[[ ct; dct;
00:03:33 verbose #4179 > > token ]]
00:03:33 verbose #4180 > >                 cts |> threading.cancellation_source_token |> return
00:03:33 verbose #4181 > >             |> new_async_unit
00:03:33 verbose #4182 > >         | _ => fun () => null ()
00:03:33 verbose #4183 > 00:03:32   debug #311 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/04b203c2534a96046397ba8f87ca9e21c1c32305615e6fa825c62c31d1d8651d/main.spi
00:03:33 verbose #4184 > >
00:03:33 verbose #4185 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:33 verbose #4186 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:33 verbose #4187 > > │ ### with_trace_level                                                         │
00:03:33 verbose #4188 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:33 verbose #4189 > >
00:03:33 verbose #4190 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:33 verbose #4191 > > inl with_trace_level forall t. level fn : _ t = new_async fun () =>
00:03:33 verbose #4192 > >     inl trace_state = get_trace_state_or_init None
00:03:33 verbose #4193 > >     inl old_trace_level = *trace_state.level
00:03:33 verbose #4194 > >     inl trace_level = trace_state.level
00:03:33 verbose #4195 > >     try_finally
00:03:33 verbose #4196 > >         fun () =>
00:03:33 verbose #4197 > >             trace_level <- level
00:03:33 verbose #4198 > >             fn |> return_await
00:03:33 verbose #4199 > >         fun () =>
00:03:33 verbose #4200 > >             trace_level <- old_trace_level
00:03:33 verbose #4201 > 00:03:32   debug #312 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/685e5662a1e7d432f7803eec18255c13734599b02e7f9875e65dfc5c69e747d7/main.spi
00:03:33 verbose #4202 > >
00:03:33 verbose #4203 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:33 verbose #4204 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:33 verbose #4205 > > │ ### value_task                                                               │
00:03:33 verbose #4206 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:33 verbose #4207 > >
00:03:33 verbose #4208 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:33 verbose #4209 > > nominal value_task = $'System.Threading.Tasks.ValueTask'
00:03:34 verbose #4210 > 00:03:33   debug #313 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/928d7c2e72c9c04d9b23cc1b2d45e31b8c6993476d73f824cd0ecc7a5bfe85d9/main.spi
00:03:34 verbose #4211 > >
00:03:34 verbose #4212 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:34 verbose #4213 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:34 verbose #4214 > > │ ### value_task_as_task                                                       │
00:03:34 verbose #4215 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:34 verbose #4216 > >
00:03:34 verbose #4217 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:34 verbose #4218 > > inl value_task_as_task (task : value_task) : task () =
00:03:34 verbose #4219 > >     $'!task.AsTask' ()
00:03:34 verbose #4220 > 00:03:33   debug #314 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a32dce8a1984f3fae4c6ffb0dba0077f6070c7a6c84c721b0bdad9028764990c/main.spi
00:03:34 verbose #4221 > >
00:03:34 verbose #4222 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:34 verbose #4223 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:34 verbose #4224 > > │ ### await_value_task_unit                                                    │
00:03:34 verbose #4225 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:34 verbose #4226 > >
00:03:34 verbose #4227 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:34 verbose #4228 > > inl await_value_task_unit (task : value_task) : async () =
00:03:34 verbose #4229 > >     task |> value_task_as_task |> await_task
00:03:34 verbose #4230 > 00:03:34   debug #315 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8cf5f7c3fb1f73ebbe35b5eeb593dc276d2b1e7063497045d846275976513201/main.spi
00:03:34 verbose #4231 > >
00:03:34 verbose #4232 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:34 verbose #4233 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:34 verbose #4234 > > │ ## main                                                                      │
00:03:34 verbose #4235 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:34 verbose #4236 > >
00:03:34 verbose #4237 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:34 verbose #4238 > > inl main () =
00:03:34 verbose #4239 > >     types ()
00:03:34 verbose #4240 > >     $'let merge_cancellation_token_with_default_async x =
00:03:34 verbose #4241 > > !merge_cancellation_token_with_default_async x' : ()
00:03:35 verbose #4242 > 00:03:34   debug #316 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8d1f297ba996a51627a22f64d94d17ee65e4c94c0284f5c04839af437c1e8db3/main.spi
00:03:36 verbose #4243 > 00:00:32 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 40569 }
00:03:36 verbose #4244 > 00:00:32   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/async.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/async.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:03:38 verbose #4245 > 00:00:34 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/async.dib.ipynb to html
00:03:38 verbose #4246 > 00:00:34 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:03:38 verbose #4247 > 00:00:34 verbose #7 !   validate(nb)
00:03:40 verbose #4248 > 00:00:36 verbose #8 ! [NbConvertApp] Writing 400341 bytes to c:\home\git\polyglot\lib\spiral\async.dib.html
00:03:40 verbose #4249 > 00:00:36 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 641 }
00:03:40 verbose #4250 > 00:00:36   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 641 }
00:03:40 verbose #4251 > 00:00:36   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/async.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/async.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:03:41 verbose #4252 > 00:00:37 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:03:41 verbose #4253 > 00:00:37   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:03:41 verbose #4254 > 00:00:37   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 41269 }
00:03:41   debug #4255 runtime.execute_with_options_async / { exit_code = 0; output_length = 45499 }
00:03:41   debug #7 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path async.dib --retries 3
00:03:41   debug #4256 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path runtime.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:03:41 verbose #4257 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "runtime.dib", "--retries", "3"])) }
00:03:41 verbose #4258 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/runtime.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/runtime.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/runtime.dib" --output-path "c:/home/git/polyglot/lib/spiral/runtime.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:03:43 verbose #4259 > >
00:03:43 verbose #4260 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:43 verbose #4261 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:43 verbose #4262 > > │ # runtime                                                                    │
00:03:43 verbose #4263 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:47 verbose #4264 > >
00:03:47 verbose #4265 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:47 verbose #4266 > > open rust_operators
00:03:47 verbose #4267 > > open sm'_operators
00:03:48 verbose #4268 > 00:03:47   debug #317 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bf61618f8655d8e50dd31f6ed591bb82f1f3131ec57d5c0ea9955695867e89ad/main.spi
00:03:48 verbose #4269 > >
00:03:48 verbose #4270 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:48 verbose #4271 > > //// test
00:03:48 verbose #4272 > >
00:03:48 verbose #4273 > > open testing
00:03:48 verbose #4274 > > open file_system_operators
00:03:49 verbose #4275 > 00:03:48   debug #318 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0e119223e9360fc4abe96a6c8703bff66065bb7a405d81adc1703702d0520ef9/main.spi
00:03:49 verbose #4276 > >
00:03:49 verbose #4277 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:49 verbose #4278 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:49 verbose #4279 > > │ ## types                                                                     │
00:03:49 verbose #4280 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:49 verbose #4281 > >
00:03:49 verbose #4282 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:49 verbose #4283 > > inl types () =
00:03:49 verbose #4284 > >     backend_switch {
00:03:49 verbose #4285 > >         Fsharp = fun () =>
00:03:49 verbose #4286 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:03:49 verbose #4287 > > Fable.Core.Emit(\"clap::Arg\")>]]\n#endif\ntype clap_Arg = class end"
00:03:49 verbose #4288 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:03:49 verbose #4289 > > Fable.Core.Emit(\"clap::ArgAction\")>]]\n#endif\ntype clap_ArgAction = class
00:03:49 verbose #4290 > > end"
00:03:49 verbose #4291 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:03:49 verbose #4292 > > Fable.Core.Emit(\"clap::Command\")>]]\n#endif\ntype clap_Command = class end"
00:03:49 verbose #4293 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:03:49 verbose #4294 > > Fable.Core.Emit(\"clap::ArgMatches\")>]]\n#endif\ntype clap_ArgMatches = class
00:03:49 verbose #4295 > > end"
00:03:49 verbose #4296 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:03:49 verbose #4297 > > Fable.Core.Emit(\"clap::builder::ValueRange\")>]]\n#endif\ntype
00:03:49 verbose #4298 > > clap_builder_ValueRange = class end"
00:03:49 verbose #4299 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:03:49 verbose #4300 > > Fable.Core.Emit(\"clap::builder::ValueParser\")>]]\n#endif\ntype
00:03:49 verbose #4301 > > clap_builder_ValueParser = class end"
00:03:49 verbose #4302 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:03:49 verbose #4303 > > Fable.Core.Emit(\"clap::builder::PossibleValue\")>]]\n#endif\ntype
00:03:49 verbose #4304 > > clap_builder_PossibleValue = class end"
00:03:49 verbose #4305 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:03:49 verbose #4306 > > Fable.Core.Emit(\"std::process::Child\")>]]\n#endif\ntype std_process_Child =
00:03:49 verbose #4307 > > class end"
00:03:49 verbose #4308 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:03:49 verbose #4309 > > Fable.Core.Emit(\"std::process::ChildStderr\")>]]\n#endif\ntype
00:03:49 verbose #4310 > > std_process_ChildStderr = class end"
00:03:49 verbose #4311 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:03:49 verbose #4312 > > Fable.Core.Emit(\"std::process::ChildStdout\")>]]\n#endif\ntype
00:03:49 verbose #4313 > > std_process_ChildStdout = class end"
00:03:49 verbose #4314 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:03:49 verbose #4315 > > Fable.Core.Emit(\"std::process::ChildStdin\")>]]\n#endif\ntype
00:03:49 verbose #4316 > > std_process_ChildStdin = class end"
00:03:49 verbose #4317 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:03:49 verbose #4318 > > Fable.Core.Emit(\"std::process::Command\")>]]\n#endif\ntype std_process_Command
00:03:49 verbose #4319 > > = class end"
00:03:49 verbose #4320 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:03:49 verbose #4321 > > Fable.Core.Emit(\"std::process::ExitStatus\")>]]\n#endif\ntype
00:03:49 verbose #4322 > > std_process_ExitStatus = class end"
00:03:49 verbose #4323 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:03:49 verbose #4324 > > Fable.Core.Emit(\"std::process::Output\")>]]\n#endif\ntype std_process_Output =
00:03:49 verbose #4325 > > class end"
00:03:49 verbose #4326 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:03:49 verbose #4327 > > Fable.Core.Emit(\"std::process::Stdio\")>]]\n#endif\ntype std_process_Stdio =
00:03:49 verbose #4328 > > class end"
00:03:49 verbose #4329 > >         Python = fun () =>
00:03:49 verbose #4330 > >             global "import gc"
00:03:49 verbose #4331 > >     }
00:03:49 verbose #4332 > 00:03:48   debug #319 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b2eacbc77d3bc5da34535d2be0628e2038a3c688a9d01faf25d0aac322537d01/main.spi
00:03:49 verbose #4333 > >
00:03:49 verbose #4334 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:49 verbose #4335 > > inl types () =
00:03:49 verbose #4336 > >     types ()
00:03:49 verbose #4337 > >     am'.types ()
00:03:49 verbose #4338 > >     async.types ()
00:03:49 verbose #4339 > >     env.types ()
00:03:49 verbose #4340 > >     rust.types ()
00:03:49 verbose #4341 > >     seq.types ()
00:03:49 verbose #4342 > >     sm'.types ()
00:03:49 verbose #4343 > >     threading.types ()
00:03:49 verbose #4344 > 00:03:49   debug #320 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3de92f4a022e3db52c7621b3e41d224238ce72508292ee20dff05c656f2990f9/main.spi
00:03:49 verbose #4345 > >
00:03:49 verbose #4346 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:49 verbose #4347 > > //// test
00:03:49 verbose #4348 > >
00:03:49 verbose #4349 > > inl types () =
00:03:49 verbose #4350 > >     file_system.types ()
00:03:49 verbose #4351 > >     types ()
00:03:50 verbose #4352 > 00:03:49   debug #321 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d8bdf2cf4224e8cc43e2373efcf8c1e5bb44627cc55a734c690733b406b5d2a4/main.spi
00:03:50 verbose #4353 > >
00:03:50 verbose #4354 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:50 verbose #4355 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:50 verbose #4356 > > │ ## runtime                                                                   │
00:03:50 verbose #4357 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:50 verbose #4358 > >
00:03:50 verbose #4359 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:50 verbose #4360 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:50 verbose #4361 > > │ ### split_args                                                               │
00:03:50 verbose #4362 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:50 verbose #4363 > >
00:03:50 verbose #4364 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:50 verbose #4365 > > let split_args (args : string) : result (array_base string) string =
00:03:50 verbose #4366 > >     open parsing
00:03:50 verbose #4367 > >     inl esc = [[ '\\'; '`' ]]
00:03:50 verbose #4368 > >     inl quotes = [[ '"' ]]
00:03:50 verbose #4369 > >     inl special = esc ++ quotes
00:03:50 verbose #4370 > >     inl p_esc_char c =
00:03:50 verbose #4371 > >         p_char c >>. any_char () |>> fun c' => $'$"{!c}{!c'}"'
00:03:50 verbose #4372 > >     inl p_word = special |> none_of |>> sm'.obj_to_string
00:03:50 verbose #4373 > >     inl p_plain = special ++ [[ ' ' ]] |> none_of |> many1_chars
00:03:50 verbose #4374 > >     inl p_text = p_word |> many1_strings
00:03:50 verbose #4375 > >     inl p_esc = esc |> listm.map p_esc_char |> choice
00:03:50 verbose #4376 > >     inl p_quoted = (p_word <|> p_esc) |> many |>> sm'.concat_list ""
00:03:50 verbose #4377 > >     inl p_quoted_all = p_quoted |> between (p_char '"') (p_char '"')
00:03:50 verbose #4378 > >     inl p_esc_root = p_esc >>% "" >>. (p_word |> many) |>> sm'.concat_list ""
00:03:50 verbose #4379 > >     inl p_content = p_plain <|> p_quoted_all <|> p_esc_root
00:03:50 verbose #4380 > >     inl p_args = spaces1 () |> sep_by p_content
00:03:50 verbose #4381 > >     args
00:03:50 verbose #4382 > >     |> parse p_args
00:03:50 verbose #4383 > >     |> resultm.map (fst >> listm'.box >> listm'.to_array')
00:03:50 verbose #4384 > 00:03:49   debug #322 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b6b5e173ef6bdbdb6b35577a41bf325aef53c27f47dccf475ba8e17b07a0ae36/main.spi
00:03:50 verbose #4385 > >
00:03:50 verbose #4386 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:50 verbose #4387 > > //// test
00:03:50 verbose #4388 > > ///! fsharp
00:03:50 verbose #4389 > > ////! cuda // Only stack allocated primitive types (i8,i16,i32,i64 and
00:03:50 verbose #4390 > > u8,u16,u32,u64 and f32,f64 and bool) are allowed in CuPy arrays.
00:03:50 verbose #4391 > > ///! rust
00:03:50 verbose #4392 > > ///! typescript
00:03:50 verbose #4393 > > ///! python
00:03:50 verbose #4394 > >
00:03:50 verbose #4395 > > [[
00:03:50 verbose #4396 > >     "a b c",
00:03:50 verbose #4397 > >     ;[[ "a"; "b"; "c" ]]
00:03:50 verbose #4398 > >
00:03:50 verbose #4399 > >     "e f \"g h\" i",
00:03:50 verbose #4400 > >     ;[[ "e"; "f"; "g h"; "i" ]]
00:03:50 verbose #4401 > >
00:03:50 verbose #4402 > >     "\"j k\" \"l\" \"m\"",
00:03:50 verbose #4403 > >     ;[[ "j k"; "l"; "m" ]]
00:03:50 verbose #4404 > >
00:03:50 verbose #4405 > >     "s -t \"u \`\"v\`\" w\"",
00:03:50 verbose #4406 > >     ;[[ "s"; "-t"; "u \`\"v\`\" w" ]]
00:03:50 verbose #4407 > >
00:03:50 verbose #4408 > >     "n -o \"p \\\"q\\\" r\"",
00:03:50 verbose #4409 > >     ;[[ "n"; "-o"; "p \\\"q\\\" r" ]]
00:03:50 verbose #4410 > >
00:03:50 verbose #4411 > >     "r -s \"t \\\"u\\\"\"",
00:03:50 verbose #4412 > >     ;[[ "r"; "-s"; "t \\\"u\\\"" ]]
00:03:50 verbose #4413 > >
00:03:50 verbose #4414 > >     $'$"x -y \\\"$z -a \'(b=\\\\\\"c-id=)[[a-fA-F0-9]]{{8}}\', {{ \`$_[[1]] +
00:03:50 verbose #4415 > > \`$d++ }}\\\""',
00:03:50 verbose #4416 > >     ;[[ "x"; "-y"; "$z -a '(b=\\\"c-id=)[[a-fA-F0-9]]{8}', { `$_[[1]] + `$d++ }"
00:03:50 verbose #4417 > > ]]
00:03:50 verbose #4418 > >
00:03:50 verbose #4419 > >     "e -f \"$g -h '(i=`\"j-id=)[[a-fA-F0-9]]{8}', { `$_[[1]] + `$k++ }\"",
00:03:50 verbose #4420 > >     ;[[ "e"; "-f"; "$g -h '(i=`\"j-id=)[[a-fA-F0-9]]{8}', { `$_[[1]] + `$k++ }"
00:03:50 verbose #4421 > > ]]
00:03:50 verbose #4422 > >
00:03:50 verbose #4423 > >     $'$"--l \\\\\\"\'\'\' m \'\'\'\\\\\\" "',
00:03:50 verbose #4424 > >     ;[[ "--l"; "''' m '''" ]]
00:03:50 verbose #4425 > >
00:03:50 verbose #4426 > >     $'$"n --o --p q --r \\\"s:/t u/v.w\\\" --x \\\"y:/z.a\\\" --b c.d
00:03:50 verbose #4427 > > \\\"\\\\e{{f-g}}\\\" h.i \\\"j (k)\\\""',
00:03:50 verbose #4428 > >     ;[[ "n"; "--o"; "--p"; "q"; "--r"; "s:/t u/v.w"; "--x"; "y:/z.a"; "--b";
00:03:50 verbose #4429 > > "c.d"; "\\e{f-g}"; "h.i"; "j (k)" ]]
00:03:50 verbose #4430 > >
00:03:50 verbose #4431 > >     $'\@$"l ""m n:\\o.p"""',
00:03:50 verbose #4432 > >     ;[[ "l"; "m n:\\o.p" ]]
00:03:50 verbose #4433 > > ]]
00:03:50 verbose #4434 > > |> _assert_fn split_args
00:03:50 verbose #4435 > 00:03:50   debug #323 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3281088d386289f76ff1b85c3f35fe2be171b0fa754d0cd7f6209b3bf2af22ae/main.spi
00:03:58 verbose #4436 > >
00:03:58 verbose #4437 > > ╭─[ 7.96s - return value ]─────────────────────────────────────────────────────╮
00:03:58 verbose #4438 > > │                                                                              │
00:03:58 verbose #4439 > > │ .rs output:                                                                  │
00:03:58 verbose #4440 > > │                                                                              │
00:03:58 verbose #4441 > > │ 00:00:00 verbose #1 testing._assert_fn / { input = a b c }             │
00:03:58 verbose #4442 > > │ assert_eq' / actual: Array(MutCell(["a", "b", "c"])) / expected:             │
00:03:58 verbose #4443 > > │ Array(MutCell(["a", "b", "c"]))                                              │
00:03:58 verbose #4444 > > │                                                                              │
00:03:58 verbose #4445 > > │ 00:00:00 verbose #2 testing._assert_fn / { input = e f "g h" i }       │
00:03:58 verbose #4446 > > │ assert_eq' / actual: Array(MutCell(["e", "f", "g h", "i"])) / expected:      │
00:03:58 verbose #4447 > > │ Array(MutCell(["e", "f", "g h", "i"]))                                       │
00:03:58 verbose #4448 > > │                                                                              │
00:03:58 verbose #4449 > > │ 00:00:00 verbose #3 testing._assert_fn / { input = "j k" "l" "m" }     │
00:03:58 verbose #4450 > > │ assert_eq' / actual: Array(MutCell(["j k", "l", "m"])) / expected:           │
00:03:58 verbose #4451 > > │ Array(MutCell(["j k", "l", "m"]))                                            │
00:03:58 verbose #4452 > > │                                                                              │
00:03:58 verbose #4453 > > │ 00:00:00 verbose #4 testing._assert_fn / { input = s -t "u `"v`" w" }  │
00:03:58 verbose #4454 > > │ assert_eq' / actual: Array(MutCell(["s", "-t", "u `"v`" w"])) / expected:    │
00:03:58 verbose #4455 > > │ Array(MutCell(["s", "-t", "u `"v`" w"]))                                     │
00:03:58 verbose #4456 > > │                                                                              │
00:03:58 verbose #4457 > > │ 00:00:00 verbose #5 testing._assert_fn / { input = n -o "p \"q\" r" }  │
00:03:58 verbose #4458 > > │ assert_eq' / actual: Array(MutCell(["n", "-o", "p \"q\" r"])) / expected:    │
00:03:58 verbose #4459 > > │ Array(MutCell(["n", "-o", "p \"q\" r"]))                                     │
00:03:58 verbose #4460 > > │                                                                              │
00:03:58 verbose #4461 > > │ 00:00:00 verbose #6 testing._assert_fn / { input = r -s "t \"u\"" }    │
00:03:58 verbose #4462 > > │ assert_eq' / actual: Array(MutCell(["r", "-s", "t \"u\""])) / expected:      │
00:03:58 verbose #4463 > > │ Array(MutCell(["r", "-s", "t \"u\""]))                                       │
00:03:58 verbose #4464 > > │                                                                              │
00:03:58 verbose #4465 > > │ 00:00:00 verbose #7 testing._assert_fn / { input = x -y "$z -a         │
00:03:58 verbose #4466 > > │ '(b=\"c-id=)[a-fA-F0-9]{8}', { `$_[1] + `$d++ }" }                           │
00:03:58 verbose #4467 > > │ assert_eq' / actual: Array(MutCell(["x", "-y", "$z -a '(b=\"c-id=)[          │
00:03:58 verbose #4468 > > │ a-fA-F0-9]{8}', { `$_[1] + `$d++ }"])) / expected: Array(MutCell(["x", "-y", │
00:03:58 verbose #4469 > > │ "$z -a '(b=\"c-id=)[a-fA-F0-9]{8}', { `$_[1] + `$d++ }"]))                   │
00:03:58 verbose #4470 > > │                                                                              │
00:03:58 verbose #4471 > > │ 00:00:00 verbose #8 testing._ass...p \\"q\\" r'] / expected: ['n',     │
00:03:58 verbose #4472 > > │ '-o', 'p \\"q\\" r']                                                         │
00:03:58 verbose #4473 > > │                                                                              │
00:03:58 verbose #4474 > > │ 00:00:00 verbose #6 testing._assert_fn / { input = r -s "t \"u\"" }     │
00:03:58 verbose #4475 > > │ assert_eq' / actual: ['r', '-s', 't \\"u\\"'] / expected: ['r', '-s', 't     │
00:03:58 verbose #4476 > > │ \\"u\\"']                                                                    │
00:03:58 verbose #4477 > > │                                                                              │
00:03:58 verbose #4478 > > │ 00:00:00 verbose #7 testing._assert_fn / { input = x -y "$z -a          │
00:03:58 verbose #4479 > > │ '(b=\"c-id=)[a-fA-F0-9]{8}', { `$_[1] + `$d++ }" }                           │
00:03:58 verbose #4480 > > │ assert_eq' / actual: ['x', '-y', '$z -a \'(b=\\"c-id=)[a-fA-F0-9]{8}\', {    │
00:03:58 verbose #4481 > > │ `$_[1] + `$d++ }'] / expected: ['x', '-y', '$z -a \'(b=\\"c-id=)[            │
00:03:58 verbose #4482 > > │ a-fA-F0-9]{8}\', { `$_[1] + `$d++ }']                                        │
00:03:58 verbose #4483 > > │                                                                              │
00:03:58 verbose #4484 > > │ 00:00:00 verbose #8 testing._assert_fn / { input = e -f "$g -h          │
00:03:58 verbose #4485 > > │ '(i=`"j-id=)[a-fA-F0-9]{8}', { `$_[1] + `$k++ }" }                           │
00:03:58 verbose #4486 > > │ assert_eq' / actual: ['e', '-f', '$g -h \'(i=`"j-id=)[a-fA-F0-9]{8}\', { `$_ │
00:03:58 verbose #4487 > > │ [1] + `$k++ }'] / expected: ['e', '-f', '$g -h \'(i=`"j-id=)[                │
00:03:58 verbose #4488 > > │ a-fA-F0-9]{8}\', { `$_[1] + `$k++ }']                                        │
00:03:58 verbose #4489 > > │                                                                              │
00:03:58 verbose #4490 > > │ 00:00:00 verbose #9 testing._assert_fn / { input = --l \"''' m '''\"  } │
00:03:58 verbose #4491 > > │ assert_eq' / actual: ['--l', "''' m '''"] / expected: ['--l', "''' m '''"]   │
00:03:58 verbose #4492 > > │                                                                              │
00:03:58 verbose #4493 > > │ 00:00:00 verbose #10 testing._assert_fn / { input = n --o --p q --r     │
00:03:58 verbose #4494 > > │ "s:/t u/v.w" --x "y:/z.a" --b c.d "\e{f-g}" h.i "j (k)" }                    │
00:03:58 verbose #4495 > > │ assert_eq' / actual: ['n', '--o', '--p', 'q', '--r', 's:/t u/v.w', '--x',    │
00:03:58 verbose #4496 > > │ 'y:/z.a', '--b', 'c.d', '\\e{f-g}', 'h.i', 'j (k)'] / expected: ['n', '--o', │
00:03:58 verbose #4497 > > │ '--p', 'q', '--r', 's:/t u/v.w', '--x', 'y:/z.a', '--b', 'c.d', '\\e{f-g}',  │
00:03:58 verbose #4498 > > │ 'h.i', 'j (k)']                                                              │
00:03:58 verbose #4499 > > │                                                                              │
00:03:58 verbose #4500 > > │ 00:00:00 verbose #11 testing._assert_fn / { input = l "m n:\o.p" }      │
00:03:58 verbose #4501 > > │ assert_eq' / actual: ['l', 'm n:\\o.p'] / expected: ['l', 'm n:\\o.p']       │
00:03:58 verbose #4502 > > │                                                                              │
00:03:58 verbose #4503 > > │                                                                              │
00:03:58 verbose #4504 > > │                                                                              │
00:03:58 verbose #4505 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:58 verbose #4506 > >
00:03:58 verbose #4507 > > ╭─[ 7.98s - stdout ]───────────────────────────────────────────────────────────╮
00:03:58 verbose #4508 > > │ .fsx output:                                                                 │
00:03:58 verbose #4509 > > │                                                                              │
00:03:58 verbose #4510 > > │ 00:00:00 verbose #1 testing._assert_fn / { input = a b c }              │
00:03:58 verbose #4511 > > │ assert_eq' / actual: [|"a"; "b"; "c"|] / expected: [|"a"; "b"; "c"|]         │
00:03:58 verbose #4512 > > │                                                                              │
00:03:58 verbose #4513 > > │ 00:00:00 verbose #2 testing._assert_fn / { input = e f "g h" i }        │
00:03:58 verbose #4514 > > │ assert_eq' / actual: [|"e"; "f"; "g h"; "i"|] / expected: [|"e"; "f"; "g h"; │
00:03:58 verbose #4515 > > │ "i"|]                                                                        │
00:03:58 verbose #4516 > > │                                                                              │
00:03:58 verbose #4517 > > │ 00:00:00 verbose #3 testing._assert_fn / { input = "j k" "l" "m" }      │
00:03:58 verbose #4518 > > │ assert_eq' / actual: [|"j k"; "l"; "m"|] / expected: [|"j k"; "l"; "m"|]     │
00:03:58 verbose #4519 > > │                                                                              │
00:03:58 verbose #4520 > > │ 00:00:00 verbose #4 testing._assert_fn / { input = s -t "u `"v`" w" }   │
00:03:58 verbose #4521 > > │ assert_eq' / actual: [|"s"; "-t"; "u `"v`" w"|] / expected: [|"s"; "-t"; "u  │
00:03:58 verbose #4522 > > │ `"v`" w"|]                                                                   │
00:03:58 verbose #4523 > > │                                                                              │
00:03:58 verbose #4524 > > │ 00:00:00 verbose #5 testing._assert_fn / { input = n -o "p \"q\" r" }   │
00:03:58 verbose #4525 > > │ assert_eq' / actual: [|"n"; "-o"; "p \"q\" r"|] / expected: [|"n"; "-o"; "p  │
00:03:58 verbose #4526 > > │ \"q\" r"|]                                                                   │
00:03:58 verbose #4527 > > │                                                                              │
00:03:58 verbose #4528 > > │ 00:00:00 verbose #6 testing._assert_fn / { input = r -s "t \"u\"" }     │
00:03:58 verbose #4529 > > │ assert_eq' / actual: [|"r"; "-s"; "t \"u\""|] / expected: [|"r"; "-s"; "t    │
00:03:58 verbose #4530 > > │ \"u\""|]                                                                     │
00:03:58 verbose #4531 > > │                                                                              │
00:03:58 verbose #4532 > > │ 00:00:00 verbose #7 testing._assert_fn / { input = x -y "$z -a          │
00:03:58 verbose #4533 > > │ '(b=\"c-id=)[a-fA-F0-9]{8}', { `$_[1] + `$d++ }" }                           │
00:03:58 verbose #4534 > > │ assert_eq' / actual: [|"x"; "-y"; "$z -a '(b=\"c-id=)[a-fA-F0-9]{8}', { `$_[ │
00:03:58 verbose #4535 > > │ 1] + `$d++ }"|] / expected: [|"x"; "-y"; "$z -a '(b=\"c-id=)[a-fA-F0-9]{8}', │
00:03:58 verbose #4536 > > │ { `$_[1] + `$d++ }"|]                                                        │
00:03:58 verbose #4537 > > │                                                                              │
00:03:58 verbose #4538 > > │ 00:00:00 verbose #8 testing._assert_fn / { input = e -f "$g -h          │
00:03:58 verbose #4539 > > │ '(i=`"j-id=)[a-fA-F0-9]{8}', { `$_[1] + `$k++ }" }                           │
00:03:58 verbose #4540 > > │ assert_eq' / actual: [|"e"; "-f"; "$g -h '(i=`"j-id=)[a-fA-F0-9]{8}', { `$_[ │
00:03:58 verbose #4541 > > │ 1] + `$k++ }"|] / expected: [|"e"; "-f"; "$g -h '(i=`"j-id=)[a-fA-F0-9]{8}', │
00:03:58 verbose #4542 > > │ { `$_[1] + `$k++ }"|]                                                        │
00:03:58 verbose #4543 > > │                                                                              │
00:03:58 verbose #4544 > > │ 00:00:00 verbose #9 testing._assert_fn / { input = --l \"''' m '''\"  } │
00:03:58 verbose #4545 > > │ assert_eq' / actual: [|"--l"; "''' m '''"|] / expected: [|"--l"; "''' m      │
00:03:58 verbose #4546 > > │ '''"|]                                                                       │
00:03:58 verbose #4547 > > │                                                                              │
00:03:58 verbose #4548 > > │ 00:00:00 verbose #10 testing._assert_fn / { input = n --o --p q --r     │
00:03:58 verbose #4549 > > │ "s:/t u/v.w" --x "y:/z.a" --b c.d "\e{f-g}" h.i "j (k)" }                    │
00:03:58 verbose #4550 > > │ assert_eq' / actual: [|"n"; "--o"; "--p"; "q"; "--r"; "s:/t u/v.w"; "--x";   │
00:03:58 verbose #4551 > > │ "y:/z.a"; "--b"; "c.d";                                                      │
00:03:58 verbose #4552 > > │   "\e{f-g}"; "h.i"; "j (k)"|] / expected: [|"n"; "--o"; "--p"; "q"; "--r";   │
00:03:58 verbose #4553 > > │ "s:/t u/v.w"; "--x"; "y:/z.a"; "--b"; "c.d";                                 │
00:03:58 verbose #4554 > > │   "\e{f-g}"; "h.i"; "j (k)"|]                                                │
00:03:58 verbose #4555 > > │                                                                              │
00:03:58 verbose #4556 > > │ 00:00:00 verbose #11 testing._assert_fn / { input = l "m n:\o.p" }      │
00:03:58 verbose #4557 > > │ assert_eq' / actual: [|"l"; "m n:\o.p"|] / expected: [|"l"; "m n:\o.p"|]     │
00:03:58 verbose #4558 > > │                                                                              │
00:03:58 verbose #4559 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:58 verbose #4560 > >
00:03:58 verbose #4561 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:58 verbose #4562 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:58 verbose #4563 > > │ ### split_command                                                            │
00:03:58 verbose #4564 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:58 verbose #4565 > >
00:03:58 verbose #4566 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:58 verbose #4567 > > let split_command (command : string) : result (string * option string) string =
00:03:58 verbose #4568 > >     open parsing
00:03:58 verbose #4569 > >     inl quotes = [[ '"'; '\'' ]]
00:03:58 verbose #4570 > >     inl p_quoted_char = quotes |> listm.map p_char |> choice
00:03:58 verbose #4571 > >     inl normalize = function '\\' => '/' | c => c
00:03:58 verbose #4572 > >     inl p_quoted = quotes |> none_of |>> normalize |> many_chars |> between
00:03:58 verbose #4573 > > p_quoted_char p_quoted_char
00:03:58 verbose #4574 > >     inl p_unquoted = quotes ++ [[ ' ' ]] |> none_of |>> normalize |> many1_chars
00:03:58 verbose #4575 > >     inl p_path = p_quoted <|> p_unquoted <|> eof () >>% "" .>> spaces ()
00:03:58 verbose #4576 > >     inl p_args = p_char ' ' |> opt >>. (any_char () |> many1_chars)
00:03:58 verbose #4577 > >     inl p_command = p_path .>>. (p_args |> opt)
00:03:58 verbose #4578 > >     command
00:03:58 verbose #4579 > >     |> parse p_command
00:03:58 verbose #4580 > >     |> resultm.map fst
00:03:58 verbose #4581 > 00:03:58   debug #324 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1e39ae9138b3307a9b7fdafc498d0e1285412f71a404468bd58194f9abb41261/main.spi
00:03:59 verbose #4582 > >
00:03:59 verbose #4583 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:03:59 verbose #4584 > > //// test
00:03:59 verbose #4585 > > ///! fsharp
00:03:59 verbose #4586 > > ////! cuda // Only stack allocated primitive types (i8,i16,i32,i64 and
00:03:59 verbose #4587 > > u8,u16,u32,u64 and f32,f64 and bool) are allowed in CuPy arrays.
00:03:59 verbose #4588 > > ///! rust
00:03:59 verbose #4589 > > ///! typescript
00:03:59 verbose #4590 > > ///! python
00:03:59 verbose #4591 > >
00:03:59 verbose #4592 > > [[
00:03:59 verbose #4593 > >     "",
00:03:59 verbose #4594 > >     ("", None)
00:03:59 verbose #4595 > >
00:03:59 verbose #4596 > >     "/a/b/c",
00:03:59 verbose #4597 > >     ("/a/b/c", None)
00:03:59 verbose #4598 > >
00:03:59 verbose #4599 > >     "d e.f",
00:03:59 verbose #4600 > >     ("d", Some "e.f")
00:03:59 verbose #4601 > >
00:03:59 verbose #4602 > >     $'"""..\\..\\g.h i.j k.l"""',
00:03:59 verbose #4603 > >     ("../../g.h", Some "i.j k.l")
00:03:59 verbose #4604 > >
00:03:59 verbose #4605 > >     $'\@"m:\\n\\o.p ""q.r s.t"""',
00:03:59 verbose #4606 > >     ("m:/n/o.p", Some $'\@"""q.r s.t"""')
00:03:59 verbose #4607 > >
00:03:59 verbose #4608 > >     $'\@"""..\\..\\u v\\w.x"" ""y z.a"" b.c"',
00:03:59 verbose #4609 > >     ("../../u v/w.x", Some $'\@"""y z.a"" b.c"')
00:03:59 verbose #4610 > >
00:03:59 verbose #4611 > >     $'\@"""..\\..\\d e.f"" -g \\\\""h i\\\\"""',
00:03:59 verbose #4612 > >     ("../../d e.f", Some $'\@"-g \\\\""h i\\\\"""')
00:03:59 verbose #4613 > >
00:03:59 verbose #4614 > >     $'\@"..\\..\\j k.l -m \\\\""n o\\\\"""',
00:03:59 verbose #4615 > >     ("../../j", Some $'\@"k.l -m \\\\""n o\\\\"""')
00:03:59 verbose #4616 > > ]]
00:03:59 verbose #4617 > > |> _assert_fn split_command
00:03:59 verbose #4618 > 00:03:58   debug #325 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/567ec53d640c019b263195056c45958b1d75a7b0ad825e4df1e12ac70606815c/main.spi
00:04:04 verbose #4619 > >
00:04:04 verbose #4620 > > ╭─[ 5.61s - return value ]─────────────────────────────────────────────────────╮
00:04:04 verbose #4621 > > │                                                                              │
00:04:04 verbose #4622 > > │ .rs output:                                                                  │
00:04:04 verbose #4623 > > │                                                                              │
00:04:04 verbose #4624 > > │ 00:00:00 verbose #1 testing._assert_fn / { input =  }                  │
00:04:04 verbose #4625 > > │ assert_eq' / actual: ("", US1_1) / expected: ("", US1_1)                     │
00:04:04 verbose #4626 > > │                                                                              │
00:04:04 verbose #4627 > > │ 00:00:00 verbose #2 testing._assert_fn / { input = /a/b/c }            │
00:04:04 verbose #4628 > > │ assert_eq' / actual: ("/a/b/c", US1_1) / expected: ("/a/b/c", US1_1)         │
00:04:04 verbose #4629 > > │                                                                              │
00:04:04 verbose #4630 > > │ 00:00:00 verbose #3 testing._assert_fn / { input = d e.f }             │
00:04:04 verbose #4631 > > │ assert_eq' / actual: ("d", US1_0("e.f")) / expected: ("d", US1_0("e.f"))     │
00:04:04 verbose #4632 > > │                                                                              │
00:04:04 verbose #4633 > > │ 00:00:00 verbose #4 testing._assert_fn / { input = ..\..\g.h i.j k.l } │
00:04:04 verbose #4634 > > │ assert_eq' / actual: ("../../g.h", US1_0("i.j k.l")) / expected:             │
00:04:04 verbose #4635 > > │ ("../../g.h", US1_0("i.j k.l"))                                              │
00:04:04 verbose #4636 > > │                                                                              │
00:04:04 verbose #4637 > > │ 00:00:00 verbose #5 testing._assert_fn / { input = m:\n\o.p "q.r s.t"  │
00:04:04 verbose #4638 > > │ }                                                                            │
00:04:04 verbose #4639 > > │ assert_eq' / actual: ("m:/n/o.p", US1_0(""q.r s.t"")) / expected:            │
00:04:04 verbose #4640 > > │ ("m:/n/o.p", US1_0(""q.r s.t""))                                             │
00:04:04 verbose #4641 > > │                                                                              │
00:04:04 verbose #4642 > > │ 00:00:00 verbose #6 testing._assert_fn / { input = "..\..\u v\w.x" "y  │
00:04:04 verbose #4643 > > │ z.a" b.c }                                                                   │
00:04:04 verbose #4644 > > │ assert_eq' / actual: ("../../u v/w.x", US1_0(""y z.a" b.c")) / expected:     │
00:04:04 verbose #4645 > > │ ("../../u v/w.x", US1_0(""y z.a" b.c"))                                      │
00:04:04 verbose #4646 > > │                                                                              │
00:04:04 verbose #4647 > > │ 00:00:00 verbose #7 testing._assert_fn / { input = "..\..\d e.f" -g    │
00:04:04 verbose #4648 > > │ \\"h i\\" }                                                                  │
00:04:04 verbose #4649 > > │ assert_eq' / actual: ("../../d e.f", US1_0("-g \\"h i\\"")) / expected:      │
00:04:04 verbose #4650 > > │ ("../../d e.f", US1_0("-g \\"h i\\""))                                       │
00:04:04 verbose #4651 > > │                                                                              │
00:04:04 verbose #4652 > > │ 00:00:00 verbose #8 testing._assert_fn / { input = ..\..\j k.l -m \\"n │
00:04:04 verbose #4653 > > │ o\\" }                                                                       │
00:04:04 verbose #4654 > > │ assert_eq' / actual: ("../../j", US1_0("k.l -m \\"n o\\"")) / expected:      │
00:04:04 verbose #4655 > > │ ("../../j", US1_0("k.l -m \\"n o\\""))                                       │
00:04:04 verbose #4656 > > │                                                                              │
00:04:04 verbose #4657 > > │                                                                              │
00:04:04 verbose #4658 > > │ .ts output:                                                                  │
00:04:04 verbose #4659 > > │                                                                              │
00:04:04 verbose #4660 > > │ 00:00:00 verbose #1 testing._assert_fn / { input =  }                   │
00:04:04 verbose #4661 > > │ assert_eq' / actual: ,US1_1 / expec...\\"n o\\" }                            │
00:04:04 verbose #4662 > > │ assert_eq' / actual: ../../j,US1_0 (k.l -m \\"n o\\") / expected:            │
00:04:04 verbose #4663 > > │ ../../j,US1_0 (k.l -m \\"n o\\")                                             │
00:04:04 verbose #4664 > > │                                                                              │
00:04:04 verbose #4665 > > │                                                                              │
00:04:04 verbose #4666 > > │ .py output:                                                                  │
00:04:04 verbose #4667 > > │                                                                              │
00:04:04 verbose #4668 > > │ 00:00:00 verbose #1 testing._assert_fn / { input =  }                   │
00:04:04 verbose #4669 > > │ assert_eq' / actual: ('', US1_1) / expected: ('', US1_1)                     │
00:04:04 verbose #4670 > > │                                                                              │
00:04:04 verbose #4671 > > │ 00:00:00 verbose #2 testing._assert_fn / { input = /a/b/c }             │
00:04:04 verbose #4672 > > │ assert_eq' / actual: ('/a/b/c', US1_1) / expected: ('/a/b/c', US1_1)         │
00:04:04 verbose #4673 > > │                                                                              │
00:04:04 verbose #4674 > > │ 00:00:00 verbose #3 testing._assert_fn / { input = d e.f }              │
00:04:04 verbose #4675 > > │ assert_eq' / actual: ('d', US1_0 "e.f") / expected: ('d', US1_0 "e.f")       │
00:04:04 verbose #4676 > > │                                                                              │
00:04:04 verbose #4677 > > │ 00:00:00 verbose #4 testing._assert_fn / { input = ..\..\g.h i.j k.l }  │
00:04:04 verbose #4678 > > │ assert_eq' / actual: ('../../g.h', US1_0 ("i.j k.l")) / expected:            │
00:04:04 verbose #4679 > > │ ('../../g.h', US1_0 ("i.j k.l"))                                             │
00:04:04 verbose #4680 > > │                                                                              │
00:04:04 verbose #4681 > > │ 00:00:00 verbose #5 testing._assert_fn / { input = m:\n\o.p "q.r s.t" } │
00:04:04 verbose #4682 > > │ assert_eq' / actual: ('m:/n/o.p', US1_0 (""q.r s.t"")) / expected:           │
00:04:04 verbose #4683 > > │ ('m:/n/o.p', US1_0 (""q.r s.t""))                                            │
00:04:04 verbose #4684 > > │                                                                              │
00:04:04 verbose #4685 > > │ 00:00:00 verbose #6 testing._assert_fn / { input = "..\..\u v\w.x" "y   │
00:04:04 verbose #4686 > > │ z.a" b.c }                                                                   │
00:04:04 verbose #4687 > > │ assert_eq' / actual: ('../../u v/w.x', US1_0 (""y z.a" b.c")) / expected:    │
00:04:04 verbose #4688 > > │ ('../../u v/w.x', US1_0 (""y z.a" b.c"))                                     │
00:04:04 verbose #4689 > > │                                                                              │
00:04:04 verbose #4690 > > │ 00:00:00 verbose #7 testing._assert_fn / { input = "..\..\d e.f" -g     │
00:04:04 verbose #4691 > > │ \\"h i\\" }                                                                  │
00:04:04 verbose #4692 > > │ assert_eq' / actual: ('../../d e.f', US1_0 ("-g \\"h i\\"")) / expected:     │
00:04:04 verbose #4693 > > │ ('../../d e.f', US1_0 ("-g \\"h i\\""))                                      │
00:04:04 verbose #4694 > > │                                                                              │
00:04:04 verbose #4695 > > │ 00:00:00 verbose #8 testing._assert_fn / { input = ..\..\j k.l -m \\"n  │
00:04:04 verbose #4696 > > │ o\\" }                                                                       │
00:04:04 verbose #4697 > > │ assert_eq' / actual: ('../../j', US1_0 ("k.l -m \\"n o\\"")) / expected:     │
00:04:04 verbose #4698 > > │ ('../../j', US1_0 ("k.l -m \\"n o\\""))                                      │
00:04:04 verbose #4699 > > │                                                                              │
00:04:04 verbose #4700 > > │                                                                              │
00:04:04 verbose #4701 > > │                                                                              │
00:04:04 verbose #4702 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:04 verbose #4703 > >
00:04:04 verbose #4704 > > ╭─[ 5.62s - stdout ]───────────────────────────────────────────────────────────╮
00:04:04 verbose #4705 > > │ .fsx output:                                                                 │
00:04:04 verbose #4706 > > │                                                                              │
00:04:04 verbose #4707 > > │ 00:00:00 verbose #1 testing._assert_fn / { input =  }                   │
00:04:04 verbose #4708 > > │ assert_eq' / actual: struct ("", US1_1) / expected: struct ("", US1_1)       │
00:04:04 verbose #4709 > > │                                                                              │
00:04:04 verbose #4710 > > │ 00:00:00 verbose #2 testing._assert_fn / { input = /a/b/c }             │
00:04:04 verbose #4711 > > │ assert_eq' / actual: struct ("/a/b/c", US1_1) / expected: struct ("/a/b/c",  │
00:04:04 verbose #4712 > > │ US1_1)                                                                       │
00:04:04 verbose #4713 > > │                                                                              │
00:04:04 verbose #4714 > > │ 00:00:00 verbose #3 testing._assert_fn / { input = d e.f }              │
00:04:04 verbose #4715 > > │ assert_eq' / actual: struct ("d", US1_0 "e.f") / expected: struct ("d",      │
00:04:04 verbose #4716 > > │ US1_0 "e.f")                                                                 │
00:04:04 verbose #4717 > > │                                                                              │
00:04:04 verbose #4718 > > │ 00:00:00 verbose #4 testing._assert_fn / { input = ..\..\g.h i.j k.l }  │
00:04:04 verbose #4719 > > │ assert_eq' / actual: struct ("../../g.h", US1_0 "i.j k.l") / expected:       │
00:04:04 verbose #4720 > > │ struct ("../../g.h", US1_0 "i.j k.l")                                        │
00:04:04 verbose #4721 > > │                                                                              │
00:04:04 verbose #4722 > > │ 00:00:00 verbose #5 testing._assert_fn / { input = m:\n\o.p "q.r s.t" } │
00:04:04 verbose #4723 > > │ assert_eq' / actual: struct ("m:/n/o.p", US1_0 ""q.r s.t"") / expected:      │
00:04:04 verbose #4724 > > │ struct ("m:/n/o.p", US1_0 ""q.r s.t"")                                       │
00:04:04 verbose #4725 > > │                                                                              │
00:04:04 verbose #4726 > > │ 00:00:00 verbose #6 testing._assert_fn / { input = "..\..\u v\w.x" "y   │
00:04:04 verbose #4727 > > │ z.a" b.c }                                                                   │
00:04:04 verbose #4728 > > │ assert_eq' / actual: struct ("../../u v/w.x", US1_0 ""y z.a" b.c") /         │
00:04:04 verbose #4729 > > │ expected: struct ("../../u v/w.x", US1_0 ""y z.a" b.c")                      │
00:04:04 verbose #4730 > > │                                                                              │
00:04:04 verbose #4731 > > │ 00:00:00 verbose #7 testing._assert_fn / { input = "..\..\d e.f" -g     │
00:04:04 verbose #4732 > > │ \\"h i\\" }                                                                  │
00:04:04 verbose #4733 > > │ assert_eq' / actual: struct ("../../d e.f", US1_0 "-g \\"h i\\"") /          │
00:04:04 verbose #4734 > > │ expected: struct ("../../d e.f", US1_0 "-g \\"h i\\"")                       │
00:04:04 verbose #4735 > > │                                                                              │
00:04:04 verbose #4736 > > │ 00:00:00 verbose #8 testing._assert_fn / { input = ..\..\j k.l -m \\"n  │
00:04:04 verbose #4737 > > │ o\\" }                                                                       │
00:04:04 verbose #4738 > > │ assert_eq' / actual: struct ("../../j", US1_0 "k.l -m \\"n o\\"") /          │
00:04:04 verbose #4739 > > │ expected: struct ("../../j", US1_0 "k.l -m \\"n o\\"")                       │
00:04:04 verbose #4740 > > │                                                                              │
00:04:04 verbose #4741 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:04 verbose #4742 > >
00:04:04 verbose #4743 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:04 verbose #4744 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:04 verbose #4745 > > │ ### execution_line                                                           │
00:04:04 verbose #4746 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:04 verbose #4747 > >
00:04:04 verbose #4748 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:04 verbose #4749 > > type execution_line =
00:04:04 verbose #4750 > >     {
00:04:04 verbose #4751 > >         process_id : int
00:04:04 verbose #4752 > >         line : string
00:04:04 verbose #4753 > >         error : bool
00:04:04 verbose #4754 > >     }
00:04:04 verbose #4755 > 00:04:04   debug #326 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1ddd352d5eabe84e747a073879e754556e448a491324a1b8c5ad7ff09186f589/main.spi
00:04:05 verbose #4756 > >
00:04:05 verbose #4757 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:05 verbose #4758 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:05 verbose #4759 > > │ ## rust                                                                      │
00:04:05 verbose #4760 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:05 verbose #4761 > >
00:04:05 verbose #4762 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:05 verbose #4763 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:05 verbose #4764 > > │ ### process_child                                                            │
00:04:05 verbose #4765 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:05 verbose #4766 > >
00:04:05 verbose #4767 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:05 verbose #4768 > > nominal process_child = $'std_process_Child'
00:04:05 verbose #4769 > 00:04:04   debug #327 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fcb9bde3643ddc592fc5119489c66697681b65eb62135c04b3ab7125ca844d56/main.spi
00:04:05 verbose #4770 > >
00:04:05 verbose #4771 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:05 verbose #4772 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:05 verbose #4773 > > │ ### process_child_stdin                                                      │
00:04:05 verbose #4774 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:05 verbose #4775 > >
00:04:05 verbose #4776 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:05 verbose #4777 > > nominal process_child_stdin = $'std_process_ChildStdin'
00:04:05 verbose #4778 > >
00:04:05 verbose #4779 > > inl process_child_stdin
00:04:05 verbose #4780 > >     (child : rust.ref' (rust.mut' process_child))
00:04:05 verbose #4781 > >     : rust.ref' (rust.mut' (optionm'.option' process_child_stdin))
00:04:05 verbose #4782 > >     =
00:04:05 verbose #4783 > >     !\\(child, $'"&mut $0.stdin"')
00:04:05 verbose #4784 > 00:04:04   debug #328 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0d3bbcf6057f6dfa4c168176e66cae4b330a090309807079346d300e70999015/main.spi
00:04:05 verbose #4785 > >
00:04:05 verbose #4786 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:05 verbose #4787 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:05 verbose #4788 > > │ ## runtime                                                                   │
00:04:05 verbose #4789 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:05 verbose #4790 > >
00:04:05 verbose #4791 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:05 verbose #4792 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:05 verbose #4793 > > │ ### execution_options                                                        │
00:04:05 verbose #4794 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:05 verbose #4795 > >
00:04:05 verbose #4796 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:05 verbose #4797 > > type execution_options =
00:04:05 verbose #4798 > >     {
00:04:05 verbose #4799 > >         command : string
00:04:05 verbose #4800 > >         cancellation_token : optionm'.option' threading.cancellation_token
00:04:05 verbose #4801 > >         environment_variables : array_base (string * string)
00:04:05 verbose #4802 > >         on_line : optionm'.option' (execution_line -> async.async ())
00:04:05 verbose #4803 > >         stdin : optionm'.option' (threading.arc (threading.mutex
00:04:05 verbose #4804 > > process_child_stdin) -> ())
00:04:05 verbose #4805 > >         trace : bool
00:04:05 verbose #4806 > >         working_directory : optionm'.option' string
00:04:05 verbose #4807 > >     }
00:04:05 verbose #4808 > >
00:04:05 verbose #4809 > > inl execution_options (fn : execution_options -> execution_options) :
00:04:05 verbose #4810 > > execution_options =
00:04:05 verbose #4811 > >     {
00:04:05 verbose #4812 > >         command = ""
00:04:05 verbose #4813 > >         cancellation_token = None |> optionm'.box
00:04:05 verbose #4814 > >         environment_variables = ;[[]]
00:04:05 verbose #4815 > >         on_line = None |> optionm'.box
00:04:05 verbose #4816 > >         stdin = None |> optionm'.box
00:04:05 verbose #4817 > >         trace = true
00:04:05 verbose #4818 > >         working_directory = None |> optionm'.box
00:04:05 verbose #4819 > >     }
00:04:05 verbose #4820 > >     |> fn
00:04:05 verbose #4821 > 00:04:05   debug #329 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa0cadce5d730e3bdffbd0c45d2aa9e524850640f76a6e6384f2909523c31cb8/main.spi
00:04:06 verbose #4822 > >
00:04:06 verbose #4823 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:06 verbose #4824 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:06 verbose #4825 > > │ ## rust                                                                      │
00:04:06 verbose #4826 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:06 verbose #4827 > >
00:04:06 verbose #4828 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:06 verbose #4829 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:06 verbose #4830 > > │ ### process_child_stderr                                                     │
00:04:06 verbose #4831 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:06 verbose #4832 > >
00:04:06 verbose #4833 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:06 verbose #4834 > > nominal process_child_stderr = $'std_process_ChildStderr'
00:04:06 verbose #4835 > >
00:04:06 verbose #4836 > > inl process_child_stderr
00:04:06 verbose #4837 > >     (child : rust.ref' (rust.mut' process_child))
00:04:06 verbose #4838 > >     : rust.ref' (rust.mut' (optionm'.option' process_child_stderr))
00:04:06 verbose #4839 > >     =
00:04:06 verbose #4840 > >     !\($'"&mut !child.stderr"')
00:04:06 verbose #4841 > 00:04:05   debug #330 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2a1d2b1857f7c3a01bc778378d522f38b07cc2b9750a2851c22eced20a805e41/main.spi
00:04:06 verbose #4842 > >
00:04:06 verbose #4843 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:06 verbose #4844 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:06 verbose #4845 > > │ ### process_child_stdout                                                     │
00:04:06 verbose #4846 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:06 verbose #4847 > >
00:04:06 verbose #4848 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:06 verbose #4849 > > nominal process_child_stdout = $'std_process_ChildStdout'
00:04:06 verbose #4850 > >
00:04:06 verbose #4851 > > inl process_child_stdout
00:04:06 verbose #4852 > >     (child : rust.ref' (rust.mut' process_child))
00:04:06 verbose #4853 > >     : rust.ref' (rust.mut' (optionm'.option' process_child_stdout))
00:04:06 verbose #4854 > >     =
00:04:06 verbose #4855 > >     !\($'"&mut !child.stdout"')
00:04:06 verbose #4856 > 00:04:05   debug #331 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/aee202963792fa4a13b80ba49b145b5962e98f9fc4315fe6ebd7c6fee2d7f2b5/main.spi
00:04:06 verbose #4857 > >
00:04:06 verbose #4858 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:06 verbose #4859 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:06 verbose #4860 > > │ ### process_command                                                          │
00:04:06 verbose #4861 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:06 verbose #4862 > >
00:04:06 verbose #4863 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:06 verbose #4864 > > nominal process_command = $'std_process_Command'
00:04:07 verbose #4865 > 00:04:06   debug #332 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d7af75e6f3317ff2e450cfa4fe477db071401ff1e171fc2e38586d4c7c7ee259/main.spi
00:04:07 verbose #4866 > >
00:04:07 verbose #4867 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:07 verbose #4868 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:07 verbose #4869 > > │ ### process_stdio                                                            │
00:04:07 verbose #4870 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:07 verbose #4871 > >
00:04:07 verbose #4872 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:07 verbose #4873 > > nominal process_stdio = $'std_process_Stdio'
00:04:07 verbose #4874 > 00:04:06   debug #333 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0b6b0e6d94117a38f7d273b83af331017ed4e3ecb97cafa8173ddc1ca1464386/main.spi
00:04:07 verbose #4875 > >
00:04:07 verbose #4876 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:07 verbose #4877 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:07 verbose #4878 > > │ ### process_output                                                           │
00:04:07 verbose #4879 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:07 verbose #4880 > >
00:04:07 verbose #4881 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:07 verbose #4882 > > nominal process_output = $'std_process_Output'
00:04:07 verbose #4883 > 00:04:07   debug #334 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/622479b6e90b4df8d436322857c14e75b1949eda63176e91b4f6cdd5004f901f/main.spi
00:04:08 verbose #4884 > >
00:04:08 verbose #4885 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:08 verbose #4886 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:08 verbose #4887 > > │ ### process_exit_status                                                      │
00:04:08 verbose #4888 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:08 verbose #4889 > >
00:04:08 verbose #4890 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:08 verbose #4891 > > nominal process_exit_status = $'std_process_ExitStatus'
00:04:08 verbose #4892 > 00:04:07   debug #335 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/48c4f8199dc70ecef87b7357d005002f80bdb9a53c0a4b74844e428567a8c463/main.spi
00:04:08 verbose #4893 > >
00:04:08 verbose #4894 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:08 verbose #4895 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:08 verbose #4896 > > │ ### process_output_status                                                    │
00:04:08 verbose #4897 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:08 verbose #4898 > >
00:04:08 verbose #4899 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:08 verbose #4900 > > inl process_output_status (output : process_output) : process_exit_status =
00:04:08 verbose #4901 > >     !\\(output, $'"$0.status"')
00:04:08 verbose #4902 > 00:04:07   debug #336 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3c84c8a95ad3db284eb555f1935a11280d62839f87f73d824ceebbe1fd406697/main.spi
00:04:08 verbose #4903 > >
00:04:08 verbose #4904 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:08 verbose #4905 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:08 verbose #4906 > > │ ### process_exit_status_code                                                 │
00:04:08 verbose #4907 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:08 verbose #4908 > >
00:04:08 verbose #4909 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:08 verbose #4910 > > inl process_exit_status_code (status : process_exit_status) : optionm'.option'
00:04:08 verbose #4911 > > i32 =
00:04:08 verbose #4912 > >     !\\(status, $'"$0.code()"')
00:04:09 verbose #4913 > 00:04:08   debug #337 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3c9ad990bd0da6ff25c94102a4538e69c33001c45b4ae12a88b24461a7832fc8/main.spi
00:04:09 verbose #4914 > >
00:04:09 verbose #4915 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:09 verbose #4916 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:09 verbose #4917 > > │ ### stdin_write_all                                                          │
00:04:09 verbose #4918 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:09 verbose #4919 > >
00:04:09 verbose #4920 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:09 verbose #4921 > > inl stdin_write_all (stdin : threading.mutex_guard process_child_stdin) (text :
00:04:09 verbose #4922 > > string) : () =
00:04:09 verbose #4923 > >     inl stream = text |> sm'.as_bytes
00:04:09 verbose #4924 > >     inl stdin = join stdin
00:04:09 verbose #4925 > >     (!\($'"true; let mut !stdin = !stdin"') : bool) |> ignore
00:04:09 verbose #4926 > >     (!\\(stdin, $'"true; std::io::Write::write_all(&mut *$0,
00:04:09 verbose #4927 > > !stream).unwrap()"') : bool) |> ignore
00:04:09 verbose #4928 > 00:04:08   debug #338 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/85912b3457730f54a51f162585e449692f8fb8baa8952b77df41d685bff9a48f/main.spi
00:04:09 verbose #4929 > >
00:04:09 verbose #4930 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:09 verbose #4931 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:09 verbose #4932 > > │ ### stdin_flush                                                              │
00:04:09 verbose #4933 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:09 verbose #4934 > >
00:04:09 verbose #4935 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:09 verbose #4936 > > inl stdin_flush (stdin : threading.mutex_guard process_child_stdin) : () =
00:04:09 verbose #4937 > >     inl stdin = join stdin
00:04:09 verbose #4938 > >     (!\($'"true; let mut !stdin = !stdin"') : bool) |> ignore
00:04:09 verbose #4939 > >     (!\\(stdin, $'"true; std::io::Write::flush(&mut *$0).unwrap()"') : bool) |>
00:04:09 verbose #4940 > > ignore
00:04:09 verbose #4941 > 00:04:09   debug #339 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8c604b46b1bfdb83afc208a5f0cba8f3c9cbbece3141d27be0f9e27615d5ecc7/main.spi
00:04:09 verbose #4942 > >
00:04:09 verbose #4943 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:09 verbose #4944 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:09 verbose #4945 > > │ ### new_process_command                                                      │
00:04:09 verbose #4946 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:09 verbose #4947 > >
00:04:09 verbose #4948 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:09 verbose #4949 > > inl new_process_command (file_name : string) : process_command =
00:04:09 verbose #4950 > >     !\\(file_name, $'"std::process::Command::new(&*$0)"')
00:04:10 verbose #4951 > 00:04:09   debug #340 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/14e32cbb006db85f028bfe09be94b790061c2a14a13f797ed07835f25393578e/main.spi
00:04:10 verbose #4952 > >
00:04:10 verbose #4953 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:10 verbose #4954 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:10 verbose #4955 > > │ ### process_stdio_piped                                                      │
00:04:10 verbose #4956 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:10 verbose #4957 > >
00:04:10 verbose #4958 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:10 verbose #4959 > > inl process_stdio_piped () : process_stdio =
00:04:10 verbose #4960 > >     !\($'"std::process::Stdio::piped()"')
00:04:10 verbose #4961 > 00:04:09   debug #341 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b4a0b87def80ee02e18af65a7457e7595131a4c40ece632749dd2e49ab062f69/main.spi
00:04:10 verbose #4962 > >
00:04:10 verbose #4963 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:10 verbose #4964 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:10 verbose #4965 > > │ ### process_command_args                                                     │
00:04:10 verbose #4966 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:10 verbose #4967 > >
00:04:10 verbose #4968 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:10 verbose #4969 > > inl process_command_args (args : am'.vec sm'.std_string) (c : process_command) :
00:04:10 verbose #4970 > > rust.ref' (rust.mut' process_command) =
00:04:10 verbose #4971 > >     (!\($'"true; let mut !c = !c"') : bool) |> ignore
00:04:10 verbose #4972 > >     !\\((c, args), $'"std::process::Command::args(&mut $0, &*$1)"')
00:04:10 verbose #4973 > 00:04:10   debug #342 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c62e952951b0d1661e832df11892e9101abe8a2af89c5d29152a81a5c0924084/main.spi
00:04:11 verbose #4974 > >
00:04:11 verbose #4975 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:11 verbose #4976 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:11 verbose #4977 > > │ ### process_command_stdout                                                   │
00:04:11 verbose #4978 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:11 verbose #4979 > >
00:04:11 verbose #4980 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:11 verbose #4981 > > inl process_command_stdout (stdio : process_stdio) (c : rust.ref' (rust.mut'
00:04:11 verbose #4982 > > process_command)) : rust.ref' (rust.mut' process_command) =
00:04:11 verbose #4983 > >     !\\(c, $'"std::process::Command::stdout($0, std::process::Stdio::piped())"')
00:04:11 verbose #4984 > 00:04:10   debug #343 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/463c34ca556b04a9c604161b230a25fb7a8b8bd83af129de2fd666d906a567dc/main.spi
00:04:11 verbose #4985 > >
00:04:11 verbose #4986 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:11 verbose #4987 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:11 verbose #4988 > > │ ### process_command_stderr                                                   │
00:04:11 verbose #4989 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:11 verbose #4990 > >
00:04:11 verbose #4991 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:11 verbose #4992 > > inl process_command_stderr (stdio : process_stdio) (c : rust.ref' (rust.mut'
00:04:11 verbose #4993 > > process_command)) : rust.ref' (rust.mut' process_command) =
00:04:11 verbose #4994 > >     !\\(c, $'"std::process::Command::stderr($0, std::process::Stdio::piped())"')
00:04:11 verbose #4995 > 00:04:10   debug #344 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b48f7b5f4fcbf1a970704492a8e053b4a323565ec76b3677acb81d9ea64f71d4/main.spi
00:04:11 verbose #4996 > >
00:04:11 verbose #4997 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:11 verbose #4998 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:11 verbose #4999 > > │ ### process_command_stdin                                                    │
00:04:11 verbose #5000 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:11 verbose #5001 > >
00:04:11 verbose #5002 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:11 verbose #5003 > > inl process_command_stdin (stdio : process_stdio) (c : rust.ref' (rust.mut'
00:04:11 verbose #5004 > > process_command)) : rust.ref' (rust.mut' process_command) =
00:04:11 verbose #5005 > >     !\\(c, $'"std::process::Command::stdin($0, std::process::Stdio::piped())"')
00:04:12 verbose #5006 > 00:04:11   debug #345 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4b92a3cc9fbe3da854b571c038958f84cc2e4ad75fbda9437a688b3f88fc042a/main.spi
00:04:12 verbose #5007 > >
00:04:12 verbose #5008 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:12 verbose #5009 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:12 verbose #5010 > > │ ### process_command_current_dir                                              │
00:04:12 verbose #5011 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:12 verbose #5012 > >
00:04:12 verbose #5013 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:12 verbose #5014 > > inl process_command_current_dir
00:04:12 verbose #5015 > >     (dir : string)
00:04:12 verbose #5016 > >     (c : rust.ref' (rust.mut' process_command))
00:04:12 verbose #5017 > >     : rust.ref' (rust.mut' process_command)
00:04:12 verbose #5018 > >     =
00:04:12 verbose #5019 > >     !\\(dir, $'"std::process::Command::current_dir(!c, &*$0)"')
00:04:12 verbose #5020 > 00:04:11   debug #346 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/37e0ff821a5e65fc23d204a480183be0a6d371b8e2bd2ba4f860d5cc84c1d11c/main.spi
00:04:12 verbose #5021 > >
00:04:12 verbose #5022 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:12 verbose #5023 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:12 verbose #5024 > > │ ### process_command_env                                                      │
00:04:12 verbose #5025 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:12 verbose #5026 > >
00:04:12 verbose #5027 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:12 verbose #5028 > > inl process_command_env
00:04:12 verbose #5029 > >     (key : string)
00:04:12 verbose #5030 > >     (value : string)
00:04:12 verbose #5031 > >     (c : rust.ref' (rust.mut' process_command))
00:04:12 verbose #5032 > >     : rust.ref' (rust.mut' process_command)
00:04:12 verbose #5033 > >     =
00:04:12 verbose #5034 > >     !\\((key, value), $'"std::process::Command::env(!c, &*$0, &*$1)"')
00:04:12 verbose #5035 > 00:04:12   debug #347 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/808b988303ee0d6f027756217082da048055e9ea3146c6ad72481be2a5f5c5e7/main.spi
00:04:12 verbose #5036 > >
00:04:12 verbose #5037 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:12 verbose #5038 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:12 verbose #5039 > > │ ### process_command_spawn                                                    │
00:04:12 verbose #5040 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:12 verbose #5041 > >
00:04:12 verbose #5042 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:12 verbose #5043 > > inl process_command_spawn
00:04:12 verbose #5044 > >     (c : rust.ref' (rust.mut' process_command))
00:04:12 verbose #5045 > >     : resultm.result' process_child stream.io_error
00:04:12 verbose #5046 > >     =
00:04:12 verbose #5047 > >     !\\(c, $'"std::process::Command::spawn($0)"')
00:04:13 verbose #5048 > 00:04:12   debug #348 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7821f6ff81ef57794ba78edaa37bebc0ca551b5b2a0db822befae906d7ff9de0/main.spi
00:04:13 verbose #5049 > >
00:04:13 verbose #5050 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:13 verbose #5051 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:13 verbose #5052 > > │ ### child_wait_with_output                                                   │
00:04:13 verbose #5053 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:13 verbose #5054 > >
00:04:13 verbose #5055 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:13 verbose #5056 > > inl child_wait_with_output
00:04:13 verbose #5057 > >     (child : process_child)
00:04:13 verbose #5058 > >     : resultm.result' process_output stream.io_error
00:04:13 verbose #5059 > >     =
00:04:13 verbose #5060 > >     !\\(child, $'"$0.wait_with_output()"')
00:04:13 verbose #5061 > 00:04:12   debug #349 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/62e8cf3505c25da8cd98c1703cfaa2d9307f3f05ad0d9e28cffdfbc93f3b934b/main.spi
00:04:13 verbose #5062 > >
00:04:13 verbose #5063 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:13 verbose #5064 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:13 verbose #5065 > > │ ### stdio_line                                                               │
00:04:13 verbose #5066 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:13 verbose #5067 > >
00:04:13 verbose #5068 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:13 verbose #5069 > > inl stdio_line
00:04:13 verbose #5070 > >     (stdio : result () ())
00:04:13 verbose #5071 > >     (trace' : bool)
00:04:13 verbose #5072 > >     (channel_sender : threading.arc (threading.mutex (threading.channel_sender
00:04:13 verbose #5073 > > sm'.std_string)))
00:04:13 verbose #5074 > >     (line : resultm.result' sm'.std_string stream.io_error)
00:04:13 verbose #5075 > >     : resultm.result' () sm'.std_string
00:04:13 verbose #5076 > >     =
00:04:13 verbose #5077 > >     inl highlight text =
00:04:13 verbose #5078 > >         $'$"\\u001b[[4;7m{!text}\\u001b[[0m"'
00:04:13 verbose #5079 > >     inl line =
00:04:13 verbose #5080 > >         match
00:04:13 verbose #5081 > >             line
00:04:13 verbose #5082 > >             |> resultm.map_error' sm'.format'
00:04:13 verbose #5083 > >             |> resultm.unbox'
00:04:13 verbose #5084 > >         with
00:04:13 verbose #5085 > >         | Ok line =>
00:04:13 verbose #5086 > >             inl line =
00:04:13 verbose #5087 > >                 line
00:04:13 verbose #5088 > >                 |> sm'.from_std_string
00:04:13 verbose #5089 > >                 // |> sm'.as_bytes
00:04:13 verbose #5090 > >                 // |> am'.slice_to_vec
00:04:13 verbose #5091 > >                 |> sm'.encoding_encode' (sm'.encoding_utf8' ())
00:04:13 verbose #5092 > >                 |> rust.cow_as_ref
00:04:13 verbose #5093 > >                 |> sm'.str_from_utf8
00:04:13 verbose #5094 > >                 // |> sm'.utf8_decode
00:04:13 verbose #5095 > >                 |> resultm.unwrap'
00:04:13 verbose #5096 > >                 |> sm'.ref_to_std_string
00:04:13 verbose #5097 > >                 // String::from_utf8_lossy(line.as_bytes()).into()
00:04:13 verbose #5098 > >             inl line_log = line |> sm'.from_std_string
00:04:13 verbose #5099 > >             inl text =
00:04:13 verbose #5100 > >                 match stdio with
00:04:13 verbose #5101 > >                 | Ok () => $'$"> {!line_log}"'
00:04:13 verbose #5102 > >                 | Error () => $'$"\! {!line_log}"'
00:04:13 verbose #5103 > >             if trace'
00:04:13 verbose #5104 > >             then trace Verbose (fun () => text) id
00:04:13 verbose #5105 > >             else text |> console.write_line
00:04:13 verbose #5106 > >             match stdio with
00:04:13 verbose #5107 > >             | Ok () => line
00:04:13 verbose #5108 > >             | Error () => line |> highlight |> sm'.to_std_string
00:04:13 verbose #5109 > >         | Error e =>
00:04:13 verbose #5110 > >             trace Critical
00:04:13 verbose #5111 > >                 fun () => $'$"runtime.stdio_line"'
00:04:13 verbose #5112 > >                 fun () => { e }
00:04:13 verbose #5113 > >             e |> highlight |> sm'.to_std_string
00:04:13 verbose #5114 > >     channel_sender
00:04:13 verbose #5115 > >     |> threading.arc_mutex_lock
00:04:13 verbose #5116 > >     |> resultm.unwrap'
00:04:13 verbose #5117 > >     |> threading.mutex_guard_ref
00:04:13 verbose #5118 > >     |> threading.channel_send line
00:04:13 verbose #5119 > >     |> resultm.map_error' sm'.format'
00:04:13 verbose #5120 > 00:04:13   debug #350 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2189863d05e5057257f80e283fbad9ff83cdd9a15b1dc3295962b18e3cbe4e5f/main.spi
00:04:14 verbose #5121 > >
00:04:14 verbose #5122 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:14 verbose #5123 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:14 verbose #5124 > > │ ### command                                                                  │
00:04:14 verbose #5125 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:14 verbose #5126 > >
00:04:14 verbose #5127 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:14 verbose #5128 > > nominal command = $'clap_Command'
00:04:14 verbose #5129 > 00:04:13   debug #351 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/15194a46ddb27febdeb542373e7e8d23eafcac88df475ec048394c3aa56f506e/main.spi
00:04:14 verbose #5130 > >
00:04:14 verbose #5131 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:14 verbose #5132 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:14 verbose #5133 > > │ ### new_command                                                              │
00:04:14 verbose #5134 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:14 verbose #5135 > >
00:04:14 verbose #5136 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:14 verbose #5137 > > inl new_command (s : rust.static_ref sm'.str) : command =
00:04:14 verbose #5138 > >     !\\(s, $'"clap::Command::new($0)"')
00:04:14 verbose #5139 > 00:04:13   debug #352 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2d74ef2e17d885ec8d9824cb9809ff6af60c6059fc909db043eeef9bf7b8dd26/main.spi
00:04:14 verbose #5140 > >
00:04:14 verbose #5141 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:14 verbose #5142 > > //// test
00:04:14 verbose #5143 > > ///! rust -d clap
00:04:14 verbose #5144 > >
00:04:14 verbose #5145 > > types ()
00:04:14 verbose #5146 > > ##"command"
00:04:14 verbose #5147 > > |> new_command
00:04:14 verbose #5148 > > |> sm'.format_pretty'
00:04:14 verbose #5149 > > |> sm'.from_std_string
00:04:14 verbose #5150 > > |> _assert_string_contains "\"command\""
00:04:15 verbose #5151 > 00:04:14   debug #353 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4d54e90fdeadd5dddfed662a6ce8067ab93856ad2e4e44e5130d39ed395f2d52/main.spi
00:04:18 verbose #5152 > >
00:04:18 verbose #5153 > > ╭─[ 3.11s - return value ]─────────────────────────────────────────────────────╮
00:04:18 verbose #5154 > > │ assert_string_contains / actual: ""command"" / expected: "Command {          │
00:04:18 verbose #5155 > > │     name: "command",                                                         │
00:04:18 verbose #5156 > > │     long_flag: None,                                                         │
00:04:18 verbose #5157 > > │     short_flag: None,                                                        │
00:04:18 verbose #5158 > > │     display_name: None,                                                      │
00:04:18 verbose #5159 > > │     bin_name: None,                                                          │
00:04:18 verbose #5160 > > │     author: None,                                                            │
00:04:18 verbose #5161 > > │     version: None,                                                           │
00:04:18 verbose #5162 > > │     long_version: None,                                                      │
00:04:18 verbose #5163 > > │     about: None,                                                             │
00:04:18 verbose #5164 > > │     long_about: None,                                                        │
00:04:18 verbose #5165 > > │     before_help: None,                                                       │
00:04:18 verbose #5166 > > │     before_long_help: None,                                                  │
00:04:18 verbose #5167 > > │     after_help: None,                                                        │
00:04:18 verbose #5168 > > │     after_long_help: None,                                                   │
00:04:18 verbose #5169 > > │     aliases: [],                                                             │
00:04:18 verbose #5170 > > │     short_flag_aliases: [],                                                  │
00:04:18 verbose #5171 > > │     long_flag_aliases: [],                                                   │
00:04:18 verbose #5172 > > │     usage_str: None,                                                         │
00:04:18 verbose #5173 > > │     usage_name: None,                                                        │
00:04:18 verbose #5174 > > │     help_str: None,                                                          │
00:04:18 verbose #5175 > > │     disp_ord: None,                                                          │
00:04:18 verbose #5176 > > │     template: None,                                                          │
00:04:18 verbose #5177 > > │     settings: AppFlags(                                                      │
00:04:18 verbose #5178 > > │         0,                                                                   │
00:04:18 verbose #5179 > > │     ),                                                                       │
00:04:18 verbose #5180 > > │     g_settings: AppFlags(                                                    │
00:04:18 verbose #5181 > > │         0,                                                                   │
00:04:18 verbose #5182 > > │     ),                                                                       │
00:04:18 verbose #5183 > > │     args: MKeyMap {                                                          │
00:04:18 verbose #5184 > > │         args: [],                                                            │
00:04:18 verbose #5185 > > │         keys: [],                                                            │
00:04:18 verbose #5186 > > │     },                                                                       │
00:04:18 verbose #5187 > > │     subcommands: [],                                                         │
00:04:18 verbose #5188 > > │     groups: [],                                                              │
00:04:18 verbose #5189 > > │     current_help_heading: None,                                              │
00:04:18 verbose #5190 > > │     current_disp_ord: Some(                                                  │
00:04:18 verbose #5191 > > │         0,                                                                   │
00:04:18 verbose #5192 > > │     ),                                                                       │
00:04:18 verbose #5193 > > │     subcommand_value_name: None,                                             │
00:04:18 verbose #5194 > > │     subcommand_heading: None,                                                │
00:04:18 verbose #5195 > > │     external_value_parser: None,                                             │
00:04:18 verbose #5196 > > │     long_help_exists: false,                                                 │
00:04:18 verbose #5197 > > │     deferred: None,                                                          │
00:04:18 verbose #5198 > > │     app_ext: Extensions {                                                    │
00:04:18 verbose #5199 > > │         extensions: FlatMap {                                                │
00:04:18 verbose #5200 > > │             keys: [],                                                        │
00:04:18 verbose #5201 > > │             values: [],                                                      │
00:04:18 verbose #5202 > > │         },                                                                   │
00:04:18 verbose #5203 > > │     },                                                                       │
00:04:18 verbose #5204 > > │ }"                                                                           │
00:04:18 verbose #5205 > > │                                                                              │
00:04:18 verbose #5206 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:18 verbose #5207 > >
00:04:18 verbose #5208 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:18 verbose #5209 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:18 verbose #5210 > > │ ### arg                                                                      │
00:04:18 verbose #5211 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:18 verbose #5212 > >
00:04:18 verbose #5213 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:18 verbose #5214 > > nominal arg = $'clap_Arg'
00:04:18 verbose #5215 > 00:04:17   debug #354 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a7142a89cd2d0784db884b7eedcbfa19aa2b99d0f93ebd79ffe7e9a3d1936ce3/main.spi
00:04:18 verbose #5216 > >
00:04:18 verbose #5217 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:18 verbose #5218 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:18 verbose #5219 > > │ ### new_arg                                                                  │
00:04:18 verbose #5220 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:18 verbose #5221 > >
00:04:18 verbose #5222 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:18 verbose #5223 > > inl new_arg (s : rust.static_ref sm'.str) : arg =
00:04:18 verbose #5224 > >     !\\(s, $'"clap::Arg::new($0)"')
00:04:18 verbose #5225 > 00:04:17   debug #355 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/16f6fc2442470c7dcd1ecf238e8a624d3890ac5496b95ad14795fc6cc007df7f/main.spi
00:04:18 verbose #5226 > >
00:04:18 verbose #5227 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:18 verbose #5228 > > //// test
00:04:18 verbose #5229 > > ///! rust -d clap
00:04:18 verbose #5230 > >
00:04:18 verbose #5231 > > types ()
00:04:18 verbose #5232 > > ##"arg"
00:04:18 verbose #5233 > > |> new_arg
00:04:18 verbose #5234 > > |> sm'.format_pretty'
00:04:18 verbose #5235 > > |> sm'.from_std_string
00:04:18 verbose #5236 > > |> _assert_string_contains "\"arg\""
00:04:18 verbose #5237 > 00:04:18   debug #356 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/839c68a895abf3834532fd3fc1443e443f2480e6344b2604558a8f5c7ef9f85d/main.spi
00:04:21 verbose #5238 > >
00:04:21 verbose #5239 > > ╭─[ 2.88s - return value ]─────────────────────────────────────────────────────╮
00:04:21 verbose #5240 > > │ assert_string_contains / actual: ""arg"" / expected: "Arg {                  │
00:04:21 verbose #5241 > > │     id: "arg",                                                               │
00:04:21 verbose #5242 > > │     help: None,                                                              │
00:04:21 verbose #5243 > > │     long_help: None,                                                         │
00:04:21 verbose #5244 > > │     action: None,                                                            │
00:04:21 verbose #5245 > > │     value_parser: None,                                                      │
00:04:21 verbose #5246 > > │     blacklist: [],                                                           │
00:04:21 verbose #5247 > > │     settings: ArgFlags(                                                      │
00:04:21 verbose #5248 > > │         0,                                                                   │
00:04:21 verbose #5249 > > │     ),                                                                       │
00:04:21 verbose #5250 > > │     overrides: [],                                                           │
00:04:21 verbose #5251 > > │     groups: [],                                                              │
00:04:21 verbose #5252 > > │     requires: [],                                                            │
00:04:21 verbose #5253 > > │     r_ifs: [],                                                               │
00:04:21 verbose #5254 > > │     r_unless: [],                                                            │
00:04:21 verbose #5255 > > │     short: None,                                                             │
00:04:21 verbose #5256 > > │     long: None,                                                              │
00:04:21 verbose #5257 > > │     aliases: [],                                                             │
00:04:21 verbose #5258 > > │     short_aliases: [],                                                       │
00:04:21 verbose #5259 > > │     disp_ord: None,                                                          │
00:04:21 verbose #5260 > > │     val_names: [],                                                           │
00:04:21 verbose #5261 > > │     num_vals: None,                                                          │
00:04:21 verbose #5262 > > │     val_delim: None,                                                         │
00:04:21 verbose #5263 > > │     default_vals: [],                                                        │
00:04:21 verbose #5264 > > │     default_vals_ifs: [],                                                    │
00:04:21 verbose #5265 > > │     terminator: None,                                                        │
00:04:21 verbose #5266 > > │     index: None,                                                             │
00:04:21 verbose #5267 > > │     help_heading: None,                                                      │
00:04:21 verbose #5268 > > │     value_hint: None,                                                        │
00:04:21 verbose #5269 > > │     default_missing_vals: [],                                                │
00:04:21 verbose #5270 > > │ }"                                                                           │
00:04:21 verbose #5271 > > │                                                                              │
00:04:21 verbose #5272 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:21 verbose #5273 > >
00:04:21 verbose #5274 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:21 verbose #5275 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:21 verbose #5276 > > │ ### command_arg                                                              │
00:04:21 verbose #5277 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:21 verbose #5278 > >
00:04:21 verbose #5279 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:21 verbose #5280 > > inl command_arg (arg : arg) (command : command) : command =
00:04:21 verbose #5281 > >     !\\((command, arg), $'"clap::Command::arg($0, $1)"')
00:04:21 verbose #5282 > 00:04:21   debug #357 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f465cbae510f4808000a077cd0afbef78bc8e2a84bb2545f56bb026777f96511/main.spi
00:04:22 verbose #5283 > >
00:04:22 verbose #5284 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:22 verbose #5285 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:22 verbose #5286 > > │ ### arg_required                                                             │
00:04:22 verbose #5287 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:22 verbose #5288 > >
00:04:22 verbose #5289 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:22 verbose #5290 > > inl arg_required (value : bool) (arg : arg) : arg =
00:04:22 verbose #5291 > >     !\\((arg, value), $'"$0.required($1)"')
00:04:22 verbose #5292 > 00:04:21   debug #358 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/569c5666425811710bc7770853a75b1391caf3559944ecd53957465831be9082/main.spi
00:04:22 verbose #5293 > >
00:04:22 verbose #5294 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:22 verbose #5295 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:22 verbose #5296 > > │ ### arg_short                                                                │
00:04:22 verbose #5297 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:22 verbose #5298 > >
00:04:22 verbose #5299 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:22 verbose #5300 > > inl arg_short (value : char) (arg : arg) : arg =
00:04:22 verbose #5301 > >     !\\((arg, value), $'"$0.short($1)"')
00:04:22 verbose #5302 > 00:04:21   debug #359 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b5cf3680ff23ca6a0fee1becbf634aa9450845a384e856eb612f606e5a7f8fb6/main.spi
00:04:22 verbose #5303 > >
00:04:22 verbose #5304 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:22 verbose #5305 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:22 verbose #5306 > > │ ### arg_long                                                                 │
00:04:22 verbose #5307 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:22 verbose #5308 > >
00:04:22 verbose #5309 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:22 verbose #5310 > > inl arg_long (value : rust.static_ref sm'.str) (arg : arg) : arg =
00:04:22 verbose #5311 > >     !\\((arg, value), $'"$0.long($1)"')
00:04:23 verbose #5312 > 00:04:22   debug #360 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/104d2d506bb75a2119c3088d180a60ed99c3aef30d9c60a1513c356f7b10d868/main.spi
00:04:23 verbose #5313 > >
00:04:23 verbose #5314 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:23 verbose #5315 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:23 verbose #5316 > > │ ### arg_value_names                                                          │
00:04:23 verbose #5317 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:23 verbose #5318 > >
00:04:23 verbose #5319 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:23 verbose #5320 > > inl arg_value_names (values : array_base (rust.static_ref sm'.str)) (arg : arg)
00:04:23 verbose #5321 > > : arg =
00:04:23 verbose #5322 > >     inl values = values |> am'.to_vec
00:04:23 verbose #5323 > >     !\\((arg, values), $'"$0.value_names($1)"')
00:04:23 verbose #5324 > 00:04:22   debug #361 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b4fded80b56155944e4037f5f5e99b948d4d9cb76184808523045c4d038d4ac1/main.spi
00:04:23 verbose #5325 > >
00:04:23 verbose #5326 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:23 verbose #5327 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:23 verbose #5328 > > │ ### arg_num_args                                                             │
00:04:23 verbose #5329 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:23 verbose #5330 > >
00:04:23 verbose #5331 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:23 verbose #5332 > > inl arg_num_args (value : i32) (arg : arg) : arg =
00:04:23 verbose #5333 > >     !\\((arg, value), $'"$0.num_args($1)"')
00:04:23 verbose #5334 > 00:04:23   debug #362 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8df9503bacf63982702a120ffc805d74d0e1d33e16651f3ceafbc68189c23021/main.spi
00:04:23 verbose #5335 > >
00:04:23 verbose #5336 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:23 verbose #5337 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:23 verbose #5338 > > │ ### value_range                                                              │
00:04:23 verbose #5339 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:23 verbose #5340 > >
00:04:23 verbose #5341 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:23 verbose #5342 > > nominal value_range = $'clap_builder_ValueRange'
00:04:24 verbose #5343 > 00:04:23   debug #363 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/11d9a8631a77719e07092a1205ad11a506c3663a6cdcab5a55f077afd7070036/main.spi
00:04:24 verbose #5344 > >
00:04:24 verbose #5345 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:24 verbose #5346 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:24 verbose #5347 > > │ ### new_value_range                                                          │
00:04:24 verbose #5348 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:24 verbose #5349 > >
00:04:24 verbose #5350 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:24 verbose #5351 > > inl new_value_range start end : value_range =
00:04:24 verbose #5352 > >     inl len = 0i32 |> convert
00:04:24 verbose #5353 > >     inl start, end =
00:04:24 verbose #5354 > >         open am'
00:04:24 verbose #5355 > >         match start, end with
00:04:24 verbose #5356 > >         | Start start, End fn =>
00:04:24 verbose #5357 > >             start, len |> fn
00:04:24 verbose #5358 > >         | End start_fn, End end_fn =>
00:04:24 verbose #5359 > >             start_fn len, end_fn len
00:04:24 verbose #5360 > >     match start, end with
00:04:24 verbose #5361 > >     | start, end when end =. len =>
00:04:24 verbose #5362 > > !\($'"clap::builder::ValueRange::new(!start..)"')
00:04:24 verbose #5363 > >     | start, end => !\($'"clap::builder::ValueRange::new(!start..!end)"')
00:04:24 verbose #5364 > 00:04:23   debug #364 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bfe372143af613c742220b059d4c3c1019211e83a13a8128c45c09adf571c449/main.spi
00:04:24 verbose #5365 > >
00:04:24 verbose #5366 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:24 verbose #5367 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:24 verbose #5368 > > │ ### arg_num_args_range                                                       │
00:04:24 verbose #5369 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:24 verbose #5370 > >
00:04:24 verbose #5371 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:24 verbose #5372 > > inl arg_num_args_range (value : value_range) (arg : arg) : arg =
00:04:24 verbose #5373 > >     !\\((arg, value), $'"$0.num_args($1)"')
00:04:24 verbose #5374 > 00:04:24   debug #365 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cdb40e1566f1922ecdc62e828a14a95c17783bb468a6f89bd39821c22d204db9/main.spi
00:04:25 verbose #5375 > >
00:04:25 verbose #5376 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:25 verbose #5377 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:25 verbose #5378 > > │ ### arg_value_name                                                           │
00:04:25 verbose #5379 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:25 verbose #5380 > >
00:04:25 verbose #5381 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:25 verbose #5382 > > inl arg_value_name (value : string) (arg : arg) : arg =
00:04:25 verbose #5383 > >     inl value = value |> sm'.as_str
00:04:25 verbose #5384 > >     !\\((arg, value), $'"$0.value_name($1)"')
00:04:25 verbose #5385 > 00:04:24   debug #366 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7196f2c7ff538b7214247af2aac48d4ec52c0ce2af6e9b917c2fd366f3ed3a2a/main.spi
00:04:25 verbose #5386 > >
00:04:25 verbose #5387 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:25 verbose #5388 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:25 verbose #5389 > > │ ### value_parser                                                             │
00:04:25 verbose #5390 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:25 verbose #5391 > >
00:04:25 verbose #5392 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:25 verbose #5393 > > nominal value_parser = $'clap_builder_ValueParser'
00:04:25 verbose #5394 > 00:04:24   debug #367 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2a551957ab9e34ea9cf0f362f630b8c5cea8debd3c5f78bd6114e52a7c7d8e36/main.spi
00:04:25 verbose #5395 > >
00:04:25 verbose #5396 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:25 verbose #5397 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:25 verbose #5398 > > │ ### possible_value                                                           │
00:04:25 verbose #5399 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:25 verbose #5400 > >
00:04:25 verbose #5401 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:25 verbose #5402 > > nominal possible_value = $'clap_builder_PossibleValue'
00:04:26 verbose #5403 > 00:04:25   debug #368 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/370118ff10de5ede86f4f7404e05a7c63ca36fa1112d3de9374b66c73daa9f31/main.spi
00:04:26 verbose #5404 > >
00:04:26 verbose #5405 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:26 verbose #5406 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:26 verbose #5407 > > │ ### new_possible_value                                                       │
00:04:26 verbose #5408 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:26 verbose #5409 > >
00:04:26 verbose #5410 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:26 verbose #5411 > > inl new_possible_value forall t. (x : t) : possible_value =
00:04:26 verbose #5412 > >     !\\(x, $'"clap::builder::PossibleValue::new(&**$0)"')
00:04:26 verbose #5413 > 00:04:25   debug #369 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fc8e0fba733f438a66ccc0ec4ef7ed64104d86bec169279492b689fdae6ee07f/main.spi
00:04:26 verbose #5414 > >
00:04:26 verbose #5415 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:26 verbose #5416 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:26 verbose #5417 > > │ ### value_parser_path_buf                                                    │
00:04:26 verbose #5418 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:26 verbose #5419 > >
00:04:26 verbose #5420 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:26 verbose #5421 > > inl value_parser_path_buf () : value_parser =
00:04:26 verbose #5422 > >     !\($'"clap::value_parser\!(std::path::PathBuf)"')
00:04:26 verbose #5423 > 00:04:26   debug #370 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f03a5d98c71561b6f8b98227ad73aedabc475c19d79539eb424131b600d67a89/main.spi
00:04:26 verbose #5424 > >
00:04:26 verbose #5425 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:26 verbose #5426 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:26 verbose #5427 > > │ ### value_parser_expr                                                        │
00:04:26 verbose #5428 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:26 verbose #5429 > >
00:04:26 verbose #5430 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:26 verbose #5431 > > inl value_parser_expr (expr : string) : value_parser =
00:04:26 verbose #5432 > >     !\($'"clap::value_parser\!(" + !expr + ").into()"')
00:04:27 verbose #5433 > 00:04:26   debug #371 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ad0baed84e0b299f350d45b94c442e3e5b45961f33581f9b48ae5d5c565b5d20/main.spi
00:04:27 verbose #5434 > >
00:04:27 verbose #5435 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:27 verbose #5436 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:27 verbose #5437 > > │ ### arg_value_parser                                                         │
00:04:27 verbose #5438 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:27 verbose #5439 > >
00:04:27 verbose #5440 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:27 verbose #5441 > > inl arg_value_parser (values : value_parser) (arg : arg) : arg =
00:04:27 verbose #5442 > >     !\\((arg, values), $'"$0.value_parser($1)"')
00:04:27 verbose #5443 > 00:04:26   debug #372 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7d982fcd6b061d9cb265ca5cb088d463f4d0d1814b0be7c5753a9b20f1c8805d/main.spi
00:04:27 verbose #5444 > >
00:04:27 verbose #5445 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:27 verbose #5446 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:27 verbose #5447 > > │ ### arg_action                                                               │
00:04:27 verbose #5448 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:27 verbose #5449 > >
00:04:27 verbose #5450 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:27 verbose #5451 > > nominal arg_action' = $'clap_ArgAction'
00:04:27 verbose #5452 > >
00:04:27 verbose #5453 > > union arg_action =
00:04:27 verbose #5454 > >     | Set
00:04:27 verbose #5455 > >     | Append
00:04:27 verbose #5456 > >     | SetTrue
00:04:27 verbose #5457 > >     | SetFalse
00:04:27 verbose #5458 > >     | Count
00:04:27 verbose #5459 > >     | Help
00:04:27 verbose #5460 > >     | HelpShort
00:04:27 verbose #5461 > >     | HelpLong
00:04:27 verbose #5462 > >     | Version
00:04:27 verbose #5463 > >
00:04:27 verbose #5464 > > inl arg_action = function
00:04:27 verbose #5465 > >     | Set => !\($'"clap::ArgAction::Set"') : arg_action'
00:04:27 verbose #5466 > >     | Append => !\($'"clap::ArgAction::Append"') : arg_action'
00:04:27 verbose #5467 > >     | SetTrue => !\($'"clap::ArgAction::SetTrue"') : arg_action'
00:04:27 verbose #5468 > >     | SetFalse => !\($'"clap::ArgAction::SetFalse"') : arg_action'
00:04:27 verbose #5469 > >     | Count => !\($'"clap::ArgAction::Count"') : arg_action'
00:04:27 verbose #5470 > >     | Help => !\($'"clap::ArgAction::Help"') : arg_action'
00:04:27 verbose #5471 > >     | HelpShort => !\($'"clap::ArgAction::HelpShort"') : arg_action'
00:04:27 verbose #5472 > >     | HelpLong => !\($'"clap::ArgAction::HelpLong"') : arg_action'
00:04:27 verbose #5473 > >     | Version => !\($'"clap::ArgAction::Version"') : arg_action'
00:04:27 verbose #5474 > >
00:04:27 verbose #5475 > > inl arg_action (value : arg_action) (arg : arg) : arg =
00:04:27 verbose #5476 > >     inl value = value |> arg_action
00:04:27 verbose #5477 > >     !\\((arg, value), $'"$0.action($1)"')
00:04:27 verbose #5478 > 00:04:27   debug #373 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/26b9117e448dbcdb07175d93a8c99447e4ee761b5358d330083cb82182b8106a/main.spi
00:04:28 verbose #5479 > >
00:04:28 verbose #5480 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:28 verbose #5481 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:28 verbose #5482 > > │ ### arg_index                                                                │
00:04:28 verbose #5483 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:28 verbose #5484 > >
00:04:28 verbose #5485 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:28 verbose #5486 > > inl arg_index (value : i32) (arg : arg) : arg =
00:04:28 verbose #5487 > >     !\\((arg, value), $'"$0.index($1)"')
00:04:28 verbose #5488 > 00:04:27   debug #374 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e92f81abd8f02616e3c976c2f7aa459a082ddc4b24db36758be6ad9f78644a51/main.spi
00:04:28 verbose #5489 > >
00:04:28 verbose #5490 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:28 verbose #5491 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:28 verbose #5492 > > │ ### arg_matches                                                              │
00:04:28 verbose #5493 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:28 verbose #5494 > >
00:04:28 verbose #5495 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:28 verbose #5496 > > nominal arg_matches = $'clap_ArgMatches'
00:04:28 verbose #5497 > 00:04:27   debug #375 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f507fbfe4af4b4aae39033e588df28b5e1d4d49e68f2cc8298a1d7046c892ff1/main.spi
00:04:28 verbose #5498 > >
00:04:28 verbose #5499 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:28 verbose #5500 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:28 verbose #5501 > > │ ### command_get_matches                                                      │
00:04:28 verbose #5502 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:28 verbose #5503 > >
00:04:28 verbose #5504 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:28 verbose #5505 > > inl command_get_matches (command : command) : arg_matches =
00:04:28 verbose #5506 > >     !\\(command, $'"clap::Command::get_matches($0)"')
00:04:29 verbose #5507 > 00:04:28   debug #376 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c5f3cd2851d6347936c80de071f7ed2a69a57f86954cf455e71c57804abd9c1b/main.spi
00:04:29 verbose #5508 > >
00:04:29 verbose #5509 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:29 verbose #5510 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:29 verbose #5511 > > │ ### command_get_matches_from                                                 │
00:04:29 verbose #5512 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:29 verbose #5513 > >
00:04:29 verbose #5514 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:29 verbose #5515 > > inl command_get_matches_from (args : array_base string) (command : command) :
00:04:29 verbose #5516 > > arg_matches =
00:04:29 verbose #5517 > >     inl args = args |> am'.to_vec |> am'.vec_map sm'.to_std_string
00:04:29 verbose #5518 > >     !\\(command, $'"clap::Command::get_matches_from($0, !args)"')
00:04:29 verbose #5519 > 00:04:28   debug #377 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/01f40e0014f3c07f67b9cea92a95743bb991e889870d7de1eb010baa8f99b64a/main.spi
00:04:29 verbose #5520 > >
00:04:29 verbose #5521 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:29 verbose #5522 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:29 verbose #5523 > > │ ### command_init_arg                                                         │
00:04:29 verbose #5524 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:29 verbose #5525 > >
00:04:29 verbose #5526 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:29 verbose #5527 > > inl command_init_arg (long, short) fn command =
00:04:29 verbose #5528 > >     command
00:04:29 verbose #5529 > >     |> command_arg (
00:04:29 verbose #5530 > >         new_arg ##long
00:04:29 verbose #5531 > >         |> arg_short short
00:04:29 verbose #5532 > >         |> arg_long ##long
00:04:29 verbose #5533 > >         |> fn
00:04:29 verbose #5534 > >     )
00:04:29 verbose #5535 > 00:04:29   debug #378 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e4ebf3abc5a40ac88cf74209f036914a70e1b6a4b8bf0e0197f941cca2a27df1/main.spi
00:04:30 verbose #5536 > >
00:04:30 verbose #5537 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:30 verbose #5538 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:30 verbose #5539 > > │ ### matches_get_one                                                          │
00:04:30 verbose #5540 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:30 verbose #5541 > >
00:04:30 verbose #5542 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:30 verbose #5543 > > inl matches_get_one forall t. (x : string) (matches : arg_matches) :
00:04:30 verbose #5544 > > optionm'.option' t =
00:04:30 verbose #5545 > >     inl x = join x
00:04:30 verbose #5546 > >     inl x = x |> sm'.as_str
00:04:30 verbose #5547 > >     !\\(matches, $'"clap::ArgMatches::get_one(&$0, !x).cloned()"')
00:04:30 verbose #5548 > 00:04:29   debug #379 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/27ca6278feb16e68a0b1c4957278e021c30ebddb03930400b10ac7068f3fd664/main.spi
00:04:30 verbose #5549 > >
00:04:30 verbose #5550 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:30 verbose #5551 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:30 verbose #5552 > > │ ### matches_get_flag                                                         │
00:04:30 verbose #5553 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:30 verbose #5554 > >
00:04:30 verbose #5555 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:30 verbose #5556 > > inl matches_get_flag (x : string) (matches : arg_matches) : bool =
00:04:30 verbose #5557 > >     inl x = join x
00:04:30 verbose #5558 > >     inl x = x |> sm'.as_str
00:04:30 verbose #5559 > >     !\($'"clap::ArgMatches::get_flag(&!matches, !x)"')
00:04:30 verbose #5560 > 00:04:29   debug #380 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa155ea58aa178130464f3bc3f0153a3844ea1ee48fec3474bdee4502a6440d6/main.spi
00:04:30 verbose #5561 > >
00:04:30 verbose #5562 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:30 verbose #5563 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:30 verbose #5564 > > │ ### matches_get_many                                                         │
00:04:30 verbose #5565 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:30 verbose #5566 > >
00:04:30 verbose #5567 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:30 verbose #5568 > > inl matches_get_many forall t. (x : string) (matches : arg_matches) :
00:04:30 verbose #5569 > > optionm'.option' (am'.vec t) =
00:04:30 verbose #5570 > >     inl x = join x
00:04:30 verbose #5571 > >     inl x = x |> sm'.as_str
00:04:30 verbose #5572 > >     !\\(matches, $'"clap::ArgMatches::get_many(&$0, !x).map(|x|
00:04:30 verbose #5573 > > x.cloned().into_iter().collect())"')
00:04:31 verbose #5574 > 00:04:30   debug #381 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5824f3014ba3fba8fcb0ae364f3bbb70b614c2ae16dcb07d6949626978925beb/main.spi
00:04:31 verbose #5575 > >
00:04:31 verbose #5576 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:31 verbose #5577 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:31 verbose #5578 > > │ ### matches_get_occurrences                                                  │
00:04:31 verbose #5579 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:31 verbose #5580 > >
00:04:31 verbose #5581 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:31 verbose #5582 > > inl matches_get_occurrences (x : string) (matches : arg_matches) :
00:04:31 verbose #5583 > > optionm'.option' (array_base sm'.std_string) =
00:04:31 verbose #5584 > >     inl x = join x
00:04:31 verbose #5585 > >     inl x = x |> sm'.as_str
00:04:31 verbose #5586 > >     !\($'"clap::ArgMatches::get_occurrences(&!matches, !x).cloned()"')
00:04:31 verbose #5587 > 00:04:30   debug #382 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ce68ffa853c401f0b3312fbf06780967338c4995303f47c2826587de89ece861/main.spi
00:04:31 verbose #5588 > >
00:04:31 verbose #5589 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:31 verbose #5590 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:31 verbose #5591 > > │ ### matches_subcommand                                                       │
00:04:31 verbose #5592 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:31 verbose #5593 > >
00:04:31 verbose #5594 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:31 verbose #5595 > > inl matches_subcommand (matches : arg_matches) : optionm'.option'
00:04:31 verbose #5596 > > (sm'.std_string * arg_matches) =
00:04:31 verbose #5597 > >     !\\((matches, sm'.ref_to_std_string),
00:04:31 verbose #5598 > > $'"clap::ArgMatches::subcommand(Box::leak(Box::new($0))).map(|(a, b)| ($1(a),
00:04:31 verbose #5599 > > b.clone()))"')
00:04:31 verbose #5600 > 00:04:31   debug #383 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7778599cc9b2bf25a9804603aa61e89db038af9978075f361c4a7b09f47e2c98/main.spi
00:04:32 verbose #5601 > >
00:04:32 verbose #5602 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:32 verbose #5603 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:32 verbose #5604 > > │ ### matches_values_of                                                        │
00:04:32 verbose #5605 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:32 verbose #5606 > >
00:04:32 verbose #5607 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:32 verbose #5608 > > inl matches_values_of (x : string) (matches : arg_matches) : array_base
00:04:32 verbose #5609 > > sm'.std_string =
00:04:32 verbose #5610 > >     !\\((matches, x), $'"clap::ArgMatches::values_of($0, &*$1)"')
00:04:32 verbose #5611 > 00:04:31   debug #384 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e98656a69fc9fa20d0b7178db9b9ddb4ddf4450e722de72dd0df95575a1dd80f/main.spi
00:04:32 verbose #5612 > >
00:04:32 verbose #5613 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:32 verbose #5614 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:32 verbose #5615 > > │ ### command_subcommand_required                                              │
00:04:32 verbose #5616 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:32 verbose #5617 > >
00:04:32 verbose #5618 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:32 verbose #5619 > > inl command_subcommand_required (value : bool) (command : command) : command =
00:04:32 verbose #5620 > >     !\\(command, $'"clap::Command::subcommand_required($0, !value)"')
00:04:32 verbose #5621 > 00:04:31   debug #385 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9df805c1cca3403afce9eb461498250f2e44fb0283deb9a2db884bdbe9726330/main.spi
00:04:32 verbose #5622 > >
00:04:32 verbose #5623 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:32 verbose #5624 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:32 verbose #5625 > > │ ### command_subcommand                                                       │
00:04:32 verbose #5626 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:32 verbose #5627 > >
00:04:32 verbose #5628 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:32 verbose #5629 > > inl command_subcommand (subcommand : command) (command : command) : command =
00:04:32 verbose #5630 > >     !\\(command, $'"clap::Command::subcommand($0, !subcommand)"')
00:04:33 verbose #5631 > 00:04:32   debug #386 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/371babf61b3744443e2941afa447baf63d2103affe2f7e9c1ec04a66e1206bae/main.spi
00:04:33 verbose #5632 > >
00:04:33 verbose #5633 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:33 verbose #5634 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:33 verbose #5635 > > │ ### value_parser_possible_values                                             │
00:04:33 verbose #5636 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:33 verbose #5637 > >
00:04:33 verbose #5638 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:33 verbose #5639 > > inl value_parser_possible_values (values : array_base string) : value_parser =
00:04:33 verbose #5640 > >     inl values =
00:04:33 verbose #5641 > >         values
00:04:33 verbose #5642 > >         |> am'.to_vec
00:04:33 verbose #5643 > >         |> am'.vec_map (sm'.to_std_string >> rust.new_box >> rust.box_leak >>
00:04:33 verbose #5644 > > new_possible_value)
00:04:33 verbose #5645 > >     !\\(values,
00:04:33 verbose #5646 > > $'"Into::<clap::builder::ValueParser>::into(clap::builder::PossibleValuesParser:
00:04:33 verbose #5647 > > :new($0))"')
00:04:33 verbose #5648 > 00:04:32   debug #387 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e8f52648af2f7cd568d568db871aefd3c27db6f8a97932aa98371b87653c40be/main.spi
00:04:33 verbose #5649 > >
00:04:33 verbose #5650 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:33 verbose #5651 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:33 verbose #5652 > > │ ### arg_union                                                                │
00:04:33 verbose #5653 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:33 verbose #5654 > >
00:04:33 verbose #5655 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:33 verbose #5656 > > inl arg_union forall union_type. (fn : union_type -> ()) (arg : arg) : arg =
00:04:33 verbose #5657 > >     arg
00:04:33 verbose #5658 > >     |> arg_value_parser (
00:04:33 verbose #5659 > >         real reflection.get_union_fields_untag `union_type ()
00:04:33 verbose #5660 > >         |> fun x => x : _ (string * union_type)
00:04:33 verbose #5661 > >         |> listm.map fst
00:04:33 verbose #5662 > >         |> listm'.box
00:04:33 verbose #5663 > >         |> listm'.to_array'
00:04:33 verbose #5664 > >         |> value_parser_possible_values
00:04:33 verbose #5665 > >     )
00:04:33 verbose #5666 > 00:04:33   debug #388 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/43a33c700164db3293c1ad5af9e4cd3a9a7d07f95390de93ce77589fdce5ede4/main.spi
00:04:34 verbose #5667 > >
00:04:34 verbose #5668 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:34 verbose #5669 > > //// test
00:04:34 verbose #5670 > > ///! rust -d clap
00:04:34 verbose #5671 > >
00:04:34 verbose #5672 > > ##"command"
00:04:34 verbose #5673 > > |> new_command
00:04:34 verbose #5674 > > |> command_init_arg ("trace-level", 't') (
00:04:34 verbose #5675 > >     real arg_union `trace_level ignore
00:04:34 verbose #5676 > > )
00:04:34 verbose #5677 > > |> command_get_matches_from ;[[ "_"; "--trace-level"; "Critical" ]]
00:04:34 verbose #5678 > > |> matches_get_one "trace-level"
00:04:34 verbose #5679 > > |> optionm'.unwrap
00:04:34 verbose #5680 > > |> sm'.from_std_string
00:04:34 verbose #5681 > > |> reflection.union_try_pick
00:04:34 verbose #5682 > > |> optionm.value
00:04:34 verbose #5683 > > |> _assert_eq Critical
00:04:34 verbose #5684 > 00:04:33   debug #389 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3638518d3c5f4632261233c830958c8226ef16e2598d116868964420a0109b17/main.spi
00:04:37 verbose #5685 > >
00:04:37 verbose #5686 > > ╭─[ 3.45s - return value ]─────────────────────────────────────────────────────╮
00:04:37 verbose #5687 > > │ assert_eq / actual: US1_4 / expected: US1_4                                  │
00:04:37 verbose #5688 > > │                                                                              │
00:04:37 verbose #5689 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:37 verbose #5690 > >
00:04:37 verbose #5691 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:37 verbose #5692 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:37 verbose #5693 > > │ ### command_debug_assert                                                     │
00:04:37 verbose #5694 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:37 verbose #5695 > >
00:04:37 verbose #5696 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:37 verbose #5697 > > inl command_debug_assert (command : command) : () =
00:04:37 verbose #5698 > >     !\\(command, $'"clap::Command::debug_assert($0)"')
00:04:37 verbose #5699 > 00:04:37   debug #390 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d5744a6d4528bc18a54fef2fd3590cedc82f8992741439aee273d2cc33b89f58/main.spi
00:04:37 verbose #5700 > >
00:04:37 verbose #5701 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:37 verbose #5702 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:37 verbose #5703 > > │ ## fsharp                                                                    │
00:04:37 verbose #5704 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:37 verbose #5705 > >
00:04:37 verbose #5706 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:37 verbose #5707 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:37 verbose #5708 > > │ ### process                                                                  │
00:04:37 verbose #5709 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:37 verbose #5710 > >
00:04:37 verbose #5711 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:37 verbose #5712 > > nominal process = $'System.Diagnostics.Process'
00:04:38 verbose #5713 > 00:04:37   debug #391 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6d03e9776becf51d7f76c8fe901dc4eff27fa069d695393ab3fccedf96e47ea1/main.spi
00:04:38 verbose #5714 > >
00:04:38 verbose #5715 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:38 verbose #5716 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:38 verbose #5717 > > │ ### process_start_info                                                       │
00:04:38 verbose #5718 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:38 verbose #5719 > >
00:04:38 verbose #5720 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:38 verbose #5721 > > nominal process_start_info = $'System.Diagnostics.ProcessStartInfo'
00:04:38 verbose #5722 > 00:04:37   debug #392 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ca15f50b2c000d2079c1283aeabab20a9811120938664c782df05cf757031398/main.spi
00:04:38 verbose #5723 > >
00:04:38 verbose #5724 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:38 verbose #5725 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:38 verbose #5726 > > │ ### data_received_event_args                                                 │
00:04:38 verbose #5727 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:38 verbose #5728 > >
00:04:38 verbose #5729 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:38 verbose #5730 > > nominal data_received_event_args = $'System.Diagnostics.DataReceivedEventArgs'
00:04:38 verbose #5731 > 00:04:38   debug #393 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0110736bc6f5b5a6147f3d6a3a06d6e0e199f8331fc9ad4fb9197a9ee0e94093/main.spi
00:04:39 verbose #5732 > >
00:04:39 verbose #5733 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:39 verbose #5734 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:39 verbose #5735 > > │ ### new_process                                                              │
00:04:39 verbose #5736 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:39 verbose #5737 > >
00:04:39 verbose #5738 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:39 verbose #5739 > > inl new_process (process_start_info : process_start_info) : process =
00:04:39 verbose #5740 > >     $'new `process (StartInfo = !process_start_info)'
00:04:39 verbose #5741 > 00:04:38   debug #394 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c711057604a42c72bf210382f215fe06099a84054a1d36d019d6bc5ac10e1599/main.spi
00:04:39 verbose #5742 > >
00:04:39 verbose #5743 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:39 verbose #5744 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:39 verbose #5745 > > │ ### process_start                                                            │
00:04:39 verbose #5746 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:39 verbose #5747 > >
00:04:39 verbose #5748 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:39 verbose #5749 > > inl process_start (process : process) : bool =
00:04:39 verbose #5750 > >     $'!process.Start' ()
00:04:39 verbose #5751 > 00:04:39   debug #395 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a952720b58e4b96702c927bb7445258b40bbd0adfffaf1cb9eccaa44ebb4cf38/main.spi
00:04:39 verbose #5752 > >
00:04:39 verbose #5753 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:39 verbose #5754 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:39 verbose #5755 > > │ ### process_exit_code                                                        │
00:04:39 verbose #5756 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:39 verbose #5757 > >
00:04:39 verbose #5758 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:39 verbose #5759 > > inl process_exit_code (process : process) : i32 =
00:04:39 verbose #5760 > >     $'!process.ExitCode'
00:04:40 verbose #5761 > 00:04:39   debug #396 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1dd3aeddf4e258aeb6920d12bfa5d36ad1264af9538ed254e30bc024d5b48756/main.spi
00:04:40 verbose #5762 > >
00:04:40 verbose #5763 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:40 verbose #5764 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:40 verbose #5765 > > │ ### process_id                                                               │
00:04:40 verbose #5766 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:40 verbose #5767 > >
00:04:40 verbose #5768 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:40 verbose #5769 > > inl process_id (process : process) : i32 =
00:04:40 verbose #5770 > >     $'!process.Id'
00:04:40 verbose #5771 > 00:04:39   debug #397 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f47e6cb02db16a2924c50fe9f96025a777ef1003a8b41ded93b45bc224c57480/main.spi
00:04:40 verbose #5772 > >
00:04:40 verbose #5773 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:40 verbose #5774 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:40 verbose #5775 > > │ ### process_has_exited                                                       │
00:04:40 verbose #5776 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:40 verbose #5777 > >
00:04:40 verbose #5778 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:40 verbose #5779 > > inl process_has_exited (process : process) : bool =
00:04:40 verbose #5780 > >     run_target function
00:04:40 verbose #5781 > >         | Fsharp (Native) => fun () =>
00:04:40 verbose #5782 > >             $'!process.HasExited'
00:04:40 verbose #5783 > >         | _ => fun () => null ()
00:04:40 verbose #5784 > 00:04:40   debug #398 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/62f44fcfddd8eed1d2294342430ad26bd004b404988e080ad83dae3ba614cec5/main.spi
00:04:41 verbose #5785 > >
00:04:41 verbose #5786 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:41 verbose #5787 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:41 verbose #5788 > > │ ### process_kill                                                             │
00:04:41 verbose #5789 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:41 verbose #5790 > >
00:04:41 verbose #5791 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:41 verbose #5792 > > inl process_kill (process : process) : () =
00:04:41 verbose #5793 > >     run_target function
00:04:41 verbose #5794 > >         | Fsharp (Native) => fun () =>
00:04:41 verbose #5795 > >             $'!process.Kill' ()
00:04:41 verbose #5796 > >         | _ => fun () => null ()
00:04:41 verbose #5797 > 00:04:40   debug #399 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7cf90abef4f79340b775c1e10f88b11a51b9aa4fb3b99b9f1305b1fc4c6d0c0e/main.spi
00:04:41 verbose #5798 > >
00:04:41 verbose #5799 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:41 verbose #5800 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:41 verbose #5801 > > │ ### process_begin_error_read_line                                            │
00:04:41 verbose #5802 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:41 verbose #5803 > >
00:04:41 verbose #5804 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:41 verbose #5805 > > inl process_begin_error_read_line (process : process) : () =
00:04:41 verbose #5806 > >     $'!process.BeginErrorReadLine' ()
00:04:41 verbose #5807 > 00:04:40   debug #400 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8080cc7202d41ccf183694140f1c106c9448a2a2929e553f55df9207c416c3e5/main.spi
00:04:41 verbose #5808 > >
00:04:41 verbose #5809 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:41 verbose #5810 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:41 verbose #5811 > > │ ### process_begin_output_read_line                                           │
00:04:41 verbose #5812 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:41 verbose #5813 > >
00:04:41 verbose #5814 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:41 verbose #5815 > > inl process_begin_output_read_line (process : process) : () =
00:04:41 verbose #5816 > >     $'!process.BeginOutputReadLine' ()
00:04:42 verbose #5817 > 00:04:41   debug #401 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bd1e740f43a415e710bda368982790162a097c7694c24046b047eb8eaeb6c011/main.spi
00:04:42 verbose #5818 > >
00:04:42 verbose #5819 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:42 verbose #5820 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:42 verbose #5821 > > │ ### process_add_output_data_received                                         │
00:04:42 verbose #5822 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:42 verbose #5823 > >
00:04:42 verbose #5824 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:42 verbose #5825 > > inl process_add_output_data_received fn (process : process) : () =
00:04:42 verbose #5826 > >     $'!process.OutputDataReceived.Add !fn '
00:04:42 verbose #5827 > 00:04:41   debug #402 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0eac99a37401176536e7cb04f61f4bc9d7091fc8fc0f29c3f7e7b39690456a30/main.spi
00:04:42 verbose #5828 > >
00:04:42 verbose #5829 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:42 verbose #5830 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:42 verbose #5831 > > │ ### process_add_error_data_received                                          │
00:04:42 verbose #5832 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:42 verbose #5833 > >
00:04:42 verbose #5834 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:42 verbose #5835 > > inl process_add_error_data_received fn (process : process) : () =
00:04:42 verbose #5836 > >     $'!process.ErrorDataReceived.Add !fn '
00:04:42 verbose #5837 > 00:04:42   debug #403 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/30bcf163248ae915bba39b6427017926a76d63251dc7362612c6469df70b0fde/main.spi
00:04:43 verbose #5838 > >
00:04:43 verbose #5839 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:43 verbose #5840 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:43 verbose #5841 > > │ ### process_wait_for_exit_async                                              │
00:04:43 verbose #5842 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:43 verbose #5843 > >
00:04:43 verbose #5844 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:43 verbose #5845 > > inl process_wait_for_exit_async (ct : threading.cancellation_token) (process :
00:04:43 verbose #5846 > > process) : async.task () =
00:04:43 verbose #5847 > >     $'!process.WaitForExitAsync !ct '
00:04:43 verbose #5848 > 00:04:42   debug #404 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0bf641da94233595151410ec9d31242444aa93ba9d77b6136dcb74ec8fafaec0/main.spi
00:04:43 verbose #5849 > >
00:04:43 verbose #5850 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:43 verbose #5851 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:43 verbose #5852 > > │ ### event_data                                                               │
00:04:43 verbose #5853 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:43 verbose #5854 > >
00:04:43 verbose #5855 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:43 verbose #5856 > > inl event_data (e : data_received_event_args) : string =
00:04:43 verbose #5857 > >     $'!e.Data'
00:04:43 verbose #5858 > 00:04:42   debug #405 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3dc6b27f828d5ea5bce8453e1091067c11822d8d3470c1c54574aa02c8fa58f0/main.spi
00:04:43 verbose #5859 > >
00:04:43 verbose #5860 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:43 verbose #5861 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:43 verbose #5862 > > │ ### execute_with_options_async                                               │
00:04:43 verbose #5863 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:43 verbose #5864 > >
00:04:43 verbose #5865 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:43 verbose #5866 > > let execute_with_options_async (options : execution_options) : _ (i32 * string)
00:04:43 verbose #5867 > > =
00:04:43 verbose #5868 > >     run_target function
00:04:43 verbose #5869 > >         | Fsharp (Native) => fun () =>
00:04:43 verbose #5870 > >             fun () =>
00:04:43 verbose #5871 > >                 inl file_name, arguments = options.command |> split_command |>
00:04:43 verbose #5872 > > resultm.get
00:04:43 verbose #5873 > >                 inl working_directory = options.working_directory |>
00:04:43 verbose #5874 > > optionm'.unbox |> optionm'.default_value ""
00:04:43 verbose #5875 > >
00:04:43 verbose #5876 > >                 trace Debug
00:04:43 verbose #5877 > >                     fun () => $'$"runtime.execute_with_options_async"'
00:04:43 verbose #5878 > >                     fun () => { options }
00:04:43 verbose #5879 > >
00:04:43 verbose #5880 > >                 inl utf8 = sm'.encoding_utf8 ()
00:04:43 verbose #5881 > >                 inl arguments = arguments |> optionm'.default_value ""
00:04:43 verbose #5882 > >
00:04:43 verbose #5883 > >                 $'let start_info = System.Diagnostics.ProcessStartInfo ('
00:04:43 verbose #5884 > >                 $'  Arguments = !arguments,'
00:04:43 verbose #5885 > >                 $'  StandardOutputEncoding = !utf8,'
00:04:43 verbose #5886 > >                 $'  WorkingDirectory = !working_directory,'
00:04:43 verbose #5887 > >                 $'  FileName = !file_name,'
00:04:43 verbose #5888 > >                 $'  CreateNoWindow = true,'
00:04:43 verbose #5889 > >                 $'  RedirectStandardError = true,'
00:04:43 verbose #5890 > >                 $'  RedirectStandardOutput = true,'
00:04:43 verbose #5891 > >                 $'  UseShellExecute = false'
00:04:43 verbose #5892 > >                 $')'
00:04:43 verbose #5893 > >                 inl start_info : process_start_info = $'start_info'
00:04:43 verbose #5894 > >
00:04:43 verbose #5895 > >                 (a options.environment_variables : _ i32 _)
00:04:43 verbose #5896 > >                 |> am.iter fun key, value =>
00:04:43 verbose #5897 > >                     $'!start_info.EnvironmentVariables.[[!key]] <- !value '
00:04:43 verbose #5898 > >
00:04:43 verbose #5899 > >                 inl proc = start_info |> new_process |> use
00:04:43 verbose #5900 > >                 inl output : _ string = threading.new_concurrent_stack ()
00:04:43 verbose #5901 > >
00:04:43 verbose #5902 > >                 inl event error (e : data_received_event_args) = async.new_async
00:04:43 verbose #5903 > > fun () =>
00:04:43 verbose #5904 > >                     inl data = e |> event_data
00:04:43 verbose #5905 > >                     if data <> null () then
00:04:43 verbose #5906 > >                         match options.on_line |> optionm'.unbox with
00:04:43 verbose #5907 > >                         | Some on_line =>
00:04:43 verbose #5908 > >                             on_line
00:04:43 verbose #5909 > >                                 {
00:04:43 verbose #5910 > >                                     process_id = proc |> process_id
00:04:43 verbose #5911 > >                                     line = data
00:04:43 verbose #5912 > >                                     error = error
00:04:43 verbose #5913 > >                                 }
00:04:43 verbose #5914 > >                             |> async.do
00:04:43 verbose #5915 > >                         | None => ()
00:04:43 verbose #5916 > >
00:04:43 verbose #5917 > >                         inl text =
00:04:43 verbose #5918 > >                             if error
00:04:43 verbose #5919 > >                             then $'$"\! {!data}"'
00:04:43 verbose #5920 > >                             else $'$"> {!data}"'
00:04:43 verbose #5921 > >                         if options.trace
00:04:43 verbose #5922 > >                         then trace Verbose (fun () => text) id
00:04:43 verbose #5923 > >                         else text |> console.write_line
00:04:43 verbose #5924 > >
00:04:43 verbose #5925 > >                         inl l = if error then $'"\\u001b[[7;4m"' else ""
00:04:43 verbose #5926 > >                         inl r = if error then $'"\\u001b[[0m"' else ""
00:04:43 verbose #5927 > >                         output |> threading.concurrent_stack_push
00:04:43 verbose #5928 > > $'$"{!l}{!data}{!r}"'
00:04:43 verbose #5929 > >
00:04:43 verbose #5930 > >                 proc |> process_add_output_data_received (event false >>
00:04:43 verbose #5931 > > async.start_immediate)
00:04:43 verbose #5932 > >                 proc |> process_add_error_data_received (event true >>
00:04:43 verbose #5933 > > async.start_immediate)
00:04:43 verbose #5934 > >
00:04:43 verbose #5935 > >                 if proc |> process_start |> not
00:04:43 verbose #5936 > >                 then failwith $'$"runtime.execute_with_options_async
00:04:43 verbose #5937 > > process_start error"'
00:04:43 verbose #5938 > >
00:04:43 verbose #5939 > >                 proc |> process_begin_error_read_line
00:04:43 verbose #5940 > >                 proc |> process_begin_output_read_line
00:04:43 verbose #5941 > >
00:04:43 verbose #5942 > >                 inl ct =
00:04:43 verbose #5943 > >                     options.cancellation_token
00:04:43 verbose #5944 > >                     |> optionm'.unbox
00:04:43 verbose #5945 > >                     |> optionm'.default_with threading.token_none
00:04:43 verbose #5946 > >                     |> async.merge_cancellation_token_with_default_async
00:04:43 verbose #5947 > >                     |> async.let'
00:04:43 verbose #5948 > >
00:04:43 verbose #5949 > >                 ct |> threading.token_register fun () =>
00:04:43 verbose #5950 > >                     if proc |> process_has_exited |> not
00:04:43 verbose #5951 > >                     then proc |> process_kill
00:04:43 verbose #5952 > >                 |> use
00:04:43 verbose #5953 > >                 |> ignore
00:04:43 verbose #5954 > >
00:04:43 verbose #5955 > >                 inl exit_code : i32 =
00:04:43 verbose #5956 > >                     fun () =>
00:04:43 verbose #5957 > >                         try_unit
00:04:43 verbose #5958 > >                             fun () =>
00:04:43 verbose #5959 > >                                 proc
00:04:43 verbose #5960 > >                                 |> process_wait_for_exit_async ct
00:04:43 verbose #5961 > >                                 |> async.await_task
00:04:43 verbose #5962 > >                                 |> async.do
00:04:43 verbose #5963 > >                                 proc |> process_exit_code |> return
00:04:43 verbose #5964 > >                             fun ex =>
00:04:43 verbose #5965 > >                                 // with :?
00:04:43 verbose #5966 > > System.Threading.Tasks.TaskCanceledException as ex =>
00:04:43 verbose #5967 > >                                 inl ex' = ex |> sm'.format_exception
00:04:43 verbose #5968 > >                                 output |> threading.concurrent_stack_push ex'
00:04:43 verbose #5969 > >                                 inl ex : async.task_canceled_exception = ex |>
00:04:43 verbose #5970 > > unbox
00:04:43 verbose #5971 > >                                 trace Warning
00:04:43 verbose #5972 > >                                     fun () =>
00:04:43 verbose #5973 > > $'$"runtime.execute_with_options_async / WaitForExitAsync"'
00:04:43 verbose #5974 > >                                     fun () => { ex }
00:04:43 verbose #5975 > >                                 (limit.min : i32) |> return
00:04:43 verbose #5976 > >                     |> async.new_async_unit
00:04:43 verbose #5977 > >                     |> async.let'
00:04:43 verbose #5978 > >
00:04:43 verbose #5979 > >                 inl output =
00:04:43 verbose #5980 > >                     output
00:04:43 verbose #5981 > >                     |> seq.rev''
00:04:43 verbose #5982 > >                     |> fun x => x : seq.seq' string
00:04:43 verbose #5983 > >                     |> sm'.concat "\n"
00:04:43 verbose #5984 > >
00:04:43 verbose #5985 > >                 trace Debug
00:04:43 verbose #5986 > >                     fun () => $'$"runtime.execute_with_options_async"'
00:04:43 verbose #5987 > >                     fun () => { exit_code output_length = output |> sm'.length :
00:04:43 verbose #5988 > > i32 }
00:04:43 verbose #5989 > >
00:04:43 verbose #5990 > >                 (exit_code, output) |> return
00:04:43 verbose #5991 > >             |> async.new_async_unit
00:04:43 verbose #5992 > >         | _ => fun () =>
00:04:43 verbose #5993 > >             global "#if FABLE_COMPILER\n[[<CompilationRepresentation
00:04:43 verbose #5994 > > (CompilationRepresentationFlags.ModuleSuffix)>]]\nmodule System =\n module
00:04:43 verbose #5995 > > Diagnostics =\n  type Process = unit\n  type DataReceivedEventArgs =
00:04:43 verbose #5996 > > unit\n#endif"
00:04:43 verbose #5997 > >             null ()
00:04:44 verbose #5998 > 00:04:43   debug #406 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a5d8b7ae9ac4cd270ba72e5eb1da641081e718b71c4a9299e642d9308dc62698/main.spi
00:04:44 verbose #5999 > >
00:04:44 verbose #6000 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:44 verbose #6001 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:44 verbose #6002 > > │ ### execute_async                                                            │
00:04:44 verbose #6003 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:44 verbose #6004 > >
00:04:44 verbose #6005 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:44 verbose #6006 > > inl execute_async command =
00:04:44 verbose #6007 > >     execution_options fun x => { x with
00:04:44 verbose #6008 > >         command = command
00:04:44 verbose #6009 > >     }
00:04:44 verbose #6010 > >     |> execute_with_options_async
00:04:44 verbose #6011 > 00:04:43   debug #407 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/69ae47e17b82de935ced7492a6a90284f11adb9287251fd1dc05ced8caf16f96/main.spi
00:04:44 verbose #6012 > >
00:04:44 verbose #6013 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:44 verbose #6014 > > //// test
00:04:44 verbose #6015 > >
00:04:44 verbose #6016 > > types ()
00:04:44 verbose #6017 > >
00:04:44 verbose #6018 > > inl content = "╭─[[ 你好,世界!こんにちは世界! ]]─╮"
00:04:44 verbose #6019 > > fun () =>
00:04:44 verbose #6020 > >     inl file_name = "test.txt"
00:04:44 verbose #6021 > >     inl temp_dir, disposable =
00:04:44 verbose #6022 > >         (file_name, content)
00:04:44 verbose #6023 > >         |> sm'.format_debug
00:04:44 verbose #6024 > >         |> crypto.hash_text
00:04:44 verbose #6025 > >         |> file_system.create_temp_dir'
00:04:44 verbose #6026 > >     disposable |> use |> ignore
00:04:44 verbose #6027 > >
00:04:44 verbose #6028 > >     inl path = temp_dir </> file_name
00:04:44 verbose #6029 > >
00:04:44 verbose #6030 > >     inl exit_code, result = execute_async $'\@$"pwsh -c ""Get-Content
00:04:44 verbose #6031 > > {!path}"""' |> async.let'
00:04:44 verbose #6032 > >     exit_code |> join _assert_eq 1
00:04:44 verbose #6033 > >     result |> _assert_string_contains "not exist"
00:04:44 verbose #6034 > >
00:04:44 verbose #6035 > >     content |> file_system.write_all_text_async path |> async.do
00:04:44 verbose #6036 > >
00:04:44 verbose #6037 > >     execution_options fun x => { x with
00:04:44 verbose #6038 > >         command = $'\@$"cat ""{!file_name}"""'
00:04:44 verbose #6039 > >         working_directory = Some temp_dir |> optionm'.box
00:04:44 verbose #6040 > >     }
00:04:44 verbose #6041 > >     |> execute_with_options_async
00:04:44 verbose #6042 > >     |> async.let'
00:04:44 verbose #6043 > >     |> ignore
00:04:44 verbose #6044 > >
00:04:44 verbose #6045 > >     execution_options fun x => { x with
00:04:44 verbose #6046 > >         command = $'\@$"pwsh -c ""[[System.Console]]::OutputEncoding =
00:04:44 verbose #6047 > > [[System.Text.Encoding]]::UTF8; Get-Content {!file_name}"""'
00:04:44 verbose #6048 > >         working_directory = Some temp_dir |> optionm'.box
00:04:44 verbose #6049 > >     }
00:04:44 verbose #6050 > >     |> execute_with_options_async
00:04:44 verbose #6051 > >     |> async.return_await
00:04:44 verbose #6052 > > |> async.new_async_unit
00:04:44 verbose #6053 > > |> async.run_with_timeout 10000
00:04:44 verbose #6054 > > |> function
00:04:44 verbose #6055 > >     | Some (exit_code, output) =>
00:04:44 verbose #6056 > >         exit_code |> join _assert_eq 0i32
00:04:44 verbose #6057 > >         output |> join _assert_eq content
00:04:44 verbose #6058 > >         true
00:04:44 verbose #6059 > >     | _ => false
00:04:44 verbose #6060 > > |> _assert_eq true
00:04:44 verbose #6061 > 00:04:44   debug #408 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/77bf348fa47acdaf683ee506c5ee9fd253dbfd5d29d19bf3facab8220d5e98be/main.spi
00:04:49 verbose #6062 > >
00:04:49 verbose #6063 > > ╭─[ 5.04s - stdout ]───────────────────────────────────────────────────────────╮
00:04:49 verbose #6064 > > │ 00:00:00   debug #1 runtime.execute_with_options_async / { options = {  │
00:04:49 verbose #6065 > > │ command = pwsh -c "Get-Content                                               │
00:04:49 verbose #6066 > > │ C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\dotnet-repl\76793606-81 │
00:04:49 verbose #6067 > > │ 3b-88ad-7791-7ce2871edce9\test.txt"; cancellation_token = None;              │
00:04:49 verbose #6068 > > │ environment_variables = [||]; on_line = None; stdin = None; trace = true;    │
00:04:49 verbose #6069 > > │ working_directory = None } }                                                 │
00:04:49 verbose #6070 > > │ 00:00:00 verbose #2 ! Get-Content: Cannot find path           │
00:04:49 verbose #6071 > > │ 'C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\dotnet-repl\76793606-8 │
00:04:49 verbose #6072 > > │ 13b-88ad-7791-7ce2871edce9\test.txt' because it does not exist.            │
00:04:49 verbose #6073 > > │ 00:00:00   debug #3 runtime.execute_with_options_async / { exit_code =  │
00:04:49 verbose #6074 > > │ 1; output_length = 197 }                                                     │
00:04:49 verbose #6075 > > │ assert_eq / actual: 1 / expected: 1                                          │
00:04:49 verbose #6076 > > │ assert_string_contains / actual: "not exist" / expected: "[               │
00:04:49 verbose #6077 > > │ 31;1mGet-Content: Cannot find path                                      │
00:04:49 verbose #6078 > > │ 'C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\dotnet-repl\76793606-8 │
00:04:49 verbose #6079 > > │ 13b-88ad-7791-7ce2871edce9\test.txt' because it does not exist."         │
00:04:49 verbose #6080 > > │ 00:00:00   debug #4 runtime.execute_with_options_async / { options = {  │
00:04:49 verbose #6081 > > │ command = cat "test.txt"; cancellation_token = None; environment_variables = │
00:04:49 verbose #6082 > > │ [||]; on_line = None; stdin = None; trace = true; working_directory = Some   │
00:04:49 verbose #6083 > > │                                                                              │
00:04:49 verbose #6084 > > │ "C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\dotnet-repl\76793606-8 │
00:04:49 verbose #6085 > > │ 13b-88ad-7791-7ce2871edce9" } }                                              │
00:04:49 verbose #6086 > > │ 00:00:00 verbose #5 > ╭─[ 你好,世界!こんにちは世界! ]─╮              │
00:04:49 verbose #6087 > > │ 00:00:00   debug #6 runtime.execute_with_options_async / { exit_code =  │
00:04:49 verbose #6088 > > │ 0; output_length = 22 }                                                      │
00:04:49 verbose #6089 > > │ 00:00:00   debug #7 runtime.execute_with_options_async / { options = {  │
00:04:49 verbose #6090 > > │ command = pwsh -c "[System.Console]::OutputEncoding = [                      │
00:04:49 verbose #6091 > > │ System.Text.Encoding]::UTF8; Get-Content test.txt"; cancellation_token =     │
00:04:49 verbose #6092 > > │ None; environment_variables = [||]; on_line = None; stdin = None; trace =    │
00:04:49 verbose #6093 > > │ true; working_directory = Some                                               │
00:04:49 verbose #6094 > > │                                                                              │
00:04:49 verbose #6095 > > │ "C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\dotnet-repl\76793606-8 │
00:04:49 verbose #6096 > > │ 13b-88ad-7791-7ce2871edce9" } }                                              │
00:04:49 verbose #6097 > > │ 00:00:01 verbose #8 > ╭─[ 你好,世界!こんにちは世界! ]─╮              │
00:04:49 verbose #6098 > > │ 00:00:01   debug #9 runtime.execute_with_options_async / { exit_code =  │
00:04:49 verbose #6099 > > │ 0; output_length = 22 }                                                      │
00:04:49 verbose #6100 > > │ assert_eq / actual: 0 / expected: 0                                          │
00:04:49 verbose #6101 > > │ assert_eq / actual: "╭─[ 你好,世界!こんにちは世界! ]─╮" / expected: "╭─[  │
00:04:49 verbose #6102 > > │ 你好,世界!こんにちは世界! ]─╮"                                            │
00:04:49 verbose #6103 > > │ assert_eq / actual: true / expected: true                                    │
00:04:49 verbose #6104 > > │                                                                              │
00:04:49 verbose #6105 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:49 verbose #6106 > >
00:04:49 verbose #6107 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:49 verbose #6108 > > //// test
00:04:49 verbose #6109 > >
00:04:49 verbose #6110 > > file_system.types ()
00:04:49 verbose #6111 > > fun () =>
00:04:49 verbose #6112 > >     inl file_name = "test.txt"
00:04:49 verbose #6113 > >     inl text = "0"
00:04:49 verbose #6114 > >
00:04:49 verbose #6115 > >     inl temp_dir, disposable =
00:04:49 verbose #6116 > >         (file_name, text)
00:04:49 verbose #6117 > >         |> sm'.format_debug
00:04:49 verbose #6118 > >         |> crypto.hash_text
00:04:49 verbose #6119 > >         |> file_system.create_temp_dir'
00:04:49 verbose #6120 > >     disposable |> use |> ignore
00:04:49 verbose #6121 > >     inl path = temp_dir </> file_name
00:04:49 verbose #6122 > >     text |> file_system.write_all_text_async path |> async.do
00:04:49 verbose #6123 > >
00:04:49 verbose #6124 > >     inl cts = threading.new_cancellation_token_source ()
00:04:49 verbose #6125 > >     trace Debug (fun () => "1") id
00:04:49 verbose #6126 > >     inl result =
00:04:49 verbose #6127 > >         execution_options fun x => { x with
00:04:49 verbose #6128 > >             command = $'\@$"pwsh -c ""Get-Content {!path}"""'
00:04:49 verbose #6129 > >             cancellation_token = cts |> threading.cancellation_source_token |>
00:04:49 verbose #6130 > > Some |> optionm'.box
00:04:49 verbose #6131 > >         }
00:04:49 verbose #6132 > >         |> execute_with_options_async
00:04:49 verbose #6133 > >         |> async.start_child
00:04:49 verbose #6134 > >         |> async.let'
00:04:49 verbose #6135 > >     trace Debug (fun () => "2") id
00:04:49 verbose #6136 > >     async.sleep 100 |> async.do
00:04:49 verbose #6137 > >     trace Debug (fun () => "3") id
00:04:49 verbose #6138 > >     cts |> threading.cancellation_source_cancel
00:04:49 verbose #6139 > >     trace Debug (fun () => "4") id
00:04:49 verbose #6140 > >     inl exit_code, output = result |> async.let'
00:04:49 verbose #6141 > >     trace Debug (fun () => "5") id
00:04:49 verbose #6142 > >     (exit_code, output) |> return
00:04:49 verbose #6143 > > |> async.new_async_unit
00:04:49 verbose #6144 > > |> async.run_with_timeout 10000
00:04:49 verbose #6145 > > |> function
00:04:49 verbose #6146 > >     | Some (exit_code, output) =>
00:04:49 verbose #6147 > >         exit_code |> _assert_eq -2147483648i32
00:04:49 verbose #6148 > >         output |> _assert_eq (join
00:04:49 verbose #6149 > > "System.Threading.Tasks.TaskCanceledException: A task was canceled.")
00:04:49 verbose #6150 > >         true
00:04:49 verbose #6151 > >     | _ => false
00:04:49 verbose #6152 > > |> _assert_eq true
00:04:49 verbose #6153 > 00:04:49   debug #409 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e9dc6e87946a03a4f35b7dfa1cf705dacbeba42c0d96cf00e278469659e67d87/main.spi
00:04:52 verbose #6154 > >
00:04:52 verbose #6155 > > ╭─[ 3.31s - stdout ]───────────────────────────────────────────────────────────╮
00:04:52 verbose #6156 > > │ 00:00:00   debug #1 1                                                   │
00:04:52 verbose #6157 > > │ 00:00:00   debug #2 2                                                   │
00:04:52 verbose #6158 > > │ 00:00:00   debug #3 runtime.execute_with_options_async / { options = {  │
00:04:52 verbose #6159 > > │ command = pwsh -c "Get-Content                                               │
00:04:52 verbose #6160 > > │ C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\dotnet-repl\613830ed-01 │
00:04:52 verbose #6161 > > │ 6e-d959-8d21-02dc1c63c252\test.txt"; cancellation_token = Some               │
00:04:52 verbose #6162 > > │ System.Threading.CancellationToken; environment_variables = [||]; on_line =  │
00:04:52 verbose #6163 > > │ None; stdin = None; trace = true; working_directory = None } }               │
00:04:52 verbose #6164 > > │ 00:00:00   debug #4 3                                                   │
00:04:52 verbose #6165 > > │ 00:00:00   debug #5 4                                                   │
00:04:52 verbose #6166 > > │ 00:00:00 warning #6 runtime.execute_with_options_async /                │
00:04:52 verbose #6167 > > │ WaitForExitAsync / { ex = System.Threading.Tasks.TaskCanceledException: A    │
00:04:52 verbose #6168 > > │ task was canceled. }                                                         │
00:04:52 verbose #6169 > > │ 00:00:00   debug #7 runtime.execute_with_options_async / { exit_code =  │
00:04:52 verbose #6170 > > │ -2147483648; output_length = 66 }                                            │
00:04:52 verbose #6171 > > │ 00:00:00   debug #8 5                                                   │
00:04:52 verbose #6172 > > │ assert_eq / actual: -2147483648 / expected: -2147483648                      │
00:04:52 verbose #6173 > > │ assert_eq / actual: "System.Threading.Tasks.TaskCanceledException: A task    │
00:04:52 verbose #6174 > > │ was canceled." / expected: "System.Threading.Tasks.TaskCanceledException: A  │
00:04:52 verbose #6175 > > │ task was canceled."                                                          │
00:04:52 verbose #6176 > > │ assert_eq / actual: true / expected: true                                    │
00:04:52 verbose #6177 > > │                                                                              │
00:04:52 verbose #6178 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:52 verbose #6179 > >
00:04:52 verbose #6180 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:52 verbose #6181 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:52 verbose #6182 > > │ ### current_process_kill                                                     │
00:04:52 verbose #6183 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:52 verbose #6184 > >
00:04:52 verbose #6185 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:52 verbose #6186 > > inl current_process_kill () =
00:04:52 verbose #6187 > >     run_target function
00:04:52 verbose #6188 > >         | Fsharp (Native) => fun () =>
00:04:52 verbose #6189 > >             inl fn () =
00:04:52 verbose #6190 > >                 run_target function
00:04:52 verbose #6191 > >                     | Fsharp (Native) => fun () =>
00:04:52 verbose #6192 > >                         trace Warning (fun () => "runtime.current_process_kill
00:04:52 verbose #6193 > > exiting... 3") id
00:04:52 verbose #6194 > >                         $'System.Threading.Thread.Sleep 300'
00:04:52 verbose #6195 > >                         trace Warning (fun () => "runtime.current_process_kill
00:04:52 verbose #6196 > > exiting... 2") id
00:04:52 verbose #6197 > >                         $'System.Console.Out.Flush ()'
00:04:52 verbose #6198 > >                         $'System.Threading.Thread.Sleep 60'
00:04:52 verbose #6199 > >                         trace Warning (fun () => "runtime.current_process_kill
00:04:52 verbose #6200 > > exiting... 1") id
00:04:52 verbose #6201 > >                         $'System.Diagnostics.Process.GetCurrentProcess().Kill
00:04:52 verbose #6202 > > ()' : ()
00:04:52 verbose #6203 > >                     | _ => fun () => null ()
00:04:52 verbose #6204 > >             inl thread : threading.thread = $'new System.Threading.Thread (!fn)'
00:04:52 verbose #6205 > >             thread |> $'_.Start()' : ()
00:04:52 verbose #6206 > >         | _ => fun () => null ()
00:04:53 verbose #6207 > 00:04:52   debug #410 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c6813b7ff8711a734f43b6f5a309a85b78081c21af5f40f1c2bd68d70c4c43fb/main.spi
00:04:53 verbose #6208 > >
00:04:53 verbose #6209 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:53 verbose #6210 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:53 verbose #6211 > > │ ### gc_collect                                                               │
00:04:53 verbose #6212 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:53 verbose #6213 > >
00:04:53 verbose #6214 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:53 verbose #6215 > > inl gc_collect () =
00:04:53 verbose #6216 > >     run_target function
00:04:53 verbose #6217 > >         | Fsharp _ => fun () => $'System.GC.Collect' () : ()
00:04:53 verbose #6218 > >         | Python _ => fun () => ($'gc.collect()' : int) |> ignore
00:04:53 verbose #6219 > >         | _ => fun () => ()
00:04:53 verbose #6220 > 00:04:52   debug #411 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ea593f6ce34c6a8bb0d3938104ce10054eb905632ceed0993717e4c9a5f6acfc/main.spi
00:04:53 verbose #6221 > >
00:04:53 verbose #6222 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:53 verbose #6223 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:53 verbose #6224 > > │ ## runtime                                                                   │
00:04:53 verbose #6225 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:53 verbose #6226 > >
00:04:53 verbose #6227 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:53 verbose #6228 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:53 verbose #6229 > > │ ### execute_with_options                                                     │
00:04:53 verbose #6230 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:53 verbose #6231 > >
00:04:53 verbose #6232 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:53 verbose #6233 > > let execute_with_options (options : execution_options) : i32 * string =
00:04:53 verbose #6234 > >     run_target function
00:04:53 verbose #6235 > >         | Fsharp (Native) => fun () =>
00:04:53 verbose #6236 > >             options |> execute_with_options_async |> async.run_synchronously
00:04:53 verbose #6237 > >         | Rust (Native) => fun () =>
00:04:53 verbose #6238 > >             inl command = join options.command
00:04:53 verbose #6239 > >             inl file_name, arguments = command |> split_command |> resultm.get
00:04:53 verbose #6240 > >             inl arguments =
00:04:53 verbose #6241 > >                 arguments
00:04:53 verbose #6242 > >                 |> optionm'.default_value ""
00:04:53 verbose #6243 > >                 |> split_args
00:04:53 verbose #6244 > >                 |> resultm.get
00:04:53 verbose #6245 > >                 |> am'.to_vec
00:04:53 verbose #6246 > >                 |> am'.vec_map sm'.to_std_string
00:04:53 verbose #6247 > >
00:04:53 verbose #6248 > >             trace Debug
00:04:53 verbose #6249 > >                 fun () => $'$"runtime.execute_with_options"'
00:04:53 verbose #6250 > >                 fun () => { file_name arguments options }
00:04:53 verbose #6251 > >
00:04:53 verbose #6252 > >             fun () =>
00:04:53 verbose #6253 > >                 fun () =>
00:04:53 verbose #6254 > >                     file_name
00:04:53 verbose #6255 > >                     |> new_process_command
00:04:53 verbose #6256 > >                     |> process_command_args arguments
00:04:53 verbose #6257 > >                     |> process_command_stdout (process_stdio_piped ())
00:04:53 verbose #6258 > >                     |> process_command_stderr (process_stdio_piped ())
00:04:53 verbose #6259 > >                     |> process_command_stdin (process_stdio_piped ())
00:04:53 verbose #6260 > >                     |> fun command =>
00:04:53 verbose #6261 > >                         match options.working_directory |> optionm'.unbox with
00:04:53 verbose #6262 > >                         | Some working_directory =>
00:04:53 verbose #6263 > >                             command
00:04:53 verbose #6264 > >                             |> process_command_current_dir working_directory
00:04:53 verbose #6265 > >                         | None => command
00:04:53 verbose #6266 > >                     |> fun command =>
00:04:53 verbose #6267 > >                         match options.environment_variables with
00:04:53 verbose #6268 > >                         | ;[[]] => command
00:04:53 verbose #6269 > >                         | vars =>
00:04:53 verbose #6270 > >                             (command, vars |> am'.to_vec)
00:04:53 verbose #6271 > >                             ||> am'.vec_fold' fun command (key, value) =>
00:04:53 verbose #6272 > >                                 command |> process_command_env key value
00:04:53 verbose #6273 > >                     |> process_command_spawn
00:04:53 verbose #6274 > >                     |> resultm.map_error' sm'.format'
00:04:53 verbose #6275 > >                     |> resultm.map' (optionm'.some' >> threading.new_arc_mutex)
00:04:53 verbose #6276 > >                     |> resultm.unbox'
00:04:53 verbose #6277 > >                     |> function
00:04:53 verbose #6278 > >                         | Ok child =>
00:04:53 verbose #6279 > >                             inl stdout =
00:04:53 verbose #6280 > >                                 fun () =>
00:04:53 verbose #6281 > >                                     child
00:04:53 verbose #6282 > >                                     |> threading.arc_mutex_lock
00:04:53 verbose #6283 > >                                     |> resultm.unwrap'
00:04:53 verbose #6284 > >                                     |> threading.mutex_guard_ref_mut
00:04:53 verbose #6285 > >                                     |> optionm'.as_mut
00:04:53 verbose #6286 > >                                     |> optionm'.unwrap
00:04:53 verbose #6287 > >                                     |> process_child_stdout
00:04:53 verbose #6288 > >                                     |> optionm'.take_ref_mut
00:04:53 verbose #6289 > >                                     |> optionm'.unwrap
00:04:53 verbose #6290 > >                                 |> rust.capture
00:04:53 verbose #6291 > >
00:04:53 verbose #6292 > >                             inl stderr =
00:04:53 verbose #6293 > >                                 fun () =>
00:04:53 verbose #6294 > >                                     child
00:04:53 verbose #6295 > >                                     |> threading.arc_mutex_lock
00:04:53 verbose #6296 > >                                     |> resultm.unwrap'
00:04:53 verbose #6297 > >                                     |> threading.mutex_guard_ref_mut
00:04:53 verbose #6298 > >                                     |> optionm'.as_mut
00:04:53 verbose #6299 > >                                     |> optionm'.unwrap
00:04:53 verbose #6300 > >                                     |> process_child_stderr
00:04:53 verbose #6301 > >                                     |> optionm'.take_ref_mut
00:04:53 verbose #6302 > >                                     |> optionm'.unwrap
00:04:53 verbose #6303 > >                                 |> rust.capture
00:04:53 verbose #6304 > >
00:04:53 verbose #6305 > >                             inl stdin =
00:04:53 verbose #6306 > >                                 fun () =>
00:04:53 verbose #6307 > >                                     child
00:04:53 verbose #6308 > >                                     |> threading.arc_mutex_lock
00:04:53 verbose #6309 > >                                     |> resultm.unwrap'
00:04:53 verbose #6310 > >                                     |> threading.mutex_guard_ref_mut
00:04:53 verbose #6311 > >                                     |> optionm'.as_mut
00:04:53 verbose #6312 > >                                     |> optionm'.unwrap
00:04:53 verbose #6313 > >                                     |> process_child_stdin
00:04:53 verbose #6314 > >                                     |> optionm'.take_ref_mut
00:04:53 verbose #6315 > >                                     |> optionm'.unwrap
00:04:53 verbose #6316 > >                                     |> optionm'.some'
00:04:53 verbose #6317 > >                                     |> threading.new_arc_mutex
00:04:53 verbose #6318 > >                                 |> rust.capture
00:04:53 verbose #6319 > >
00:04:53 verbose #6320 > >                             inl channel_sender, channel_receiver =
00:04:53 verbose #6321 > > threading.new_channel ()
00:04:53 verbose #6322 > >                             inl channel_sender'' = channel_sender |>
00:04:53 verbose #6323 > > threading.new_arc_mutex
00:04:53 verbose #6324 > >                             inl channel_sender' = channel_sender |>
00:04:53 verbose #6325 > > threading.new_arc_mutex
00:04:53 verbose #6326 > >                             inl channel_receiver' = channel_receiver |>
00:04:53 verbose #6327 > > threading.new_arc_mutex
00:04:53 verbose #6328 > >
00:04:53 verbose #6329 > >                             inl stdout_handle =
00:04:53 verbose #6330 > >                                 fun () =>
00:04:53 verbose #6331 > >                                     stdout
00:04:53 verbose #6332 > >                                     |> stream.decode_reader_bytes_build
00:04:53 verbose #6333 > >                                     |> stream.new_buf_reader
00:04:53 verbose #6334 > >                                     |> stream.buf_read_lines
00:04:53 verbose #6335 > >                                     |> iter.try_for_each fun lines =>
00:04:53 verbose #6336 > >                                         inl channel_sender'' = channel_sender''
00:04:53 verbose #6337 > > |> rust.clone
00:04:53 verbose #6338 > >                                         lines
00:04:53 verbose #6339 > >                                         |> stdio_line (Ok ()) options.trace
00:04:53 verbose #6340 > > channel_sender''
00:04:53 verbose #6341 > >                                         |> resultm.to_try
00:04:53 verbose #6342 > >                                 |> threading.spawn (1, 0) 1
00:04:53 verbose #6343 > >
00:04:53 verbose #6344 > >                             inl stderr_handle =
00:04:53 verbose #6345 > >                                 fun () =>
00:04:53 verbose #6346 > >                                     stderr
00:04:53 verbose #6347 > >                                     |> stream.decode_reader_bytes_build
00:04:53 verbose #6348 > >                                     |> stream.new_buf_reader
00:04:53 verbose #6349 > >                                     |> stream.buf_read_lines
00:04:53 verbose #6350 > >                                     |> iter.try_for_each fun lines =>
00:04:53 verbose #6351 > >                                         inl channel_sender' = channel_sender' |>
00:04:53 verbose #6352 > > rust.clone
00:04:53 verbose #6353 > >                                         lines
00:04:53 verbose #6354 > >                                         |> stdio_line (Error ()) options.trace
00:04:53 verbose #6355 > > channel_sender'
00:04:53 verbose #6356 > >                                         |> resultm.to_try
00:04:53 verbose #6357 > >                                 |> threading.spawn (1, 0) 1
00:04:53 verbose #6358 > >
00:04:53 verbose #6359 > >                             match options.stdin |> optionm'.unbox with
00:04:53 verbose #6360 > >                             | Some stdin' =>
00:04:53 verbose #6361 > >                                 stdin
00:04:53 verbose #6362 > >                                 |> threading.arc_mutex_lock
00:04:53 verbose #6363 > >                                 |> resultm.unwrap'
00:04:53 verbose #6364 > >                                 |> threading.mutex_guard_ref_mut
00:04:53 verbose #6365 > >                                 |> optionm'.take_ref_mut
00:04:53 verbose #6366 > >                                 |> optionm'.map' threading.new_arc_mutex
00:04:53 verbose #6367 > >                                 |> optionm'.unbox
00:04:53 verbose #6368 > >                                 |> function
00:04:53 verbose #6369 > >                                     | Some stdin =>
00:04:53 verbose #6370 > >                                         stdin |> stdin'
00:04:53 verbose #6371 > >                                         stdin
00:04:53 verbose #6372 > >                                         |> threading.arc_mutex_lock
00:04:53 verbose #6373 > >                                         |> resultm.unwrap'
00:04:53 verbose #6374 > >                                         |> stdin_flush
00:04:53 verbose #6375 > >                                     | None => ()
00:04:53 verbose #6376 > >                             | None => ()
00:04:53 verbose #6377 > >
00:04:53 verbose #6378 > >                             inl output =
00:04:53 verbose #6379 > >                                 child
00:04:53 verbose #6380 > >                                 |> threading.arc_mutex_lock
00:04:53 verbose #6381 > >                                 |> resultm.unwrap'
00:04:53 verbose #6382 > >                                 |> threading.mutex_guard_ref_mut
00:04:53 verbose #6383 > >                                 |> optionm'.take_ref_mut
00:04:53 verbose #6384 > >                                 |> optionm'.unwrap
00:04:53 verbose #6385 > >                                 |> child_wait_with_output
00:04:53 verbose #6386 > >                                 |> resultm.map_error' sm'.format'
00:04:53 verbose #6387 > >
00:04:53 verbose #6388 > >                             [[ stdout_handle; stderr_handle ]]
00:04:53 verbose #6389 > >                             |> am'.new_vec
00:04:53 verbose #6390 > >                             |> am'.vec_for_each' (threading.join' >>
00:04:53 verbose #6391 > > resultm.unwrap' >> resultm.unwrap')
00:04:53 verbose #6392 > >
00:04:53 verbose #6393 > >                             match output |> resultm.unbox with
00:04:53 verbose #6394 > >                             | Ok output =>
00:04:53 verbose #6395 > >                                 inl exit_code =
00:04:53 verbose #6396 > >                                     output
00:04:53 verbose #6397 > >                                     |> process_output_status
00:04:53 verbose #6398 > >                                     |> process_exit_status_code
00:04:53 verbose #6399 > >                                     |> optionm'.unbox
00:04:53 verbose #6400 > >                                 match exit_code with
00:04:53 verbose #6401 > >                                 | Some exit_code => exit_code, None, Some
00:04:53 verbose #6402 > > channel_receiver'
00:04:53 verbose #6403 > >                                 | None =>
00:04:53 verbose #6404 > >                                     -1,
00:04:53 verbose #6405 > >                                     ("runtime.execute_with_options
00:04:53 verbose #6406 > > exit_code=None" |> sm'.to_std_string |> Some),
00:04:53 verbose #6407 > >                                     Some channel_receiver'
00:04:53 verbose #6408 > >                             | Error error =>
00:04:53 verbose #6409 > >                                 trace Critical
00:04:53 verbose #6410 > >                                     fun () => $'$"runtime.execute_with_options
00:04:53 verbose #6411 > > output error"'
00:04:53 verbose #6412 > >                                     fun () => { error }
00:04:53 verbose #6413 > >                                 -2i32, error |> Some, None
00:04:53 verbose #6414 > >                         | Error error =>
00:04:53 verbose #6415 > >                             trace Critical
00:04:53 verbose #6416 > >                                 fun () => $'$"runtime.execute_with_options
00:04:53 verbose #6417 > > child error"'
00:04:53 verbose #6418 > >                                 fun () => { error }
00:04:53 verbose #6419 > >                             -1i32, error |> Some, None
00:04:53 verbose #6420 > >                     |> function
00:04:53 verbose #6421 > >                         | exit_code, std_trace, channel_receiver =>
00:04:53 verbose #6422 > >                             inl std_trace =
00:04:53 verbose #6423 > >                                 channel_receiver
00:04:53 verbose #6424 > >                                 |> optionm'.box
00:04:53 verbose #6425 > >                                 |> optionm'.map' fun channel_receiver =>
00:04:53 verbose #6426 > >                                     channel_receiver
00:04:53 verbose #6427 > >                                     |> threading.arc_mutex_lock
00:04:53 verbose #6428 > >                                     |> resultm.unwrap'
00:04:53 verbose #6429 > >                                     |> iter.iter
00:04:53 verbose #6430 > >                                     |> iter_collect''
00:04:53 verbose #6431 > >                                     |> am'.vec_map sm'.from_std_string
00:04:53 verbose #6432 > >                                     |> am'.from_vec
00:04:53 verbose #6433 > >                                     |> fun x => x : _ i32 _
00:04:53 verbose #6434 > >                                     |> seq.of_array
00:04:53 verbose #6435 > >                                     |> sm'.concat "\n"
00:04:53 verbose #6436 > >                                 |> optionm'.default_value' (
00:04:53 verbose #6437 > >                                     std_trace
00:04:53 verbose #6438 > >                                     |> optionm.map sm'.from_std_string
00:04:53 verbose #6439 > >                                     |> optionm'.default_value ""
00:04:53 verbose #6440 > >                                 )
00:04:53 verbose #6441 > >                             trace Verbose
00:04:53 verbose #6442 > >                                 fun () => $'$"runtime.execute_with_options
00:04:53 verbose #6443 > > result"'
00:04:53 verbose #6444 > >                                 fun () => { exit_code std_trace_length =
00:04:53 verbose #6445 > > std_trace |> sm'.length : i32 }
00:04:53 verbose #6446 > >                             new_pair exit_code std_trace
00:04:53 verbose #6447 > >                 |> capture
00:04:53 verbose #6448 > >             // |> async.future_init (3, 2) 1
00:04:53 verbose #6449 > >             // |> async.block_on
00:04:53 verbose #6450 > >             |> fun x => x ()
00:04:53 verbose #6451 > >             |> from_pair
00:04:53 verbose #6452 > >         | _ => fun () => null ()
00:04:54 verbose #6453 > 00:04:53   debug #412 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5fbba9c37282a247ac35c1dc50fe22ab2ab8dd824f9994c878a8a13337b3aa23/main.spi
00:04:54 verbose #6454 > >
00:04:54 verbose #6455 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:54 verbose #6456 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:54 verbose #6457 > > │ #### execute                                                                 │
00:04:54 verbose #6458 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:54 verbose #6459 > >
00:04:54 verbose #6460 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:54 verbose #6461 > > inl execute command =
00:04:54 verbose #6462 > >     execution_options fun x => { x with
00:04:54 verbose #6463 > >         command = command
00:04:54 verbose #6464 > >     }
00:04:54 verbose #6465 > >     |> execute_with_options
00:04:54 verbose #6466 > 00:04:53   debug #413 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/763f0bc43cb99b6b6674695bc8a1721626de44a42029c69b59b194f10ea15ed1/main.spi
00:04:54 verbose #6467 > >
00:04:54 verbose #6468 > > ── markdown ────────────────────────────────────────────────────────────────────
00:04:54 verbose #6469 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:04:54 verbose #6470 > > │ #### tests                                                                   │
00:04:54 verbose #6471 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:04:54 verbose #6472 > >
00:04:54 verbose #6473 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:04:54 verbose #6474 > > //// test
00:04:54 verbose #6475 > > ///! rust -d chrono encoding_rs encoding_rs_io regex sha2
00:04:54 verbose #6476 > >
00:04:54 verbose #6477 > > types ()
00:04:54 verbose #6478 > >
00:04:54 verbose #6479 > > inl content = "╭─[[ 你好,世界!こんにちは世界! ]]─╮"
00:04:54 verbose #6480 > >
00:04:54 verbose #6481 > > inl file_name = join "test.txt"
00:04:54 verbose #6482 > > inl temp_dir, disposable =
00:04:54 verbose #6483 > >     (file_name, content)
00:04:54 verbose #6484 > >     |> sm'.format_debug
00:04:54 verbose #6485 > >     |> crypto.hash_text
00:04:54 verbose #6486 > >     |> file_system.create_temp_dir'
00:04:54 verbose #6487 > > inl path = temp_dir </> file_name |> file_system.normalize_path
00:04:54 verbose #6488 > > inl exit_code, result =
00:04:54 verbose #6489 > >     execute $'\@$"pwsh -c ""[[IO.File]]::ReadAllText(\'{!path}\')"""'
00:04:54 verbose #6490 > > exit_code |> _assert_eq 1
00:04:54 verbose #6491 > > result |> _assert_string_contains "not find file"
00:04:54 verbose #6492 > >
00:04:54 verbose #6493 > > content |> file_system.write_all_text path
00:04:54 verbose #6494 > >
00:04:54 verbose #6495 > > execution_options fun x => { x with
00:04:54 verbose #6496 > >     command = $'\@$"cat ""{!file_name}"""'
00:04:54 verbose #6497 > >     working_directory = Some temp_dir |> optionm'.box
00:04:54 verbose #6498 > > }
00:04:54 verbose #6499 > > |> execute_with_options
00:04:54 verbose #6500 > > |> ignore
00:04:54 verbose #6501 > >
00:04:54 verbose #6502 > > inl exit_code, output =
00:04:54 verbose #6503 > >     execution_options fun x => { x with
00:04:54 verbose #6504 > >         command = $'\@$"pwsh -c ""[[System.Console]]::OutputEncoding =
00:04:54 verbose #6505 > > [[System.Text.Encoding]]::UTF8; [[IO.File]]::ReadAllText(\'{!file_name}\')"""'
00:04:54 verbose #6506 > >         working_directory = Some temp_dir |> optionm'.box
00:04:54 verbose #6507 > >     }
00:04:54 verbose #6508 > >     |> execute_with_options
00:04:54 verbose #6509 > >
00:04:54 verbose #6510 > > exit_code |> _assert_eq 0i32
00:04:54 verbose #6511 > > output |> _assert_eq content
00:04:54 verbose #6512 > >
00:04:54 verbose #6513 > > disposable |> use |> ignore
00:04:55 verbose #6514 > 00:04:54   debug #414 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/25d1ac09c99111c6e143e300a6752887fc17f85ec65e061f326cad2616c59570/main.spi
00:05:02 verbose #6515 > >
00:05:02 verbose #6516 > > ╭─[ 7.67s - return value ]─────────────────────────────────────────────────────╮
00:05:02 verbose #6517 > > │ 00:00:00 verbose #1 file_system.create_dir / { dir =                   │
00:05:02 verbose #6518 > > │ C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\spiral_builder_c79636b8 │
00:05:02 verbose #6519 > > │ 5891352b77107b7745734d39dd6b25dc452310e584622c015eb0f8fa\9242780b-ce0e-9155- │
00:05:02 verbose #6520 > > │ 5e07-f6ee5667aa16 }                                                          │
00:05:02 verbose #6521 > > │ 00:00:00   debug #2 runtime.execute_with_options / { file_name = pwsh; │
00:05:02 verbose #6522 > > │ arguments = ["-c", "[                                                        │
00:05:02 verbose #6523 > > │ IO.File]::ReadAllText('c:/Users/i574n/AppData/Local/Temp/!create_temp_path_/ │
00:05:02 verbose #6524 > > │ spiral_builder_c79636b85891352b77107b7745734d39dd6b25dc452310e584622c015eb0f │
00:05:02 verbose #6525 > > │ 8fa/9242780b-ce0e-9155-5e07-f6ee5667aa16/test.txt')"]; options = { command = │
00:05:02 verbose #6526 > > │ pwsh -c "[                                                                   │
00:05:02 verbose #6527 > > │ IO.File]::ReadAllText('c:/Users/i574n/AppData/Local/Temp/!create_temp_path_/ │
00:05:02 verbose #6528 > > │ spiral_builder_c79636b85891352b77107b7745734d39dd6b25dc452310e584622c015eb0f │
00:05:02 verbose #6529 > > │ 8fa/9242780b-ce0e-9155-5e07-f6ee5667aa16/test.txt')"; cancellation_token =   │
00:05:02 verbose #6530 > > │ None; environment_variables = Array(MutCell([])); on_line = None; stdin =    │
00:05:02 verbose #6531 > > │ None; trace = true; working_directory = None } }                             │
00:05:02 verbose #6532 > > │ 00:00:00 verbose #3 ! MethodInvocationException: Exception   │
00:05:02 verbose #6533 > > │ calling "ReadAllText" with "1" argument(s): "Could not find file             │
00:05:02 verbose #6534 > > │ 'c:\Users\i574n\AppData\Local\Temp\!create_temp_path_\spiral_builder_c79636b │
00:05:02 verbose #6535 > > │ 85891352b77107b7745734d39dd6b25dc452310e584622c015eb0f8fa\9242780b-ce0e-9155 │
00:05:02 verbose #6536 > > │ -5e07-f6ee5667aa16\test.txt'."                                             │
00:05:02 verbose #6537 > > │ 00:00:00 verbose #4 runtime.execute_with_options / result / {          │
00:05:02 verbose #6538 > > │ exit_code = 1; std_trace_length = 312 }                                      │
00:05:02 verbose #6539 > > │ assert_eq / actual: 1 / expected: 1                                          │
00:05:02 verbose #6540 > > │ assert_string_contains / actual: "not find file" / expected: "[           │
00:05:02 verbose #6541 > > │ 31;1mMethodInvocatio...e_name = cat; arguments = ["test.txt"]; options = {   │
00:05:02 verbose #6542 > > │ command = cat "test.txt"; cancellation_token = None; environment_variables = │
00:05:02 verbose #6543 > > │ Array(MutCell([])); on_line = None; stdin = None; trace = true;              │
00:05:02 verbose #6544 > > │ working_directory =                                                          │
00:05:02 verbose #6545 > > │ Some("C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\spiral_builder_c7 │
00:05:02 verbose #6546 > > │ 9636b85891352b77107b7745734d39dd6b25dc452310e584622c015eb0f8fa\9242780b-ce0e │
00:05:02 verbose #6547 > > │ -9155-5e07-f6ee5667aa16") } }                                                │
00:05:02 verbose #6548 > > │ 00:00:00 verbose #6 > ╭─[ 你好,世界!こんにちは世界! ]─╮             │
00:05:02 verbose #6549 > > │ 00:00:00 verbose #7 runtime.execute_with_options / result / {          │
00:05:02 verbose #6550 > > │ exit_code = 0; std_trace_length = 22 }                                       │
00:05:02 verbose #6551 > > │ 00:00:00   debug #8 runtime.execute_with_options / { file_name = pwsh; │
00:05:02 verbose #6552 > > │ arguments = ["-c", "[System.Console]::OutputEncoding = [                     │
00:05:02 verbose #6553 > > │ System.Text.Encoding]::UTF8; [IO.File]::ReadAllText('test.txt')"]; options = │
00:05:02 verbose #6554 > > │ { command = pwsh -c "[System.Console]::OutputEncoding = [                    │
00:05:02 verbose #6555 > > │ System.Text.Encoding]::UTF8; [IO.File]::ReadAllText('test.txt')";            │
00:05:02 verbose #6556 > > │ cancellation_token = None; environment_variables = Array(MutCell([]));       │
00:05:02 verbose #6557 > > │ on_line = None; stdin = None; trace = true; working_directory =              │
00:05:02 verbose #6558 > > │ Some("C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\spiral_builder_c7 │
00:05:02 verbose #6559 > > │ 9636b85891352b77107b7745734d39dd6b25dc452310e584622c015eb0f8fa\9242780b-ce0e │
00:05:02 verbose #6560 > > │ -9155-5e07-f6ee5667aa16") } }                                                │
00:05:02 verbose #6561 > > │ 00:00:01 verbose #9 > ╭─[ 你好,世界!こんにちは世界! ]─╮             │
00:05:02 verbose #6562 > > │ 00:00:01 verbose #10 runtime.execute_with_options / result / {         │
00:05:02 verbose #6563 > > │ exit_code = 0; std_trace_length = 22 }                                       │
00:05:02 verbose #6564 > > │ assert_eq / actual: 0 / expected: 0                                          │
00:05:02 verbose #6565 > > │ assert_eq / actual: "╭─[ 你好,世界!こんにちは世界! ]─╮" / expected: "╭─[  │
00:05:02 verbose #6566 > > │ 你好,世界!こんにちは世界! ]─╮"                                            │
00:05:02 verbose #6567 > > │                                                                              │
00:05:02 verbose #6568 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:02 verbose #6569 > >
00:05:02 verbose #6570 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:02 verbose #6571 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:02 verbose #6572 > > │ ### execute_retry                                                            │
00:05:02 verbose #6573 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:02 verbose #6574 > >
00:05:02 verbose #6575 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:02 verbose #6576 > > let execute_retry retries options =
00:05:02 verbose #6577 > >     fun () =>
00:05:02 verbose #6578 > >         inl exit_code, result = options |> execute_with_options
00:05:02 verbose #6579 > >         if exit_code = 0
00:05:02 verbose #6580 > >         then Ok (exit_code, result)
00:05:02 verbose #6581 > >         else Error (exit_code, result)
00:05:02 verbose #6582 > >     |> retry_fn' retries
00:05:02 verbose #6583 > 00:05:02   debug #415 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8df17327c78002dcefaa8c5c43b9568385a1bc81a85eb070afdf468280decaec/main.spi
00:05:02 verbose #6584 > >
00:05:02 verbose #6585 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:02 verbose #6586 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:02 verbose #6587 > > │ ## main                                                                      │
00:05:02 verbose #6588 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:02 verbose #6589 > >
00:05:02 verbose #6590 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:02 verbose #6591 > > inl main () =
00:05:02 verbose #6592 > >     types ()
00:05:02 verbose #6593 > >     init_trace_state None
00:05:02 verbose #6594 > >     $'let current_process_kill () = !current_process_kill ()' : ()
00:05:02 verbose #6595 > >     $'let execute_async x = !execute_async x' : ()
00:05:02 verbose #6596 > >     $'let execute_with_options_async x = !execute_with_options_async x' : ()
00:05:02 verbose #6597 > >     inl execution_options fn =
00:05:02 verbose #6598 > >         execution_options fun x =>
00:05:02 verbose #6599 > >             x
00:05:02 verbose #6600 > >             |> heap
00:05:02 verbose #6601 > >             |> fn
00:05:02 verbose #6602 > >             |> fun x => !x
00:05:02 verbose #6603 > >     $'let execution_options x = !execution_options x' : ()
00:05:02 verbose #6604 > >     inl split_args x = x |> split_args |> resultm.box
00:05:02 verbose #6605 > >     $'let split_args x = !split_args x' : ()
00:05:03 verbose #6606 > 00:05:02   debug #416 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/59ab2f6c134d9f0b624584e29229e303021d22dd67be168d45d502f4ec958552/main.spi
00:05:06 verbose #6607 > 00:01:24 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 119847 }
00:05:06 verbose #6608 > 00:01:24   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/runtime.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/runtime.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:05:09 verbose #6609 > 00:01:27 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/runtime.dib.ipynb to html
00:05:09 verbose #6610 > 00:01:27 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:05:09 verbose #6611 > 00:01:27 verbose #7 !   validate(nb)
00:05:12 verbose #6612 > 00:01:31 verbose #8 ! [NbConvertApp] Writing 573379 bytes to c:\home\git\polyglot\lib\spiral\runtime.dib.html
00:05:12 verbose #6613 > 00:01:31 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 645 }
00:05:12 verbose #6614 > 00:01:31   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 645 }
00:05:12 verbose #6615 > 00:01:31   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/runtime.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/runtime.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:05:14 verbose #6616 > 00:01:32 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:05:14 verbose #6617 > 00:01:32   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:05:14 verbose #6618 > 00:01:33   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 120551 }
00:05:14   debug #6619 runtime.execute_with_options_async / { exit_code = 0; output_length = 127675 }
00:05:14   debug #8 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path runtime.dib --retries 3
00:05:14   debug #6620 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path trace.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:05:14 verbose #6621 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "trace.dib", "--retries", "3"])) }
00:05:14 verbose #6622 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/trace.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/trace.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/trace.dib" --output-path "c:/home/git/polyglot/lib/spiral/trace.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:05:17 verbose #6623 > >
00:05:17 verbose #6624 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:17 verbose #6625 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:17 verbose #6626 > > │ # trace                                                                      │
00:05:17 verbose #6627 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:22 verbose #6628 > >
00:05:22 verbose #6629 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:22 verbose #6630 > > //// test
00:05:22 verbose #6631 > >
00:05:22 verbose #6632 > > open testing
00:05:23 verbose #6633 > 00:05:22   debug #417 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7845de436c12d0ca65282fe0cd65832468ca943e72feba50e6b1bb441e251a/main.spi
00:05:24 verbose #6634 > >
00:05:24 verbose #6635 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:24 verbose #6636 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:24 verbose #6637 > > │ ## types                                                                     │
00:05:24 verbose #6638 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:24 verbose #6639 > >
00:05:24 verbose #6640 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:24 verbose #6641 > > inl types () =
00:05:24 verbose #6642 > >     env.types ()
00:05:24 verbose #6643 > >     guid.types ()
00:05:24 verbose #6644 > >     rust.types ()
00:05:24 verbose #6645 > >     sm'.types ()
00:05:24 verbose #6646 > 00:05:23   debug #418 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/63ebd81cb488a1fad308b42d9b048552adfd75733d68d45488a5f5c0bf9e5a86/main.spi
00:05:24 verbose #6647 > >
00:05:24 verbose #6648 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:24 verbose #6649 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:24 verbose #6650 > > │ ## trace                                                                     │
00:05:24 verbose #6651 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:24 verbose #6652 > >
00:05:24 verbose #6653 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:24 verbose #6654 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:24 verbose #6655 > > │ ### trace_level                                                              │
00:05:24 verbose #6656 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:24 verbose #6657 > >
00:05:24 verbose #6658 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:24 verbose #6659 > > union trace_level =
00:05:24 verbose #6660 > >     | Verbose
00:05:24 verbose #6661 > >     | Debug
00:05:24 verbose #6662 > >     | Info
00:05:24 verbose #6663 > >     | Warning
00:05:24 verbose #6664 > >     | Critical
00:05:24 verbose #6665 > 00:05:24   debug #419 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6f1fded893795ce5b0bf010fcfc7cc4289809eda0a5f287abd00e325ca66e560/main.spi
00:05:24 verbose #6666 > >
00:05:24 verbose #6667 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:24 verbose #6668 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:24 verbose #6669 > > │ ### read_state                                                               │
00:05:24 verbose #6670 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:24 verbose #6671 > >
00:05:24 verbose #6672 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:24 verbose #6673 > > inl read_state () =
00:05:24 verbose #6674 > >     run_target function
00:05:24 verbose #6675 > >         | Rust (Contract | Wasm) => fun () =>
00:05:24 verbose #6676 > >             {
00:05:24 verbose #6677 > >                 trace_level = None
00:05:24 verbose #6678 > >                 repl_start = None
00:05:24 verbose #6679 > >             }
00:05:24 verbose #6680 > >         | _ => fun () =>
00:05:24 verbose #6681 > >             {
00:05:24 verbose #6682 > >                 trace_level =
00:05:24 verbose #6683 > >                     (join "TRACE_LEVEL")
00:05:24 verbose #6684 > >                     |> env.get_environment_variable
00:05:24 verbose #6685 > >                     |> reflection.union_try_pick
00:05:24 verbose #6686 > >                 repl_start =
00:05:24 verbose #6687 > >                     inl automation = env.get_environment_variable (join
00:05:24 verbose #6688 > > "AUTOMATION")
00:05:24 verbose #6689 > >                     if automation = "True"
00:05:24 verbose #6690 > >                     then date_time.now () |> date_time.ticks |> fun
00:05:24 verbose #6691 > > (date_time.timestamp x) => x |> Some
00:05:24 verbose #6692 > >                     else None
00:05:24 verbose #6693 > >             }
00:05:25 verbose #6694 > 00:05:24   debug #420 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4d1efdea16ac156a43a559cd0f2537c6261a4adf03333c940534b65b32537364/main.spi
00:05:25 verbose #6695 > >
00:05:25 verbose #6696 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:25 verbose #6697 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:25 verbose #6698 > > │ ### trace_state                                                              │
00:05:25 verbose #6699 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:25 verbose #6700 > >
00:05:25 verbose #6701 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:25 verbose #6702 > > type trace_state =
00:05:25 verbose #6703 > >     {
00:05:25 verbose #6704 > >         count : mut i64
00:05:25 verbose #6705 > >         trace_file : mut (string -> ())
00:05:25 verbose #6706 > >         enabled : mut bool
00:05:25 verbose #6707 > >         level : mut trace_level
00:05:25 verbose #6708 > >         repl_start : optionm'.option' i64
00:05:25 verbose #6709 > >     }
00:05:25 verbose #6710 > >
00:05:25 verbose #6711 > > inl new_trace_state trace_level' =
00:05:25 verbose #6712 > >     inl { repl_start trace_level } = read_state ()
00:05:25 verbose #6713 > >     {
00:05:25 verbose #6714 > >         enabled = mut true
00:05:25 verbose #6715 > >         count = mut 0i64
00:05:25 verbose #6716 > >         level = trace_level |> optionm'.default_value trace_level' |> mut
00:05:25 verbose #6717 > >         trace_file = mut ignore
00:05:25 verbose #6718 > >         repl_start = repl_start |> optionm'.box
00:05:25 verbose #6719 > >     } : trace_state
00:05:25 verbose #6720 > 00:05:24   debug #421 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/102a293d79779dd59e9b36cddda82bc0c63d62bd656048c557918ff234d501c8/main.spi
00:05:25 verbose #6721 > >
00:05:25 verbose #6722 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:25 verbose #6723 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:25 verbose #6724 > > │ ### init_trace_state                                                         │
00:05:25 verbose #6725 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:25 verbose #6726 > >
00:05:25 verbose #6727 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:25 verbose #6728 > > inl init_trace_state trace_level : () =
00:05:25 verbose #6729 > >     inl trace_level =
00:05:25 verbose #6730 > >         trace_level
00:05:25 verbose #6731 > >         |> optionm'.default_value Verbose
00:05:25 verbose #6732 > >     backend_switch {
00:05:25 verbose #6733 > >         Fsharp = fun () =>
00:05:25 verbose #6734 > >             global "module State = let mutable trace_state = None"
00:05:25 verbose #6735 > >             $'if State.trace_state.IsNone then State.trace_state <-
00:05:25 verbose #6736 > > !new_trace_state !trace_level |> Some' : ()
00:05:25 verbose #6737 > >         Python = fun () =>
00:05:25 verbose #6738 > >             global "class State: trace_state = None"
00:05:25 verbose #6739 > >             $'if State.trace_state is None: State.trace_state =
00:05:25 verbose #6740 > > !new_trace_state(!trace_level)' : ()
00:05:25 verbose #6741 > >     }
00:05:25 verbose #6742 > 00:05:25   debug #422 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f6482440868b40b5e9125224eb1ae805a9f8eab0ebe05a54f8cdb43e9a68fd2e/main.spi
00:05:26 verbose #6743 > >
00:05:26 verbose #6744 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:26 verbose #6745 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:26 verbose #6746 > > │ ### get_trace_state_or_init                                                  │
00:05:26 verbose #6747 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:26 verbose #6748 > >
00:05:26 verbose #6749 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:26 verbose #6750 > > inl get_trace_state_or_init trace_level : trace_state =
00:05:26 verbose #6751 > >     init_trace_state trace_level
00:05:26 verbose #6752 > >     // $'match State.trace_state with Some x -> x | None -> failwith
00:05:26 verbose #6753 > > "trace.get_trace_state_or_init / State.trace_state=None"'
00:05:26 verbose #6754 > >     backend_switch {
00:05:26 verbose #6755 > >         Fsharp = fun () =>
00:05:26 verbose #6756 > >             $'State.trace_state.Value' : trace_state
00:05:26 verbose #6757 > >         Python = fun () =>
00:05:26 verbose #6758 > >             $'State.trace_state' : trace_state
00:05:26 verbose #6759 > >     }
00:05:26 verbose #6760 > 00:05:25   debug #423 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/190413d9102c2adec5b22c0b730b03f138811eee2fb53cf59bbedc7f3c9ddc8c/main.spi
00:05:26 verbose #6761 > >
00:05:26 verbose #6762 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:26 verbose #6763 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:26 verbose #6764 > > │ ### test_trace_level                                                         │
00:05:26 verbose #6765 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:26 verbose #6766 > >
00:05:26 verbose #6767 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:26 verbose #6768 > > inl test_trace_level level : bool =
00:05:26 verbose #6769 > >     inl state = get_trace_state_or_init None
00:05:26 verbose #6770 > >     inl level' = *state.level
00:05:26 verbose #6771 > >     if *state.enabled |> not
00:05:26 verbose #6772 > >     then false
00:05:26 verbose #6773 > >     else
00:05:26 verbose #6774 > >         inl level : i32 = real real_core.union_tag level
00:05:26 verbose #6775 > >         inl level' : i32 = real real_core.union_tag level'
00:05:26 verbose #6776 > >         level >= level'
00:05:26 verbose #6777 > 00:05:25   debug #424 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/02977813497cd53e8dc927fdc5206bda4ec5bf0c2da379c9c1bacd563eb41ad6/main.spi
00:05:26 verbose #6778 > >
00:05:26 verbose #6779 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:26 verbose #6780 > > //// test
00:05:26 verbose #6781 > > ///! fsharp
00:05:26 verbose #6782 > > ///! cuda
00:05:26 verbose #6783 > > ///! rust
00:05:26 verbose #6784 > > ///! typescript
00:05:26 verbose #6785 > > ///! python
00:05:26 verbose #6786 > >
00:05:26 verbose #6787 > > test_trace_level Critical |> _assert_eq true
00:05:26 verbose #6788 > > test_trace_level Verbose |> _assert_eq true
00:05:26 verbose #6789 > >
00:05:26 verbose #6790 > > inl level = get_trace_state_or_init None .level
00:05:26 verbose #6791 > > level <- Debug
00:05:26 verbose #6792 > > test_trace_level Verbose |> _assert_eq false
00:05:26 verbose #6793 > > level <- Verbose
00:05:26 verbose #6794 > > test_trace_level Verbose |> _assert_eq true
00:05:27 verbose #6795 > 00:05:26   debug #425 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9e638ca9464b049cacd463a0b51a0122a1a59ce655a2087859eb62f10064c979/main.spi
00:05:27 verbose #6796 > 00:05:26   debug #426 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a49df9835650a73bebaa905ffa0d206fbd01fa5f5a8cb06741924b1137855e3c/main.spi
00:05:35 verbose #6797 > >
00:05:35 verbose #6798 > > ╭─[ 9.18s - return value ]─────────────────────────────────────────────────────╮
00:05:35 verbose #6799 > > │                                                                              │
00:05:35 verbose #6800 > > │ .py output (Cuda):                                                           │
00:05:35 verbose #6801 > > │ assert_eq / actual: True / expected: True                                    │
00:05:35 verbose #6802 > > │ assert_eq / actual: True / expected: True                                    │
00:05:35 verbose #6803 > > │ assert_eq / actual: False / expected: False                                  │
00:05:35 verbose #6804 > > │ assert_eq / actual: True / expected: True                                    │
00:05:35 verbose #6805 > > │                                                                              │
00:05:35 verbose #6806 > > │                                                                              │
00:05:35 verbose #6807 > > │ .rs output:                                                                  │
00:05:35 verbose #6808 > > │ assert_eq / actual: true / expected: true                                    │
00:05:35 verbose #6809 > > │ assert_eq / actual: true / expected: true                                    │
00:05:35 verbose #6810 > > │ assert_eq / actual: false / expected: false                                  │
00:05:35 verbose #6811 > > │ assert_eq / actual: true / expected: true                                    │
00:05:35 verbose #6812 > > │                                                                              │
00:05:35 verbose #6813 > > │                                                                              │
00:05:35 verbose #6814 > > │ .ts output:                                                                  │
00:05:35 verbose #6815 > > │ assert_eq / actual: true / expected: true                                    │
00:05:35 verbose #6816 > > │ assert_eq / actual: true / expected: true                                    │
00:05:35 verbose #6817 > > │ assert_eq / actual: false / expected: false                                  │
00:05:35 verbose #6818 > > │ assert_eq / actual: true / expected: true                                    │
00:05:35 verbose #6819 > > │                                                                              │
00:05:35 verbose #6820 > > │                                                                              │
00:05:35 verbose #6821 > > │ .py output:                                                                  │
00:05:35 verbose #6822 > > │ assert_eq / actual: true / expected: true                                    │
00:05:35 verbose #6823 > > │ assert_eq / actual: true / expected: true                                    │
00:05:35 verbose #6824 > > │ assert_eq / actual: false / expected: false                                  │
00:05:35 verbose #6825 > > │ assert_eq / actual: true / expected: true                                    │
00:05:35 verbose #6826 > > │                                                                              │
00:05:35 verbose #6827 > > │                                                                              │
00:05:35 verbose #6828 > > │                                                                              │
00:05:35 verbose #6829 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:35 verbose #6830 > >
00:05:35 verbose #6831 > > ╭─[ 9.19s - stdout ]───────────────────────────────────────────────────────────╮
00:05:35 verbose #6832 > > │ .fsx output:                                                                 │
00:05:35 verbose #6833 > > │ assert_eq / actual: true / expected: true                                    │
00:05:35 verbose #6834 > > │ assert_eq / actual: true / expected: true                                    │
00:05:35 verbose #6835 > > │ assert_eq / actual: false / expected: false                                  │
00:05:35 verbose #6836 > > │ assert_eq / actual: true / expected: true                                    │
00:05:35 verbose #6837 > > │                                                                              │
00:05:35 verbose #6838 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:35 verbose #6839 > >
00:05:35 verbose #6840 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:35 verbose #6841 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:35 verbose #6842 > > │ ### trace_raw                                                                │
00:05:35 verbose #6843 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:35 verbose #6844 > >
00:05:35 verbose #6845 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:35 verbose #6846 > > let rec trace_raw level fn =
00:05:35 verbose #6847 > >     inl trace_state = get_trace_state_or_init None
00:05:35 verbose #6848 > >     if level |> test_trace_level then
00:05:35 verbose #6849 > >         inl count = trace_state.count
00:05:35 verbose #6850 > >         count <- *count + 1
00:05:35 verbose #6851 > >
00:05:35 verbose #6852 > >         inl text =
00:05:35 verbose #6853 > >             backend_switch {
00:05:35 verbose #6854 > >                 Fsharp = fun () => $'$"%s{!fn ()}"' : string
00:05:35 verbose #6855 > >                 Python = fun () => fn () : string
00:05:35 verbose #6856 > >             }
00:05:35 verbose #6857 > >         run_target function
00:05:35 verbose #6858 > >             | Rust _ => fun () =>
00:05:35 verbose #6859 > >                 open rust_operators
00:05:35 verbose #6860 > >                 !\\(text, $'\@"println\!(""{}"", $0)"')
00:05:35 verbose #6861 > >             | _ => fun () =>
00:05:35 verbose #6862 > >                 backend_switch {
00:05:35 verbose #6863 > >                     Fsharp = fun () => $'System.Console.WriteLine !text ' : ()
00:05:35 verbose #6864 > >                     Python = fun () => $'print(!text)' : ()
00:05:35 verbose #6865 > >                 }
00:05:35 verbose #6866 > >
00:05:35 verbose #6867 > >         *trace_state.trace_file text
00:05:36 verbose #6868 > 00:05:35   debug #427 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f870a0a475bf1553c61f0349a106d60ecf14eaa26af9ba230d9dd780041666e8/main.spi
00:05:36 verbose #6869 > >
00:05:36 verbose #6870 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:36 verbose #6871 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:36 verbose #6872 > > │ ### trace                                                                    │
00:05:36 verbose #6873 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:36 verbose #6874 > >
00:05:36 verbose #6875 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:36 verbose #6876 > > let trace (level : trace_level) (text_fn : () -> string) (locals : () -> _) =
00:05:36 verbose #6877 > >     fun () =>
00:05:36 verbose #6878 > >         inl trace_state = get_trace_state_or_init None
00:05:36 verbose #6879 > >         inl time =
00:05:36 verbose #6880 > >             run_target fun target =>
00:05:36 verbose #6881 > >                 match target with
00:05:36 verbose #6882 > >                 | Rust (Contract) => fun () => join ""
00:05:36 verbose #6883 > >                 | _ => fun () =>
00:05:36 verbose #6884 > >                     match trace_state.repl_start |> optionm'.unbox with
00:05:36 verbose #6885 > >                     | Some repl_start =>
00:05:36 verbose #6886 > >                         inl t =
00:05:36 verbose #6887 > >                             (date_time.now () |> date_time.ticks |> fun
00:05:36 verbose #6888 > > (date_time.timestamp x) => x)
00:05:36 verbose #6889 > >                             - repl_start |> date_time.time_span
00:05:36 verbose #6890 > >                         date_time.date_time_milliseconds
00:05:36 verbose #6891 > >                             1i32 1i32 1i32
00:05:36 verbose #6892 > >                             (t |> date_time.hours)
00:05:36 verbose #6893 > >                             (t |> date_time.minutes)
00:05:36 verbose #6894 > >                             (t |> date_time.seconds)
00:05:36 verbose #6895 > >                             (t |> date_time.milliseconds)
00:05:36 verbose #6896 > >                     | None => date_time.now ()
00:05:36 verbose #6897 > >                     |> date_time.format (
00:05:36 verbose #6898 > >                         backend_switch {
00:05:36 verbose #6899 > >                             Fsharp = fun () =>
00:05:36 verbose #6900 > >                                 match target with
00:05:36 verbose #6901 > >                                 | Rust _ => join "hh:mm:ss"
00:05:36 verbose #6902 > >                                 | _ => join "HH:mm:ss"
00:05:36 verbose #6903 > >                             Python = fun () => "%H:%M:%S"
00:05:36 verbose #6904 > >                         }
00:05:36 verbose #6905 > >                     )
00:05:36 verbose #6906 > >         inl level_str = level |> reflection.union_to_string |> sm'.to_lower |>
00:05:36 verbose #6907 > > sm'.pad_left 7 ' '
00:05:36 verbose #6908 > >         inl level_str =
00:05:36 verbose #6909 > >             run_target function
00:05:36 verbose #6910 > >             | Rust _ => fun () =>
00:05:36 verbose #6911 > >                 open rust_operators
00:05:36 verbose #6912 > >                 inl color : rust.ref' sm'.str =
00:05:36 verbose #6913 > >                     match level with
00:05:36 verbose #6914 > >                     | Verbose =>
00:05:36 verbose #6915 > > !\($'"inline_colorization::color_bright_black"')
00:05:36 verbose #6916 > >                     | Debug => !\($'"inline_colorization::color_bright_blue"')
00:05:36 verbose #6917 > >                     | Info => !\($'"inline_colorization::color_bright_green"')
00:05:36 verbose #6918 > >                     | Warning => !\($'"inline_colorization::color_yellow"')
00:05:36 verbose #6919 > >                     | Critical => !\($'"inline_colorization::color_bright_red"')
00:05:36 verbose #6920 > >                 inl level_str = level_str |> sm'.as_str
00:05:36 verbose #6921 > >                 inl color_reset : rust.ref' sm'.str =
00:05:36 verbose #6922 > > !\($'"inline_colorization::color_reset"')
00:05:36 verbose #6923 > >                 $'"\\\"{!color}{!level_str}{!color_reset}\\\""'
00:05:36 verbose #6924 > >                 |> sm'.format''
00:05:36 verbose #6925 > >                 |> sm'.from_std_string
00:05:36 verbose #6926 > >             | _ => fun () =>
00:05:36 verbose #6927 > >                 inl color =
00:05:36 verbose #6928 > >                     match level with
00:05:36 verbose #6929 > >                     | Verbose => $'"\\u001b[[90m"'
00:05:36 verbose #6930 > >                     | Debug => $'"\\u001b[[94m"'
00:05:36 verbose #6931 > >                     | Info => $'"\\u001b[[92m"'
00:05:36 verbose #6932 > >                     | Warning => $'"\\u001b[[93m"'
00:05:36 verbose #6933 > >                     | Critical => $'"\\u001b[[91m"'
00:05:36 verbose #6934 > >                 inl color_reset = join $'"\\u001b[[0m"'
00:05:36 verbose #6935 > >                 color +. level_str +. color_reset
00:05:36 verbose #6936 > >         inl count = *trace_state.count
00:05:36 verbose #6937 > >         inl locals = locals () |> sm'.format
00:05:36 verbose #6938 > >         backend_switch {
00:05:36 verbose #6939 > >             Fsharp = fun () => $'$"{!time} {!level_str} #{!count} %s{!text_fn
00:05:36 verbose #6940 > > ()} / {!locals}"' : string
00:05:36 verbose #6941 > >             Python = fun () => $'f"{!time} {!level_str} #{!count} {!text_fn()}
00:05:36 verbose #6942 > > {!locals}"' : string
00:05:36 verbose #6943 > >         }
00:05:36 verbose #6944 > >         |> sm'.trim_start [[]]
00:05:36 verbose #6945 > >         |> sm'.trim_end [[ ' '; '/' ]]
00:05:36 verbose #6946 > >     |> trace_raw level
00:05:36 verbose #6947 > 00:05:35   debug #428 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0cf8b1ee02803a5874e404d1466e1705c7bd4e13bfd0514ba0194f7bcb851723/main.spi
00:05:36 verbose #6948 > 00:05:35   debug #429 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0fe24d3dc606a5d07b53d5ea3fede53fab8fac286f91bf9a11131630555d4050/main.spi
00:05:36 verbose #6949 > >
00:05:36 verbose #6950 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:36 verbose #6951 > > //// test
00:05:36 verbose #6952 > > ///! fsharp
00:05:36 verbose #6953 > > ///! cuda
00:05:36 verbose #6954 > > ///! rust
00:05:36 verbose #6955 > > ///! typescript
00:05:36 verbose #6956 > > ///! python
00:05:36 verbose #6957 > >
00:05:36 verbose #6958 > > types ()
00:05:36 verbose #6959 > > trace Debug (fun () => "test1") id
00:05:36 verbose #6960 > > trace Debug (fun () => "test2") id
00:05:36 verbose #6961 > > get_trace_state_or_init None .count
00:05:36 verbose #6962 > > |> fun x => *x
00:05:36 verbose #6963 > > |> _assert_eq 2
00:05:37 verbose #6964 > 00:05:36   debug #430 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/051a100a75dad4e2c7e98975e2c3b051687cab625b2dee70d884b8f90bf0c25c/main.spi
00:05:37 verbose #6965 > 00:05:36   debug #431 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9f1bf6a3cc4f46930c8c5362bef8b0f7f4873987e34e1fcc436ea3d1936972ad/main.spi
00:05:37 verbose #6966 > 00:05:36   debug #432 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/af72357aa5b9c8336ba97493cc77aac4861a203d5a854c174807f06c5afe1c3d/main.spi
00:05:43 verbose #6967 > >
00:05:43 verbose #6968 > > ╭─[ 6.88s - return value ]─────────────────────────────────────────────────────╮
00:05:43 verbose #6969 > > │                                                                              │
00:05:43 verbose #6970 > > │ .py output (Cuda):                                                           │
00:05:43 verbose #6971 > > │ 00:00:00   debug #1 test1                                               │
00:05:43 verbose #6972 > > │ 00:00:00   debug #2 test2                                               │
00:05:43 verbose #6973 > > │ assert_eq / actual: 2 / expected: 2                                          │
00:05:43 verbose #6974 > > │                                                                              │
00:05:43 verbose #6975 > > │                                                                              │
00:05:43 verbose #6976 > > │ .rs output:                                                                  │
00:05:43 verbose #6977 > > │ 00:00:00   debug #1 test1                                              │
00:05:43 verbose #6978 > > │ 00:00:00   debug #2 test2                                              │
00:05:43 verbose #6979 > > │ assert_eq / actual: 2 / expected: 2                                          │
00:05:43 verbose #6980 > > │                                                                              │
00:05:43 verbose #6981 > > │                                                                              │
00:05:43 verbose #6982 > > │ .ts output:                                                                  │
00:05:43 verbose #6983 > > │ 00:00:00   debug #1 test1                                               │
00:05:43 verbose #6984 > > │ 00:00:00   debug #2 test2                                               │
00:05:43 verbose #6985 > > │ assert_eq / actual: 2 / expected: 2                                          │
00:05:43 verbose #6986 > > │                                                                              │
00:05:43 verbose #6987 > > │                                                                              │
00:05:43 verbose #6988 > > │ .py output:                                                                  │
00:05:43 verbose #6989 > > │ 00:00:00   debug #1 test1                                               │
00:05:43 verbose #6990 > > │ 00:00:00   debug #2 test2                                               │
00:05:43 verbose #6991 > > │ assert_eq / actual: 2 / expected: 2                                          │
00:05:43 verbose #6992 > > │                                                                              │
00:05:43 verbose #6993 > > │                                                                              │
00:05:43 verbose #6994 > > │                                                                              │
00:05:43 verbose #6995 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:43 verbose #6996 > >
00:05:43 verbose #6997 > > ╭─[ 6.88s - stdout ]───────────────────────────────────────────────────────────╮
00:05:43 verbose #6998 > > │ .fsx output:                                                                 │
00:05:43 verbose #6999 > > │ 00:00:00   debug #1 test1                                               │
00:05:43 verbose #7000 > > │ 00:00:00   debug #2 test2                                               │
00:05:43 verbose #7001 > > │ assert_eq / actual: 2L / expected: 2L                                        │
00:05:43 verbose #7002 > > │                                                                              │
00:05:43 verbose #7003 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:43 verbose #7004 > >
00:05:43 verbose #7005 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:43 verbose #7006 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:43 verbose #7007 > > │ ## main                                                                      │
00:05:43 verbose #7008 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:43 verbose #7009 > >
00:05:43 verbose #7010 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:43 verbose #7011 > > inl main () =
00:05:43 verbose #7012 > >     types ()
00:05:43 verbose #7013 > >     init_trace_state None
00:05:43 verbose #7014 > >     inl trace level text_fn (locals : () -> string) = trace level text_fn locals
00:05:43 verbose #7015 > >     $'let trace x = !trace x' : ()
00:05:43 verbose #7016 > 00:05:43   debug #433 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b4e144c550bdd1286a36533d021f6cd4d258a497622948895faecf063d9c0e4e/main.spi
00:05:44 verbose #7017 > 00:00:29 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 18495 }
00:05:44 verbose #7018 > 00:00:29   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/trace.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/trace.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:05:47 verbose #7019 > 00:00:32 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/trace.dib.ipynb to html
00:05:47 verbose #7020 > 00:00:32 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:05:47 verbose #7021 > 00:00:32 verbose #7 !   validate(nb)
00:05:49 verbose #7022 > 00:00:34 verbose #8 ! [NbConvertApp] Writing 315150 bytes to c:\home\git\polyglot\lib\spiral\trace.dib.html
00:05:49 verbose #7023 > 00:00:34 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 641 }
00:05:49 verbose #7024 > 00:00:34   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 641 }
00:05:49 verbose #7025 > 00:00:34   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/trace.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/trace.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:05:50 verbose #7026 > 00:00:35 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:05:50 verbose #7027 > 00:00:35   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:05:51 verbose #7028 > 00:00:36   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 19195 }
00:05:51   debug #7029 runtime.execute_with_options_async / { exit_code = 0; output_length = 22557 }
00:05:51   debug #9 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path trace.dib --retries 3
00:05:51   debug #7030 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path am'.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:05:51 verbose #7031 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "am'.dib", "--retries", "3"])) }
00:05:51 verbose #7032 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/am'.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/am'.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/am'.dib" --output-path "c:/home/git/polyglot/lib/spiral/am'.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:05:54 verbose #7033 > >
00:05:54 verbose #7034 > > ── markdown ────────────────────────────────────────────────────────────────────
00:05:54 verbose #7035 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:05:54 verbose #7036 > > │ # am'                                                                        │
00:05:54 verbose #7037 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:05:59 verbose #7038 > >
00:05:59 verbose #7039 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:05:59 verbose #7040 > > //// test
00:05:59 verbose #7041 > >
00:05:59 verbose #7042 > > open testing
00:05:59 verbose #7043 > 00:05:59   debug #434 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7845de436c12d0ca65282fe0cd65832468ca943e72feba50e6b1bb441e251a/main.spi
00:06:00 verbose #7044 > >
00:06:00 verbose #7045 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:00 verbose #7046 > > open rust_operators
00:06:00 verbose #7047 > 00:06:00   debug #435 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/14cf64024e1ad1cf52eeaf1af91f17c5c545fa6f0f762576c8f04b96249ae9ed/main.spi
00:06:00 verbose #7048 > >
00:06:00 verbose #7049 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:00 verbose #7050 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:00 verbose #7051 > > │ ## types                                                                     │
00:06:00 verbose #7052 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:00 verbose #7053 > >
00:06:00 verbose #7054 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:00 verbose #7055 > > inl types () =
00:06:00 verbose #7056 > >     backend_switch {
00:06:00 verbose #7057 > >         Fsharp = fun () =>
00:06:00 verbose #7058 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:06:00 verbose #7059 > > Fable.Core.Emit(\"[[$0]]\")>]]\n#endif\ntype Slice<'T> = class end"
00:06:00 verbose #7060 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:06:00 verbose #7061 > > Fable.Core.Emit(\"_\")>]]\n#endif\ntype Slice'<'T> = class end"
00:06:00 verbose #7062 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:06:00 verbose #7063 > > Fable.Core.Emit(\"Vec<$0>\")>]]\n#endif\ntype Vec<'T> = class end"
00:06:00 verbose #7064 > >         Python = fun () => ()
00:06:00 verbose #7065 > >     }
00:06:01 verbose #7066 > 00:06:00   debug #436 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ccd15ed7fa2ac8b62a57b22403a58b1cda1bb1608cdcb962e6b96a7793a3bd4a/main.spi
00:06:01 verbose #7067 > >
00:06:01 verbose #7068 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:01 verbose #7069 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:01 verbose #7070 > > │ ## am'                                                                       │
00:06:01 verbose #7071 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:01 verbose #7072 > >
00:06:01 verbose #7073 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:01 verbose #7074 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:01 verbose #7075 > > │ ### length                                                                   │
00:06:01 verbose #7076 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:01 verbose #7077 > >
00:06:01 verbose #7078 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:01 verbose #7079 > > inl length forall dim {int} el. (a : a dim el) : dim =
00:06:01 verbose #7080 > >     a |> length
00:06:01 verbose #7081 > 00:06:00   debug #437 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fccdea40ed9de7a42c201a1465f10eba8f3663a158a2f94eebce578e29d2f3c3/main.spi
00:06:01 verbose #7082 > >
00:06:01 verbose #7083 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:01 verbose #7084 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:01 verbose #7085 > > │ ### index                                                                    │
00:06:01 verbose #7086 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:01 verbose #7087 > >
00:06:01 verbose #7088 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:01 verbose #7089 > > inl index forall dim {int} el. (i : dim) (a : a dim el) : el =
00:06:01 verbose #7090 > >     index a i
00:06:01 verbose #7091 > 00:06:01   debug #438 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/853370f779c214be2676ce45b45fc68b7d06c1f6655203e3c68f0856abe80c5b/main.spi
00:06:02 verbose #7092 > >
00:06:02 verbose #7093 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:02 verbose #7094 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:02 verbose #7095 > > │ ### base                                                                     │
00:06:02 verbose #7096 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:02 verbose #7097 > >
00:06:02 verbose #7098 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:02 verbose #7099 > > inl base forall dim {int} el. ((a a) : a dim el) : array_base el =
00:06:02 verbose #7100 > >     a
00:06:02 verbose #7101 > 00:06:01   debug #439 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0b30f8fc7560e6456e9cc9e1d7b33274336ad09878d60bdf50fb496acd9af86c/main.spi
00:06:02 verbose #7102 > >
00:06:02 verbose #7103 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:02 verbose #7104 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:02 verbose #7105 > > │ ### base'                                                                    │
00:06:02 verbose #7106 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:02 verbose #7107 > >
00:06:02 verbose #7108 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:02 verbose #7109 > > inl base' forall el. ((a a) : a int el) : array_base el =
00:06:02 verbose #7110 > >     a
00:06:02 verbose #7111 > 00:06:01   debug #440 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/403379a06bcfff91cde225e4a0ecd45dd3ce2de5cc9896419e3449aac680304c/main.spi
00:06:02 verbose #7112 > >
00:06:02 verbose #7113 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:02 verbose #7114 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:02 verbose #7115 > > │ ### generic_equable                                                          │
00:06:02 verbose #7116 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:02 verbose #7117 > >
00:06:02 verbose #7118 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:02 verbose #7119 > > inl generic_equable x1 x2 =
00:06:02 verbose #7120 > >     if length x1 <>.. length x2
00:06:02 verbose #7121 > >     then false
00:06:02 verbose #7122 > >     else
00:06:02 verbose #7123 > >         let rec loop i =
00:06:02 verbose #7124 > >             if i < length x1
00:06:02 verbose #7125 > >             then index i x1 = index i x2 && loop (i + 1)
00:06:02 verbose #7126 > >             else true
00:06:02 verbose #7127 > >         loop 0
00:06:02 verbose #7128 > 00:06:02   debug #441 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2615d20f188101852402ffda5d582f7a744f92d39ab371e15c17249f29c5e0c7/main.spi
00:06:03 verbose #7129 > >
00:06:03 verbose #7130 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:03 verbose #7131 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:03 verbose #7132 > > │ ### equable                                                                  │
00:06:03 verbose #7133 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:03 verbose #7134 > >
00:06:03 verbose #7135 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:03 verbose #7136 > > instance equable a dim {number; int} t = generic_equable
00:06:03 verbose #7137 > 00:06:02   debug #442 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0b11ae7672c254d462024aa4f7b74463639df97eb9375fa2f9cc14fba8da0bb8/main.spi
00:06:03 verbose #7138 > >
00:06:03 verbose #7139 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:03 verbose #7140 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:03 verbose #7141 > > │ ### append                                                                   │
00:06:03 verbose #7142 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:03 verbose #7143 > >
00:06:03 verbose #7144 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:03 verbose #7145 > > instance append a dim {int; number} t = am.append
00:06:03 verbose #7146 > 00:06:02   debug #443 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/068955ea03379059138e663ff7fbf9240a1256406ad676f06a1bda31c314d04c/main.spi
00:06:03 verbose #7147 > >
00:06:03 verbose #7148 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:03 verbose #7149 > > //// test
00:06:03 verbose #7150 > > ///! fsharp
00:06:03 verbose #7151 > > ///! cuda
00:06:03 verbose #7152 > > ///! rust
00:06:03 verbose #7153 > > ///! typescript
00:06:03 verbose #7154 > > ///! python
00:06:03 verbose #7155 > >
00:06:03 verbose #7156 > > a' ;[[ -1i64; 0 ]] ++ a' ;[[ 1; 2 ]]
00:06:03 verbose #7157 > > |> _assert_eq (a' ;[[ -1; 0; 1; 2 ]])
00:06:04 verbose #7158 > 00:06:03   debug #444 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/77f97661a5a60d222fdb66b3c15f1191a6973964db79ea4eb74d16140f0a76d8/main.spi
00:06:04 verbose #7159 > 00:06:03   debug #445 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/12960260495a512df2e467d8fff124248c60eac8c8ce5d4e69e13945c310ba56/main.spi
00:06:11 verbose #7160 > >
00:06:11 verbose #7161 > > ╭─[ 7.99s - return value ]─────────────────────────────────────────────────────╮
00:06:11 verbose #7162 > > │                                                                              │
00:06:11 verbose #7163 > > │ .py output (Cuda):                                                           │
00:06:11 verbose #7164 > > │ Traceback (most recent call last):                                     │
00:06:11 verbose #7165 > > │   File                                                                   │
00:06:11 verbose #7166 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\12960260495a512df2e467d8ff │
00:06:11 verbose #7167 > > │ f124248c60eac8c8ce5d4e69e13945c310ba56\main.py", line 159, in <module>     │
00:06:11 verbose #7168 > > │     if __name__ == '__main__': result = main(); None if result is None   │
00:06:11 verbose #7169 > > │ else print(result)                                                         │
00:06:11 verbose #7170 > > │                                         ^^^^^^                         │
00:06:11 verbose #7171 > > │   File                                                                   │
00:06:11 verbose #7172 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\12960260495a512df2e467d8ff │
00:06:11 verbose #7173 > > │ f124248c60eac8c8ce5d4e69e13945c310ba56\main.py", line 157, in main         │
00:06:11 verbose #7174 > > │     return method0()                                                   │
00:06:11 verbose #7175 > > │            ^^^^^^^^^                                                   │
00:06:11 verbose #7176 > > │   File                                                                   │
00:06:11 verbose #7177 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\12960260495a512df2e467d8ff │
00:06:11 verbose #7178 > > │ f124248c60eac8c8ce5d4e69e13945c310ba56\main.py", line 96, in method0       │
00:06:11 verbose #7179 > > │     v0 = cp.array([-1, 0],dtype=cp.int64)                              │
00:06:11 verbose #7180 > > │          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                              │
00:06:11 verbose #7181 > > │   File                                                                   │
00:06:11 verbose #7182 > > │ "C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\cupy\_creation\f │
00:06:11 verbose #7183 > > │ rom_data.py", line 53, in array                                            │
00:06:11 verbose #7184 > > │     return _core.array(obj, dtype, copy, order, subok, ndmin, blocking)[  │
00:06:11 verbose #7185 > > │ 0m                                                                           │
00:06:11 verbose #7186 > > │            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^[  │
00:06:11 verbose #7187 > > │ 0m                                                                           │
00:06:11 verbose #7188 > > │   File "cupy\_core\core.pyx", line 2379, in cupy._core.core.array      │
00:06:11 verbose #7189 > > │   File "cupy\_core\core.pyx", line 2406, in cupy._core.core.array      │
00:06:11 verbose #7190 > > │   File "cupy\_core\core.pyx", line 2548, in                              │
00:06:11 verbose #7191 > > │ cupy._core.core._array_default                                             │
00:06:11 verbose #7192 > > │   File "cupy\_core\core.pyx", line 132, in                               │
00:06:11 verbose #7193 > > │ cupy._core.core.ndarray.__new__                                            │
00:06:11 verbose #7194 > > │   File "cupy\_core\core.pyx", line 220, in                               │
00:06:11 verbose #7195 > > │ cupy._core.core._ndarray_base._init                                        │
00:06:11 verbose #7196 > > │   File "cupy\cuda\memory.pyx", line 738, in cupy.cuda.memory.alloc     │
00:06:11 verbose #7197 > > │   File "cupy\cuda\memory.pyx", line 1424, in                             │
00:06:11 verbose #7198 > > │ cupy.cuda.memory.MemoryPool.malloc                                         │
00:06:11 verbose #7199 > > │   File "cupy\cuda\memory.pyx", line 1444, in                             │
00:06:11 verbose #7200 > > │ cupy.cuda.memory.MemoryPool.malloc                                         │
00:06:11 verbose #7201 > > │   File "cupy\cuda\device.pyx", line 40, in cupy.cuda.device.get_device_id │
00:06:11 verbose #7202 > > │ [0m                                                                          │
00:06:11 verbose #7203 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 202, in                │
00:06:11 verbose #7204 > > │ cupy_backends.cuda.api.runtime.getDevice                                   │
00:06:11 verbose #7205 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 146, in                │
00:06:11 verbose #7206 > > │ cupy_backends.cuda.api.runtime.check_status                                │
00:06:11 verbose #7207 > > │ cupy_backends.cuda.api.runtime.CUDARuntimeError:                         │
00:06:11 verbose #7208 > > │ cudaErrorInsufficientDriver: CUDA driver version is insufficient for CUDA    │
00:06:11 verbose #7209 > > │ runtime version                                                            │
00:06:11 verbose #7210 > > │                                                                              │
00:06:11 verbose #7211 > > │ .rs output:                                                                  │
00:06:11 verbose #7212 > > │ assert_eq / actual: Array(MutCell([-1, 0, 1, 2])) / expected: Array(MutCell( │
00:06:11 verbose #7213 > > │ [-1, 0, 1, 2]))                                                              │
00:06:11 verbose #7214 > > │                                                                              │
00:06:11 verbose #7215 > > │ .ts output:                                                                  │
00:06:11 verbose #7216 > > │ assert_eq / actual: -1,0,1,2 / expected: -1,0,1,2                            │
00:06:11 verbose #7217 > > │                                                                              │
00:06:11 verbose #7218 > > │ .py output:                                                                  │
00:06:11 verbose #7219 > > │ assert_eq / actual: [-1, 0, 1, 2] / expected: array('q', [-1, 0, 1, 2])      │
00:06:11 verbose #7220 > > │                                                                              │
00:06:11 verbose #7221 > > │                                                                              │
00:06:11 verbose #7222 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:11 verbose #7223 > >
00:06:11 verbose #7224 > > ╭─[ 8.01s - stdout ]───────────────────────────────────────────────────────────╮
00:06:11 verbose #7225 > > │ .fsx output:                                                                 │
00:06:11 verbose #7226 > > │ assert_eq / actual: [|-1L; 0L; 1L; 2L|] / expected: [|-1L; 0L; 1L; 2L|]      │
00:06:11 verbose #7227 > > │                                                                              │
00:06:11 verbose #7228 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:11 verbose #7229 > >
00:06:11 verbose #7230 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:11 verbose #7231 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:11 verbose #7232 > > │ ### map_base                                                                 │
00:06:11 verbose #7233 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:11 verbose #7234 > >
00:06:11 verbose #7235 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:11 verbose #7236 > > inl map_base forall t u. (fn : t -> u) (x : array_base t) : array_base u =
00:06:11 verbose #7237 > >     a x
00:06:11 verbose #7238 > >     |> am.map fn
00:06:11 verbose #7239 > >     |> fun (a x : _ int _) => x
00:06:11 verbose #7240 > 00:06:11   debug #446 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cf6e4db8b1c0fd8e1ac38b1afd3c052faa998d7764d773b7bd7a8d599095fc0e/main.spi
00:06:12 verbose #7241 > 00:06:11   debug #447 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/610a0f7debe3a94e9c406ccb6bfb706f7361c0f42b6ecc76c57fabf788f8d4e9/main.spi
00:06:12 verbose #7242 > >
00:06:12 verbose #7243 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:12 verbose #7244 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:12 verbose #7245 > > │ ### collect                                                                  │
00:06:12 verbose #7246 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:12 verbose #7247 > >
00:06:12 verbose #7248 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:12 verbose #7249 > > inl collect forall t r. (fn : t -> a int r) (items : a int t) : a int r =
00:06:12 verbose #7250 > >     items
00:06:12 verbose #7251 > >     |> am.map fn
00:06:12 verbose #7252 > >     |> am.fold (++) (a ;[[]])
00:06:12 verbose #7253 > 00:06:11   debug #448 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b414ff137e318690a469509e99935735aec351b3ad8cb243eaa2efe00cad691a/main.spi
00:06:12 verbose #7254 > >
00:06:12 verbose #7255 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:12 verbose #7256 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:12 verbose #7257 > > │ ### init                                                                     │
00:06:12 verbose #7258 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:12 verbose #7259 > >
00:06:12 verbose #7260 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:12 verbose #7261 > > inl init n : array_base _ =
00:06:12 verbose #7262 > >     am.init n id
00:06:12 verbose #7263 > >     |> fun (a x : _ int _) => x
00:06:12 verbose #7264 > 00:06:12   debug #449 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/26843a2f87f0edd50009235c41a0f100e787c5c5852af9939bfa714bb535c695/main.spi
00:06:13 verbose #7265 > >
00:06:13 verbose #7266 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:13 verbose #7267 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:13 verbose #7268 > > │ ### choose                                                                   │
00:06:13 verbose #7269 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:13 verbose #7270 > >
00:06:13 verbose #7271 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:13 verbose #7272 > > inl choose f l =
00:06:13 verbose #7273 > >     (l, [[]])
00:06:13 verbose #7274 > >     ||> am.foldBack fun x acc =>
00:06:13 verbose #7275 > >         match f x with
00:06:13 verbose #7276 > >         | Some y => y :: acc
00:06:13 verbose #7277 > >         | None => acc
00:06:13 verbose #7278 > >     |> listm.toArray
00:06:13 verbose #7279 > 00:06:12   debug #450 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4f1a502e3dabdacd22ca8b4916b84e22ad010b6bb7640923157f6b228e74f211/main.spi
00:06:13 verbose #7280 > >
00:06:13 verbose #7281 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:13 verbose #7282 > > //// test
00:06:13 verbose #7283 > > ///! fsharp
00:06:13 verbose #7284 > > ///! cuda
00:06:13 verbose #7285 > > ////! rust // v0.get_mut()[[v2.get().clone() as usize]] = match
00:06:13 verbose #7286 > > v1.get().clone().as_ref() { ^ expected `i32`, found `usize`
00:06:13 verbose #7287 > > ///! typescript
00:06:13 verbose #7288 > > ///! python
00:06:13 verbose #7289 > >
00:06:13 verbose #7290 > > 10
00:06:13 verbose #7291 > > |> init
00:06:13 verbose #7292 > > |> fun x => a x : _ int _
00:06:13 verbose #7293 > > |> choose (fun x => if x % 2 = 0 then Some x else None)
00:06:13 verbose #7294 > > |> _assert_eq (a' ;[[ 0; 2; 4; 6; 8 ]])
00:06:13 verbose #7295 > 00:06:12   debug #451 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e667ef93c79676df1e4e35fa32d901443d29c922b75de5fde9cf2c820c0bd7fc/main.spi
00:06:13 verbose #7296 > 00:06:12   debug #452 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9af81ab39dc376c0131b0f13e9fb09b559b5ae45ac69ca854bb1d4e18b2664f6/main.spi
00:06:18 verbose #7297 > >
00:06:18 verbose #7298 > > ╭─[ 4.93s - return value ]─────────────────────────────────────────────────────╮
00:06:18 verbose #7299 > > │                                                                              │
00:06:18 verbose #7300 > > │ .py output (Cuda):                                                           │
00:06:18 verbose #7301 > > │ Traceback (most recent call last):                                     │
00:06:18 verbose #7302 > > │   File                                                                   │
00:06:18 verbose #7303 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\e667ef93c79676df1e4e35fa32 │
00:06:18 verbose #7304 > > │ d901443d29c922b75de5fde9cf2c820c0bd7fc\main.py", line 240, in <module>     │
00:06:18 verbose #7305 > > │     if __name__ == '__main__': result = main(); None if result is None   │
00:06:18 verbose #7306 > > │ else print(result)                                                         │
00:06:18 verbose #7307 > > │                                         ^^^^^^                         │
00:06:18 verbose #7308 > > │   File                                                                   │
00:06:18 verbose #7309 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\e667ef93c79676df1e4e35fa32 │
00:06:18 verbose #7310 > > │ d901443d29c922b75de5fde9cf2c820c0bd7fc\main.py", line 238, in main         │
00:06:18 verbose #7311 > > │     return method0()                                                   │
00:06:18 verbose #7312 > > │            ^^^^^^^^^                                                   │
00:06:18 verbose #7313 > > │   File                                                                   │
00:06:18 verbose #7314 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\e667ef93c79676df1e4e35fa32 │
00:06:18 verbose #7315 > > │ d901443d29c922b75de5fde9cf2c820c0bd7fc\main.py", line 155, in method0      │
00:06:18 verbose #7316 > > │     v0 = cp.empty(10,dtype=cp.int32)                                   │
00:06:18 verbose #7317 > > │          ^^^^^^^^^^^^^^^^^^^^^^^^^^^                                   │
00:06:18 verbose #7318 > > │   File                                                                   │
00:06:18 verbose #7319 > > │ "C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\cupy\_creation\b │
00:06:18 verbose #7320 > > │ asic.py", line 31, in empty                                                │
00:06:18 verbose #7321 > > │     return cupy.ndarray(shape, dtype, order=order)                     │
00:06:18 verbose #7322 > > │            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                     │
00:06:18 verbose #7323 > > │   File "cupy\_core\core.pyx", line 132, in                               │
00:06:18 verbose #7324 > > │ cupy._core.core.ndarray.__new__                                            │
00:06:18 verbose #7325 > > │   File "cupy\_core\core.pyx", line 220, in                               │
00:06:18 verbose #7326 > > │ cupy._core.core._ndarray_base._init                                        │
00:06:18 verbose #7327 > > │   File "cupy\cuda\memory.pyx", line 738, in cupy.cuda.memory.alloc     │
00:06:18 verbose #7328 > > │   File "cupy\cuda\memory.pyx", line 1424, in                             │
00:06:18 verbose #7329 > > │ cupy.cuda.memory.MemoryPool.malloc                                         │
00:06:18 verbose #7330 > > │   File "cupy\cuda\memory.pyx", line 1444, in                             │
00:06:18 verbose #7331 > > │ cupy.cuda.memory.MemoryPool.malloc                                         │
00:06:18 verbose #7332 > > │   File "cupy\cuda\device.pyx", line 40, in cupy.cuda.device.get_device_id │
00:06:18 verbose #7333 > > │ [0m                                                                          │
00:06:18 verbose #7334 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 202, in                │
00:06:18 verbose #7335 > > │ cupy_backends.cuda.api.runtime.getDevice                                   │
00:06:18 verbose #7336 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 146, in                │
00:06:18 verbose #7337 > > │ cupy_backends.cuda.api.runtime.check_status                                │
00:06:18 verbose #7338 > > │ cupy_backends.cuda.api.runtime.CUDARuntimeError:                         │
00:06:18 verbose #7339 > > │ cudaErrorInsufficientDriver: CUDA driver version is insufficient for CUDA    │
00:06:18 verbose #7340 > > │ runtime version                                                            │
00:06:18 verbose #7341 > > │                                                                              │
00:06:18 verbose #7342 > > │ .ts output:                                                                  │
00:06:18 verbose #7343 > > │ assert_eq / actual: 0,2,4,6,8 / expected: 0,2,4,6,8                          │
00:06:18 verbose #7344 > > │                                                                              │
00:06:18 verbose #7345 > > │ .py output:                                                                  │
00:06:18 verbose #7346 > > │ assert_eq / actual: [0, 2, 4, 6, 8] / expected: array('l', [0, 2, 4, 6, 8])  │
00:06:18 verbose #7347 > > │                                                                              │
00:06:18 verbose #7348 > > │                                                                              │
00:06:18 verbose #7349 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:18 verbose #7350 > >
00:06:18 verbose #7351 > > ╭─[ 4.93s - stdout ]───────────────────────────────────────────────────────────╮
00:06:18 verbose #7352 > > │ .fsx output:                                                                 │
00:06:18 verbose #7353 > > │ assert_eq / actual: [|0; 2; 4; 6; 8|] / expected: [|0; 2; 4; 6; 8|]          │
00:06:18 verbose #7354 > > │                                                                              │
00:06:18 verbose #7355 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:18 verbose #7356 > >
00:06:18 verbose #7357 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:18 verbose #7358 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:18 verbose #7359 > > │ ### sum                                                                      │
00:06:18 verbose #7360 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:18 verbose #7361 > >
00:06:18 verbose #7362 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:18 verbose #7363 > > inl sum a =
00:06:18 verbose #7364 > >     a |> am.fold (+) 0
00:06:18 verbose #7365 > 00:06:17   debug #453 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/42363c544a2c02b968cd1471f79e2458c6f5fd1d1ea055703b6ea8d59e7ce051/main.spi
00:06:18 verbose #7366 > >
00:06:18 verbose #7367 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:18 verbose #7368 > > //// test
00:06:18 verbose #7369 > > ///! fsharp
00:06:18 verbose #7370 > > ///! cuda
00:06:18 verbose #7371 > > ///! rust
00:06:18 verbose #7372 > > ///! typescript
00:06:18 verbose #7373 > > ///! python
00:06:18 verbose #7374 > >
00:06:18 verbose #7375 > > 10
00:06:18 verbose #7376 > > |> init
00:06:18 verbose #7377 > > |> fun x => a x : _ int _
00:06:18 verbose #7378 > > |> sum
00:06:18 verbose #7379 > > |> _assert_eq 45
00:06:18 verbose #7380 > 00:06:18   debug #454 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/444f921a4f652cdf361d1fcc52412716e32861833055cf8d41ebb988d852ab79/main.spi
00:06:18 verbose #7381 > 00:06:18   debug #455 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/00ba87a4c69e81100d487b10d559eccb0c3bde9776b0d48bbee5114fe640c8a6/main.spi
00:06:26 verbose #7382 > >
00:06:26 verbose #7383 > > ╭─[ 8.30s - return value ]─────────────────────────────────────────────────────╮
00:06:26 verbose #7384 > > │                                                                              │
00:06:26 verbose #7385 > > │ .py output (Cuda):                                                           │
00:06:26 verbose #7386 > > │ Traceback (most recent call last):                                     │
00:06:26 verbose #7387 > > │   File                                                                   │
00:06:26 verbose #7388 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\00ba87a4c69e81100d487b10d5 │
00:06:26 verbose #7389 > > │ 59eccb0c3bde9776b0d48bbee5114fe640c8a6\main.py", line 124, in <module>     │
00:06:26 verbose #7390 > > │     if __name__ == '__main__': result = main(); None if result is None   │
00:06:26 verbose #7391 > > │ else print(result)                                                         │
00:06:26 verbose #7392 > > │                                         ^^^^^^                         │
00:06:26 verbose #7393 > > │   File                                                                   │
00:06:26 verbose #7394 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\00ba87a4c69e81100d487b10d5 │
00:06:26 verbose #7395 > > │ 59eccb0c3bde9776b0d48bbee5114fe640c8a6\main.py", line 122, in main         │
00:06:26 verbose #7396 > > │     return method0()                                                   │
00:06:26 verbose #7397 > > │            ^^^^^^^^^                                                   │
00:06:26 verbose #7398 > > │   File                                                                   │
00:06:26 verbose #7399 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\00ba87a4c69e81100d487b10d5 │
00:06:26 verbose #7400 > > │ 59eccb0c3bde9776b0d48bbee5114fe640c8a6\main.py", line 77, in method0       │
00:06:26 verbose #7401 > > │     v0 = cp.empty(10,dtype=cp.int32)                                   │
00:06:26 verbose #7402 > > │          ^^^^^^^^^^^^^^^^^^^^^^^^^^^                                   │
00:06:26 verbose #7403 > > │   File                                                                   │
00:06:26 verbose #7404 > > │ "C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\cupy\_creation\b │
00:06:26 verbose #7405 > > │ asic.py", line 31, in empty                                                │
00:06:26 verbose #7406 > > │     return cupy.ndarray(shape, dtype, order=order)                     │
00:06:26 verbose #7407 > > │            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                     │
00:06:26 verbose #7408 > > │   File "cupy\_core\core.pyx", line 132, in                               │
00:06:26 verbose #7409 > > │ cupy._core.core.ndarray.__new__                                            │
00:06:26 verbose #7410 > > │   File "cupy\_core\core.pyx", line 220, in                               │
00:06:26 verbose #7411 > > │ cupy._core.core._ndarray_base._init                                        │
00:06:26 verbose #7412 > > │   File "cupy\cuda\memory.pyx", line 738, in cupy.cuda.memory.alloc     │
00:06:26 verbose #7413 > > │   File "cupy\cuda\memory.pyx", line 1424, in                             │
00:06:26 verbose #7414 > > │ cupy.cuda.memory.MemoryPool.malloc                                         │
00:06:26 verbose #7415 > > │   File "cupy\cuda\memory.pyx", line 1444, in                             │
00:06:26 verbose #7416 > > │ cupy.cuda.memory.MemoryPool.malloc                                         │
00:06:26 verbose #7417 > > │   File "cupy\cuda\device.pyx", line 40, in cupy.cuda.device.get_device_id │
00:06:26 verbose #7418 > > │ [0m                                                                          │
00:06:26 verbose #7419 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 202, in                │
00:06:26 verbose #7420 > > │ cupy_backends.cuda.api.runtime.getDevice                                   │
00:06:26 verbose #7421 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 146, in                │
00:06:26 verbose #7422 > > │ cupy_backends.cuda.api.runtime.check_status                                │
00:06:26 verbose #7423 > > │ cupy_backends.cuda.api.runtime.CUDARuntimeError:                         │
00:06:26 verbose #7424 > > │ cudaErrorInsufficientDriver: CUDA driver version is insufficient for CUDA    │
00:06:26 verbose #7425 > > │ runtime version                                                            │
00:06:26 verbose #7426 > > │                                                                              │
00:06:26 verbose #7427 > > │ .rs output:                                                                  │
00:06:26 verbose #7428 > > │ assert_eq / actual: 45 / expected: 45                                        │
00:06:26 verbose #7429 > > │                                                                              │
00:06:26 verbose #7430 > > │ .ts output:                                                                  │
00:06:26 verbose #7431 > > │ assert_eq / actual: 45 / expected: 45                                        │
00:06:26 verbose #7432 > > │                                                                              │
00:06:26 verbose #7433 > > │ .py output:                                                                  │
00:06:26 verbose #7434 > > │ assert_eq / actual: 45 / expected: 45                                        │
00:06:26 verbose #7435 > > │                                                                              │
00:06:26 verbose #7436 > > │                                                                              │
00:06:26 verbose #7437 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:26 verbose #7438 > >
00:06:26 verbose #7439 > > ╭─[ 8.31s - stdout ]───────────────────────────────────────────────────────────╮
00:06:26 verbose #7440 > > │ .fsx output:                                                                 │
00:06:26 verbose #7441 > > │ assert_eq / actual: 45 / expected: 45                                        │
00:06:26 verbose #7442 > > │                                                                              │
00:06:26 verbose #7443 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:26 verbose #7444 > >
00:06:26 verbose #7445 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:26 verbose #7446 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:26 verbose #7447 > > │ ### init_series                                                              │
00:06:26 verbose #7448 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:26 verbose #7449 > >
00:06:26 verbose #7450 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:26 verbose #7451 > > inl init_series start end inc : array_base _ =
00:06:26 verbose #7452 > >     inl total = conv ((end - start) / inc) + 1
00:06:26 verbose #7453 > >     am.init total (conv >> (*) inc >> (+) start)
00:06:26 verbose #7454 > >     |> fun (a x : _ int _) => x
00:06:27 verbose #7455 > 00:06:26   debug #456 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cd1d1c6d4f945df65f07973a26d236a5d5b114b192387786b21b359e859863fd/main.spi
00:06:27 verbose #7456 > >
00:06:27 verbose #7457 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:27 verbose #7458 > > //// test
00:06:27 verbose #7459 > > ///! fsharp
00:06:27 verbose #7460 > > ///! cuda
00:06:27 verbose #7461 > > ///! rust
00:06:27 verbose #7462 > > ///! typescript
00:06:27 verbose #7463 > > ///! python
00:06:27 verbose #7464 > >
00:06:27 verbose #7465 > > init_series 0 4 2
00:06:27 verbose #7466 > > |> _assert_eq' ;[[ 0i32; 2; 4 ]]
00:06:27 verbose #7467 > 00:06:26   debug #457 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6d495944ec29f8cb2458de5efa68fa9d23f91a5e77008950fa2a5b44a8afed05/main.spi
00:06:27 verbose #7468 > 00:06:26   debug #458 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6acaabb067a824d044967fcfa29f2875b0bf664b62330f88a2046f3879e7ee2f/main.spi
00:06:35 verbose #7469 > >
00:06:35 verbose #7470 > > ╭─[ 7.96s - return value ]─────────────────────────────────────────────────────╮
00:06:35 verbose #7471 > > │                                                                              │
00:06:35 verbose #7472 > > │ .py output (Cuda):                                                           │
00:06:35 verbose #7473 > > │ Traceback (most recent call last):                                     │
00:06:35 verbose #7474 > > │   File                                                                   │
00:06:35 verbose #7475 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\6acaabb067a824d044967fcfa2 │
00:06:35 verbose #7476 > > │ 9f2875b0bf664b62330f88a2046f3879e7ee2f\main.py", line 101, in <module>     │
00:06:35 verbose #7477 > > │     if __name__ == '__main__': result = main(); None if result is None   │
00:06:35 verbose #7478 > > │ else print(result)                                                         │
00:06:35 verbose #7479 > > │                                         ^^^^^^                         │
00:06:35 verbose #7480 > > │   File                                                                   │
00:06:35 verbose #7481 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\6acaabb067a824d044967fcfa2 │
00:06:35 verbose #7482 > > │ 9f2875b0bf664b62330f88a2046f3879e7ee2f\main.py", line 99, in main          │
00:06:35 verbose #7483 > > │     return method0()                                                   │
00:06:35 verbose #7484 > > │            ^^^^^^^^^                                                   │
00:06:35 verbose #7485 > > │   File                                                                   │
00:06:35 verbose #7486 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\6acaabb067a824d044967fcfa2 │
00:06:35 verbose #7487 > > │ 9f2875b0bf664b62330f88a2046f3879e7ee2f\main.py", line 67, in method0       │
00:06:35 verbose #7488 > > │     v0 = cp.empty(3,dtype=cp.int32)                                    │
00:06:35 verbose #7489 > > │          ^^^^^^^^^^^^^^^^^^^^^^^^^^                                    │
00:06:35 verbose #7490 > > │   File                                                                   │
00:06:35 verbose #7491 > > │ "C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\cupy\_creation\b │
00:06:35 verbose #7492 > > │ asic.py", line 31, in empty                                                │
00:06:35 verbose #7493 > > │     return cupy.ndarray(shape, dtype, order=order)                     │
00:06:35 verbose #7494 > > │            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                     │
00:06:35 verbose #7495 > > │   File "cupy\_core\core.pyx", line 132, in                               │
00:06:35 verbose #7496 > > │ cupy._core.core.ndarray.__new__                                            │
00:06:35 verbose #7497 > > │   File "cupy\_core\core.pyx", line 220, in                               │
00:06:35 verbose #7498 > > │ cupy._core.core._ndarray_base._init                                        │
00:06:35 verbose #7499 > > │   File "cupy\cuda\memory.pyx", line 738, in cupy.cuda.memory.alloc     │
00:06:35 verbose #7500 > > │   File "cupy\cuda\memory.pyx", line 1424, in                             │
00:06:35 verbose #7501 > > │ cupy.cuda.memory.MemoryPool.malloc                                         │
00:06:35 verbose #7502 > > │   File "cupy\cuda\memory.pyx", line 1444, in                             │
00:06:35 verbose #7503 > > │ cupy.cuda.memory.MemoryPool.malloc                                         │
00:06:35 verbose #7504 > > │   File "cupy\cuda\device.pyx", line 40, in cupy.cuda.device.get_device_id │
00:06:35 verbose #7505 > > │ [0m                                                                          │
00:06:35 verbose #7506 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 202, in                │
00:06:35 verbose #7507 > > │ cupy_backends.cuda.api.runtime.getDevice                                   │
00:06:35 verbose #7508 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 146, in                │
00:06:35 verbose #7509 > > │ cupy_backends.cuda.api.runtime.check_status                                │
00:06:35 verbose #7510 > > │ cupy_backends.cuda.api.runtime.CUDARuntimeError:                         │
00:06:35 verbose #7511 > > │ cudaErrorInsufficientDriver: CUDA driver version is insufficient for CUDA    │
00:06:35 verbose #7512 > > │ runtime version                                                            │
00:06:35 verbose #7513 > > │                                                                              │
00:06:35 verbose #7514 > > │ .rs output:                                                                  │
00:06:35 verbose #7515 > > │ assert_eq' / actual: Array(MutCell([0, 2, 4])) / expected: Array(MutCell([0, │
00:06:35 verbose #7516 > > │ 2, 4]))                                                                      │
00:06:35 verbose #7517 > > │                                                                              │
00:06:35 verbose #7518 > > │ .ts output:                                                                  │
00:06:35 verbose #7519 > > │ assert_eq' / actual: 0,2,4 / expected: 0,2,4                                 │
00:06:35 verbose #7520 > > │                                                                              │
00:06:35 verbose #7521 > > │ .py output:                                                                  │
00:06:35 verbose #7522 > > │ assert_eq' / actual: [0, 2, 4] / expected: array('l', [0, 2, 4])             │
00:06:35 verbose #7523 > > │                                                                              │
00:06:35 verbose #7524 > > │                                                                              │
00:06:35 verbose #7525 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:35 verbose #7526 > >
00:06:35 verbose #7527 > > ╭─[ 7.96s - stdout ]───────────────────────────────────────────────────────────╮
00:06:35 verbose #7528 > > │ .fsx output:                                                                 │
00:06:35 verbose #7529 > > │ assert_eq' / actual: [|0; 2; 4|] / expected: [|0; 2; 4|]                     │
00:06:35 verbose #7530 > > │                                                                              │
00:06:35 verbose #7531 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:35 verbose #7532 > >
00:06:35 verbose #7533 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:35 verbose #7534 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:35 verbose #7535 > > │ ### head                                                                     │
00:06:35 verbose #7536 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:35 verbose #7537 > >
00:06:35 verbose #7538 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:35 verbose #7539 > > inl head (ar : a _ _) =
00:06:35 verbose #7540 > >     if var_is ar || length ar > 0
00:06:35 verbose #7541 > >     then ar |> index 0
00:06:35 verbose #7542 > >     else error_type "The length of the array should be greater than 0."
00:06:35 verbose #7543 > 00:06:34   debug #459 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cb60f396200e4cb4ab1c6106c109b5feb43de0872cc21443435ca0298a995d21/main.spi
00:06:35 verbose #7544 > >
00:06:35 verbose #7545 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:35 verbose #7546 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:35 verbose #7547 > > │ ### last                                                                     │
00:06:35 verbose #7548 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:35 verbose #7549 > >
00:06:35 verbose #7550 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:35 verbose #7551 > > inl last (ar : a _ _) =
00:06:35 verbose #7552 > >     inl len = length ar
00:06:35 verbose #7553 > >     if var_is ar || len > 0
00:06:35 verbose #7554 > >     then ar |> index (len - 1)
00:06:35 verbose #7555 > >     else error_type "The length of the array should be greater than 0."
00:06:35 verbose #7556 > 00:06:35   debug #460 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0cd10db9df37490790055dc10fde786f09897a8f3afed5a1de0d272be31b4263/main.spi
00:06:36 verbose #7557 > >
00:06:36 verbose #7558 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:36 verbose #7559 > > //// test
00:06:36 verbose #7560 > > ///! fsharp
00:06:36 verbose #7561 > > ///! cuda
00:06:36 verbose #7562 > > ///! rust
00:06:36 verbose #7563 > > ///! typescript
00:06:36 verbose #7564 > > ///! python
00:06:36 verbose #7565 > >
00:06:36 verbose #7566 > > 10
00:06:36 verbose #7567 > > |> init
00:06:36 verbose #7568 > > |> fun x => a x : _ int _
00:06:36 verbose #7569 > > |> last
00:06:36 verbose #7570 > > |> _assert_eq 9
00:06:36 verbose #7571 > 00:06:35   debug #461 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c06493b92e3316c9ff5057003d1c2e313ca942c7bc0f0208e8fbbe5dbd10e2a5/main.spi
00:06:36 verbose #7572 > 00:06:35   debug #462 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e57f609868044da2d6943f0563ca75a2b123714e845aa54d90e564382626fe22/main.spi
00:06:43 verbose #7573 > >
00:06:43 verbose #7574 > > ╭─[ 6.88s - return value ]─────────────────────────────────────────────────────╮
00:06:43 verbose #7575 > > │                                                                              │
00:06:43 verbose #7576 > > │ .py output (Cuda):                                                           │
00:06:43 verbose #7577 > > │ Traceback (most recent call last):                                     │
00:06:43 verbose #7578 > > │   File                                                                   │
00:06:43 verbose #7579 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\e57f609868044da2d6943f0563 │
00:06:43 verbose #7580 > > │ ca75a2b123714e845aa54d90e564382626fe22\main.py", line 103, in <module>     │
00:06:43 verbose #7581 > > │     if __name__ == '__main__': result = main(); None if result is None   │
00:06:43 verbose #7582 > > │ else print(result)                                                         │
00:06:43 verbose #7583 > > │                                         ^^^^^^                         │
00:06:43 verbose #7584 > > │   File                                                                   │
00:06:43 verbose #7585 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\e57f609868044da2d6943f0563 │
00:06:43 verbose #7586 > > │ ca75a2b123714e845aa54d90e564382626fe22\main.py", line 101, in main         │
00:06:43 verbose #7587 > > │     return method0()                                                   │
00:06:43 verbose #7588 > > │            ^^^^^^^^^                                                   │
00:06:43 verbose #7589 > > │   File                                                                   │
00:06:43 verbose #7590 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\e57f609868044da2d6943f0563 │
00:06:43 verbose #7591 > > │ ca75a2b123714e845aa54d90e564382626fe22\main.py", line 67, in method0       │
00:06:43 verbose #7592 > > │     v0 = cp.empty(10,dtype=cp.int32)                                   │
00:06:43 verbose #7593 > > │          ^^^^^^^^^^^^^^^^^^^^^^^^^^^                                   │
00:06:43 verbose #7594 > > │   File                                                                   │
00:06:43 verbose #7595 > > │ "C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\cupy\_creation\b │
00:06:43 verbose #7596 > > │ asic.py", line 31, in empty                                                │
00:06:43 verbose #7597 > > │     return cupy.ndarray(shape, dtype, order=order)                     │
00:06:43 verbose #7598 > > │            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                     │
00:06:43 verbose #7599 > > │   File "cupy\_core\core.pyx", line 132, in                               │
00:06:43 verbose #7600 > > │ cupy._core.core.ndarray.__new__                                            │
00:06:43 verbose #7601 > > │   File "cupy\_core\core.pyx", line 220, in                               │
00:06:43 verbose #7602 > > │ cupy._core.core._ndarray_base._init                                        │
00:06:43 verbose #7603 > > │   File "cupy\cuda\memory.pyx", line 738, in cupy.cuda.memory.alloc     │
00:06:43 verbose #7604 > > │   File "cupy\cuda\memory.pyx", line 1424, in                             │
00:06:43 verbose #7605 > > │ cupy.cuda.memory.MemoryPool.malloc                                         │
00:06:43 verbose #7606 > > │   File "cupy\cuda\memory.pyx", line 1444, in                             │
00:06:43 verbose #7607 > > │ cupy.cuda.memory.MemoryPool.malloc                                         │
00:06:43 verbose #7608 > > │   File "cupy\cuda\device.pyx", line 40, in cupy.cuda.device.get_device_id │
00:06:43 verbose #7609 > > │ [0m                                                                          │
00:06:43 verbose #7610 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 202, in                │
00:06:43 verbose #7611 > > │ cupy_backends.cuda.api.runtime.getDevice                                   │
00:06:43 verbose #7612 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 146, in                │
00:06:43 verbose #7613 > > │ cupy_backends.cuda.api.runtime.check_status                                │
00:06:43 verbose #7614 > > │ cupy_backends.cuda.api.runtime.CUDARuntimeError:                         │
00:06:43 verbose #7615 > > │ cudaErrorInsufficientDriver: CUDA driver version is insufficient for CUDA    │
00:06:43 verbose #7616 > > │ runtime version                                                            │
00:06:43 verbose #7617 > > │                                                                              │
00:06:43 verbose #7618 > > │ .rs output:                                                                  │
00:06:43 verbose #7619 > > │ assert_eq / actual: 9 / expected: 9                                          │
00:06:43 verbose #7620 > > │                                                                              │
00:06:43 verbose #7621 > > │ .ts output:                                                                  │
00:06:43 verbose #7622 > > │ assert_eq / actual: 9 / expected: 9                                          │
00:06:43 verbose #7623 > > │                                                                              │
00:06:43 verbose #7624 > > │ .py output:                                                                  │
00:06:43 verbose #7625 > > │ assert_eq / actual: 9 / expected: 9                                          │
00:06:43 verbose #7626 > > │                                                                              │
00:06:43 verbose #7627 > > │                                                                              │
00:06:43 verbose #7628 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:43 verbose #7629 > >
00:06:43 verbose #7630 > > ╭─[ 6.89s - stdout ]───────────────────────────────────────────────────────────╮
00:06:43 verbose #7631 > > │ .fsx output:                                                                 │
00:06:43 verbose #7632 > > │ assert_eq / actual: 9 / expected: 9                                          │
00:06:43 verbose #7633 > > │                                                                              │
00:06:43 verbose #7634 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:43 verbose #7635 > >
00:06:43 verbose #7636 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:43 verbose #7637 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:43 verbose #7638 > > │ ### try_pick                                                                 │
00:06:43 verbose #7639 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:43 verbose #7640 > >
00:06:43 verbose #7641 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:43 verbose #7642 > > inl try_pick forall t u. (fn : t -> option u) (array : a _ t) : option u =
00:06:43 verbose #7643 > >     (array, None)
00:06:43 verbose #7644 > >     ||> am.foldBack fun x acc =>
00:06:43 verbose #7645 > >         match acc with
00:06:43 verbose #7646 > >         | Some _ => acc
00:06:43 verbose #7647 > >         | None => x |> fn
00:06:43 verbose #7648 > 00:06:42   debug #463 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/982c21511095e83c548d589ef83b079d66d39cf3ca796230e94fc3062de8d29f/main.spi
00:06:43 verbose #7649 > >
00:06:43 verbose #7650 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:43 verbose #7651 > > //// test
00:06:43 verbose #7652 > > ///! fsharp
00:06:43 verbose #7653 > > ///! cuda
00:06:43 verbose #7654 > > ////! rust // match &v23 { Spiral_builder::US0::US0_0(x) => x.clone(), _ =>
00:06:43 verbose #7655 > > unreachable!(), } == 5_i32
00:06:43 verbose #7656 > > ///! typescript
00:06:43 verbose #7657 > > ///! python
00:06:43 verbose #7658 > >
00:06:43 verbose #7659 > > 10
00:06:43 verbose #7660 > > |> init
00:06:43 verbose #7661 > > |> fun x => a x : _ int _
00:06:43 verbose #7662 > > |> try_pick (fun x => if x = 5i32 then Some x else None)
00:06:43 verbose #7663 > > |> _assert_eq (Some 5i32)
00:06:43 verbose #7664 > 00:06:43   debug #464 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e18a5aaf095c27cd0d5baefdab60e7a6838ae0e0e084291078c4d72deb2f83a2/main.spi
00:06:43 verbose #7665 > 00:06:43   debug #465 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/89c6c1f002d687f0db096ea733a3583a9e8c63b015bfcb255791335fa588aacc/main.spi
00:06:46 verbose #7666 > 00:06:45   debug #466 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ffbdf638a179ab054b52361d40c49795bf15c33906a7feb238e04c589e007e2a/main.spi
00:06:46 verbose #7667 > 00:06:46   debug #467 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/713602f9b8f4d82d4dcfe100ca8304d8b93c68d2b3a29765618d48f14990f769/main.spi
00:06:47 verbose #7668 > >
00:06:47 verbose #7669 > > ╭─[ 3.98s - return value ]─────────────────────────────────────────────────────╮
00:06:47 verbose #7670 > > │                                                                              │
00:06:47 verbose #7671 > > │ .py output (Cuda):                                                           │
00:06:47 verbose #7672 > > │ Traceback (most recent call last):                                     │
00:06:47 verbose #7673 > > │   File                                                                   │
00:06:47 verbose #7674 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\e18a5aaf095c27cd0d5baefdab │
00:06:47 verbose #7675 > > │ 60e7a6838ae0e0e084291078c4d72deb2f83a2\main.py", line 157, in <module>     │
00:06:47 verbose #7676 > > │     if __name__ == '__main__': result = main(); None if result is None   │
00:06:47 verbose #7677 > > │ else print(result)                                                         │
00:06:47 verbose #7678 > > │                                         ^^^^^^                         │
00:06:47 verbose #7679 > > │   File                                                                   │
00:06:47 verbose #7680 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\e18a5aaf095c27cd0d5baefdab │
00:06:47 verbose #7681 > > │ 60e7a6838ae0e0e084291078c4d72deb2f83a2\main.py", line 155, in main         │
00:06:47 verbose #7682 > > │     return method0()                                                   │
00:06:47 verbose #7683 > > │            ^^^^^^^^^                                                   │
00:06:47 verbose #7684 > > │   File                                                                   │
00:06:47 verbose #7685 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\e18a5aaf095c27cd0d5baefdab │
00:06:47 verbose #7686 > > │ 60e7a6838ae0e0e084291078c4d72deb2f83a2\main.py", line 83, in method0       │
00:06:47 verbose #7687 > > │     v0 = cp.empty(10,dtype=cp.int32)                                   │
00:06:47 verbose #7688 > > │          ^^^^^^^^^^^^^^^^^^^^^^^^^^^                                   │
00:06:47 verbose #7689 > > │   File                                                                   │
00:06:47 verbose #7690 > > │ "C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\cupy\_creation\b │
00:06:47 verbose #7691 > > │ asic.py", line 31, in empty                                                │
00:06:47 verbose #7692 > > │     return cupy.ndarray(shape, dtype, order=order)                     │
00:06:47 verbose #7693 > > │            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                     │
00:06:47 verbose #7694 > > │   File "cupy\_core\core.pyx", line 132, in                               │
00:06:47 verbose #7695 > > │ cupy._core.core.ndarray.__new__                                            │
00:06:47 verbose #7696 > > │   File "cupy\_core\core.pyx", line 220, in                               │
00:06:47 verbose #7697 > > │ cupy._core.core._ndarray_base._init                                        │
00:06:47 verbose #7698 > > │   File "cupy\cuda\memory.pyx", line 738, in cupy.cuda.memory.alloc     │
00:06:47 verbose #7699 > > │   File "cupy\cuda\memory.pyx", line 1424, in                             │
00:06:47 verbose #7700 > > │ cupy.cuda.memory.MemoryPool.malloc                                         │
00:06:47 verbose #7701 > > │   File "cupy\cuda\memory.pyx", line 1444, in                             │
00:06:47 verbose #7702 > > │ cupy.cuda.memory.MemoryPool.malloc                                         │
00:06:47 verbose #7703 > > │   File "cupy\cuda\device.pyx", line 40, in cupy.cuda.device.get_device_id │
00:06:47 verbose #7704 > > │ [0m                                                                          │
00:06:47 verbose #7705 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 202, in                │
00:06:47 verbose #7706 > > │ cupy_backends.cuda.api.runtime.getDevice                                   │
00:06:47 verbose #7707 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 146, in                │
00:06:47 verbose #7708 > > │ cupy_backends.cuda.api.runtime.check_status                                │
00:06:47 verbose #7709 > > │ cupy_backends.cuda.api.runtime.CUDARuntimeError:                         │
00:06:47 verbose #7710 > > │ cudaErrorInsufficientDriver: CUDA driver version is insufficient for CUDA    │
00:06:47 verbose #7711 > > │ runtime version                                                            │
00:06:47 verbose #7712 > > │                                                                              │
00:06:47 verbose #7713 > > │ .ts output:                                                                  │
00:06:47 verbose #7714 > > │ assert_eq / actual: US0_0 5 / expected: US0_0 5                              │
00:06:47 verbose #7715 > > │                                                                              │
00:06:47 verbose #7716 > > │ .py output:                                                                  │
00:06:47 verbose #7717 > > │ assert_eq / actual: US0_0 5 / expected: US0_0 5                              │
00:06:47 verbose #7718 > > │                                                                              │
00:06:47 verbose #7719 > > │                                                                              │
00:06:47 verbose #7720 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:47 verbose #7721 > >
00:06:47 verbose #7722 > > ╭─[ 3.98s - stdout ]───────────────────────────────────────────────────────────╮
00:06:47 verbose #7723 > > │ .fsx output:                                                                 │
00:06:47 verbose #7724 > > │ assert_eq / actual: US0_0 5 / expected: US0_0 5                              │
00:06:47 verbose #7725 > > │                                                                              │
00:06:47 verbose #7726 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:47 verbose #7727 > >
00:06:47 verbose #7728 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:47 verbose #7729 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:47 verbose #7730 > > │ ### indexed                                                                  │
00:06:47 verbose #7731 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:47 verbose #7732 > >
00:06:47 verbose #7733 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:47 verbose #7734 > > inl indexed forall t u {number}. (ar : array_base t) : array_base (u * t) =
00:06:47 verbose #7735 > >     ((0, a ;[[]]), (a ar : _ int _))
00:06:47 verbose #7736 > >     ||> am.fold fun (i, acc) x =>
00:06:47 verbose #7737 > >         i + 1, acc ++ a ;[[i, x]]
00:06:47 verbose #7738 > >     |> snd
00:06:47 verbose #7739 > >     |> fun (a x : _ int _) => x
00:06:47 verbose #7740 > 00:06:47   debug #468 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6cdcf21b3672e7ffa8dd3e4d4bd1cf11b62f46869f47c86457b0bbf86264dffd/main.spi
00:06:48 verbose #7741 > >
00:06:48 verbose #7742 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:48 verbose #7743 > > //// test
00:06:48 verbose #7744 > > ///! fsharp
00:06:48 verbose #7745 > > ////! cuda // Only stack allocated primitive types (i8,i16,i32,i64 and
00:06:48 verbose #7746 > > u8,u16,u32,u64 and f32,f64 and bool) are allowed in CuPy arrays.
00:06:48 verbose #7747 > > ///! rust
00:06:48 verbose #7748 > > ///! typescript
00:06:48 verbose #7749 > > ///! python
00:06:48 verbose #7750 > >
00:06:48 verbose #7751 > > am.init 3i32 ((*) 2)
00:06:48 verbose #7752 > > |> fun (a x : _ int _) => x
00:06:48 verbose #7753 > > |> indexed
00:06:48 verbose #7754 > > |> _assert_eq' ;[[0i32, 0; 1, 2; 2, 4]]
00:06:48 verbose #7755 > 00:06:47   debug #469 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/40c3bb8ddb04462b3f6ac786137557b8a247074f018d8ab68b0b6f53676ac80d/main.spi
00:06:57 verbose #7756 > >
00:06:57 verbose #7757 > > ╭─[ 9.57s - return value ]─────────────────────────────────────────────────────╮
00:06:57 verbose #7758 > > │ .rs output:                                                                  │
00:06:57 verbose #7759 > > │ assert_eq' / actual: Array(MutCell([(0, 0), (1, 2), (2, 4)])) / expected:    │
00:06:57 verbose #7760 > > │ Array(MutCell([(0, 0), (1, 2), (2, 4)]))                                     │
00:06:57 verbose #7761 > > │                                                                              │
00:06:57 verbose #7762 > > │ .ts output:                                                                  │
00:06:57 verbose #7763 > > │ assert_eq' / actual: 0,0,1,2,2,4 / expected: 0,0,1,2,2,4                     │
00:06:57 verbose #7764 > > │                                                                              │
00:06:57 verbose #7765 > > │ .py output:                                                                  │
00:06:57 verbose #7766 > > │ assert_eq' / actual: [(0, 0), (1, 2), (2, 4)] / expected: [(0, 0), (1, 2),   │
00:06:57 verbose #7767 > > │ (2, 4)]                                                                      │
00:06:57 verbose #7768 > > │                                                                              │
00:06:57 verbose #7769 > > │                                                                              │
00:06:57 verbose #7770 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:57 verbose #7771 > >
00:06:57 verbose #7772 > > ╭─[ 9.57s - stdout ]───────────────────────────────────────────────────────────╮
00:06:57 verbose #7773 > > │ .fsx output:                                                                 │
00:06:57 verbose #7774 > > │ assert_eq' / actual: [|struct (0, 0); struct (1, 2); struct (2, 4)|] /       │
00:06:57 verbose #7775 > > │ expected: [|struct (0, 0); struct (1, 2); struct (2, 4)|]                    │
00:06:57 verbose #7776 > > │                                                                              │
00:06:57 verbose #7777 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:57 verbose #7778 > >
00:06:57 verbose #7779 > > ── markdown ────────────────────────────────────────────────────────────────────
00:06:57 verbose #7780 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:06:57 verbose #7781 > > │ ### slice                                                                    │
00:06:57 verbose #7782 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:06:57 verbose #7783 > >
00:06:57 verbose #7784 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:57 verbose #7785 > > inl slice forall dim {int; number} el. from nearTo s : a dim el =
00:06:57 verbose #7786 > >     am.slice { from nearTo } s
00:06:58 verbose #7787 > 00:06:57   debug #470 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/28b8393f2522cc7cc9f32379f068c89903553f82b68866a5c0b7263674b87aa6/main.spi
00:06:58 verbose #7788 > >
00:06:58 verbose #7789 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:06:58 verbose #7790 > > //// test
00:06:58 verbose #7791 > > ///! fsharp
00:06:58 verbose #7792 > > ///! cuda
00:06:58 verbose #7793 > > ///! rust
00:06:58 verbose #7794 > > ///! typescript
00:06:58 verbose #7795 > > ///! python
00:06:58 verbose #7796 > >
00:06:58 verbose #7797 > > inl x : _ i32 _ = a ;[[ 1i32; 2; 3 ]]
00:06:58 verbose #7798 > > x |> slice 0 0 |> _assert_eq (a ;[[]])
00:06:58 verbose #7799 > > x |> slice 0 1 |> _assert_eq (a ;[[ 1 ]])
00:06:58 verbose #7800 > > x |> slice 1 1 |> _assert_eq (a ;[[]])
00:06:58 verbose #7801 > > x |> slice 1 2 |> _assert_eq (a ;[[ 2 ]])
00:06:58 verbose #7802 > > x |> slice 2 2 |> _assert_eq (a ;[[]])
00:06:58 verbose #7803 > > x |> slice 0 2 |> _assert_eq (a ;[[ 1; 2 ]])
00:06:58 verbose #7804 > 00:06:57   debug #471 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3f63a852226069d3673db1a23dce25d47a8f0e0568a85849b6df34af3974dcaf/main.spi
00:06:58 verbose #7805 > 00:06:57   debug #472 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/12c868edffe244a6da7e1a3bb8530a5d52e254317d80ad0f03312197f7a88281/main.spi
00:07:09 verbose #7806 > >
00:07:09 verbose #7807 > > ╭─[ 11.70s - return value ]────────────────────────────────────────────────────╮
00:07:09 verbose #7808 > > │                                                                              │
00:07:09 verbose #7809 > > │ .py output (Cuda):                                                           │
00:07:09 verbose #7810 > > │ Traceback (most recent call last):                                     │
00:07:09 verbose #7811 > > │   File                                                                   │
00:07:09 verbose #7812 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\12c868edffe244a6da7e1a3bb8 │
00:07:09 verbose #7813 > > │ 530a5d52e254317d80ad0f03312197f7a88281\main.py", line 367, in <module>     │
00:07:09 verbose #7814 > > │     if __name__ == '__main__': result = main(); None if result is None   │
00:07:09 verbose #7815 > > │ else print(result)                                                         │
00:07:09 verbose #7816 > > │                                         ^^^^^^                         │
00:07:09 verbose #7817 > > │   File                                                                   │
00:07:09 verbose #7818 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\12c868edffe244a6da7e1a3bb8 │
00:07:09 verbose #7819 > > │ 530a5d52e254317d80ad0f03312197f7a88281\main.py", line 365, in main         │
00:07:09 verbose #7820 > > │     return method0()                                                   │
00:07:09 verbose #7821 > > │            ^^^^^^^^^                                                   │
00:07:09 verbose #7822 > > │   File                                                                   │
00:07:09 verbose #7823 > > │ "C:\home\git\polyglot\target\spiral_Eval\packages\12c868edffe244a6da7e1a3bb8 │
00:07:09 verbose #7824 > > │ 530a5d52e254317d80ad0f03312197f7a88281\main.py", line 108, in method0      │
00:07:09 verbose #7825 > > │     v0 = cp.array([1, 2, 3],dtype=cp.int32)                            │
00:07:09 verbose #7826 > > │          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                            │
00:07:09 verbose #7827 > > │   File                                                                   │
00:07:09 verbose #7828 > > │ "C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\cupy\_creation\f │
00:07:09 verbose #7829 > > │ rom_data.py", line 53, in array                                            │
00:07:09 verbose #7830 > > │     return _core.array(obj, dtype, copy, order, subok, ndmin, blocking)[  │
00:07:09 verbose #7831 > > │ 0m                                                                           │
00:07:09 verbose #7832 > > │            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^[  │
00:07:09 verbose #7833 > > │ 0m                                                                           │
00:07:09 verbose #7834 > > │   File "cupy\_core\core.pyx", line 2379, in cupy._core.core.array      │
00:07:09 verbose #7835 > > │   File "cupy\_core\core.pyx", line 2406, in cupy._core.core.array      │
00:07:09 verbose #7836 > > │   File "cupy\_core\core.pyx", line 2548, in                              │
00:07:09 verbose #7837 > > │ cupy._core.core._array_default                                             │
00:07:09 verbose #7838 > > │   File "cupy\_core\core.pyx", line 132, in                               │
00:07:09 verbose #7839 > > │ cupy._core.core.ndarray.__new__                                            │
00:07:09 verbose #7840 > > │   F...", line 1444, in cupy.cuda.memory.MemoryPool.malloc              │
00:07:09 verbose #7841 > > │   File "cupy\cuda\device.pyx", line 40, in cupy.cuda.device.get_device_id │
00:07:09 verbose #7842 > > │ [0m                                                                          │
00:07:09 verbose #7843 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 202, in                │
00:07:09 verbose #7844 > > │ cupy_backends.cuda.api.runtime.getDevice                                   │
00:07:09 verbose #7845 > > │   File "cupy_backends\cuda\api\runtime.pyx", line 146, in                │
00:07:09 verbose #7846 > > │ cupy_backends.cuda.api.runtime.check_status                                │
00:07:09 verbose #7847 > > │ cupy_backends.cuda.api.runtime.CUDARuntimeError:                         │
00:07:09 verbose #7848 > > │ cudaErrorInsufficientDriver: CUDA driver version is insufficient for CUDA    │
00:07:09 verbose #7849 > > │ runtime version                                                            │
00:07:09 verbose #7850 > > │                                                                              │
00:07:09 verbose #7851 > > │                                                                              │
00:07:09 verbose #7852 > > │ .rs output:                                                                  │
00:07:09 verbose #7853 > > │ assert_eq / actual: Array(MutCell([])) / expected: Array(MutCell([]))        │
00:07:09 verbose #7854 > > │ assert_eq / actual: Array(MutCell([1])) / expected: Array(MutCell([1]))      │
00:07:09 verbose #7855 > > │ assert_eq / actual: Array(MutCell([])) / expected: Array(MutCell([]))        │
00:07:09 verbose #7856 > > │ assert_eq / actual: Array(MutCell([2])) / expected: Array(MutCell([2]))      │
00:07:09 verbose #7857 > > │ assert_eq / actual: Array(MutCell([])) / expected: Array(MutCell([]))        │
00:07:09 verbose #7858 > > │ assert_eq / actual: Array(MutCell([1, 2])) / expected: Array(MutCell([1,     │
00:07:09 verbose #7859 > > │ 2]))                                                                         │
00:07:09 verbose #7860 > > │                                                                              │
00:07:09 verbose #7861 > > │                                                                              │
00:07:09 verbose #7862 > > │ .ts output:                                                                  │
00:07:09 verbose #7863 > > │ assert_eq / actual:  / expected:                                             │
00:07:09 verbose #7864 > > │ assert_eq / actual: 1 / expected: 1                                          │
00:07:09 verbose #7865 > > │ assert_eq / actual:  / expected:                                             │
00:07:09 verbose #7866 > > │ assert_eq / actual: 2 / expected: 2                                          │
00:07:09 verbose #7867 > > │ assert_eq / actual:  / expected:                                             │
00:07:09 verbose #7868 > > │ assert_eq / actual: 1,2 / expected: 1,2                                      │
00:07:09 verbose #7869 > > │                                                                              │
00:07:09 verbose #7870 > > │                                                                              │
00:07:09 verbose #7871 > > │ .py output:                                                                  │
00:07:09 verbose #7872 > > │ assert_eq / actual: [] / expected: array('l')                                │
00:07:09 verbose #7873 > > │ assert_eq / actual: [1] / expected: array('l', [1])                          │
00:07:09 verbose #7874 > > │ assert_eq / actual: [] / expected: array('l')                                │
00:07:09 verbose #7875 > > │ assert_eq / actual: [2] / expected: array('l', [2])                          │
00:07:09 verbose #7876 > > │ assert_eq / actual: [] / expected: array('l')                                │
00:07:09 verbose #7877 > > │ assert_eq / actual: [1, 2] / expected: array('l', [1, 2])                    │
00:07:09 verbose #7878 > > │                                                                              │
00:07:09 verbose #7879 > > │                                                                              │
00:07:09 verbose #7880 > > │                                                                              │
00:07:09 verbose #7881 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:09 verbose #7882 > >
00:07:09 verbose #7883 > > ╭─[ 11.71s - stdout ]──────────────────────────────────────────────────────────╮
00:07:09 verbose #7884 > > │ .fsx output:                                                                 │
00:07:09 verbose #7885 > > │ assert_eq / actual: [||] / expected: [||]                                    │
00:07:09 verbose #7886 > > │ assert_eq / actual: [|1|] / expected: [|1|]                                  │
00:07:09 verbose #7887 > > │ assert_eq / actual: [||] / expected: [||]                                    │
00:07:09 verbose #7888 > > │ assert_eq / actual: [|2|] / expected: [|2|]                                  │
00:07:09 verbose #7889 > > │ assert_eq / actual: [||] / expected: [||]                                    │
00:07:09 verbose #7890 > > │ assert_eq / actual: [|1; 2|] / expected: [|1; 2|]                            │
00:07:09 verbose #7891 > > │                                                                              │
00:07:09 verbose #7892 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:09 verbose #7893 > >
00:07:09 verbose #7894 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:09 verbose #7895 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:09 verbose #7896 > > │ ### range                                                                    │
00:07:09 verbose #7897 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:09 verbose #7898 > >
00:07:09 verbose #7899 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:09 verbose #7900 > > union range dim =
00:07:09 verbose #7901 > >     | Start : dim
00:07:09 verbose #7902 > >     | End : dim -> dim
00:07:09 verbose #7903 > >
00:07:09 verbose #7904 > > inl range start end s =
00:07:09 verbose #7905 > >     inl start, end =
00:07:09 verbose #7906 > >         match start, end with
00:07:09 verbose #7907 > >         | Start start, End fn =>
00:07:09 verbose #7908 > >             start, s |> length |> conv |> fn
00:07:09 verbose #7909 > >         | End start_fn, End end_fn =>
00:07:09 verbose #7910 > >             inl len = s |> length |> conv
00:07:09 verbose #7911 > >             start_fn len, end_fn len
00:07:09 verbose #7912 > >     s |> slice (start |> unbox) (end |> unbox)
00:07:10 verbose #7913 > 00:07:09   debug #473 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b5debcf31d7c017eef6b97c61b81fde7ba1566893e8dcebd3df179a61601b63e/main.spi
00:07:10 verbose #7914 > >
00:07:10 verbose #7915 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:10 verbose #7916 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:10 verbose #7917 > > │ ## rust                                                                      │
00:07:10 verbose #7918 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:10 verbose #7919 > >
00:07:10 verbose #7920 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:10 verbose #7921 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:10 verbose #7922 > > │ ### vec                                                                      │
00:07:10 verbose #7923 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:10 verbose #7924 > >
00:07:10 verbose #7925 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:10 verbose #7926 > > nominal vec t = $'Vec<`t>'
00:07:11 verbose #7927 > 00:07:10   debug #474 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4e5d70029efb681b32cb468a5adb17287f310d77b3e666e864a261b8231ee4e7/main.spi
00:07:11 verbose #7928 > >
00:07:11 verbose #7929 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:11 verbose #7930 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:11 verbose #7931 > > │ ### from_vec                                                                 │
00:07:11 verbose #7932 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:11 verbose #7933 > >
00:07:11 verbose #7934 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:11 verbose #7935 > > inl from_vec forall dim el. (vec : vec el) : a dim el =
00:07:11 verbose #7936 > >     !\\(vec, $'"fable_library_rust::NativeArray_::array_from($0)"')
00:07:11 verbose #7937 > 00:07:11   debug #475 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/683602f60db48478f4486973c60306ccd96f1039d78d730a49ae6a2515057bff/main.spi
00:07:11 verbose #7938 > >
00:07:11 verbose #7939 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:11 verbose #7940 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:11 verbose #7941 > > │ ### to_vec                                                                   │
00:07:11 verbose #7942 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:11 verbose #7943 > >
00:07:11 verbose #7944 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:11 verbose #7945 > > inl to_vec forall t. (ab : array_base t) : vec t =
00:07:11 verbose #7946 > >     !\\(ab, $'"$0.to_vec()"')
00:07:12 verbose #7947 > 00:07:11   debug #476 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ff245f91a81d21e98d87c71e4a2eccf6a5f51763f8e67e501e42611282c6992d/main.spi
00:07:12 verbose #7948 > >
00:07:12 verbose #7949 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:12 verbose #7950 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:12 verbose #7951 > > │ ### vec_push                                                                 │
00:07:12 verbose #7952 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:12 verbose #7953 > >
00:07:12 verbose #7954 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:12 verbose #7955 > > inl vec_push forall el. (el : el) (vec : vec el) : vec el =
00:07:12 verbose #7956 > >     inl el = join el
00:07:12 verbose #7957 > >     inl vec = join vec
00:07:12 verbose #7958 > >     (!\($'"true; let mut !vec = !vec"') : bool) |> ignore
00:07:12 verbose #7959 > >     // inl vec = vec |> rust.to_mut
00:07:12 verbose #7960 > >     (!\($'"true; !vec.push(!el)"') : bool) |> ignore
00:07:12 verbose #7961 > >     !\($'"!vec"')
00:07:12 verbose #7962 > 00:07:12   debug #477 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c9f4137737256e9d451ec73cb08baf7c68d9d21a50d474ecc4c3ff6af4b2759f/main.spi
00:07:13 verbose #7963 > >
00:07:13 verbose #7964 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:13 verbose #7965 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:13 verbose #7966 > > │ ### vec_reverse                                                              │
00:07:13 verbose #7967 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:13 verbose #7968 > >
00:07:13 verbose #7969 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:13 verbose #7970 > > inl vec_reverse forall el. (vec : vec el) : vec el =
00:07:13 verbose #7971 > >     inl vec = join vec
00:07:13 verbose #7972 > >     (!\($'"true; let mut !vec = !vec"') : bool) |> ignore
00:07:13 verbose #7973 > >     (!\($'"true; !vec.reverse()"') : bool) |> ignore
00:07:13 verbose #7974 > >     !\($'"!vec"')
00:07:13 verbose #7975 > 00:07:13   debug #478 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/986123e0a930b3735b94f32af9e8420b9e95271c96ae6e3e3513507d2f81a64f/main.spi
00:07:14 verbose #7976 > >
00:07:14 verbose #7977 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:14 verbose #7978 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:14 verbose #7979 > > │ ### vec_retain                                                               │
00:07:14 verbose #7980 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:14 verbose #7981 > >
00:07:14 verbose #7982 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:14 verbose #7983 > > inl vec_retain forall el. (fn : el -> bool) (vec : vec el) : vec el =
00:07:14 verbose #7984 > >     inl vec = join vec
00:07:14 verbose #7985 > >     inl fn = join fn
00:07:14 verbose #7986 > >     (!\($'"true; let mut !vec = !vec"') : bool) |> ignore
00:07:14 verbose #7987 > >     // inl vec = vec |> rust.to_mut
00:07:14 verbose #7988 > >     (!\($'"true; !vec.retain(|x| !fn(x.clone()))"') : bool) |> ignore
00:07:14 verbose #7989 > >     !\($'"!vec"')
00:07:14 verbose #7990 > 00:07:14   debug #479 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3697c8835e97af92e624d8618900e820508e02966788f77aaeaf3a2e89d7a637/main.spi
00:07:15 verbose #7991 > >
00:07:15 verbose #7992 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:15 verbose #7993 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:15 verbose #7994 > > │ ### vec_sort_by_key                                                          │
00:07:15 verbose #7995 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:15 verbose #7996 > >
00:07:15 verbose #7997 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:15 verbose #7998 > > inl vec_sort_by_key forall el t. (fn : el -> t) (vec : vec el) : vec el =
00:07:15 verbose #7999 > >     inl vec = join vec
00:07:15 verbose #8000 > >     inl fn = join fn
00:07:15 verbose #8001 > >     (!\($'"true; let mut !vec = !vec"') : bool) |> ignore
00:07:15 verbose #8002 > >     // inl vec = vec |> rust.to_mut
00:07:15 verbose #8003 > >     (!\($'"true; !vec.sort_by_key(|x| !fn(x.clone()))"') : bool) |> ignore
00:07:15 verbose #8004 > >     !\($'"!vec"')
00:07:15 verbose #8005 > 00:07:15   debug #480 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ee639c8936485ef4930e676440d120337e17a3f00589313b48a5a39942faf1b2/main.spi
00:07:16 verbose #8006 > >
00:07:16 verbose #8007 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:16 verbose #8008 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:16 verbose #8009 > > │ ### vec_extend                                                               │
00:07:16 verbose #8010 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:16 verbose #8011 > >
00:07:16 verbose #8012 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:16 verbose #8013 > > inl vec_extend forall el. (el : vec el) (vec : vec el) : vec el =
00:07:16 verbose #8014 > >     inl el = join el
00:07:16 verbose #8015 > >     inl vec = join vec
00:07:16 verbose #8016 > >     (!\($'"true; let mut !vec = !vec"') : bool) |> ignore
00:07:16 verbose #8017 > >     // inl vec = vec |> rust.to_mut
00:07:16 verbose #8018 > >     (!\($'"true; !vec.extend(!el)"') : bool) |> ignore
00:07:16 verbose #8019 > >     !\($'"!vec"')
00:07:16 verbose #8020 > 00:07:16   debug #481 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2f60986949f44c2bbc9e03485966cfa7da7126d560107c4b576cbfef80512ced/main.spi
00:07:17 verbose #8021 > >
00:07:17 verbose #8022 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:17 verbose #8023 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:17 verbose #8024 > > │ ### vec_collect                                                              │
00:07:17 verbose #8025 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:17 verbose #8026 > >
00:07:17 verbose #8027 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:17 verbose #8028 > > inl vec_collect fn vec =
00:07:17 verbose #8029 > >     ((;[[]] |> to_vec), (vec |> from_vec : _ i32 _))
00:07:17 verbose #8030 > >     ||> am.fold fun acc x =>
00:07:17 verbose #8031 > >         acc |> vec_extend (fn x)
00:07:17 verbose #8032 > 00:07:16   debug #482 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/12e9ed289389ef72d6799ce4acf0a330615683ed6fd2f0a71ceaf9a61d808566/main.spi
00:07:18 verbose #8033 > >
00:07:18 verbose #8034 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:18 verbose #8035 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:18 verbose #8036 > > │ ### vec_collect_option                                                       │
00:07:18 verbose #8037 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:18 verbose #8038 > >
00:07:18 verbose #8039 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:18 verbose #8040 > > inl vec_collect_option vec =
00:07:18 verbose #8041 > >     ((;[[]] |> to_vec |> Ok), (vec |> from_vec : _ i32 _))
00:07:18 verbose #8042 > >     ||> am.fold fun acc x =>
00:07:18 verbose #8043 > >         x
00:07:18 verbose #8044 > >         |> resultm.unbox
00:07:18 verbose #8045 > >         |> fun x =>
00:07:18 verbose #8046 > >             match acc, x |> resultm.map optionm'.unbox with
00:07:18 verbose #8047 > >             | Ok acc, Ok (Some x) => acc |> vec_extend x |> Ok
00:07:18 verbose #8048 > >             | _, Error error => error |> Error
00:07:18 verbose #8049 > >             | _ => acc
00:07:18 verbose #8050 > 00:07:17   debug #483 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f5736986acfd7bdabb3af9a351cc04aeb3770d6bbcc011de9bf593823f8e3b87/main.spi
00:07:19 verbose #8051 > >
00:07:19 verbose #8052 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:19 verbose #8053 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:19 verbose #8054 > > │ ### vec_collect_into                                                         │
00:07:19 verbose #8055 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:19 verbose #8056 > >
00:07:19 verbose #8057 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:19 verbose #8058 > > inl vec_collect_into forall (c : * -> * -> *) t e.
00:07:19 verbose #8059 > >     (x : vec (c t e))
00:07:19 verbose #8060 > >     : c (vec t) e
00:07:19 verbose #8061 > >     =
00:07:19 verbose #8062 > >     !\($'"!x.into_iter().collect()"')
00:07:19 verbose #8063 > 00:07:18   debug #484 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/385f92e04968baca57d855ca28e572817a4bee9309a6bc3471a29f5f0a247157/main.spi
00:07:19 verbose #8064 > >
00:07:19 verbose #8065 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:19 verbose #8066 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:19 verbose #8067 > > │ ### vec_mapi                                                                 │
00:07:19 verbose #8068 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:19 verbose #8069 > >
00:07:19 verbose #8070 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:19 verbose #8071 > > inl vec_mapi forall dim t u. (fn : dim -> t -> u) (ar : vec t) : vec u =
00:07:19 verbose #8072 > >     inl fn = join fn
00:07:19 verbose #8073 > >     inl ar = join ar
00:07:19 verbose #8074 > >     !\($'"!ar.iter().enumerate().map(|(i, x)|
00:07:19 verbose #8075 > > !fn(i.try_into().unwrap())(x.clone())).collect::<Vec<_>>()"')
00:07:20 verbose #8076 > 00:07:19   debug #485 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/930d708014235a9154547ab4f28b0f025ae2aa807d8ecabeb7fc5f733c5e4a30/main.spi
00:07:20 verbose #8077 > >
00:07:20 verbose #8078 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:20 verbose #8079 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:20 verbose #8080 > > │ ### vec_map                                                                  │
00:07:20 verbose #8081 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:20 verbose #8082 > >
00:07:20 verbose #8083 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:20 verbose #8084 > > inl vec_map forall t u. (fn : t -> u) (ar : vec t) : vec u =
00:07:20 verbose #8085 > >     (!\($'"true; let _result : Vec<_> = !ar.into_iter().map(|x| { //"') : bool)
00:07:20 verbose #8086 > > |> ignore
00:07:20 verbose #8087 > >     (!\\(fn !\($'"x"'), $'"true; $0 }).collect::<Vec<_>>()"') : bool) |> ignore
00:07:20 verbose #8088 > >     !\($'"_result"')
00:07:20 verbose #8089 > 00:07:19   debug #486 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b731d2a193845438a5e66aca3e6c23b2a538c690ed57e84cf95a02547dc0f09b/main.spi
00:07:20 verbose #8090 > >
00:07:20 verbose #8091 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:20 verbose #8092 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:20 verbose #8093 > > │ ### vec_map'''                                                               │
00:07:20 verbose #8094 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:20 verbose #8095 > >
00:07:20 verbose #8096 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:20 verbose #8097 > > inl vec_map''' forall t u. (fn : t -> u) (ar : vec t) : vec u =
00:07:20 verbose #8098 > >     (!\($'"true; let _result : Vec<_> = !ar.into_iter().map(|x| { //"') : bool)
00:07:20 verbose #8099 > > |> ignore
00:07:20 verbose #8100 > >     (!\\(fn !\($'"x"'), $'"true; $0 }}).collect::<Vec<_>>(); {{ //"') : bool) |>
00:07:20 verbose #8101 > > ignore
00:07:20 verbose #8102 > >     !\($'"_result"')
00:07:21 verbose #8103 > 00:07:20   debug #487 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5ee192430d6ae6d20276a31eadfce67deefc967cf4fa4dd83e14a27022c881ed/main.spi
00:07:21 verbose #8104 > >
00:07:21 verbose #8105 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:21 verbose #8106 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:21 verbose #8107 > > │ ### vec_map'                                                                 │
00:07:21 verbose #8108 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:21 verbose #8109 > >
00:07:21 verbose #8110 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:21 verbose #8111 > > inl vec_map' forall t u. (fn : t -> u) (ar : vec t) : vec u =
00:07:21 verbose #8112 > >     !\\((ar, fn), $'"$0.into_iter().map(|x|
00:07:21 verbose #8113 > > $1(x.clone())).collect::<Vec<_>>()"')
00:07:21 verbose #8114 > 00:07:21   debug #488 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/58e261d7b1ec1143c1fb05b63cf24da74ac67cb31e5e3abc3b8f80e3ecf4b467/main.spi
00:07:22 verbose #8115 > >
00:07:22 verbose #8116 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:22 verbose #8117 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:22 verbose #8118 > > │ ### vec_fold'                                                                │
00:07:22 verbose #8119 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:22 verbose #8120 > >
00:07:22 verbose #8121 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:22 verbose #8122 > > inl vec_fold' forall t u. (fn : u -> t -> u) (init : u) (ar : vec t) : u =
00:07:22 verbose #8123 > >     (!\\(ar, $'"true; let _result = $0.into_iter().fold(!init, |acc, x| { //"')
00:07:22 verbose #8124 > > : bool) |> ignore
00:07:22 verbose #8125 > >     (!\\(fn !\($'"acc"') !\($'"x"'), $'"true; $0 })"') : bool) |> ignore
00:07:22 verbose #8126 > >     !\($'"_result"')
00:07:22 verbose #8127 > 00:07:21   debug #489 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/12f9ffe64e3a0938dd827c59f1851c8a0e00d954a5b5de5e42cd75c89a3934a6/main.spi
00:07:22 verbose #8128 > >
00:07:22 verbose #8129 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:22 verbose #8130 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:22 verbose #8131 > > │ ### vec_for_each                                                             │
00:07:22 verbose #8132 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:22 verbose #8133 > >
00:07:22 verbose #8134 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:22 verbose #8135 > > inl vec_for_each forall t. (fn : t -> ()) (ar : vec t) : () =
00:07:22 verbose #8136 > >     !\\((ar, fn), $'"$0.iter().for_each(|x| { $1(x.clone()); })"')
00:07:22 verbose #8137 > 00:07:22   debug #490 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/00794c4d23a43c9a26b9bf0d2cebbfae88d203139f815146e93cc0685448a012/main.spi
00:07:23 verbose #8138 > >
00:07:23 verbose #8139 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:23 verbose #8140 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:23 verbose #8141 > > │ ### vec_for_each'                                                            │
00:07:23 verbose #8142 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:23 verbose #8143 > >
00:07:23 verbose #8144 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:23 verbose #8145 > > inl vec_for_each' forall t. (fn : t -> ()) (ar : vec t) : () =
00:07:23 verbose #8146 > >     (!\($'"true; !ar.into_iter().for_each(|x| { //"') : bool) |> ignore
00:07:23 verbose #8147 > >     inl x = fn !\($'"x"')
00:07:23 verbose #8148 > >     (!\($'"true; !x }}); { //"') : bool) |> ignore
00:07:23 verbose #8149 > 00:07:22   debug #491 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/84551f76c3f72736d3bb5f6c2995c8156a49e64a738c755bc69fb8e7d777e152/main.spi
00:07:24 verbose #8150 > >
00:07:24 verbose #8151 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:24 verbose #8152 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:24 verbose #8153 > > │ ### vec_filter                                                               │
00:07:24 verbose #8154 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:24 verbose #8155 > >
00:07:24 verbose #8156 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:24 verbose #8157 > > inl vec_filter forall t. (fn : t -> bool) (ar : vec t) : vec t =
00:07:24 verbose #8158 > >     inl fn = join fn
00:07:24 verbose #8159 > >     inl ar = join ar
00:07:24 verbose #8160 > >     !\($'"!ar.into_iter().filter(|x|
00:07:24 verbose #8161 > > !fn(x.clone().clone())).collect::<Vec<_>>()"')
00:07:24 verbose #8162 > 00:07:23   debug #492 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5d90c842f7b95acd9a7678cb5d4cb90d2370dd9b7c9fb1ee1630c8c849a3f0ea/main.spi
00:07:25 verbose #8163 > >
00:07:25 verbose #8164 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:25 verbose #8165 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:25 verbose #8166 > > │ ### vec_len                                                                  │
00:07:25 verbose #8167 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:25 verbose #8168 > >
00:07:25 verbose #8169 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:25 verbose #8170 > > inl vec_len forall t. (vec : vec t) : unativeint =
00:07:25 verbose #8171 > >     !\\(vec, $'"$0.len()"')
00:07:25 verbose #8172 > 00:07:24   debug #493 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cec903859ffa031c651ed0a5a405cc656dfb85087ecc2a0e8ce2b2230c4c43a6/main.spi
00:07:26 verbose #8173 > >
00:07:26 verbose #8174 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:26 verbose #8175 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:26 verbose #8176 > > │ ### vec_chunks                                                               │
00:07:26 verbose #8177 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:26 verbose #8178 > >
00:07:26 verbose #8179 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:26 verbose #8180 > > inl vec_chunks forall t. (n : i32) (vec : vec t) : vec (vec t) =
00:07:26 verbose #8181 > >     !\\(vec, $'"$0.chunks(!n).map(|x| x.into_iter().map(|x|
00:07:26 verbose #8182 > > x.clone()).collect::<Vec<_>>()).collect::<Vec<_>>()"')
00:07:26 verbose #8183 > 00:07:25   debug #494 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3f55000a1b2eca6ef64c040bf608bc4b531411dd5095827cbc26c195b4b160b5/main.spi
00:07:27 verbose #8184 > >
00:07:27 verbose #8185 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:27 verbose #8186 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:27 verbose #8187 > > │ ### slice                                                                    │
00:07:27 verbose #8188 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:27 verbose #8189 > >
00:07:27 verbose #8190 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:27 verbose #8191 > > nominal slice t = $'Slice<`t>'
00:07:27 verbose #8192 > 00:07:26   debug #495 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d12284580991b97c09089e73605bcb8374090aa652c9b560c39c368355ba51f6/main.spi
00:07:28 verbose #8193 > >
00:07:28 verbose #8194 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:28 verbose #8195 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:28 verbose #8196 > > │ ### slice'                                                                   │
00:07:28 verbose #8197 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:28 verbose #8198 > >
00:07:28 verbose #8199 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:28 verbose #8200 > > nominal slice' el dim = $'Slice\'<`el>'
00:07:28 verbose #8201 > 00:07:27   debug #496 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/664bc0fcc726179c48f267c98c5e1a1b7cacebd76b5e4388f61aee7c248d546b/main.spi
00:07:29 verbose #8202 > >
00:07:29 verbose #8203 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:29 verbose #8204 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:29 verbose #8205 > > │ ### slice_singleton                                                          │
00:07:29 verbose #8206 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:29 verbose #8207 > >
00:07:29 verbose #8208 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:29 verbose #8209 > > inl slice_singleton forall dim el. (x : option el) : slice' el dim =
00:07:29 verbose #8210 > >     match x with
00:07:29 verbose #8211 > >     | Some x => !\($'"[[!x]]"')
00:07:29 verbose #8212 > >     | None =>
00:07:29 verbose #8213 > >         !\($'"[[\\\"\\\".to_string()]]"') : slice' el dim
00:07:29 verbose #8214 > >             // emit_expr `(()) `(slice' el dim) () ($'"[[@dim]]"' : string) :
00:07:29 verbose #8215 > > slice' el 10
00:07:29 verbose #8216 > >             // !\( : string) : slice' el i32 // !\($'"[[]]"')
00:07:29 verbose #8217 > 00:07:28   debug #497 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0eb4bd20f0a079361799ba43367b4f4d1a6855225281156fcb5778cd7c10f203/main.spi
00:07:30 verbose #8218 > >
00:07:30 verbose #8219 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:30 verbose #8220 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:30 verbose #8221 > > │ ### slice_length                                                             │
00:07:30 verbose #8222 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:30 verbose #8223 > >
00:07:30 verbose #8224 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:30 verbose #8225 > > inl slice_length forall t dim. (x : slice' t dim) : unativeint =
00:07:30 verbose #8226 > >     !\($'"!x.len()"')
00:07:30 verbose #8227 > 00:07:29   debug #498 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7a4b6458429cd5d0a4e433c16deb87365104b7d82326ccbe988d541b202cba6c/main.spi
00:07:30 verbose #8228 > >
00:07:30 verbose #8229 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:30 verbose #8230 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:30 verbose #8231 > > │ ### slice_range                                                              │
00:07:30 verbose #8232 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:30 verbose #8233 > >
00:07:30 verbose #8234 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:30 verbose #8235 > > inl slice_range forall t dim. (start : range t) (end : range t) (s : slice' t
00:07:30 verbose #8236 > > dim) : rust.ref' (slice' t dim) =
00:07:30 verbose #8237 > >     inl len = s |> slice_length
00:07:30 verbose #8238 > >     inl start, (end : unativeint) =
00:07:30 verbose #8239 > >         match start, end with
00:07:30 verbose #8240 > >         | Start start, End fn => start, len |> convert |> fn |> convert
00:07:30 verbose #8241 > >         | End start_fn, End end_fn => len |> convert |> start_fn, len |> convert
00:07:30 verbose #8242 > > |> end_fn |> convert
00:07:30 verbose #8243 > >     match start, end with
00:07:30 verbose #8244 > >     | start, end when unbox end =. len => !\($'"&!s[[!start..]]"')
00:07:30 verbose #8245 > >     | start, end => !\\((start, end), $'"&!s[[$0..$1]]"')
00:07:30 verbose #8246 > 00:07:30   debug #499 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d59df7161acd62f5846a874e59b93ab6c71e212c7a3e3d1ae49d2903f61fc414/main.spi
00:07:31 verbose #8247 > >
00:07:31 verbose #8248 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:31 verbose #8249 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:31 verbose #8250 > > │ ### new_slice                                                                │
00:07:31 verbose #8251 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:31 verbose #8252 > >
00:07:31 verbose #8253 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:31 verbose #8254 > > inl new_slice forall el dim. (el : el) : slice' el dim =
00:07:31 verbose #8255 > >     !\\(el, $'"[[$0; @dim]]"')
00:07:31 verbose #8256 > 00:07:30   debug #500 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bd6bc8b2eebbcbffa51d84dbf0bcc82e0e7aa18dc0f700795a9c57a898369ce0/main.spi
00:07:31 verbose #8257 > >
00:07:31 verbose #8258 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:31 verbose #8259 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:31 verbose #8260 > > │ ### as_slice                                                                 │
00:07:31 verbose #8261 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:31 verbose #8262 > >
00:07:31 verbose #8263 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:31 verbose #8264 > > inl as_slice forall t. (x : array_base t) : rust.ref' (slice t) =
00:07:31 verbose #8265 > >     inl x = x |> to_vec
00:07:31 verbose #8266 > >     !\($'"!x.as_slice()"')
00:07:31 verbose #8267 > 00:07:30   debug #501 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ce908005c026611b275b2fc747179e2142f812399b3a8a4906610dd34a0dc4a4/main.spi
00:07:31 verbose #8268 > >
00:07:31 verbose #8269 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:31 verbose #8270 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:31 verbose #8271 > > │ ### slice_to_vec                                                             │
00:07:31 verbose #8272 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:31 verbose #8273 > >
00:07:31 verbose #8274 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:31 verbose #8275 > > inl slice_to_vec forall t. (slice : rust.ref' (slice t)) : vec t =
00:07:31 verbose #8276 > >     !\\(slice, $'"$0.iter().map(|x| *x).collect::<Vec<_>>()"')
00:07:32 verbose #8277 > 00:07:31   debug #502 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6e92361498dd7bcb6bcd172dbdadb874b98e23a427d533150d6cd72b3ac3dd70/main.spi
00:07:32 verbose #8278 > >
00:07:32 verbose #8279 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:32 verbose #8280 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:32 verbose #8281 > > │ ### any                                                                      │
00:07:32 verbose #8282 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:32 verbose #8283 > >
00:07:32 verbose #8284 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:32 verbose #8285 > > inl any forall t. (fn : t -> bool) (source : array_base t) : bool =
00:07:32 verbose #8286 > >     !\($'"!source.any(|x| !fn(x))"')
00:07:32 verbose #8287 > 00:07:31   debug #503 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/412db1375212eefc3d8885d6055196a338cfde5e7bde0da52aeeb639c37fa44e/main.spi
00:07:32 verbose #8288 > >
00:07:32 verbose #8289 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:32 verbose #8290 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:32 verbose #8291 > > │ ### iter_collect vec                                                         │
00:07:32 verbose #8292 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:32 verbose #8293 > >
00:07:32 verbose #8294 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:32 verbose #8295 > > instance iter_collect vec = fun (iter : into_iterator u) =>
00:07:32 verbose #8296 > >     !\($'"!iter.collect::<Vec<_>>()"')
00:07:32 verbose #8297 > >
00:07:32 verbose #8298 > > instance iter_collect'' vec = fun (iter : into_iterator (t (u v))) =>
00:07:32 verbose #8299 > >     !\($'"!iter.collect::<Vec<_>>()"')
00:07:32 verbose #8300 > 00:07:32   debug #504 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e89cee4c90cd854496ab36da7581dc8a25bf59896e1b426b9db58ee30d22cb14/main.spi
00:07:33 verbose #8301 > >
00:07:33 verbose #8302 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:33 verbose #8303 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:33 verbose #8304 > > │ ### new_vec                                                                  │
00:07:33 verbose #8305 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:33 verbose #8306 > >
00:07:33 verbose #8307 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:33 verbose #8308 > > inl new_vec forall t. (items : list t) : vec t =
00:07:33 verbose #8309 > >     inl items =
00:07:33 verbose #8310 > >         (items, ("", 0i32))
00:07:33 verbose #8311 > >         ||> listm.foldBack fun (x : t) (acc, i) =>
00:07:33 verbose #8312 > >             inl x = join x
00:07:33 verbose #8313 > >             $'"!x"' +. (if i = 0 then "" else ", ") +. acc, i + 1
00:07:33 verbose #8314 > >         |> fst
00:07:33 verbose #8315 > >     !\($'"vec\![[" + !items + "]]"')
00:07:33 verbose #8316 > 00:07:32   debug #505 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/44627df4f293d8d607cd925fafcb964978907653d034fce5ea4cf26011fc4e1a/main.spi
00:07:33 verbose #8317 > >
00:07:33 verbose #8318 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:33 verbose #8319 > > //// test
00:07:33 verbose #8320 > > ///! rust
00:07:33 verbose #8321 > >
00:07:33 verbose #8322 > > types ()
00:07:33 verbose #8323 > > sm'.types ()
00:07:33 verbose #8324 > > [[ 0i32; 1 ]]
00:07:33 verbose #8325 > > |> new_vec
00:07:33 verbose #8326 > > |> sm'.format_debug'
00:07:33 verbose #8327 > > |> sm'.from_std_string
00:07:33 verbose #8328 > > |> _assert_eq "[[0, 1]]"
00:07:33 verbose #8329 > 00:07:32   debug #506 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4a06b7cbe0db290b03f0f7c482a24e82e24c4c4c99869a9bddac18c5a837ba5c/main.spi
00:07:37 verbose #8330 > >
00:07:37 verbose #8331 > > ╭─[ 3.83s - return value ]─────────────────────────────────────────────────────╮
00:07:37 verbose #8332 > > │ assert_eq / actual: "[0, 1]" / expected: "[0, 1]"                            │
00:07:37 verbose #8333 > > │                                                                              │
00:07:37 verbose #8334 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:37 verbose #8335 > >
00:07:37 verbose #8336 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:37 verbose #8337 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:37 verbose #8338 > > │ ## fsharp                                                                    │
00:07:37 verbose #8339 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:37 verbose #8340 > >
00:07:37 verbose #8341 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:37 verbose #8342 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:37 verbose #8343 > > │ ### average                                                                  │
00:07:37 verbose #8344 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:37 verbose #8345 > >
00:07:37 verbose #8346 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:37 verbose #8347 > > inl average forall el {number}. (a : a _ el) : el =
00:07:37 verbose #8348 > >     $'!a |> Array.average'
00:07:37 verbose #8349 > 00:07:36   debug #507 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/538491ddce40f8555bf9e7857208f079fdb145592a4c8b07b124fdcd48bc5541/main.spi
00:07:37 verbose #8350 > >
00:07:37 verbose #8351 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:37 verbose #8352 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:37 verbose #8353 > > │ ### distinct                                                                 │
00:07:37 verbose #8354 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:37 verbose #8355 > >
00:07:37 verbose #8356 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:37 verbose #8357 > > inl distinct forall dim el. (a : a dim el) : a dim el =
00:07:37 verbose #8358 > >     $'!a |> Array.distinct'
00:07:37 verbose #8359 > 00:07:37   debug #508 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/22fed529c00078ce44db6c187da1c8717bff3eb8693f7ea61957feb04a1d4726/main.spi
00:07:38 verbose #8360 > >
00:07:38 verbose #8361 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:38 verbose #8362 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:38 verbose #8363 > > │ ### skip                                                                     │
00:07:38 verbose #8364 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:38 verbose #8365 > >
00:07:38 verbose #8366 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:38 verbose #8367 > > inl skip forall dim el. (n : dim) (a : a dim el) : a dim el =
00:07:38 verbose #8368 > >     $'!a |> Array.skip !n '
00:07:38 verbose #8369 > 00:07:37   debug #509 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/29e2ac1763321dc362ef57b803b4a852c5dbc679866acf035513474d687f674f/main.spi
00:07:38 verbose #8370 > >
00:07:38 verbose #8371 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:38 verbose #8372 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:38 verbose #8373 > > │ ### skip_while                                                               │
00:07:38 verbose #8374 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:38 verbose #8375 > >
00:07:38 verbose #8376 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:38 verbose #8377 > > inl skip_while forall dim el. (fn : el -> bool) (a : a dim el) : a dim el =
00:07:38 verbose #8378 > >     $'!a |> Array.skipWhile !fn '
00:07:38 verbose #8379 > 00:07:37   debug #510 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/67bd6c69843eb18f27bc59133599018b0287ba59c54a9177dde5923d9b67c7f0/main.spi
00:07:38 verbose #8380 > >
00:07:38 verbose #8381 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:38 verbose #8382 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:38 verbose #8383 > > │ ### to_list'                                                                 │
00:07:38 verbose #8384 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:38 verbose #8385 > >
00:07:38 verbose #8386 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:38 verbose #8387 > > inl to_list' forall dim t. (items : a dim t) : listm'.list' t =
00:07:38 verbose #8388 > >     $'!items |> Array.toList'
00:07:39 verbose #8389 > 00:07:38   debug #511 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5011a290e10c97bbf26cac2483d68afc763bce79cfe7ad35d6656b5afc539688/main.spi
00:07:39 verbose #8390 > >
00:07:39 verbose #8391 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:39 verbose #8392 > > //// test
00:07:39 verbose #8393 > > ///! fsharp
00:07:39 verbose #8394 > > ////! cuda
00:07:39 verbose #8395 > > ///! rust
00:07:39 verbose #8396 > > ///! typescript
00:07:39 verbose #8397 > > ///! python
00:07:39 verbose #8398 > >
00:07:39 verbose #8399 > > a' ;[[ -3i32; 6 ]]
00:07:39 verbose #8400 > > |> to_list'
00:07:39 verbose #8401 > > |> listm'.unbox
00:07:39 verbose #8402 > > |> _assert_eq [[ -3; 6 ]]
00:07:39 verbose #8403 > 00:07:38   debug #512 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e73413ddfb718ac1d283083ea0ff898b8f8f877ae2dbe4ca3ae7673c7968a585/main.spi
00:07:43 verbose #8404 > >
00:07:43 verbose #8405 > > ╭─[ 4.50s - return value ]─────────────────────────────────────────────────────╮
00:07:43 verbose #8406 > > │ .rs output:                                                                  │
00:07:43 verbose #8407 > > │ assert_eq / actual: UH0_1(-3, UH0_1(6, UH0_0)) / expected: UH0_1(-3,         │
00:07:43 verbose #8408 > > │ UH0_1(6, UH0_0))                                                             │
00:07:43 verbose #8409 > > │                                                                              │
00:07:43 verbose #8410 > > │ .ts output:                                                                  │
00:07:43 verbose #8411 > > │ assert_eq / actual: UH0_1 (-3, UH0_1 (6, UH0_0)) / expected: UH0_1 (-3,      │
00:07:43 verbose #8412 > > │ UH0_1 (6, UH0_0))                                                            │
00:07:43 verbose #8413 > > │                                                                              │
00:07:43 verbose #8414 > > │ .py output:                                                                  │
00:07:43 verbose #8415 > > │ assert_eq / actual: UH0_1 (-3, UH0_1 (6, UH0_0)) / expected: UH0_1 (-3,      │
00:07:43 verbose #8416 > > │ UH0_1 (6, UH0_0))                                                            │
00:07:43 verbose #8417 > > │                                                                              │
00:07:43 verbose #8418 > > │                                                                              │
00:07:43 verbose #8419 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:43 verbose #8420 > >
00:07:43 verbose #8421 > > ╭─[ 4.50s - stdout ]───────────────────────────────────────────────────────────╮
00:07:43 verbose #8422 > > │ .fsx output:                                                                 │
00:07:43 verbose #8423 > > │ assert_eq / actual: UH0_1 (-3, UH0_1 (6, UH0_0)) / expected: UH0_1 (-3,      │
00:07:43 verbose #8424 > > │ UH0_1 (6, UH0_0))                                                            │
00:07:43 verbose #8425 > > │                                                                              │
00:07:43 verbose #8426 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:43 verbose #8427 > >
00:07:43 verbose #8428 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:43 verbose #8429 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:43 verbose #8430 > > │ ### parallel_map                                                             │
00:07:43 verbose #8431 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:43 verbose #8432 > >
00:07:43 verbose #8433 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:43 verbose #8434 > > inl parallel_map forall dim el el'. (fn : el -> el') (a : a dim el) : a dim el'
00:07:43 verbose #8435 > > =
00:07:43 verbose #8436 > >     $'!a |> Array.Parallel.map !fn '
00:07:44 verbose #8437 > 00:07:43   debug #513 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/985a0d8a4f651323e151d6d90f3a4ab6edbf8c7236273df3ebc9576dab862ec0/main.spi
00:07:44 verbose #8438 > >
00:07:44 verbose #8439 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:44 verbose #8440 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:44 verbose #8441 > > │ ### map'                                                                     │
00:07:44 verbose #8442 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:44 verbose #8443 > >
00:07:44 verbose #8444 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:44 verbose #8445 > > inl map' forall dim el el'. (fn : el -> el') (a : a dim el) : a dim el' =
00:07:44 verbose #8446 > >     $'!a |> Array.map !fn '
00:07:44 verbose #8447 > 00:07:43   debug #514 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8cf793c5301294f8cfd0ec4063f899ed04f1944df10c64126faa9ab6b2016092/main.spi
00:07:44 verbose #8448 > >
00:07:44 verbose #8449 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:44 verbose #8450 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:44 verbose #8451 > > │ ### sort_by                                                                  │
00:07:44 verbose #8452 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:44 verbose #8453 > >
00:07:44 verbose #8454 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:44 verbose #8455 > > inl sort_by forall dim el. (fn : el -> _) (a : a dim el) : a dim el =
00:07:44 verbose #8456 > >     $'!a |> Array.sortBy !fn '
00:07:44 verbose #8457 > 00:07:44   debug #515 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/097eb86803597b6cb7fd68ef486ca78d66f3fe26b3658bca971292c77b396d1d/main.spi
00:07:44 verbose #8458 > >
00:07:44 verbose #8459 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:44 verbose #8460 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:44 verbose #8461 > > │ ### sort                                                                     │
00:07:44 verbose #8462 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:44 verbose #8463 > >
00:07:44 verbose #8464 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:44 verbose #8465 > > inl sort forall dim el. (a : a dim el) : a dim el =
00:07:44 verbose #8466 > >     $'!a |> Array.sort'
00:07:45 verbose #8467 > 00:07:44   debug #516 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/552076eaa791377f529bd3ae1660df564e135d063aea37792144f7a2536d410a/main.spi
00:07:45 verbose #8468 > >
00:07:45 verbose #8469 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:45 verbose #8470 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:45 verbose #8471 > > │ ### sort_descending                                                          │
00:07:45 verbose #8472 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:45 verbose #8473 > >
00:07:45 verbose #8474 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:45 verbose #8475 > > inl sort_descending forall dim el. (a : a dim el) : a dim el =
00:07:45 verbose #8476 > >     $'!a |> Array.sortDescending'
00:07:45 verbose #8477 > 00:07:44   debug #517 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/627a27a38a80a0ff3a7f361b318d882aad6ebbaf6e77932654862177a8a5677f/main.spi
00:07:45 verbose #8478 > >
00:07:45 verbose #8479 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:45 verbose #8480 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:45 verbose #8481 > > │ ### transpose                                                                │
00:07:45 verbose #8482 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:45 verbose #8483 > >
00:07:45 verbose #8484 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:45 verbose #8485 > > inl transpose forall el. (a : array_base (array_base el)) : array_base
00:07:45 verbose #8486 > > (array_base el) =
00:07:45 verbose #8487 > >     $'!a |> Array.transpose'
00:07:46 verbose #8488 > 00:07:45   debug #518 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cf035f307e417dbfeb4032b0c0c65f027d9032791a8b3883961b6b05a733ff10/main.spi
00:07:46 verbose #8489 > >
00:07:46 verbose #8490 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:46 verbose #8491 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:46 verbose #8492 > > │ ### try_item                                                                 │
00:07:46 verbose #8493 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:46 verbose #8494 > >
00:07:46 verbose #8495 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:46 verbose #8496 > > inl try_item forall dim el. (i : i32) (a : a dim el) : option el =
00:07:46 verbose #8497 > >     $'!a |> Array.tryItem !i ' |> optionm'.unbox
00:07:46 verbose #8498 > 00:07:45   debug #519 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ac140cbee40fe97cee078caeca071fb15373a7c05a6557d1e92df8f6527c6606/main.spi
00:07:46 verbose #8499 > 00:01:55 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 81329 }
00:07:46 verbose #8500 > 00:01:55   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/am'.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/am'.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:07:48 verbose #8501 > 00:01:57 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/am'.dib.ipynb to html
00:07:48 verbose #8502 > 00:01:57 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:07:48 verbose #8503 > 00:01:57 verbose #7 !   validate(nb)
00:07:50 verbose #8504 > 00:01:59 verbose #8 ! [NbConvertApp] Writing 455207 bytes to c:\home\git\polyglot\lib\spiral\am'.dib.html
00:07:51 verbose #8505 > 00:01:59 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 637 }
00:07:51 verbose #8506 > 00:01:59   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 637 }
00:07:51 verbose #8507 > 00:01:59   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/am''.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/am''.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:07:52 verbose #8508 > 00:02:00 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:07:52 verbose #8509 > 00:02:00   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:07:52 verbose #8510 > 00:02:01   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 82025 }
00:07:52   debug #8511 runtime.execute_with_options_async / { exit_code = 0; output_length = 87377 }
00:07:52   debug #10 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path am'.dib --retries 3
00:07:52   debug #8512 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path crypto.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:07:52 verbose #8513 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "crypto.dib", "--retries", "3"])) }
00:07:52 verbose #8514 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/crypto.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/crypto.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/crypto.dib" --output-path "c:/home/git/polyglot/lib/spiral/crypto.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:07:54 verbose #8515 > >
00:07:54 verbose #8516 > > ── markdown ────────────────────────────────────────────────────────────────────
00:07:54 verbose #8517 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:07:54 verbose #8518 > > │ # crypto                                                                     │
00:07:54 verbose #8519 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:07:58 verbose #8520 > >
00:07:58 verbose #8521 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:07:58 verbose #8522 > > open rust_operators
00:07:59 verbose #8523 > 00:07:58   debug #520 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0d9bd8e5bb71a8e1d983506a46e54fb8c8e6cf2d0bd973135d4cdd580c5f6d39/main.spi
00:08:00 verbose #8524 > >
00:08:00 verbose #8525 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:00 verbose #8526 > > //// test
00:08:00 verbose #8527 > >
00:08:00 verbose #8528 > > open testing
00:08:00 verbose #8529 > > open file_system_operators
00:08:00 verbose #8530 > 00:07:59   debug #521 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4cdffa9020b44b13dcbfd5412142b3310ae394b1ea469f0d94b9677ab39d2e3f/main.spi
00:08:00 verbose #8531 > >
00:08:00 verbose #8532 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:00 verbose #8533 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:00 verbose #8534 > > │ ## types                                                                     │
00:08:00 verbose #8535 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:00 verbose #8536 > >
00:08:00 verbose #8537 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:00 verbose #8538 > > inl types () =
00:08:00 verbose #8539 > >     backend_switch {
00:08:00 verbose #8540 > >         Fsharp = fun () =>
00:08:00 verbose #8541 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:08:00 verbose #8542 > > Fable.Core.Emit(\"sha2::Sha256\")>]]\n#endif\ntype sha2_Sha256 = class end"
00:08:00 verbose #8543 > >         Python = fun () => ()
00:08:00 verbose #8544 > >     }
00:08:00 verbose #8545 > 00:07:59   debug #522 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4f1076a16b0f17d938bb5b703ba57273e270aac30fb8b5bb80d67749c24f7132/main.spi
00:08:00 verbose #8546 > >
00:08:00 verbose #8547 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:00 verbose #8548 > > inl types () =
00:08:00 verbose #8549 > >     sm'.types ()
00:08:00 verbose #8550 > >     am'.types ()
00:08:00 verbose #8551 > >     threading.types ()
00:08:00 verbose #8552 > >     rust.types ()
00:08:00 verbose #8553 > >     date_time.types ()
00:08:00 verbose #8554 > >     file_system.types ()
00:08:00 verbose #8555 > >     stream.types ()
00:08:00 verbose #8556 > >     runtime.types ()
00:08:00 verbose #8557 > >     types ()
00:08:01 verbose #8558 > 00:08:00   debug #523 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/31f7646bf9fcc2e347b77c97064d5362b18f670fe838a5237b829d2a009a6c2d/main.spi
00:08:01 verbose #8559 > >
00:08:01 verbose #8560 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:01 verbose #8561 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:01 verbose #8562 > > │ ## fsharp                                                                    │
00:08:01 verbose #8563 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:01 verbose #8564 > >
00:08:01 verbose #8565 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:01 verbose #8566 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:01 verbose #8567 > > │ ### sha256                                                                   │
00:08:01 verbose #8568 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:01 verbose #8569 > >
00:08:01 verbose #8570 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:01 verbose #8571 > > nominal sha256 = $'System.Security.Cryptography.SHA256'
00:08:01 verbose #8572 > >
00:08:01 verbose #8573 > > inl sha256 () : sha256 =
00:08:01 verbose #8574 > >     $'`sha256.Create' ()
00:08:01 verbose #8575 > 00:08:00   debug #524 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a6199c8304c981d2bc9b406d02f108820a0c6753ed8fc98af54926c96b222b2c/main.spi
00:08:01 verbose #8576 > >
00:08:01 verbose #8577 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:01 verbose #8578 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:01 verbose #8579 > > │ ### sha256_compute_hash                                                      │
00:08:01 verbose #8580 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:01 verbose #8581 > >
00:08:01 verbose #8582 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:01 verbose #8583 > > inl sha256_compute_hash (x : sha256) (data : a i32 u8) : a i32 u8 =
00:08:01 verbose #8584 > >     data |> $'!x.ComputeHash'
00:08:01 verbose #8585 > 00:08:01   debug #525 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d3332b448e1134e772e59d82e4f82283688d13799271ae1bfeed92f58ef6b718/main.spi
00:08:02 verbose #8586 > >
00:08:02 verbose #8587 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:02 verbose #8588 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:02 verbose #8589 > > │ ## rust                                                                      │
00:08:02 verbose #8590 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:02 verbose #8591 > >
00:08:02 verbose #8592 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:02 verbose #8593 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:02 verbose #8594 > > │ ### get_file_hash'                                                           │
00:08:02 verbose #8595 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:02 verbose #8596 > >
00:08:02 verbose #8597 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:02 verbose #8598 > > inl get_file_hash' (path : string) : result string string =
00:08:02 verbose #8599 > >     inl path = path |> file_system.normalize_path
00:08:02 verbose #8600 > >     inl exit_code, result =
00:08:02 verbose #8601 > >         runtime.execution_options fun x => { x with
00:08:02 verbose #8602 > >             command = $'$"pwsh -c \\\"(Get-FileHash \'{!path}\' -Algorithm
00:08:02 verbose #8603 > > SHA256).Hash\\\""'
00:08:02 verbose #8604 > >         }
00:08:02 verbose #8605 > >         |> runtime.execute_with_options
00:08:02 verbose #8606 > >     if exit_code = 0
00:08:02 verbose #8607 > >     then result |> sm'.to_lower |> Ok
00:08:02 verbose #8608 > >     else result |> Error
00:08:02 verbose #8609 > 00:08:01   debug #526 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a9bd56871ee76084c38188634ed6a57f8df8f180a2a75d637161fa54f89a7776/main.spi
00:08:02 verbose #8610 > >
00:08:02 verbose #8611 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:02 verbose #8612 > > //// test
00:08:02 verbose #8613 > >
00:08:02 verbose #8614 > > types ()
00:08:02 verbose #8615 > >
00:08:02 verbose #8616 > > inl file_name = "test.txt"
00:08:02 verbose #8617 > > inl text = "\n"
00:08:02 verbose #8618 > >
00:08:02 verbose #8619 > > inl temp_dir, disposable =
00:08:02 verbose #8620 > >     (file_name, text)
00:08:02 verbose #8621 > >     |> sm'.format_debug
00:08:02 verbose #8622 > >     |> crypto.hash_text
00:08:02 verbose #8623 > >     |> file_system.create_temp_dir'
00:08:02 verbose #8624 > > disposable |> use |> ignore
00:08:02 verbose #8625 > > inl path = temp_dir </> file_name
00:08:02 verbose #8626 > > text |> file_system.write_all_text_async path |> async.run_synchronously
00:08:02 verbose #8627 > > path
00:08:02 verbose #8628 > > |> get_file_hash'
00:08:02 verbose #8629 > > |> resultm.get
00:08:02 verbose #8630 > > |> _assert_eq "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b"
00:08:02 verbose #8631 > 00:08:01   debug #527 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/795bb970ea2198929ad975f316b68cd12ee70b7d82dbe50230941daa3e249b59/main.spi
00:08:10 verbose #8632 > >
00:08:10 verbose #8633 > > ╭─[ 8.02s - stdout ]───────────────────────────────────────────────────────────╮
00:08:10 verbose #8634 > > │ 00:00:00   debug #1 runtime.execute_with_options_async / { options = {  │
00:08:10 verbose #8635 > > │ command = pwsh -c "(Get-FileHash                                             │
00:08:10 verbose #8636 > > │ 'c:/Users/i574n/AppData/Local/Temp/!create_temp_path_/dotnet-repl/9ca8b18d-e │
00:08:10 verbose #8637 > > │ e77-4684-ad12-21e1354945fc/test.txt' -Algorithm SHA256).Hash";               │
00:08:10 verbose #8638 > > │ cancellation_token = None; environment_variables = [||]; on_line = None;     │
00:08:10 verbose #8639 > > │ stdin = None; trace = true; working_directory = None } }                     │
00:08:10 verbose #8640 > > │ 00:00:00 verbose #2 >                                                   │
00:08:10 verbose #8641 > > │ 01BA4719C80B6FE911B091A7C05124B64EEECE964E09C058EF8F9805DACA546B             │
00:08:10 verbose #8642 > > │ 00:00:00   debug #3 runtime.execute_with_options_async / { exit_code =  │
00:08:10 verbose #8643 > > │ 0; output_length = 64 }                                                      │
00:08:10 verbose #8644 > > │ assert_eq / actual:                                                          │
00:08:10 verbose #8645 > > │ "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b" /         │
00:08:10 verbose #8646 > > │ expected: "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b" │
00:08:10 verbose #8647 > > │                                                                              │
00:08:10 verbose #8648 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:10 verbose #8649 > >
00:08:10 verbose #8650 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:10 verbose #8651 > > //// test
00:08:10 verbose #8652 > > ///! rust -d chrono encoding_rs encoding_rs_io regex sha2
00:08:10 verbose #8653 > >
00:08:10 verbose #8654 > > types ()
00:08:10 verbose #8655 > >
00:08:10 verbose #8656 > > inl file_name = "test.txt"
00:08:10 verbose #8657 > > inl text = "\n"
00:08:10 verbose #8658 > >
00:08:10 verbose #8659 > > inl temp_dir, disposable =
00:08:10 verbose #8660 > >     (file_name, text)
00:08:10 verbose #8661 > >     |> sm'.format_debug
00:08:10 verbose #8662 > >     |> crypto.hash_text
00:08:10 verbose #8663 > >     |> file_system.create_temp_dir'
00:08:10 verbose #8664 > > inl path = temp_dir </> file_name
00:08:10 verbose #8665 > > text |> file_system.write_all_text path
00:08:10 verbose #8666 > > path
00:08:10 verbose #8667 > > |> get_file_hash'
00:08:10 verbose #8668 > > |> resultm.get
00:08:10 verbose #8669 > > |> _assert_eq "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b"
00:08:10 verbose #8670 > > disposable |> use |> ignore
00:08:10 verbose #8671 > 00:08:09   debug #528 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/285942afa2061ccd8ca6c4ab11714fff7fa401ad4c0910c3a79cbd6d89754c2c/main.spi
00:08:17 verbose #8672 > >
00:08:17 verbose #8673 > > ╭─[ 7.52s - return value ]─────────────────────────────────────────────────────╮
00:08:17 verbose #8674 > > │ 00:00:00 verbose #1 file_system.create_dir / { dir =                   │
00:08:17 verbose #8675 > > │ C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\spiral_builder_d653119d │
00:08:17 verbose #8676 > > │ edaa9d53ef1156bfa4cf7dc2a00a50114107a414341c5e2170215874\ba0aa16a-6c5a-be3f- │
00:08:17 verbose #8677 > > │ b526-70110c680e36 }                                                          │
00:08:17 verbose #8678 > > │ 00:00:00   debug #2 runtime.execute_with_options / { file_name = pwsh; │
00:08:17 verbose #8679 > > │ arguments = ["-c", "(Get-FileHash                                            │
00:08:17 verbose #8680 > > │ 'c:/Users/i574n/AppData/Local/Temp/!create_temp_path_/spiral_builder_d653119 │
00:08:17 verbose #8681 > > │ dedaa9d53ef1156bfa4cf7dc2a00a50114107a414341c5e2170215874/ba0aa16a-6c5a-be3f │
00:08:17 verbose #8682 > > │ -b526-70110c680e36/test.txt' -Algorithm SHA256).Hash"]; options = { command  │
00:08:17 verbose #8683 > > │ = pwsh -c "(Get-FileHash                                                     │
00:08:17 verbose #8684 > > │ 'c:/Users/i574n/AppData/Local/Temp/!create_temp_path_/spiral_builder_d653119 │
00:08:17 verbose #8685 > > │ dedaa9d53ef1156bfa4cf7dc2a00a50114107a414341c5e2170215874/ba0aa16a-6c5a-be3f │
00:08:17 verbose #8686 > > │ -b526-70110c680e36/test.txt' -Algorithm SHA256).Hash"; cancellation_token =  │
00:08:17 verbose #8687 > > │ None; environment_variables = Array(MutCell([])); on_line = None; stdin =    │
00:08:17 verbose #8688 > > │ None; trace = true; working_directory = None } }                             │
00:08:17 verbose #8689 > > │ 00:00:00 verbose #3 >                                                  │
00:08:17 verbose #8690 > > │ 01BA4719C80B6FE911B091A7C05124B64EEECE964E09C058EF8F9805DACA546B             │
00:08:17 verbose #8691 > > │ 00:00:00 verbose #4 runtime.execute_with_options / result / {          │
00:08:17 verbose #8692 > > │ exit_code = 0; std_trace_length = 64 }                                       │
00:08:17 verbose #8693 > > │ assert_eq / actual:                                                          │
00:08:17 verbose #8694 > > │ "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b" /         │
00:08:17 verbose #8695 > > │ expected: "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b" │
00:08:17 verbose #8696 > > │                                                                              │
00:08:17 verbose #8697 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:17 verbose #8698 > >
00:08:17 verbose #8699 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:17 verbose #8700 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:17 verbose #8701 > > │ ### sha256'                                                                  │
00:08:17 verbose #8702 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:17 verbose #8703 > >
00:08:17 verbose #8704 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:17 verbose #8705 > > nominal sha256' = $'sha2_Sha256'
00:08:18 verbose #8706 > 00:08:17   debug #529 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/032d4a3f0558ef7ac193ffe1e6952bcbc6bb1dbc955a8483c8537ebaebaf5c38/main.spi
00:08:18 verbose #8707 > >
00:08:18 verbose #8708 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:18 verbose #8709 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:18 verbose #8710 > > │ ### new_sha256                                                               │
00:08:18 verbose #8711 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:18 verbose #8712 > >
00:08:18 verbose #8713 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:18 verbose #8714 > > inl new_sha256 () : sha256' =
00:08:18 verbose #8715 > >     !\($'"let result : sha2::Sha256 = sha2::Digest::new()"')
00:08:18 verbose #8716 > >     !\($'"result"')
00:08:18 verbose #8717 > 00:08:17   debug #530 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/91dc37ce531a1ac3c67bdd8babdb5ec3d295761c95667189b806f1b585028af5/main.spi
00:08:18 verbose #8718 > >
00:08:18 verbose #8719 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:18 verbose #8720 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:18 verbose #8721 > > │ ### hasher_update                                                            │
00:08:18 verbose #8722 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:18 verbose #8723 > >
00:08:18 verbose #8724 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:18 verbose #8725 > > inl hasher_update forall el dim. (slice : rust.ref' (am'.slice' el dim)) (hasher
00:08:18 verbose #8726 > > : sha256') : () =
00:08:18 verbose #8727 > >     !\($'"sha2::Digest::update(&mut !hasher, !slice)"')
00:08:18 verbose #8728 > 00:08:18   debug #531 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2da8aa6dd37cacbc027f415308b9ba4005b0a2878097936badcc6089aa22841f/main.spi
00:08:18 verbose #8729 > >
00:08:18 verbose #8730 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:18 verbose #8731 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:18 verbose #8732 > > │ ### hasher_finalize                                                          │
00:08:18 verbose #8733 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:18 verbose #8734 > >
00:08:18 verbose #8735 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:18 verbose #8736 > > inl hasher_finalize (hasher : sha256') : rust.ref' (am'.slice u8) =
00:08:18 verbose #8737 > >     !\($'"&sha2::Digest::finalize(!hasher)"')
00:08:19 verbose #8738 > 00:08:18   debug #532 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/839814cce5df6215bbbc167077d49e458eb8604200e044e1e80ec8db030b733c/main.spi
00:08:19 verbose #8739 > >
00:08:19 verbose #8740 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:19 verbose #8741 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:19 verbose #8742 > > │ ### hash_read                                                                │
00:08:19 verbose #8743 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:19 verbose #8744 > >
00:08:19 verbose #8745 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:19 verbose #8746 > > inl hash_read data : resultm.result' string stream.io_error =
00:08:19 verbose #8747 > >     inl reader = data |> stream.new_buf_reader
00:08:19 verbose #8748 > >     (!\($'"true; let mut !reader = !reader"') : bool) |> ignore
00:08:19 verbose #8749 > >     inl hasher = new_sha256 ()
00:08:19 verbose #8750 > >     (!\($'"true; let mut !hasher = !hasher"') : bool) |> ignore
00:08:19 verbose #8751 > >
00:08:19 verbose #8752 > >     real
00:08:19 verbose #8753 > >         inl size = 1024
00:08:19 verbose #8754 > >         inl zero = convert `i32 `unativeint 0
00:08:19 verbose #8755 > >         inl buffer = am'.new_slice `u8 `@size 0u8
00:08:19 verbose #8756 > >
00:08:19 verbose #8757 > >         rust.loop 2 fun () =>
00:08:19 verbose #8758 > >             inl count = stream.buf_reader_read `u8 `@size buffer reader
00:08:19 verbose #8759 > >             inl count = resultm.unwrap' `unativeint `(stream.io_error) count
00:08:19 verbose #8760 > >
00:08:19 verbose #8761 > >             if (=.) `unativeint count zero then rust.break ()
00:08:19 verbose #8762 > >
00:08:19 verbose #8763 > >             hasher_update `u8 `@size
00:08:19 verbose #8764 > >                 (
00:08:19 verbose #8765 > >                     am'.slice_range `u8 `@size
00:08:19 verbose #8766 > >                         (am'.Start `unativeint zero)
00:08:19 verbose #8767 > >                         (am'.End `unativeint ((fun _ => count) : unativeint ->
00:08:19 verbose #8768 > > unativeint))
00:08:19 verbose #8769 > >                         buffer
00:08:19 verbose #8770 > >                 )
00:08:19 verbose #8771 > >                 hasher
00:08:19 verbose #8772 > >
00:08:19 verbose #8773 > >     hasher
00:08:19 verbose #8774 > >     |> hasher_finalize
00:08:19 verbose #8775 > >     |> am'.slice_to_vec
00:08:19 verbose #8776 > >     |> am'.vec_map (sm'.format_hex' >> sm'.from_std_string)
00:08:19 verbose #8777 > >     |> am'.from_vec
00:08:19 verbose #8778 > >     |> fun x => x : _ i32 _
00:08:19 verbose #8779 > >     |> seq.of_array'
00:08:19 verbose #8780 > >     |> sm'.concat ""
00:08:19 verbose #8781 > >     |> Ok
00:08:19 verbose #8782 > >     |> resultm.box
00:08:19 verbose #8783 > 00:08:18   debug #533 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/18ea8586e0c91c2b9e6cc51e2b2d73366d477172923c8aa781a472d5d9aeb21d/main.spi
00:08:19 verbose #8784 > >
00:08:19 verbose #8785 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:19 verbose #8786 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:19 verbose #8787 > > │ ### get_file_hash                                                            │
00:08:19 verbose #8788 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:19 verbose #8789 > >
00:08:19 verbose #8790 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:19 verbose #8791 > > inl get_file_hash (path : string) =
00:08:19 verbose #8792 > >     inl path = path |> file_system.normalize_path
00:08:19 verbose #8793 > >     inl file = path |> file_system.file_open |> resultm.unwrap'
00:08:19 verbose #8794 > >     inl reader = file |> stream.new_buf_reader
00:08:19 verbose #8795 > >     reader
00:08:19 verbose #8796 > >     |> hash_read
00:08:19 verbose #8797 > 00:08:19   debug #534 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e29953e0d1c56aa87a20b35c13cff0f08a2786c8361154accdfbb8aee3ee7a73/main.spi
00:08:20 verbose #8798 > >
00:08:20 verbose #8799 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:20 verbose #8800 > > //// test
00:08:20 verbose #8801 > > ///! rust -d chrono regex sha2
00:08:20 verbose #8802 > >
00:08:20 verbose #8803 > > types ()
00:08:20 verbose #8804 > >
00:08:20 verbose #8805 > > inl file_name = join "test.txt"
00:08:20 verbose #8806 > > inl text = "\n"
00:08:20 verbose #8807 > >
00:08:20 verbose #8808 > > inl temp_dir, disposable =
00:08:20 verbose #8809 > >     (file_name, text)
00:08:20 verbose #8810 > >     |> sm'.format_debug
00:08:20 verbose #8811 > >     |> crypto.hash_text
00:08:20 verbose #8812 > >     |> file_system.create_temp_dir'
00:08:20 verbose #8813 > >
00:08:20 verbose #8814 > > inl path = temp_dir </> file_name
00:08:20 verbose #8815 > > text |> file_system.write_all_text path
00:08:20 verbose #8816 > >
00:08:20 verbose #8817 > > path
00:08:20 verbose #8818 > > |> get_file_hash
00:08:20 verbose #8819 > > |> resultm.unwrap'
00:08:20 verbose #8820 > > |> _assert_eq "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b"
00:08:20 verbose #8821 > > disposable |> use |> ignore
00:08:20 verbose #8822 > 00:08:19   debug #535 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c34208717cdd940b3bec6d20fee5327eff7a9d919d49d91a1ecb3c3503b330fc/main.spi
00:08:24 verbose #8823 > >
00:08:24 verbose #8824 > > ╭─[ 4.51s - return value ]─────────────────────────────────────────────────────╮
00:08:24 verbose #8825 > > │ 00:00:00 verbose #1 file_system.create_dir / { dir =                   │
00:08:24 verbose #8826 > > │ C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\spiral_builder_1354857f │
00:08:24 verbose #8827 > > │ 820294a3ce0176a2460cf78b1f48c57621db60eeceebcf2ae796ae2a\ba0aa16a-6c5a-be3f- │
00:08:24 verbose #8828 > > │ b526-70110c680e36 }                                                          │
00:08:24 verbose #8829 > > │ assert_eq / actual:                                                          │
00:08:24 verbose #8830 > > │ "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b" /         │
00:08:24 verbose #8831 > > │ expected: "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b" │
00:08:24 verbose #8832 > > │                                                                              │
00:08:24 verbose #8833 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:24 verbose #8834 > >
00:08:24 verbose #8835 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:24 verbose #8836 > > //// test
00:08:24 verbose #8837 > > ///! rust -d chrono regex sha2
00:08:24 verbose #8838 > >
00:08:24 verbose #8839 > > types ()
00:08:24 verbose #8840 > >
00:08:24 verbose #8841 > > inl file_name = join "test.txt"
00:08:24 verbose #8842 > > inl text = ""
00:08:24 verbose #8843 > >
00:08:24 verbose #8844 > > inl temp_dir, disposable =
00:08:24 verbose #8845 > >     (file_name, text)
00:08:24 verbose #8846 > >     |> sm'.format_debug
00:08:24 verbose #8847 > >     |> crypto.hash_text
00:08:24 verbose #8848 > >     |> file_system.create_temp_dir'
00:08:24 verbose #8849 > >
00:08:24 verbose #8850 > > inl path = temp_dir </> file_name
00:08:24 verbose #8851 > > text |> file_system.write_all_text path
00:08:24 verbose #8852 > > path
00:08:24 verbose #8853 > > |> get_file_hash
00:08:24 verbose #8854 > > |> resultm.unwrap'
00:08:24 verbose #8855 > > |> _assert_eq "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
00:08:24 verbose #8856 > > disposable |> use |> ignore
00:08:24 verbose #8857 > 00:08:24   debug #536 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/25b6be45fa7226a2d8061a5e8f940c85a1fce6996faf99a94589667d4f33ec72/main.spi
00:08:29 verbose #8858 > >
00:08:29 verbose #8859 > > ╭─[ 4.40s - return value ]─────────────────────────────────────────────────────╮
00:08:29 verbose #8860 > > │ 00:00:00 verbose #1 file_system.create_dir / { dir =                   │
00:08:29 verbose #8861 > > │ C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\spiral_builder_3b3b7f66 │
00:08:29 verbose #8862 > > │ 34c2a406cc3600d6bdf8f9a29a460c054c5d08aa4bdfdd16cba9ce51\c0e26dac-4cb1-4b09- │
00:08:29 verbose #8863 > > │ be07-ff616700f056 }                                                          │
00:08:29 verbose #8864 > > │ assert_eq / actual:                                                          │
00:08:29 verbose #8865 > > │ "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" /         │
00:08:29 verbose #8866 > > │ expected: "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" │
00:08:29 verbose #8867 > > │                                                                              │
00:08:29 verbose #8868 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:29 verbose #8869 > >
00:08:29 verbose #8870 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:29 verbose #8871 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:29 verbose #8872 > > │ ## typescript                                                                │
00:08:29 verbose #8873 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:29 verbose #8874 > >
00:08:29 verbose #8875 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:29 verbose #8876 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:29 verbose #8877 > > │ ### create_hash                                                              │
00:08:29 verbose #8878 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:29 verbose #8879 > >
00:08:29 verbose #8880 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:29 verbose #8881 > > inl create_hash (x : string) : any =
00:08:29 verbose #8882 > >     open typescript_operators
00:08:29 verbose #8883 > >     global "type ICryptoCreateHash = abstract createHash: x: string -> obj"
00:08:29 verbose #8884 > >     inl crypto : $'ICryptoCreateHash' = typescript.import_all "crypto"
00:08:29 verbose #8885 > >     !\\(x, $'"!crypto.createHash($0)"')
00:08:29 verbose #8886 > 00:08:28   debug #537 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dce7dfc6259534a63177872fe4be613e05420f1ad2e9fc196050ecbabe55fee9/main.spi
00:08:29 verbose #8887 > >
00:08:29 verbose #8888 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:29 verbose #8889 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:29 verbose #8890 > > │ ### hash_update                                                              │
00:08:29 verbose #8891 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:29 verbose #8892 > >
00:08:29 verbose #8893 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:29 verbose #8894 > > inl hash_update (s : string) (x : any) : any =
00:08:29 verbose #8895 > >     open typescript_operators
00:08:29 verbose #8896 > >     !\\((x, s), $'"$0.update($1, \'utf8\')"')
00:08:29 verbose #8897 > 00:08:28   debug #538 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5d0c86f76d05621a2e4cd4b06e5653a7eb6dcdc77d4db9d032c68374a3693871/main.spi
00:08:29 verbose #8898 > >
00:08:29 verbose #8899 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:29 verbose #8900 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:29 verbose #8901 > > │ ### hash_digest                                                              │
00:08:29 verbose #8902 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:29 verbose #8903 > >
00:08:29 verbose #8904 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:29 verbose #8905 > > inl hash_digest (s : string) (x : any) : string =
00:08:29 verbose #8906 > >     open typescript_operators
00:08:29 verbose #8907 > >     !\\((x, s), $'"$0.digest($1)"')
00:08:29 verbose #8908 > 00:08:29   debug #539 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2e86b7a0ea47fc3d6839e2184474a0653f042fad563de7a9872c217b7503e991/main.spi
00:08:30 verbose #8909 > >
00:08:30 verbose #8910 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:30 verbose #8911 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:30 verbose #8912 > > │ ## python                                                                    │
00:08:30 verbose #8913 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:30 verbose #8914 > >
00:08:30 verbose #8915 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:30 verbose #8916 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:30 verbose #8917 > > │ ### py_sha256                                                                │
00:08:30 verbose #8918 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:30 verbose #8919 > >
00:08:30 verbose #8920 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:30 verbose #8921 > > nominal py_sha256 = any
00:08:30 verbose #8922 > 00:08:29   debug #540 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/44083515fb7629cd02c68ca179eec883a27f9172abd4a4706cbca3f63ef9b684/main.spi
00:08:30 verbose #8923 > >
00:08:30 verbose #8924 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:30 verbose #8925 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:30 verbose #8926 > > │ ### hashlib_sha256                                                           │
00:08:30 verbose #8927 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:30 verbose #8928 > >
00:08:30 verbose #8929 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:30 verbose #8930 > > inl hashlib_sha256 () : py_sha256 =
00:08:30 verbose #8931 > >     backend_switch {
00:08:30 verbose #8932 > >         Fsharp = fun () =>
00:08:30 verbose #8933 > >             open python_operators
00:08:30 verbose #8934 > >             global "type IHashlibSha256 = abstract sha256: x: unit -> obj"
00:08:30 verbose #8935 > >             inl hashlib : $'IHashlibSha256' = python.import_all "hashlib"
00:08:30 verbose #8936 > >             !\($'"!hashlib.sha256()"') : py_sha256
00:08:30 verbose #8937 > >         Python = fun () =>
00:08:30 verbose #8938 > >             global "import hashlib"
00:08:30 verbose #8939 > >             $'hashlib.sha256()' : py_sha256
00:08:30 verbose #8940 > >     }
00:08:30 verbose #8941 > 00:08:30   debug #541 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a3282dd33d0eae11abb921f8aa36248bd7c481c063eb250bbea566b930179f5b/main.spi
00:08:30 verbose #8942 > >
00:08:30 verbose #8943 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:30 verbose #8944 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:30 verbose #8945 > > │ ### sha256_update                                                            │
00:08:30 verbose #8946 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:30 verbose #8947 > >
00:08:30 verbose #8948 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:30 verbose #8949 > > inl sha256_update (x : string) (sha256 : py_sha256) : py_sha256 =
00:08:30 verbose #8950 > >     backend_switch {
00:08:30 verbose #8951 > >         Fsharp = fun () =>
00:08:30 verbose #8952 > >             open python_operators
00:08:30 verbose #8953 > >             !\\(x, $'"!sha256.update($0)"') : ()
00:08:30 verbose #8954 > >         Python = fun () =>
00:08:30 verbose #8955 > >             $'!sha256.update(!x)' : ()
00:08:30 verbose #8956 > >     }
00:08:30 verbose #8957 > >     sha256
00:08:31 verbose #8958 > 00:08:30   debug #542 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8d9b44b53531b829e3af731e0d83fd925c1fad4873d42bd9a7fe682e7d1a7fae/main.spi
00:08:31 verbose #8959 > >
00:08:31 verbose #8960 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:31 verbose #8961 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:31 verbose #8962 > > │ ### sha256_hexdigest                                                         │
00:08:31 verbose #8963 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:31 verbose #8964 > >
00:08:31 verbose #8965 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:31 verbose #8966 > > inl sha256_hexdigest (sha256 : py_sha256) : string =
00:08:31 verbose #8967 > >     backend_switch {
00:08:31 verbose #8968 > >         Fsharp = fun () =>
00:08:31 verbose #8969 > >             open python_operators
00:08:31 verbose #8970 > >             !\($'"!sha256.hexdigest()"') : string
00:08:31 verbose #8971 > >         Python = fun () =>
00:08:31 verbose #8972 > >             $'!sha256.hexdigest()' : string
00:08:31 verbose #8973 > >     }
00:08:31 verbose #8974 > 00:08:30   debug #543 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a2820dd9fc4ada893d2f399c3e706c7cd2830bac60f13be5a4bff5bf4675e89f/main.spi
00:08:31 verbose #8975 > >
00:08:31 verbose #8976 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:31 verbose #8977 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:31 verbose #8978 > > │ ## crypto                                                                    │
00:08:31 verbose #8979 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:31 verbose #8980 > >
00:08:31 verbose #8981 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:31 verbose #8982 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:31 verbose #8983 > > │ ### hash_text                                                                │
00:08:31 verbose #8984 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:31 verbose #8985 > >
00:08:31 verbose #8986 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:31 verbose #8987 > > let hash_text (~input : string) =
00:08:31 verbose #8988 > >     run_target function
00:08:31 verbose #8989 > >         | Fsharp (Native) => fun () =>
00:08:31 verbose #8990 > >             inl sha256 = sha256 () |> use
00:08:31 verbose #8991 > >             input
00:08:31 verbose #8992 > >             |> sm'.utf8_get_bytes
00:08:31 verbose #8993 > >             |> sha256_compute_hash sha256
00:08:31 verbose #8994 > >             |> am.map (sm'.byte_to_string "x2")
00:08:31 verbose #8995 > >             |> seq.of_array'
00:08:31 verbose #8996 > >             |> sm'.concat (join "")
00:08:31 verbose #8997 > >         | TypeScript (Native) => fun () =>
00:08:31 verbose #8998 > >             create_hash "sha256"
00:08:31 verbose #8999 > >             |> hash_update input
00:08:31 verbose #9000 > >             |> hash_digest "hex"
00:08:31 verbose #9001 > >         | Rust (Native) => fun () =>
00:08:31 verbose #9002 > >             input
00:08:31 verbose #9003 > >             |> sm'.utf8_get_bytes
00:08:31 verbose #9004 > >             |> fun (a x) => x
00:08:31 verbose #9005 > >             |> am'.to_vec
00:08:31 verbose #9006 > >             |> stream.new_cursor
00:08:31 verbose #9007 > >             |> hash_read
00:08:31 verbose #9008 > >             |> resultm.unwrap'
00:08:31 verbose #9009 > >         | Python (Native) | Cuda (Native) => fun () =>
00:08:31 verbose #9010 > >             hashlib_sha256 ()
00:08:31 verbose #9011 > >             |> sha256_update (input |> sm'.encode_utf8)
00:08:31 verbose #9012 > >             |> sha256_hexdigest
00:08:31 verbose #9013 > >         | _ => fun () => null ()
00:08:31 verbose #9014 > 00:08:31   debug #544 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e74fc712e64395b98f4ab00b52a6172705d5a61348224dd144680025f23741cc/main.spi
00:08:32 verbose #9015 > >
00:08:32 verbose #9016 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:32 verbose #9017 > > //// test
00:08:32 verbose #9018 > > ///! fsharp
00:08:32 verbose #9019 > > ///! cuda
00:08:32 verbose #9020 > > ///! rust -d sha2
00:08:32 verbose #9021 > > ///! typescript
00:08:32 verbose #9022 > > ///! python
00:08:32 verbose #9023 > >
00:08:32 verbose #9024 > > types ()
00:08:32 verbose #9025 > >
00:08:32 verbose #9026 > > "\n"
00:08:32 verbose #9027 > > |> hash_text
00:08:32 verbose #9028 > > |> _assert_eq "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b"
00:08:32 verbose #9029 > >
00:08:32 verbose #9030 > > ""
00:08:32 verbose #9031 > > |> hash_text
00:08:32 verbose #9032 > > |> _assert_eq "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
00:08:32 verbose #9033 > 00:08:31   debug #545 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5e865ff6b5170650a9401f79e4f7eb0144f58ffab54a4a82bccc151915e98e03/main.spi
00:08:32 verbose #9034 > 00:08:31   debug #546 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bd20c7907d55fe8ef907adfb286d6c68ef3af00d982e2d419acbb56d01845764/main.spi
00:08:37 verbose #9035 > >
00:08:37 verbose #9036 > > ╭─[ 5.02s - return value ]─────────────────────────────────────────────────────╮
00:08:37 verbose #9037 > > │                                                                              │
00:08:37 verbose #9038 > > │ .py output (Cuda):                                                           │
00:08:37 verbose #9039 > > │ assert_eq / actual:                                                          │
00:08:37 verbose #9040 > > │ 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b / expected: │
00:08:37 verbose #9041 > > │ 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b             │
00:08:37 verbose #9042 > > │ assert_eq / actual:                                                          │
00:08:37 verbose #9043 > > │ e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 / expected: │
00:08:37 verbose #9044 > > │ e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855             │
00:08:37 verbose #9045 > > │                                                                              │
00:08:37 verbose #9046 > > │                                                                              │
00:08:37 verbose #9047 > > │ .rs output:                                                                  │
00:08:37 verbose #9048 > > │ assert_eq / actual:                                                          │
00:08:37 verbose #9049 > > │ "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b" /         │
00:08:37 verbose #9050 > > │ expected: "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b" │
00:08:37 verbose #9051 > > │ assert_eq / actual:                                                          │
00:08:37 verbose #9052 > > │ "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" /         │
00:08:37 verbose #9053 > > │ expected: "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" │
00:08:37 verbose #9054 > > │                                                                              │
00:08:37 verbose #9055 > > │                                                                              │
00:08:37 verbose #9056 > > │ .ts output:                                                                  │
00:08:37 verbose #9057 > > │ assert_eq / actual:                                                          │
00:08:37 verbose #9058 > > │ 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b / expected: │
00:08:37 verbose #9059 > > │ 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b             │
00:08:37 verbose #9060 > > │ assert_eq / actual:                                                          │
00:08:37 verbose #9061 > > │ e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 / expected: │
00:08:37 verbose #9062 > > │ e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855             │
00:08:37 verbose #9063 > > │                                                                              │
00:08:37 verbose #9064 > > │                                                                              │
00:08:37 verbose #9065 > > │ .py output:                                                                  │
00:08:37 verbose #9066 > > │ assert_eq / actual:                                                          │
00:08:37 verbose #9067 > > │ 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b / expected: │
00:08:37 verbose #9068 > > │ 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b             │
00:08:37 verbose #9069 > > │ assert_eq / actual:                                                          │
00:08:37 verbose #9070 > > │ e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 / expected: │
00:08:37 verbose #9071 > > │ e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855             │
00:08:37 verbose #9072 > > │                                                                              │
00:08:37 verbose #9073 > > │                                                                              │
00:08:37 verbose #9074 > > │                                                                              │
00:08:37 verbose #9075 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:37 verbose #9076 > >
00:08:37 verbose #9077 > > ╭─[ 5.02s - stdout ]───────────────────────────────────────────────────────────╮
00:08:37 verbose #9078 > > │ .fsx output:                                                                 │
00:08:37 verbose #9079 > > │ assert_eq / actual:                                                          │
00:08:37 verbose #9080 > > │ "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b" /         │
00:08:37 verbose #9081 > > │ expected: "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b" │
00:08:37 verbose #9082 > > │ assert_eq / actual:                                                          │
00:08:37 verbose #9083 > > │ "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" /         │
00:08:37 verbose #9084 > > │ expected: "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" │
00:08:37 verbose #9085 > > │                                                                              │
00:08:37 verbose #9086 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:37 verbose #9087 > >
00:08:37 verbose #9088 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:37 verbose #9089 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:37 verbose #9090 > > │ ### hash_to_port                                                             │
00:08:37 verbose #9091 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:37 verbose #9092 > >
00:08:37 verbose #9093 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:37 verbose #9094 > > inl hash_to_port (text : string) : u16 =
00:08:37 verbose #9095 > >     inl first_letter_code = text |> sm'.index 0i32 |> i32
00:08:37 verbose #9096 > >     inl hash_part = text |> sm'.slice 0i32 7
00:08:37 verbose #9097 > >     inl combined_value = convert_i32_base 16 hash_part + first_letter_code |>
00:08:37 verbose #9098 > > u16
00:08:37 verbose #9099 > >     trace Verbose
00:08:37 verbose #9100 > >         fun () => "crypto.hash_to_port"
00:08:37 verbose #9101 > >         fun () => { first_letter_code hash_part combined_value }
00:08:37 verbose #9102 > >     combined_value % 48128 + 1024
00:08:37 verbose #9103 > 00:08:36   debug #547 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e990fa13dac76b1308d5b9d8e3b5da3aae783a9f34b0e703b17a23431a7b93dc/main.spi
00:08:37 verbose #9104 > >
00:08:37 verbose #9105 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:37 verbose #9106 > > //// test
00:08:37 verbose #9107 > > ///! fsharp
00:08:37 verbose #9108 > > ////! cuda // Only stack allocated primitive types (i8,i16,i32,i64 and
00:08:37 verbose #9109 > > u8,u16,u32,u64 and f32,f64 and bool) are allowed in CuPy arrays.
00:08:37 verbose #9110 > > ///! rust -d sha2
00:08:37 verbose #9111 > > ///! typescript
00:08:37 verbose #9112 > > ///! python
00:08:37 verbose #9113 > >
00:08:37 verbose #9114 > > types ()
00:08:37 verbose #9115 > > "\n"
00:08:37 verbose #9116 > > |> hash_text
00:08:37 verbose #9117 > > |> hash_to_port
00:08:37 verbose #9118 > > |> _assert_eq 19273
00:08:37 verbose #9119 > 00:08:36   debug #548 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/eac6f6dbbf9a5c01bd7fe38b101c2b441d05ecb306bf05942db4e13f039c474b/main.spi
00:08:42 verbose #9120 > >
00:08:42 verbose #9121 > > ╭─[ 4.58s - return value ]─────────────────────────────────────────────────────╮
00:08:42 verbose #9122 > > │                                                                              │
00:08:42 verbose #9123 > > │ .rs output:                                                                  │
00:08:42 verbose #9124 > > │ 00:00:00 verbose #1 crypto.hash_to_port / { first_letter_code = 48;    │
00:08:42 verbose #9125 > > │ hash_part = 01ba4719; combined_value = 18249 }                               │
00:08:42 verbose #9126 > > │ assert_eq / actual: 19273 / expected: 19273                                  │
00:08:42 verbose #9127 > > │                                                                              │
00:08:42 verbose #9128 > > │                                                                              │
00:08:42 verbose #9129 > > │ .ts output:                                                                  │
00:08:42 verbose #9130 > > │ 00:00:00 verbose #1 crypto.hash_to_port / { first_letter_code = 48;     │
00:08:42 verbose #9131 > > │ hash_part = 01ba4719; combined_value = 18249 }                               │
00:08:42 verbose #9132 > > │ assert_eq / actual: 19273 / expected: 19273                                  │
00:08:42 verbose #9133 > > │                                                                              │
00:08:42 verbose #9134 > > │                                                                              │
00:08:42 verbose #9135 > > │ .py output:                                                                  │
00:08:42 verbose #9136 > > │ 00:00:00 verbose #1 crypto.hash_to_port / { first_letter_code = 48;     │
00:08:42 verbose #9137 > > │ hash_part = 01ba4719; combined_value = 18249 }                               │
00:08:42 verbose #9138 > > │ assert_eq / actual: 19273 / expected: 19273                                  │
00:08:42 verbose #9139 > > │                                                                              │
00:08:42 verbose #9140 > > │                                                                              │
00:08:42 verbose #9141 > > │                                                                              │
00:08:42 verbose #9142 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:42 verbose #9143 > >
00:08:42 verbose #9144 > > ╭─[ 4.59s - stdout ]───────────────────────────────────────────────────────────╮
00:08:42 verbose #9145 > > │ .fsx output:                                                                 │
00:08:42 verbose #9146 > > │ 00:00:00 verbose #1 crypto.hash_to_port / { first_letter_code = 48;     │
00:08:42 verbose #9147 > > │ hash_part = 01ba4719; combined_value = 18249 }                               │
00:08:42 verbose #9148 > > │ assert_eq / actual: 19273us / expected: 19273us                              │
00:08:42 verbose #9149 > > │                                                                              │
00:08:42 verbose #9150 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:42 verbose #9151 > >
00:08:42 verbose #9152 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:42 verbose #9153 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:42 verbose #9154 > > │ ## main                                                                      │
00:08:42 verbose #9155 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:42 verbose #9156 > >
00:08:42 verbose #9157 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:42 verbose #9158 > > inl main () =
00:08:42 verbose #9159 > >     types ()
00:08:42 verbose #9160 > >     $'let hash_text x = !hash_text x' : ()
00:08:42 verbose #9161 > >     $'let hash_to_port x = !hash_to_port x' : ()
00:08:42 verbose #9162 > 00:08:41   debug #549 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ddd76c2c1f0e87e324987c09cf6572375c54ff3358fdfc7ac4ac7c773f708811/main.spi
00:08:43 verbose #9163 > 00:00:50 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 30511 }
00:08:43 verbose #9164 > 00:00:50   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/crypto.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/crypto.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:08:45 verbose #9165 > 00:00:52 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/crypto.dib.ipynb to html
00:08:45 verbose #9166 > 00:00:52 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:08:45 verbose #9167 > 00:00:52 verbose #7 !   validate(nb)
00:08:46 verbose #9168 > 00:00:54 verbose #8 ! [NbConvertApp] Writing 343510 bytes to c:\home\git\polyglot\lib\spiral\crypto.dib.html
00:08:47 verbose #9169 > 00:00:54 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 643 }
00:08:47 verbose #9170 > 00:00:54   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 643 }
00:08:47 verbose #9171 > 00:00:54   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/crypto.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/crypto.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:08:48 verbose #9172 > 00:00:55 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:08:48 verbose #9173 > 00:00:55   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:08:48 verbose #9174 > 00:00:56   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 31213 }
00:08:48   debug #9175 runtime.execute_with_options_async / { exit_code = 0; output_length = 35066 }
00:08:48   debug #11 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path crypto.dib --retries 3
00:08:48   debug #9176 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path common.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:08:48 verbose #9177 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "common.dib", "--retries", "3"])) }
00:08:48 verbose #9178 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/common.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/common.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/common.dib" --output-path "c:/home/git/polyglot/lib/spiral/common.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:08:50 verbose #9179 > >
00:08:50 verbose #9180 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:50 verbose #9181 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:50 verbose #9182 > > │ # common                                                                     │
00:08:50 verbose #9183 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:54 verbose #9184 > >
00:08:54 verbose #9185 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:54 verbose #9186 > > //// test
00:08:54 verbose #9187 > >
00:08:54 verbose #9188 > > open testing
00:08:55 verbose #9189 > 00:08:54   debug #550 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7845de436c12d0ca65282fe0cd65832468ca943e72feba50e6b1bb441e251a/main.spi
00:08:56 verbose #9190 > >
00:08:56 verbose #9191 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:56 verbose #9192 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:56 verbose #9193 > > │ ## types                                                                     │
00:08:56 verbose #9194 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:56 verbose #9195 > >
00:08:56 verbose #9196 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:56 verbose #9197 > > inl types () =
00:08:56 verbose #9198 > >     env.types ()
00:08:56 verbose #9199 > >     rust.types ()
00:08:56 verbose #9200 > >     sm'.types ()
00:08:56 verbose #9201 > 00:08:55   debug #551 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/26f44aae1439f44de912044e7977d302129428387d9c4b49d03082789b26904e/main.spi
00:08:56 verbose #9202 > >
00:08:56 verbose #9203 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:56 verbose #9204 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:56 verbose #9205 > > │ ## common                                                                    │
00:08:56 verbose #9206 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:56 verbose #9207 > >
00:08:56 verbose #9208 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:56 verbose #9209 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:56 verbose #9210 > > │ ### (:>)                                                                     │
00:08:56 verbose #9211 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:56 verbose #9212 > >
00:08:56 verbose #9213 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:56 verbose #9214 > > prototype (~:>) r : forall t. t -> r
00:08:56 verbose #9215 > 00:08:56   debug #552 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5a782338c4159500adf3affb67e8fda3ccaf10c35e00e4b584690024e3d1c4ea/main.spi
00:08:56 verbose #9216 > >
00:08:56 verbose #9217 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:56 verbose #9218 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:56 verbose #9219 > > │ ### to_any                                                                   │
00:08:56 verbose #9220 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:56 verbose #9221 > >
00:08:56 verbose #9222 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:56 verbose #9223 > > inl to_any forall t. (obj : t) : any =
00:08:56 verbose #9224 > >     $'!obj '
00:08:56 verbose #9225 > >
00:08:56 verbose #9226 > > instance (~:>) any = to_any
00:08:57 verbose #9227 > 00:08:56   debug #553 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/883dfffdbee9bf293050ac9d81f36e7e70edeed49262827843edd2681ee30fc8/main.spi
00:08:57 verbose #9228 > >
00:08:57 verbose #9229 > > ── markdown ────────────────────────────────────────────────────────────────────
00:08:57 verbose #9230 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:08:57 verbose #9231 > > │ ### (||>)                                                                    │
00:08:57 verbose #9232 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:08:57 verbose #9233 > >
00:08:57 verbose #9234 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:08:57 verbose #9235 > > //// test
00:08:57 verbose #9236 > > ///! fsharp
00:08:57 verbose #9237 > > ///! cuda
00:08:57 verbose #9238 > > ///! rust
00:08:57 verbose #9239 > > ///! typescript
00:08:57 verbose #9240 > > ///! python
00:08:57 verbose #9241 > >
00:08:57 verbose #9242 > > (3i32, 2i32)
00:08:57 verbose #9243 > > ||> fun a b => a - b
00:08:57 verbose #9244 > > |> _assert_eq 1
00:08:57 verbose #9245 > 00:08:56   debug #554 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/75b09abc40b943e13cccc8653929d319c49707cf0d737b7265f130a0fa4a9246/main.spi
00:08:57 verbose #9246 > 00:08:56   debug #555 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/db2ebe404bc205ff9b878a78c8617b7b2fe4a4d809440ae42b550e6860236292/main.spi
00:09:02 verbose #9247 > >
00:09:02 verbose #9248 > > ╭─[ 5.46s - return value ]─────────────────────────────────────────────────────╮
00:09:02 verbose #9249 > > │ .py output (Cuda):                                                           │
00:09:02 verbose #9250 > > │ assert_eq / actual: 1 / expected: 1                                          │
00:09:02 verbose #9251 > > │                                                                              │
00:09:02 verbose #9252 > > │ .rs output:                                                                  │
00:09:02 verbose #9253 > > │ assert_eq / actual: 1 / expected: 1                                          │
00:09:02 verbose #9254 > > │                                                                              │
00:09:02 verbose #9255 > > │ .ts output:                                                                  │
00:09:02 verbose #9256 > > │ assert_eq / actual: 1 / expected: 1                                          │
00:09:02 verbose #9257 > > │                                                                              │
00:09:02 verbose #9258 > > │ .py output:                                                                  │
00:09:02 verbose #9259 > > │ assert_eq / actual: 1 / expected: 1                                          │
00:09:02 verbose #9260 > > │                                                                              │
00:09:02 verbose #9261 > > │                                                                              │
00:09:02 verbose #9262 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:02 verbose #9263 > >
00:09:02 verbose #9264 > > ╭─[ 5.46s - stdout ]───────────────────────────────────────────────────────────╮
00:09:02 verbose #9265 > > │ .fsx output:                                                                 │
00:09:02 verbose #9266 > > │ assert_eq / actual: 1 / expected: 1                                          │
00:09:02 verbose #9267 > > │                                                                              │
00:09:02 verbose #9268 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:02 verbose #9269 > >
00:09:02 verbose #9270 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:02 verbose #9271 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:02 verbose #9272 > > │ ### flip                                                                     │
00:09:02 verbose #9273 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:02 verbose #9274 > >
00:09:02 verbose #9275 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:02 verbose #9276 > > inl flip fn a b =
00:09:02 verbose #9277 > >     fn b a
00:09:02 verbose #9278 > 00:09:02   debug #556 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/05028cfcb38dde34db02eb463435491f1d9d695545093e56a028eaf94688e466/main.spi
00:09:03 verbose #9279 > >
00:09:03 verbose #9280 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:03 verbose #9281 > > //// test
00:09:03 verbose #9282 > > ///! fsharp
00:09:03 verbose #9283 > > ///! cuda
00:09:03 verbose #9284 > > ///! rust
00:09:03 verbose #9285 > > ///! typescript
00:09:03 verbose #9286 > > ///! python
00:09:03 verbose #9287 > >
00:09:03 verbose #9288 > > (1i32, 2i32)
00:09:03 verbose #9289 > > ||> flip pair
00:09:03 verbose #9290 > > |> _assert_eq (2, 1)
00:09:03 verbose #9291 > 00:09:02   debug #557 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c5310f065190813835bf8d97263edec1343e58c736924d57a4377762490881a6/main.spi
00:09:03 verbose #9292 > 00:09:02   debug #558 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/da2fd8e80ff31a87807d3ce2ba60c9442f52b4783b46dc4a89278257091c305b/main.spi
00:09:07 verbose #9293 > >
00:09:07 verbose #9294 > > ╭─[ 4.51s - return value ]─────────────────────────────────────────────────────╮
00:09:07 verbose #9295 > > │ .py output (Cuda):                                                           │
00:09:07 verbose #9296 > > │ assert_eq / actual: (2, 1) / expected: (2, 1)                                │
00:09:07 verbose #9297 > > │                                                                              │
00:09:07 verbose #9298 > > │ .rs output:                                                                  │
00:09:07 verbose #9299 > > │ assert_eq / actual: (2, 1) / expected: (2, 1)                                │
00:09:07 verbose #9300 > > │                                                                              │
00:09:07 verbose #9301 > > │ .ts output:                                                                  │
00:09:07 verbose #9302 > > │ assert_eq / actual: 2,1 / expected: 2,1                                      │
00:09:07 verbose #9303 > > │                                                                              │
00:09:07 verbose #9304 > > │ .py output:                                                                  │
00:09:07 verbose #9305 > > │ assert_eq / actual: (2, 1) / expected: (2, 1)                                │
00:09:07 verbose #9306 > > │                                                                              │
00:09:07 verbose #9307 > > │                                                                              │
00:09:07 verbose #9308 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:07 verbose #9309 > >
00:09:07 verbose #9310 > > ╭─[ 4.51s - stdout ]───────────────────────────────────────────────────────────╮
00:09:07 verbose #9311 > > │ .fsx output:                                                                 │
00:09:07 verbose #9312 > > │ assert_eq / actual: struct (2, 1) / expected: struct (2, 1)                  │
00:09:07 verbose #9313 > > │                                                                              │
00:09:07 verbose #9314 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:07 verbose #9315 > >
00:09:07 verbose #9316 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:07 verbose #9317 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:07 verbose #9318 > > │ ### join_body                                                                │
00:09:07 verbose #9319 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:07 verbose #9320 > >
00:09:07 verbose #9321 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:07 verbose #9322 > > inl join_body body acc x =
00:09:07 verbose #9323 > >     if var_is x |> not
00:09:07 verbose #9324 > >     then body acc x
00:09:07 verbose #9325 > >     else
00:09:07 verbose #9326 > >         inl acc = dyn acc
00:09:07 verbose #9327 > >         join body acc x
00:09:07 verbose #9328 > 00:09:07   debug #559 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7c9deccbcb8302fb9b644bb250e2abc3bc83df4c22914d00acdf36ff90663d02/main.spi
00:09:07 verbose #9329 > >
00:09:07 verbose #9330 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:07 verbose #9331 > > //// test
00:09:07 verbose #9332 > >
00:09:07 verbose #9333 > > inl rec fold_list f s = function
00:09:07 verbose #9334 > >     | Cons (x, x') => fold_list f (f s x) x'
00:09:07 verbose #9335 > >     | Nil => s
00:09:08 verbose #9336 > 00:09:07   debug #560 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/643cb47614fbee55f2727c274c3c7278b4dd164b9b15779d09cfcdbd5fc7c407/main.spi
00:09:08 verbose #9337 > >
00:09:08 verbose #9338 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:08 verbose #9339 > > //// test
00:09:08 verbose #9340 > > ///! fsharp
00:09:08 verbose #9341 > > ///! cuda
00:09:08 verbose #9342 > > ///! rust
00:09:08 verbose #9343 > > ///! typescript
00:09:08 verbose #9344 > > ///! python
00:09:08 verbose #9345 > > //// print_code=true
00:09:08 verbose #9346 > >
00:09:08 verbose #9347 > > [[ 5i32; 4; join 3; 2; 1 ]]
00:09:08 verbose #9348 > > |> fold_list (+) 0
00:09:08 verbose #9349 > > |> _assert_eq 15
00:09:08 verbose #9350 > 00:09:07   debug #561 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/153a0c6ee9da8091cf501f628e4c8118e9dc44c027c3a5a956abb9d7f1e55459/main.spi
00:09:08 verbose #9351 > 00:09:07   debug #562 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/15377e1dd37cd7aced1a9c975946fa65820e6374b8b33ab10cbb01bd3395b78f/main.spi
00:09:12 verbose #9352 > >
00:09:12 verbose #9353 > > ╭─[ 4.38s - return value ]─────────────────────────────────────────────────────╮
00:09:12 verbose #9354 > > │ .py output (Cuda):                                                           │
00:09:12 verbose #9355 > > │ assert_eq / actual: 15 / expected: 15                                        │
00:09:12 verbose #9356 > > │                                                                              │
00:09:12 verbose #9357 > > │ .rs output:                                                                  │
00:09:12 verbose #9358 > > │ assert_eq / actual: 15 / expected: 15                                        │
00:09:12 verbose #9359 > > │                                                                              │
00:09:12 verbose #9360 > > │ .ts output:                                                                  │
00:09:12 verbose #9361 > > │ assert_eq / actual: 15 / expected: 15                                        │
00:09:12 verbose #9362 > > │                                                                              │
00:09:12 verbose #9363 > > │ .py output:                                                                  │
00:09:12 verbose #9364 > > │ assert_eq / actual: 15 / expected: 15                                        │
00:09:12 verbose #9365 > > │                                                                              │
00:09:12 verbose #9366 > > │                                                                              │
00:09:12 verbose #9367 > > │                                                                              │
00:09:12 verbose #9368 > > │                                                                              │
00:09:12 verbose #9369 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:12 verbose #9370 > >
00:09:12 verbose #9371 > > ╭─[ 4.38s - stdout ]───────────────────────────────────────────────────────────╮
00:09:12 verbose #9372 > > │ .fsx:                                                                        │
00:09:12 verbose #9373 > > │ let rec method1 () : int32 =                                                 │
00:09:12 verbose #9374 > > │     3                                                                        │
00:09:12 verbose #9375 > > │ and method2 (v0 : bool) : bool =                                             │
00:09:12 verbose #9376 > > │     v0                                                                       │
00:09:12 verbose #9377 > > │ and method0 () : unit =                                                      │
00:09:12 verbose #9378 > > │     let v0 : int32 = method1()                                               │
00:09:12 verbose #9379 > > │     let v1 : int32 = 9 + v0                                                  │
00:09:12 verbose #9380 > > │     let v2 : int32 = v1 + 2                                                  │
00:09:12 verbose #9381 > > │     let v3 : int32 = v2 + 1                                                  │
00:09:12 verbose #9382 > > │     let v4 : bool = v3 = 15                                                  │
00:09:12 verbose #9383 > > │     let v6 : bool =                                                          │
00:09:12 verbose #9384 > > │         if v4 then                                                           │
00:09:12 verbose #9385 > > │             true                                                             │
00:09:12 verbose #9386 > > │         else                                                                 │
00:09:12 verbose #9387 > > │             method2(v4)                                                      │
00:09:12 verbose #9388 > > │     let v9 : string = "assert_eq"                                            │
00:09:12 verbose #9389 > > │     let v10 : string = $"{v9} / actual: %A{v3} / expected: %A{15}"           │
00:09:12 verbose #9390 > > │     let v19 : (string -> unit) = System.Console.WriteLine                    │
00:09:12 verbose #9391 > > │     v19 v10                                                                  │
00:09:12 verbose #9392 > > │     let v24 : bool = v6 = false                                              │
00:09:12 verbose #9393 > > │     if v24 then                                                              │
00:09:12 verbose #9394 > > │         failwith<unit> v10                                                   │
00:09:12 verbose #9395 > > │ method0()                                                                    │
00:09:12 verbose #9396 > > │                                                                              │
00:09:12 verbose #9397 > > │                                                                              │
00:09:12 verbose #9398 > > │ .rs:                                                                         │
00:09:12 verbose #9399 > > │ #![allow(dead_code)]                                                         │
00:09:12 verbose #9400 > > │ #![allow(non_camel_case_types)]                                              │
00:09:12 verbose #9401 > > │ #![allow(non_snake_case)]                                                    │
00:09:12 verbose #9402 > > │ #![allow(non_upper_case_globals)]                                            │
00:09:12 verbose #9403 > > │ #![allow(unreachable_code)]                                                  │
00:09:12 verbose #9404 > > │ #![allow(unused_attributes)]                                                 │
00:09:12 verbose #9405 > > │ #![allow(unused_imports)]                                                    │
00:09:12 verbose #9406 > > │ #![allow(unused_macros)]                                                     │
00:09:12 verbose #9407 > > │ #![allow(unused_parens)]                                                     │
00:09:12 verbose #9408 > > │ #![allow(unused_variables)]                                                  │
00:09:12 verbose #9409 > > │ mod module_1586508e {                                                        │
00:09:12 verbose #9410 > > │     pub mod Spiral_builder {                                                 │
00:09:12 verbose #9411 > > │         use super::*;                                                        │
00:09:12 verbose #9412 > > │         use fable_library_rust::Native_::on_startup;                         │
00:09:12 verbose #9413 > > │         use fable_library_rust::String_::printfn;                            │
00:09:12 verbose #9414 > > │         use fable_library_rust::String_::sprintf;                            │
00:09:12 verbose #9415 > > │         use fable_library_rust::String_::string;                             │
00:09:12 verbose #9416 > > │         pub fn method1() -> i32 {                                            │
00:09:12 verbose #9417 > > │             3_i32                                                            │
00:09:12 verbose #9418 > > │         }                                                                    │
00:09:12 verbose #9419 > > │         pub fn method2(v0: bool) -> bool {                                   │
00:09:12 verbose #9420 > > │             v0                                                               │
00:09:12 verbose #9421 > > │         }                                                                    │
00:09:12 verbose #9422 > > │         pub fn method0() {                                                   │
00:09:12 verbose #9423 > > │             let v3: i32 = 9_i32 + Spiral_builder::method1() + 2_i32 + 1_i32; │
00:09:12 verbose #9424 > > │             let v4: bool = v3 == 15_i32;                                     │
00:09:12 verbose #9425 > > │             let v6: bool = if v4 {                                           │
00:09:12 verbose #9426 > > │                 true                                                         │
00:09:12 verbose #9427 > > │             } else {                                                         │
00:09:12 verbose #9428 > > │                 Spiral_builder::method2(v4)                                  │
00:09:12 verbose #9429 > > │             };                                                               │
00:09:12 verbose #9430 > > │             let v10: string = sprintf!(                                      │
00:09:12 verbose #9431 > > │                 "{} / actual: {:?} / expected: {:?}",                        │
00:09:12 verbose #9432 > > │                 string("assert_eq"),                                         │
00:09:12 verbose #9433 > > │                 v3,                                                          │
00:09:12 verbose #9434 > > │                 15_i32                                                       │
00:09:12 verbose #9435 > > │             );                                                               │
00:09:12 verbose #9436 > > │             printfn!("{0}", v10.clone());                                    │
00:09:12 verbose #9437 > > │             if v6 == false {                                                 │
00:09:12 verbose #9438 > > │                 panic!("{}", v10,);                                          │
00:09:12 verbose #9439 > > │             }                                                                │
00:09:12 verbose #9440 > > │         }                                                                    │
00:09:12 verbose #9441 > > │         on_startup!(Spiral_builder::method0());                              │
00:09:12 verbose #9442 > > │     }                                                                        │
00:09:12 verbose #9443 > > │ }                                                                            │
00:09:12 verbose #9444 > > │ pub use module_1586508e::*;                                                  │
00:09:12 verbose #9445 > > │                                                                              │
00:09:12 verbose #9446 > > │ pub fn main() -> Result<(), String> {                                        │
00:09:12 verbose #9447 > > │     Ok(())                                                                   │
00:09:12 verbose #9448 > > │ }                                                                            │
00:09:12 verbose #9449 > > │                                                                              │
00:09:12 verbose #9450 > > │ .ts:                                                                         │
00:09:12 verbose #9451 > > │ import { int32 } from "./fable_modules/fable-library-ts.4.19.3/Int32.js";    │
00:09:12 verbose #9452 > > │ import { interpolate, toText } from                                          │
00:09:12 verbose #9453 > > │ "./fable_modules/fable-library-ts.4.19.3/String.js";                         │
00:09:12 verbose #9454 > > │                                                                              │
00:09:12 verbose #9455 > > │ export function method1(): int32 {                                           │
00:09:12 verbose #9456 > > │     return 3;                                                                │
00:09:12 verbose #9457 > > │ }                                                                            │
00:09:12 verbose #9458 > > │                                                                              │
00:09:12 verbose #9459 > > │ export function method2(v0: boolean): boolean {                              │
00:09:12 verbose #9460 > > │     return v0;                                                               │
00:09:12 verbose #9461 > > │ }                                                                            │
00:09:12 verbose #9462 > > │                                                                              │
00:09:12 verbose #9463 > > │ export function method0(): void {                                            │
00:09:12 verbose #9464 > > │     const v3: int32 = (((9 + method1()) + 2) + 1) | 0;                       │
00:09:12 verbose #9465 > > │     const v4: boolean = v3 === 15;                                           │
00:09:12 verbose #9466 > > │     const v6: boolean = v4 ? true : method2(v4);                             │
00:09:12 verbose #9467 > > │     const v10: string = toText(interpolate("%P() / actual: %A%P() /          │
00:09:12 verbose #9468 > > │ expected: %A%P()", ["assert_eq", v3, 15]));                                  │
00:09:12 verbose #9469 > > │     console.log(v10);                                                        │
00:09:12 verbose #9470 > > │     if (v6 === false) {                                                      │
00:09:12 verbose #9471 > > │         throw new Error(v10);                                                │
00:09:12 verbose #9472 > > │     }                                                                        │
00:09:12 verbose #9473 > > │ }                                                                            │
00:09:12 verbose #9474 > > │                                                                              │
00:09:12 verbose #9475 > > │ method0();                                                                   │
00:09:12 verbose #9476 > > │                                                                              │
00:09:12 verbose #9477 > > │                                                                              │
00:09:12 verbose #9478 > > │                                                                              │
00:09:12 verbose #9479 > > │ // spiral_builder.process_typescript                                         │
00:09:12 verbose #9480 > > │                                                                              │
00:09:12 verbose #9481 > > │ .py:                                                                         │
00:09:12 verbose #9482 > > │ from fable_modules.fable_library.string_ import (to_text, interpolate)       │
00:09:12 verbose #9483 > > │                                                                              │
00:09:12 verbose #9484 > > │ def method1(__unit: None=None) -> int:                                       │
00:09:12 verbose #9485 > > │     return 3                                                                 │
00:09:12 verbose #9486 > > │                                                                              │
00:09:12 verbose #9487 > > │                                                                              │
00:09:12 verbose #9488 > > │ def method2(v0: bool) -> bool:                                               │
00:09:12 verbose #9489 > > │     return v0                                                                │
00:09:12 verbose #9490 > > │                                                                              │
00:09:12 verbose #9491 > > │                                                                              │
00:09:12 verbose #9492 > > │ def method0(__unit: None=None) -> None:                                      │
00:09:12 verbose #9493 > > │     v3: int = (((9 + method1()) + 2) + 1) or 0                               │
00:09:12 verbose #9494 > > │     v4: bool = v3 == 15                                                      │
00:09:12 verbose #9495 > > │     v6: bool = True if v4 else method2(v4)                                   │
00:09:12 verbose #9496 > > │     v10: str = to_text(interpolate("%P() / actual: %A%P() / expected:        │
00:09:12 verbose #9497 > > │ %A%P()", ["assert_eq", v3, 15]))                                             │
00:09:12 verbose #9498 > > │     print(v10)                                                               │
00:09:12 verbose #9499 > > │     if v6 == False:                                                          │
00:09:12 verbose #9500 > > │         raise Exception(v10)                                                 │
00:09:12 verbose #9501 > > │                                                                              │
00:09:12 verbose #9502 > > │                                                                              │
00:09:12 verbose #9503 > > │                                                                              │
00:09:12 verbose #9504 > > │ method0()                                                                    │
00:09:12 verbose #9505 > > │                                                                              │
00:09:12 verbose #9506 > > │                                                                              │
00:09:12 verbose #9507 > > │                                                                              │
00:09:12 verbose #9508 > > │ # spiral_builder.process_python                                              │
00:09:12 verbose #9509 > > │                                                                              │
00:09:12 verbose #9510 > > │ .py:                                                                         │
00:09:12 verbose #9511 > > │ kernel = r"""                                                                │
00:09:12 verbose #9512 > > │ """                                                                          │
00:09:12 verbose #9513 > > │ class static_array():                                                        │
00:09:12 verbose #9514 > > │     def __init__(self, length):                                              │
00:09:12 verbose #9515 > > │         self.ptr = []                                                        │
00:09:12 verbose #9516 > > │         for _ in range(length):                                              │
00:09:12 verbose #9517 > > │             self.ptr.append(None)                                            │
00:09:12 verbose #9518 > > │                                                                              │
00:09:12 verbose #9519 > > │     def __getitem__(self, index):                                            │
00:09:12 verbose #9520 > > │         assert 0 <= index < len(self.ptr), "The get index needs to be in     │
00:09:12 verbose #9521 > > │ range."                                                                      │
00:09:12 verbose #9522 > > │         return self.ptr[index]                                               │
00:09:12 verbose #9523 > > │                                                                              │
00:09:12 verbose #9524 > > │     def __setitem__(self, index, value):                                     │
00:09:12 verbose #9525 > > │         assert 0 <= index < len(self.ptr), "The set index needs to be in     │
00:09:12 verbose #9526 > > │ range."                                                                      │
00:09:12 verbose #9527 > > │         self.ptr[index] = value                                              │
00:09:12 verbose #9528 > > │                                                                              │
00:09:12 verbose #9529 > > │ class static_array_list(static_array):                                       │
00:09:12 verbose #9530 > > │     def __init__(self, length):                                              │
00:09:12 verbose #9531 > > │         super().__init__(length)                                             │
00:09:12 verbose #9532 > > │         self.length = 0                                                      │
00:09:12 verbose #9533 > > │                                                                              │
00:09:12 verbose #9534 > > │     def __getitem__(self, index):                                            │
00:09:12 verbose #9535 > > │         assert 0 <= index < self.length, "The get index needs to be in       │
00:09:12 verbose #9536 > > │ range."                                                                      │
00:09:12 verbose #9537 > > │         return self.ptr[index]                                               │
00:09:12 verbose #9538 > > │                                                                              │
00:09:12 verbose #9539 > > │     def __setitem__(self, index, value):                                     │
00:09:12 verbose #9540 > > │         assert 0 <= index < self.length, "The set index needs to be in       │
00:09:12 verbose #9541 > > │ range."                                                                      │
00:09:12 verbose #9542 > > │         self.ptr[index] = value                                              │
00:09:12 verbose #9543 > > │                                                                              │
00:09:12 verbose #9544 > > │     def push(self,value):                                                    │
00:09:12 verbose #9545 > > │         assert (self.length < len(self.ptr)), "The length before pushing has │
00:09:12 verbose #9546 > > │ to be less than the maximum length of the array."                            │
00:09:12 verbose #9547 > > │         self.ptr[self.length] = value                                        │
00:09:12 verbose #9548 > > │         self.length += 1                                                     │
00:09:12 verbose #9549 > > │                                                                              │
00:09:12 verbose #9550 > > │     def pop(self):                                                           │
00:09:12 verbose #9551 > > │         assert (0 < self.length), "The length before popping has to be       │
00:09:12 verbose #9552 > > │ greater than 0."                                                             │
00:09:12 verbose #9553 > > │         self.length -= 1                                                     │
00:09:12 verbose #9554 > > │         return self.ptr[self.length]                                         │
00:09:12 verbose #9555 > > │                                                                              │
00:09:12 verbose #9556 > > │     def unsafe_set_length(self,i):                                           │
00:09:12 verbose #9557 > > │         assert 0 <= i <= len(self.ptr), "The new length has to be in range." │
00:09:12 verbose #9558 > > │         self.length = i                                                      │
00:09:12 verbose #9559 > > │                                                                              │
00:09:12 verbose #9560 > > │ class dynamic_array(static_array):                                           │
00:09:12 verbose #9561 > > │     pass                                                                     │
00:09:12 verbose #9562 > > │                                                                              │
00:09:12 verbose #9563 > > │ class dynamic_array_list(static_array_list):                                 │
00:09:12 verbose #9564 > > │     def length_(self): return self.length                                    │
00:09:12 verbose #9565 > > │                                                                              │
00:09:12 verbose #9566 > > │ import cupy as cp                                                            │
00:09:12 verbose #9567 > > │ from dataclasses import dataclass                                            │
00:09:12 verbose #9568 > > │ from typing import NamedTuple, Union, Callable, Tuple                        │
00:09:12 verbose #9569 > > │ i8 = i16 = i32 = i64 = u8 = u16 = u32 = u64 = int; f32 = f64 = float; char = │
00:09:12 verbose #9570 > > │ string = str                                                                 │
00:09:12 verbose #9571 > > │                                                                              │
00:09:12 verbose #9572 > > │ def method1() -> i32:                                                        │
00:09:12 verbose #9573 > > │     return 3                                                                 │
00:09:12 verbose #9574 > > │ def method2(v0 : bool) -> bool:                                              │
00:09:12 verbose #9575 > > │     return v0                                                                │
00:09:12 verbose #9576 > > │ def method0() -> None:                                                       │
00:09:12 verbose #9577 > > │     v0 = method1()                                                           │
00:09:12 verbose #9578 > > │     v1 = 9 + v0                                                              │
00:09:12 verbose #9579 > > │     del v0                                                                   │
00:09:12 verbose #9580 > > │     v2 = v1 + 2                                                              │
00:09:12 verbose #9581 > > │     del v1                                                                   │
00:09:12 verbose #9582 > > │     v3 = v2 + 1                                                              │
00:09:12 verbose #9583 > > │     del v2                                                                   │
00:09:12 verbose #9584 > > │     v4 = v3 == 15                                                            │
00:09:12 verbose #9585 > > │     if v4:                                                                   │
00:09:12 verbose #9586 > > │         v6 = True                                                            │
00:09:12 verbose #9587 > > │     else:                                                                    │
00:09:12 verbose #9588 > > │         v6 = method2(v4)                                                     │
00:09:12 verbose #9589 > > │     del v4                                                                   │
00:09:12 verbose #9590 > > │     v13 = "assert_eq"                                                        │
00:09:12 verbose #9591 > > │     v14 = f"{v13} / actual: {v3} / expected: {15}"                           │
00:09:12 verbose #9592 > > │     del v3, v13                                                              │
00:09:12 verbose #9593 > > │     print(v14)                                                               │
00:09:12 verbose #9594 > > │     v25 = v6 == False                                                        │
00:09:12 verbose #9595 > > │     del v6                                                                   │
00:09:12 verbose #9596 > > │     if v25:                                                                  │
00:09:12 verbose #9597 > > │         del v25                                                              │
00:09:12 verbose #9598 > > │         raise Exception(v14)                                                 │
00:09:12 verbose #9599 > > │     else:                                                                    │
00:09:12 verbose #9600 > > │         del v14, v25                                                         │
00:09:12 verbose #9601 > > │         return                                                               │
00:09:12 verbose #9602 > > │ def main():                                                                  │
00:09:12 verbose #9603 > > │     return method0()                                                         │
00:09:12 verbose #9604 > > │                                                                              │
00:09:12 verbose #9605 > > │ if __name__ == '__main__': result = main(); None if result is None else      │
00:09:12 verbose #9606 > > │ print(result)                                                                │
00:09:12 verbose #9607 > > │                                                                              │
00:09:12 verbose #9608 > > │                                                                              │
00:09:12 verbose #9609 > > │ .py:                                                                         │
00:09:12 verbose #9610 > > │ kernel = r"""                                                                │
00:09:12 verbose #9611 > > │ """                                                                          │
00:09:12 verbose #9612 > > │ class static_array():                                                        │
00:09:12 verbose #9613 > > │     def __init__(self, length):                                              │
00:09:12 verbose #9614 > > │         self.ptr = []                                                        │
00:09:12 verbose #9615 > > │         for _ in range(length):                                              │
00:09:12 verbose #9616 > > │             self.ptr.append(None)                                            │
00:09:12 verbose #9617 > > │                                                                              │
00:09:12 verbose #9618 > > │     def __getitem__(self, index):                                            │
00:09:12 verbose #9619 > > │         assert 0 <= index < len(self.ptr), "The get index needs to be in     │
00:09:12 verbose #9620 > > │ range."                                                                      │
00:09:12 verbose #9621 > > │         return self.ptr[index]                                               │
00:09:12 verbose #9622 > > │                                                                              │
00:09:12 verbose #9623 > > │     def __setitem__(self, index, value):                                     │
00:09:12 verbose #9624 > > │         assert 0 <= index < len(self.ptr), "The set index needs to be in     │
00:09:12 verbose #9625 > > │ range."                                                                      │
00:09:12 verbose #9626 > > │         self.ptr[index] = value                                              │
00:09:12 verbose #9627 > > │                                                                              │
00:09:12 verbose #9628 > > │ class static_array_list(static_array):                                       │
00:09:12 verbose #9629 > > │     def __init__(self, length):                                              │
00:09:12 verbose #9630 > > │         super().__init__(length)                                             │
00:09:12 verbose #9631 > > │         self.length = 0                                                      │
00:09:12 verbose #9632 > > │                                                                              │
00:09:12 verbose #9633 > > │     def __getitem__(self, index):                                            │
00:09:12 verbose #9634 > > │         assert 0 <= index < self.length, "The get index needs to be in       │
00:09:12 verbose #9635 > > │ range."                                                                      │
00:09:12 verbose #9636 > > │         return self.ptr[index]                                               │
00:09:12 verbose #9637 > > │                                                                              │
00:09:12 verbose #9638 > > │     def __setitem__(self, index, value):                                     │
00:09:12 verbose #9639 > > │         assert 0 <= index < self.length, "The set index needs to be in       │
00:09:12 verbose #9640 > > │ range."                                                                      │
00:09:12 verbose #9641 > > │         self.ptr[index] = value                                              │
00:09:12 verbose #9642 > > │                                                                              │
00:09:12 verbose #9643 > > │     def push(self,value):                                                    │
00:09:12 verbose #9644 > > │         assert (self.length < len(self.ptr)), "The length before pushing has │
00:09:12 verbose #9645 > > │ to be less than the maximum length of the array."                            │
00:09:12 verbose #9646 > > │         self.ptr[self.length] = value                                        │
00:09:12 verbose #9647 > > │         self.length += 1                                                     │
00:09:12 verbose #9648 > > │                                                                              │
00:09:12 verbose #9649 > > │     def pop(self):                                                           │
00:09:12 verbose #9650 > > │         assert (0 < self.length), "The length before popping has to be       │
00:09:12 verbose #9651 > > │ greater than 0."                                                             │
00:09:12 verbose #9652 > > │         self.length -= 1                                                     │
00:09:12 verbose #9653 > > │         return self.ptr[self.length]                                         │
00:09:12 verbose #9654 > > │                                                                              │
00:09:12 verbose #9655 > > │     def unsafe_set_length(self,i):                                           │
00:09:12 verbose #9656 > > │         assert 0 <= i <= len(self.ptr), "The new length has to be in range." │
00:09:12 verbose #9657 > > │         self.length = i                                                      │
00:09:12 verbose #9658 > > │                                                                              │
00:09:12 verbose #9659 > > │ class dynamic_array(static_array):                                           │
00:09:12 verbose #9660 > > │     pass                                                                     │
00:09:12 verbose #9661 > > │                                                                              │
00:09:12 verbose #9662 > > │ class dynamic_array_list(static_array_list):                                 │
00:09:12 verbose #9663 > > │     def length_(self): return self.length                                    │
00:09:12 verbose #9664 > > │                                                                              │
00:09:12 verbose #9665 > > │ import cupy as cp                                                            │
00:09:12 verbose #9666 > > │ from dataclasses import dataclass                                            │
00:09:12 verbose #9667 > > │ from typing import NamedTuple, Union, Callable, Tuple                        │
00:09:12 verbose #9668 > > │ i8 = i16 = i32 = i64 = u8 = u16 = u32 = u64 = int; f32 = f64 = float; char = │
00:09:12 verbose #9669 > > │ string = str                                                                 │
00:09:12 verbose #9670 > > │                                                                              │
00:09:12 verbose #9671 > > │ def method1() -> i32:                                                        │
00:09:12 verbose #9672 > > │     return 3                                                                 │
00:09:12 verbose #9673 > > │ def method2(v0 : bool) -> bool:                                              │
00:09:12 verbose #9674 > > │     return v0                                                                │
00:09:12 verbose #9675 > > │ def method0() -> None:                                                       │
00:09:12 verbose #9676 > > │     v0 = method1()                                                           │
00:09:12 verbose #9677 > > │     v1 = 9 + v0                                                              │
00:09:12 verbose #9678 > > │     del v0                                                                   │
00:09:12 verbose #9679 > > │     v2 = v1 + 2                                                              │
00:09:12 verbose #9680 > > │     del v1                                                                   │
00:09:12 verbose #9681 > > │     v3 = v2 + 1                                                              │
00:09:12 verbose #9682 > > │     del v2                                                                   │
00:09:12 verbose #9683 > > │     v4 = v3 == 15                                                            │
00:09:12 verbose #9684 > > │     if v4:                                                                   │
00:09:12 verbose #9685 > > │         v6 = True                                                            │
00:09:12 verbose #9686 > > │     else:                                                                    │
00:09:12 verbose #9687 > > │         v6 = method2(v4)                                                     │
00:09:12 verbose #9688 > > │     del v4                                                                   │
00:09:12 verbose #9689 > > │     v13 = "assert_eq"                                                        │
00:09:12 verbose #9690 > > │     v14 = f"{v13} / actual: {v3} / expected: {15}"                           │
00:09:12 verbose #9691 > > │     del v3, v13                                                              │
00:09:12 verbose #9692 > > │     print(v14)                                                               │
00:09:12 verbose #9693 > > │     v25 = v6 == False                                                        │
00:09:12 verbose #9694 > > │     del v6                                                                   │
00:09:12 verbose #9695 > > │     if v25:                                                                  │
00:09:12 verbose #9696 > > │         del v25                                                              │
00:09:12 verbose #9697 > > │         raise Exception(v14)                                                 │
00:09:12 verbose #9698 > > │     else:                                                                    │
00:09:12 verbose #9699 > > │         del v14, v25                                                         │
00:09:12 verbose #9700 > > │         return                                                               │
00:09:12 verbose #9701 > > │ def main():                                                                  │
00:09:12 verbose #9702 > > │     return method0()                                                         │
00:09:12 verbose #9703 > > │                                                                              │
00:09:12 verbose #9704 > > │ if __name__ == '__main__': result = main(); None if result is None else      │
00:09:12 verbose #9705 > > │ print(result)                                                                │
00:09:12 verbose #9706 > > │                                                                              │
00:09:12 verbose #9707 > > │ .fsx output:                                                                 │
00:09:12 verbose #9708 > > │ assert_eq / actual: 15 / expected: 15                                        │
00:09:12 verbose #9709 > > │                                                                              │
00:09:12 verbose #9710 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:12 verbose #9711 > >
00:09:12 verbose #9712 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:12 verbose #9713 > > //// test
00:09:12 verbose #9714 > > ///! fsharp
00:09:12 verbose #9715 > > ///! cuda
00:09:12 verbose #9716 > > ///! rust
00:09:12 verbose #9717 > > ///! typescript
00:09:12 verbose #9718 > > ///! python
00:09:12 verbose #9719 > > //// print_code=true
00:09:12 verbose #9720 > >
00:09:12 verbose #9721 > > [[ 5i32; 4; join 3; 2; 1 ]]
00:09:12 verbose #9722 > > |> fold_list (join_body (+)) 0
00:09:12 verbose #9723 > > |> _assert_eq 15
00:09:12 verbose #9724 > 00:09:12   debug #563 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f33899e6bc78ffbf4c185ec28b523ef9e9f5fb57a28a922fd07453464ba04d83/main.spi
00:09:12 verbose #9725 > 00:09:12   debug #564 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4bd35470aef1ce990b28fb4cc7544e8d23eb8ab6fbef2a896b615e9d7ca1bd15/main.spi
00:09:16 verbose #9726 > >
00:09:16 verbose #9727 > > ╭─[ 4.19s - return value ]─────────────────────────────────────────────────────╮
00:09:16 verbose #9728 > > │ .py output (Cuda):                                                           │
00:09:16 verbose #9729 > > │ assert_eq / actual: 15 / expected: 15                                        │
00:09:16 verbose #9730 > > │                                                                              │
00:09:16 verbose #9731 > > │ .rs output:                                                                  │
00:09:16 verbose #9732 > > │ assert_eq / actual: 15 / expected: 15                                        │
00:09:16 verbose #9733 > > │                                                                              │
00:09:16 verbose #9734 > > │ .ts output:                                                                  │
00:09:16 verbose #9735 > > │ assert_eq / actual: 15 / expected: 15                                        │
00:09:16 verbose #9736 > > │                                                                              │
00:09:16 verbose #9737 > > │ .py output:                                                                  │
00:09:16 verbose #9738 > > │ assert_eq / actual: 15 / expected: 15                                        │
00:09:16 verbose #9739 > > │                                                                              │
00:09:16 verbose #9740 > > │                                                                              │
00:09:16 verbose #9741 > > │                                                                              │
00:09:16 verbose #9742 > > │                                                                              │
00:09:16 verbose #9743 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:16 verbose #9744 > >
00:09:16 verbose #9745 > > ╭─[ 4.19s - stdout ]───────────────────────────────────────────────────────────╮
00:09:16 verbose #9746 > > │ .fsx:                                                                        │
00:09:16 verbose #9747 > > │ let rec method1 () : int32 =                                                 │
00:09:16 verbose #9748 > > │     3                                                                        │
00:09:16 verbose #9749 > > │ and method2 (v0 : int32, v1 : int32) : int32 =                               │
00:09:16 verbose #9750 > > │     let v2 : int32 = v1 + v0                                                 │
00:09:16 verbose #9751 > > │     v2                                                                       │
00:09:16 verbose #9752 > > │ and method3 (v0 : bool) : bool =                                             │
00:09:16 verbose #9753 > > │     v0                                                                       │
00:09:16 verbose #9754 > > │ and method0 () : unit =                                                      │
00:09:16 verbose #9755 > > │     let v0 : int32 = method1()                                               │
00:09:16 verbose #9756 > > │     let v1 : int32 = 9                                                       │
00:09:16 verbose #9757 > > │     let v2 : int32 = method2(v0, v1)                                         │
00:09:16 verbose #9758 > > │     let v3 : int32 = v2 + 2                                                  │
00:09:16 verbose #9759 > > │     let v4 : int32 = v3 + 1                                                  │
00:09:16 verbose #9760 > > │     let v5 : bool = v4 = 15                                                  │
00:09:16 verbose #9761 > > │     let v7 : bool =                                                          │
00:09:16 verbose #9762 > > │         if v5 then                                                           │
00:09:16 verbose #9763 > > │             true                                                             │
00:09:16 verbose #9764 > > │         else                                                                 │
00:09:16 verbose #9765 > > │             method3(v5)                                                      │
00:09:16 verbose #9766 > > │     let v10 : string = "assert_eq"                                           │
00:09:16 verbose #9767 > > │     let v11 : string = $"{v10} / actual: %A{v4} / expected: %A{15}"          │
00:09:16 verbose #9768 > > │     let v20 : (string -> unit) = System.Console.WriteLine                    │
00:09:16 verbose #9769 > > │     v20 v11                                                                  │
00:09:16 verbose #9770 > > │     let v25 : bool = v7 = false                                              │
00:09:16 verbose #9771 > > │     if v25 then                                                              │
00:09:16 verbose #9772 > > │         failwith<unit> v11                                                   │
00:09:16 verbose #9773 > > │ method0()                                                                    │
00:09:16 verbose #9774 > > │                                                                              │
00:09:16 verbose #9775 > > │                                                                              │
00:09:16 verbose #9776 > > │ .rs:                                                                         │
00:09:16 verbose #9777 > > │ #![allow(dead_code)]                                                         │
00:09:16 verbose #9778 > > │ #![allow(non_camel_case_types)]                                              │
00:09:16 verbose #9779 > > │ #![allow(non_snake_case)]                                                    │
00:09:16 verbose #9780 > > │ #![allow(non_upper_case_globals)]                                            │
00:09:16 verbose #9781 > > │ #![allow(unreachable_code)]                                                  │
00:09:16 verbose #9782 > > │ #![allow(unused_attributes)]                                                 │
00:09:16 verbose #9783 > > │ #![allow(unused_imports)]                                                    │
00:09:16 verbose #9784 > > │ #![allow(unused_macros)]                                                     │
00:09:16 verbose #9785 > > │ #![allow(unused_parens)]                                                     │
00:09:16 verbose #9786 > > │ #![allow(unused_variables)]                                                  │
00:09:16 verbose #9787 > > │ mod module_357ff3b3 {                                                        │
00:09:16 verbose #9788 > > │     pub mod Spiral_builder {                                                 │
00:09:16 verbose #9789 > > │         use super::*;                                                        │
00:09:16 verbose #9790 > > │         use fable_library_rust::Native_::on_startup;                         │
00:09:16 verbose #9791 > > │         use fable_library_rust::String_::printfn;                            │
00:09:16 verbose #9792 > > │         use fable_library_rust::String_::sprintf;                            │
00:09:16 verbose #9793 > > │         use fable_library_rust::String_::string;                             │
00:09:16 verbose #9794 > > │         pub fn method1() -> i32 {                                            │
00:09:16 verbose #9795 > > │             3_i32                                                            │
00:09:16 verbose #9796 > > │         }                                                                    │
00:09:16 verbose #9797 > > │         pub fn method2(v0: i32, v1: i32) -> i32 {                            │
00:09:16 verbose #9798 > > │             v1 + v0                                                          │
00:09:16 verbose #9799 > > │         }                                                                    │
00:09:16 verbose #9800 > > │         pub fn method3(v0: bool) -> bool {                                   │
00:09:16 verbose #9801 > > │             v0                                                               │
00:09:16 verbose #9802 > > │         }                                                                    │
00:09:16 verbose #9803 > > │         pub fn method0() {                                                   │
00:09:16 verbose #9804 > > │             let v4: i32 = Spiral_builder::method2(Spiral_builder::method1(), │
00:09:16 verbose #9805 > > │ 9_i32) + 2_i32 + 1_i32;                                                      │
00:09:16 verbose #9806 > > │             let v5: bool = v4 == 15_i32;                                     │
00:09:16 verbose #9807 > > │             let v7: bool = if v5 {                                           │
00:09:16 verbose #9808 > > │                 true                                                         │
00:09:16 verbose #9809 > > │             } else {                                                         │
00:09:16 verbose #9810 > > │                 Spiral_builder::method3(v5)                                  │
00:09:16 verbose #9811 > > │             };                                                               │
00:09:16 verbose #9812 > > │             let v11: string = sprintf!(                                      │
00:09:16 verbose #9813 > > │                 "{} / actual: {:?} / expected: {:?}",                        │
00:09:16 verbose #9814 > > │                 string("assert_eq"),                                         │
00:09:16 verbose #9815 > > │                 v4,                                                          │
00:09:16 verbose #9816 > > │                 15_i32                                                       │
00:09:16 verbose #9817 > > │             );                                                               │
00:09:16 verbose #9818 > > │             printfn!("{0}", v11.clone());                                    │
00:09:16 verbose #9819 > > │             if v7 == false {                                                 │
00:09:16 verbose #9820 > > │                 panic!("{}", v11,);                                          │
00:09:16 verbose #9821 > > │             }                                                                │
00:09:16 verbose #9822 > > │         }                                                                    │
00:09:16 verbose #9823 > > │         on_startup!(Spiral_builder::method0());                              │
00:09:16 verbose #9824 > > │     }                                                                        │
00:09:16 verbose #9825 > > │ }                                                                            │
00:09:16 verbose #9826 > > │ pub use module_357ff3b3::*;                                                  │
00:09:16 verbose #9827 > > │                                                                              │
00:09:16 verbose #9828 > > │ pub fn main() -> Result<(), String> {                                        │
00:09:16 verbose #9829 > > │     Ok(())                                                                   │
00:09:16 verbose #9830 > > │ }                                                                            │
00:09:16 verbose #9831 > > │                                                                              │
00:09:16 verbose #9832 > > │ .ts:                                                                         │
00:09:16 verbose #9833 > > │ import { int32 } from "./fable_modules/fable-library-ts.4.19.3/Int32.js";    │
00:09:16 verbose #9834 > > │ import { interpolate, toText } from                                          │
00:09:16 verbose #9835 > > │ "./fable_modules/fable-library-ts.4.19.3/String.js";                         │
00:09:16 verbose #9836 > > │                                                                              │
00:09:16 verbose #9837 > > │ export function method1(): int32 {                                           │
00:09:16 verbose #9838 > > │     return 3;                                                                │
00:09:16 verbose #9839 > > │ }                                                                            │
00:09:16 verbose #9840 > > │                                                                              │
00:09:16 verbose #9841 > > │ export function method2(v0: int32, v1: int32): int32 {                       │
00:09:16 verbose #9842 > > │     return v1 + v0;                                                          │
00:09:16 verbose #9843 > > │ }                                                                            │
00:09:16 verbose #9844 > > │                                                                              │
00:09:16 verbose #9845 > > │ export function method3(v0: boolean): boolean {                              │
00:09:16 verbose #9846 > > │     return v0;                                                               │
00:09:16 verbose #9847 > > │ }                                                                            │
00:09:16 verbose #9848 > > │                                                                              │
00:09:16 verbose #9849 > > │ export function method0(): void {                                            │
00:09:16 verbose #9850 > > │     const v4: int32 = ((method2(method1(), 9) + 2) + 1) | 0;                 │
00:09:16 verbose #9851 > > │     const v5: boolean = v4 === 15;                                           │
00:09:16 verbose #9852 > > │     const v7: boolean = v5 ? true : method3(v5);                             │
00:09:16 verbose #9853 > > │     const v11: string = toText(interpolate("%P() / actual: %A%P() /          │
00:09:16 verbose #9854 > > │ expected: %A%P()", ["assert_eq", v4, 15]));                                  │
00:09:16 verbose #9855 > > │     console.log(v11);                                                        │
00:09:16 verbose #9856 > > │     if (v7 === false) {                                                      │
00:09:16 verbose #9857 > > │         throw new Error(v11);                                                │
00:09:16 verbose #9858 > > │     }                                                                        │
00:09:16 verbose #9859 > > │ }                                                                            │
00:09:16 verbose #9860 > > │                                                                              │
00:09:16 verbose #9861 > > │ method0();                                                                   │
00:09:16 verbose #9862 > > │                                                                              │
00:09:16 verbose #9863 > > │                                                                              │
00:09:16 verbose #9864 > > │                                                                              │
00:09:16 verbose #9865 > > │ // spiral_builder.process_typescript                                         │
00:09:16 verbose #9866 > > │                                                                              │
00:09:16 verbose #9867 > > │ .py:                                                                         │
00:09:16 verbose #9868 > > │ from fable_modules.fable_library.string_ import (to_text, interpolate)       │
00:09:16 verbose #9869 > > │                                                                              │
00:09:16 verbose #9870 > > │ def method1(__unit: None=None) -> int:                                       │
00:09:16 verbose #9871 > > │     return 3                                                                 │
00:09:16 verbose #9872 > > │                                                                              │
00:09:16 verbose #9873 > > │                                                                              │
00:09:16 verbose #9874 > > │ def method2(v0: int, v1: int) -> int:                                        │
00:09:16 verbose #9875 > > │     return v1 + v0                                                           │
00:09:16 verbose #9876 > > │                                                                              │
00:09:16 verbose #9877 > > │                                                                              │
00:09:16 verbose #9878 > > │ def method3(v0: bool) -> bool:                                               │
00:09:16 verbose #9879 > > │     return v0                                                                │
00:09:16 verbose #9880 > > │                                                                              │
00:09:16 verbose #9881 > > │                                                                              │
00:09:16 verbose #9882 > > │ def method0(__unit: None=None) -> None:                                      │
00:09:16 verbose #9883 > > │     v4: int = ((method2(method1(), 9) + 2) + 1) or 0                         │
00:09:16 verbose #9884 > > │     v5: bool = v4 == 15                                                      │
00:09:16 verbose #9885 > > │     v7: bool = True if v5 else method3(v5)                                   │
00:09:16 verbose #9886 > > │     v11: str = to_text(interpolate("%P() / actual: %A%P() / expected:        │
00:09:16 verbose #9887 > > │ %A%P()", ["assert_eq", v4, 15]))                                             │
00:09:16 verbose #9888 > > │     print(v11)                                                               │
00:09:16 verbose #9889 > > │     if v7 == False:                                                          │
00:09:16 verbose #9890 > > │         raise Exception(v11)                                                 │
00:09:16 verbose #9891 > > │                                                                              │
00:09:16 verbose #9892 > > │                                                                              │
00:09:16 verbose #9893 > > │                                                                              │
00:09:16 verbose #9894 > > │ method0()                                                                    │
00:09:16 verbose #9895 > > │                                                                              │
00:09:16 verbose #9896 > > │                                                                              │
00:09:16 verbose #9897 > > │                                                                              │
00:09:16 verbose #9898 > > │ # spiral_builder.process_python                                              │
00:09:16 verbose #9899 > > │                                                                              │
00:09:16 verbose #9900 > > │ .py:                                                                         │
00:09:16 verbose #9901 > > │ kernel = r"""                                                                │
00:09:16 verbose #9902 > > │ """                                                                          │
00:09:16 verbose #9903 > > │ class static_array():                                                        │
00:09:16 verbose #9904 > > │     def __init__(self, length):                                              │
00:09:16 verbose #9905 > > │         self.ptr = []                                                        │
00:09:16 verbose #9906 > > │         for _ in range(length):                                              │
00:09:16 verbose #9907 > > │             self.ptr.append(None)                                            │
00:09:16 verbose #9908 > > │                                                                              │
00:09:16 verbose #9909 > > │     def __getitem__(self, index):                                            │
00:09:16 verbose #9910 > > │         assert 0 <= index < len(self.ptr), "The get index needs to be in     │
00:09:16 verbose #9911 > > │ range."                                                                      │
00:09:16 verbose #9912 > > │         return self.ptr[index]                                               │
00:09:16 verbose #9913 > > │                                                                              │
00:09:16 verbose #9914 > > │     def __setitem__(self, index, value):                                     │
00:09:16 verbose #9915 > > │         assert 0 <= index < len(self.ptr), "The set index needs to be in     │
00:09:16 verbose #9916 > > │ range."                                                                      │
00:09:16 verbose #9917 > > │         self.ptr[index] = value                                              │
00:09:16 verbose #9918 > > │                                                                              │
00:09:16 verbose #9919 > > │ class static_array_list(static_array):                                       │
00:09:16 verbose #9920 > > │     def __init__(self, length):                                              │
00:09:16 verbose #9921 > > │         super().__init__(length)                                             │
00:09:16 verbose #9922 > > │         self.length = 0                                                      │
00:09:16 verbose #9923 > > │                                                                              │
00:09:16 verbose #9924 > > │     def __getitem__(self, index):                                            │
00:09:16 verbose #9925 > > │         assert 0 <= index < self.length, "The get index needs to be in       │
00:09:16 verbose #9926 > > │ range."                                                                      │
00:09:16 verbose #9927 > > │         return self.ptr[index]                                               │
00:09:16 verbose #9928 > > │                                                                              │
00:09:16 verbose #9929 > > │     def __setitem__(self, index, value):                                     │
00:09:16 verbose #9930 > > │         assert 0 <= index < self.length, "The set index needs to be in       │
00:09:16 verbose #9931 > > │ range."                                                                      │
00:09:16 verbose #9932 > > │         self.ptr[index] = value                                              │
00:09:16 verbose #9933 > > │                                                                              │
00:09:16 verbose #9934 > > │     def push(self,value):                                                    │
00:09:16 verbose #9935 > > │         assert (self.length < len(self.ptr)), "The length before pushing has │
00:09:16 verbose #9936 > > │ to be less than the maximum length of the array."                            │
00:09:16 verbose #9937 > > │         self.ptr[self.length] = value                                        │
00:09:16 verbose #9938 > > │         self.length += 1                                                     │
00:09:16 verbose #9939 > > │                                                                              │
00:09:16 verbose #9940 > > │     def pop(self):                                                           │
00:09:16 verbose #9941 > > │         assert (0 < self.length), "The length before popping has to be       │
00:09:16 verbose #9942 > > │ greater than 0."                                                             │
00:09:16 verbose #9943 > > │         self.length -= 1                                                     │
00:09:16 verbose #9944 > > │         return self.ptr[self.length]                                         │
00:09:16 verbose #9945 > > │                                                                              │
00:09:16 verbose #9946 > > │     def unsafe_set_length(self,i):                                           │
00:09:16 verbose #9947 > > │         assert 0 <= i <= len(self.ptr), "The new length has to be in range." │
00:09:16 verbose #9948 > > │         self.length = i                                                      │
00:09:16 verbose #9949 > > │                                                                              │
00:09:16 verbose #9950 > > │ class dynamic_array(static_array):                                           │
00:09:16 verbose #9951 > > │     pass                                                                     │
00:09:16 verbose #9952 > > │                                                                              │
00:09:16 verbose #9953 > > │ class dynamic_array_list(static_array_list):                                 │
00:09:16 verbose #9954 > > │     def length_(self): return self.length                                    │
00:09:16 verbose #9955 > > │                                                                              │
00:09:16 verbose #9956 > > │ import cupy as cp                                                            │
00:09:16 verbose #9957 > > │ from dataclasses import dataclass                                            │
00:09:16 verbose #9958 > > │ from typing import NamedTuple, Union, Callable, Tuple                        │
00:09:16 verbose #9959 > > │ i8 = i16 = i32 = i64 = u8 = u16 = u32 = u64 = int; f32 = f64 = float; char = │
00:09:16 verbose #9960 > > │ string = str                                                                 │
00:09:16 verbose #9961 > > │                                                                              │
00:09:16 verbose #9962 > > │ def method1() -> i32:                                                        │
00:09:16 verbose #9963 > > │     return 3                                                                 │
00:09:16 verbose #9964 > > │ def method2(v0 : i32, v1 : i32) -> i32:                                      │
00:09:16 verbose #9965 > > │     v2 = v1 + v0                                                             │
00:09:16 verbose #9966 > > │     del v0, v1                                                               │
00:09:16 verbose #9967 > > │     return v2                                                                │
00:09:16 verbose #9968 > > │ def method3(v0 : bool) -> bool:                                              │
00:09:16 verbose #9969 > > │     return v0                                                                │
00:09:16 verbose #9970 > > │ def method0() -> None:                                                       │
00:09:16 verbose #9971 > > │     v0 = method1()                                                           │
00:09:16 verbose #9972 > > │     v1 = 9                                                                   │
00:09:16 verbose #9973 > > │     v2 = method2(v0, v1)                                                     │
00:09:16 verbose #9974 > > │     del v0, v1                                                               │
00:09:16 verbose #9975 > > │     v3 = v2 + 2                                                              │
00:09:16 verbose #9976 > > │     del v2                                                                   │
00:09:16 verbose #9977 > > │     v4 = v3 + 1                                                              │
00:09:16 verbose #9978 > > │     del v3                                                                   │
00:09:16 verbose #9979 > > │     v5 = v4 == 15                                                            │
00:09:16 verbose #9980 > > │     if v5:                                                                   │
00:09:16 verbose #9981 > > │         v7 = True                                                            │
00:09:16 verbose #9982 > > │     else:                                                                    │
00:09:16 verbose #9983 > > │         v7 = method3(v5)                                                     │
00:09:16 verbose #9984 > > │     del v5                                                                   │
00:09:16 verbose #9985 > > │     v14 = "assert_eq"                                                        │
00:09:16 verbose #9986 > > │     v15 = f"{v14} / actual: {v4} / expected: {15}"                           │
00:09:16 verbose #9987 > > │     del v4, v14                                                              │
00:09:16 verbose #9988 > > │     print(v15)                                                               │
00:09:16 verbose #9989 > > │     v26 = v7 == False                                                        │
00:09:16 verbose #9990 > > │     del v7                                                                   │
00:09:16 verbose #9991 > > │     if v26:                                                                  │
00:09:16 verbose #9992 > > │         del v26                                                              │
00:09:16 verbose #9993 > > │         raise Exception(v15)                                                 │
00:09:16 verbose #9994 > > │     else:                                                                    │
00:09:16 verbose #9995 > > │         del v15, v26                                                         │
00:09:16 verbose #9996 > > │         return                                                               │
00:09:16 verbose #9997 > > │ def main():                                                                  │
00:09:16 verbose #9998 > > │     return method0()                                                         │
00:09:16 verbose #9999 > > │                                                                              │
00:09:16 verbose #10000 > > │ if __name__ == '__main__': result = main(); None if result is None else      │
00:09:16 verbose #10001 > > │ print(result)                                                                │
00:09:16 verbose #10002 > > │                                                                              │
00:09:16 verbose #10003 > > │                                                                              │
00:09:16 verbose #10004 > > │ .py:                                                                         │
00:09:16 verbose #10005 > > │ kernel = r"""                                                                │
00:09:16 verbose #10006 > > │ """                                                                          │
00:09:16 verbose #10007 > > │ class static_array():                                                        │
00:09:16 verbose #10008 > > │     def __init__(self, length):                                              │
00:09:16 verbose #10009 > > │         self.ptr = []                                                        │
00:09:16 verbose #10010 > > │         for _ in range(length):                                              │
00:09:16 verbose #10011 > > │             self.ptr.append(None)                                            │
00:09:16 verbose #10012 > > │                                                                              │
00:09:16 verbose #10013 > > │     def __getitem__(self, index):                                            │
00:09:16 verbose #10014 > > │         assert 0 <= index < len(self.ptr), "The get index needs to be in     │
00:09:16 verbose #10015 > > │ range."                                                                      │
00:09:16 verbose #10016 > > │         return self.ptr[index]                                               │
00:09:16 verbose #10017 > > │                                                                              │
00:09:16 verbose #10018 > > │     def __setitem__(self, index, value):                                     │
00:09:16 verbose #10019 > > │         assert 0 <= index < len(self.ptr), "The set index needs to be in     │
00:09:16 verbose #10020 > > │ range."                                                                      │
00:09:16 verbose #10021 > > │         self.ptr[index] = value                                              │
00:09:16 verbose #10022 > > │                                                                              │
00:09:16 verbose #10023 > > │ class static_array_list(static_array):                                       │
00:09:16 verbose #10024 > > │     def __init__(self, length):                                              │
00:09:16 verbose #10025 > > │         super().__init__(length)                                             │
00:09:16 verbose #10026 > > │         self.length = 0                                                      │
00:09:16 verbose #10027 > > │                                                                              │
00:09:16 verbose #10028 > > │     def __getitem__(self, index):                                            │
00:09:16 verbose #10029 > > │         assert 0 <= index < self.length, "The get index needs to be in       │
00:09:16 verbose #10030 > > │ range."                                                                      │
00:09:16 verbose #10031 > > │         return self.ptr[index]                                               │
00:09:16 verbose #10032 > > │                                                                              │
00:09:16 verbose #10033 > > │     def __setitem__(self, index, value):                                     │
00:09:16 verbose #10034 > > │         assert 0 <= index < self.length, "The set index needs to be in       │
00:09:16 verbose #10035 > > │ range."                                                                      │
00:09:16 verbose #10036 > > │         self.ptr[index] = value                                              │
00:09:16 verbose #10037 > > │                                                                              │
00:09:16 verbose #10038 > > │     def push(self,value):                                                    │
00:09:16 verbose #10039 > > │         assert (self.length < len(self.ptr)), "The length before pushing has │
00:09:16 verbose #10040 > > │ to be less than the maximum length of the array."                            │
00:09:16 verbose #10041 > > │         self.ptr[self.length] = value                                        │
00:09:16 verbose #10042 > > │         self.length += 1                                                     │
00:09:16 verbose #10043 > > │                                                                              │
00:09:16 verbose #10044 > > │     def pop(self):                                                           │
00:09:16 verbose #10045 > > │         assert (0 < self.length), "The length before popping has to be       │
00:09:16 verbose #10046 > > │ greater than 0."                                                             │
00:09:16 verbose #10047 > > │         self.length -= 1                                                     │
00:09:16 verbose #10048 > > │         return self.ptr[self.length]                                         │
00:09:16 verbose #10049 > > │                                                                              │
00:09:16 verbose #10050 > > │     def unsafe_set_length(self,i):                                           │
00:09:16 verbose #10051 > > │         assert 0 <= i <= len(self.ptr), "The new length has to be in range." │
00:09:16 verbose #10052 > > │         self.length = i                                                      │
00:09:16 verbose #10053 > > │                                                                              │
00:09:16 verbose #10054 > > │ class dynamic_array(static_array):                                           │
00:09:16 verbose #10055 > > │     pass                                                                     │
00:09:16 verbose #10056 > > │                                                                              │
00:09:16 verbose #10057 > > │ class dynamic_array_list(static_array_list):                                 │
00:09:16 verbose #10058 > > │     def length_(self): return self.length                                    │
00:09:16 verbose #10059 > > │                                                                              │
00:09:16 verbose #10060 > > │ import cupy as cp                                                            │
00:09:16 verbose #10061 > > │ from dataclasses import dataclass                                            │
00:09:16 verbose #10062 > > │ from typing import NamedTuple, Union, Callable, Tuple                        │
00:09:16 verbose #10063 > > │ i8 = i16 = i32 = i64 = u8 = u16 = u32 = u64 = int; f32 = f64 = float; char = │
00:09:16 verbose #10064 > > │ string = str                                                                 │
00:09:16 verbose #10065 > > │                                                                              │
00:09:16 verbose #10066 > > │ def method1() -> i32:                                                        │
00:09:16 verbose #10067 > > │     return 3                                                                 │
00:09:16 verbose #10068 > > │ def method2(v0 : i32, v1 : i32) -> i32:                                      │
00:09:16 verbose #10069 > > │     v2 = v1 + v0                                                             │
00:09:16 verbose #10070 > > │     del v0, v1                                                               │
00:09:16 verbose #10071 > > │     return v2                                                                │
00:09:16 verbose #10072 > > │ def method3(v0 : bool) -> bool:                                              │
00:09:16 verbose #10073 > > │     return v0                                                                │
00:09:16 verbose #10074 > > │ def method0() -> None:                                                       │
00:09:16 verbose #10075 > > │     v0 = method1()                                                           │
00:09:16 verbose #10076 > > │     v1 = 9                                                                   │
00:09:16 verbose #10077 > > │     v2 = method2(v0, v1)                                                     │
00:09:16 verbose #10078 > > │     del v0, v1                                                               │
00:09:16 verbose #10079 > > │     v3 = v2 + 2                                                              │
00:09:16 verbose #10080 > > │     del v2                                                                   │
00:09:16 verbose #10081 > > │     v4 = v3 + 1                                                              │
00:09:16 verbose #10082 > > │     del v3                                                                   │
00:09:16 verbose #10083 > > │     v5 = v4 == 15                                                            │
00:09:16 verbose #10084 > > │     if v5:                                                                   │
00:09:16 verbose #10085 > > │         v7 = True                                                            │
00:09:16 verbose #10086 > > │     else:                                                                    │
00:09:16 verbose #10087 > > │         v7 = method3(v5)                                                     │
00:09:16 verbose #10088 > > │     del v5                                                                   │
00:09:16 verbose #10089 > > │     v14 = "assert_eq"                                                        │
00:09:16 verbose #10090 > > │     v15 = f"{v14} / actual: {v4} / expected: {15}"                           │
00:09:16 verbose #10091 > > │     del v4, v14                                                              │
00:09:16 verbose #10092 > > │     print(v15)                                                               │
00:09:16 verbose #10093 > > │     v26 = v7 == False                                                        │
00:09:16 verbose #10094 > > │     del v7                                                                   │
00:09:16 verbose #10095 > > │     if v26:                                                                  │
00:09:16 verbose #10096 > > │         del v26                                                              │
00:09:16 verbose #10097 > > │         raise Exception(v15)                                                 │
00:09:16 verbose #10098 > > │     else:                                                                    │
00:09:16 verbose #10099 > > │         del v15, v26                                                         │
00:09:16 verbose #10100 > > │         return                                                               │
00:09:16 verbose #10101 > > │ def main():                                                                  │
00:09:16 verbose #10102 > > │     return method0()                                                         │
00:09:16 verbose #10103 > > │                                                                              │
00:09:16 verbose #10104 > > │ if __name__ == '__main__': result = main(); None if result is None else      │
00:09:16 verbose #10105 > > │ print(result)                                                                │
00:09:16 verbose #10106 > > │                                                                              │
00:09:16 verbose #10107 > > │ .fsx output:                                                                 │
00:09:16 verbose #10108 > > │ assert_eq / actual: 15 / expected: 15                                        │
00:09:16 verbose #10109 > > │                                                                              │
00:09:16 verbose #10110 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:16 verbose #10111 > >
00:09:16 verbose #10112 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:16 verbose #10113 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:16 verbose #10114 > > │ ### join_body_unit                                                           │
00:09:16 verbose #10115 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:16 verbose #10116 > >
00:09:16 verbose #10117 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:16 verbose #10118 > > inl join_body_unit body d x =
00:09:16 verbose #10119 > >     if var_is d |> not
00:09:16 verbose #10120 > >     then body x
00:09:16 verbose #10121 > >     else
00:09:16 verbose #10122 > >         inl x = dyn x
00:09:16 verbose #10123 > >         join body x
00:09:17 verbose #10124 > 00:09:16   debug #565 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/86c73248a31a90fd970a45f70890aceb8acea2aa16616929ea0c010972346ed6/main.spi
00:09:17 verbose #10125 > >
00:09:17 verbose #10126 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:17 verbose #10127 > > //// test
00:09:17 verbose #10128 > > ///! fsharp
00:09:17 verbose #10129 > > ///! cuda
00:09:17 verbose #10130 > > ///! rust
00:09:17 verbose #10131 > > ///! typescript
00:09:17 verbose #10132 > > ///! python
00:09:17 verbose #10133 > > //// print_code=true
00:09:17 verbose #10134 > >
00:09:17 verbose #10135 > > [[ 5i32; 4; join 3; 2; 1 ]]
00:09:17 verbose #10136 > > |> fold_list (fun acc n => join_body_unit ((+) acc) n n) 0
00:09:17 verbose #10137 > > |> _assert_eq 15
00:09:17 verbose #10138 > 00:09:16   debug #566 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1b5e0678c1a95b24957bd16f852c3179568dca2534a9b588d13644564904d37d/main.spi
00:09:17 verbose #10139 > 00:09:16   debug #567 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/748972889f98ab415eeb7799d6255daaf3d8215b9a8da51f23bd1979807aaf55/main.spi
00:09:21 verbose #10140 > >
00:09:21 verbose #10141 > > ╭─[ 4.33s - return value ]─────────────────────────────────────────────────────╮
00:09:21 verbose #10142 > > │ .py output (Cuda):                                                           │
00:09:21 verbose #10143 > > │ assert_eq / actual: 15 / expected: 15                                        │
00:09:21 verbose #10144 > > │                                                                              │
00:09:21 verbose #10145 > > │ .rs output:                                                                  │
00:09:21 verbose #10146 > > │ assert_eq / actual: 15 / expected: 15                                        │
00:09:21 verbose #10147 > > │                                                                              │
00:09:21 verbose #10148 > > │ .ts output:                                                                  │
00:09:21 verbose #10149 > > │ assert_eq / actual: 15 / expected: 15                                        │
00:09:21 verbose #10150 > > │                                                                              │
00:09:21 verbose #10151 > > │ .py output:                                                                  │
00:09:21 verbose #10152 > > │ assert_eq / actual: 15 / expected: 15                                        │
00:09:21 verbose #10153 > > │                                                                              │
00:09:21 verbose #10154 > > │                                                                              │
00:09:21 verbose #10155 > > │                                                                              │
00:09:21 verbose #10156 > > │                                                                              │
00:09:21 verbose #10157 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:21 verbose #10158 > >
00:09:21 verbose #10159 > > ╭─[ 4.34s - stdout ]───────────────────────────────────────────────────────────╮
00:09:21 verbose #10160 > > │ .fsx:                                                                        │
00:09:21 verbose #10161 > > │ let rec method1 () : int32 =                                                 │
00:09:21 verbose #10162 > > │     3                                                                        │
00:09:21 verbose #10163 > > │ and method2 (v0 : int32) : int32 =                                           │
00:09:21 verbose #10164 > > │     let v1 : int32 = 9 + v0                                                  │
00:09:21 verbose #10165 > > │     v1                                                                       │
00:09:21 verbose #10166 > > │ and method3 (v0 : bool) : bool =                                             │
00:09:21 verbose #10167 > > │     v0                                                                       │
00:09:21 verbose #10168 > > │ and method0 () : unit =                                                      │
00:09:21 verbose #10169 > > │     let v0 : int32 = method1()                                               │
00:09:21 verbose #10170 > > │     let v1 : int32 = method2(v0)                                             │
00:09:21 verbose #10171 > > │     let v2 : int32 = v1 + 2                                                  │
00:09:21 verbose #10172 > > │     let v3 : int32 = v2 + 1                                                  │
00:09:21 verbose #10173 > > │     let v4 : bool = v3 = 15                                                  │
00:09:21 verbose #10174 > > │     let v6 : bool =                                                          │
00:09:21 verbose #10175 > > │         if v4 then                                                           │
00:09:21 verbose #10176 > > │             true                                                             │
00:09:21 verbose #10177 > > │         else                                                                 │
00:09:21 verbose #10178 > > │             method3(v4)                                                      │
00:09:21 verbose #10179 > > │     let v9 : string = "assert_eq"                                            │
00:09:21 verbose #10180 > > │     let v10 : string = $"{v9} / actual: %A{v3} / expected: %A{15}"           │
00:09:21 verbose #10181 > > │     let v19 : (string -> unit) = System.Console.WriteLine                    │
00:09:21 verbose #10182 > > │     v19 v10                                                                  │
00:09:21 verbose #10183 > > │     let v24 : bool = v6 = false                                              │
00:09:21 verbose #10184 > > │     if v24 then                                                              │
00:09:21 verbose #10185 > > │         failwith<unit> v10                                                   │
00:09:21 verbose #10186 > > │ method0()                                                                    │
00:09:21 verbose #10187 > > │                                                                              │
00:09:21 verbose #10188 > > │                                                                              │
00:09:21 verbose #10189 > > │ .rs:                                                                         │
00:09:21 verbose #10190 > > │ #![allow(dead_code)]                                                         │
00:09:21 verbose #10191 > > │ #![allow(non_camel_case_types)]                                              │
00:09:21 verbose #10192 > > │ #![allow(non_snake_case)]                                                    │
00:09:21 verbose #10193 > > │ #![allow(non_upper_case_globals)]                                            │
00:09:21 verbose #10194 > > │ #![allow(unreachable_code)]                                                  │
00:09:21 verbose #10195 > > │ #![allow(unused_attributes)]                                                 │
00:09:21 verbose #10196 > > │ #![allow(unused_imports)]                                                    │
00:09:21 verbose #10197 > > │ #![allow(unused_macros)]                                                     │
00:09:21 verbose #10198 > > │ #![allow(unused_parens)]                                                     │
00:09:21 verbose #10199 > > │ #![allow(unused_variables)]                                                  │
00:09:21 verbose #10200 > > │ mod module_14108a7f {                                                        │
00:09:21 verbose #10201 > > │     pub mod Spiral_builder {                                                 │
00:09:21 verbose #10202 > > │         use super::*;                                                        │
00:09:21 verbose #10203 > > │         use fable_library_rust::Native_::on_startup;                         │
00:09:21 verbose #10204 > > │         use fable_library_rust::String_::printfn;                            │
00:09:21 verbose #10205 > > │         use fable_library_rust::String_::sprintf;                            │
00:09:21 verbose #10206 > > │         use fable_library_rust::String_::string;                             │
00:09:21 verbose #10207 > > │         pub fn method1() -> i32 {                                            │
00:09:21 verbose #10208 > > │             3_i32                                                            │
00:09:21 verbose #10209 > > │         }                                                                    │
00:09:21 verbose #10210 > > │         pub fn method2(v0: i32) -> i32 {                                     │
00:09:21 verbose #10211 > > │             9_i32 + v0                                                       │
00:09:21 verbose #10212 > > │         }                                                                    │
00:09:21 verbose #10213 > > │         pub fn method3(v0: bool) -> bool {                                   │
00:09:21 verbose #10214 > > │             v0                                                               │
00:09:21 verbose #10215 > > │         }                                                                    │
00:09:21 verbose #10216 > > │         pub fn method0() {                                                   │
00:09:21 verbose #10217 > > │             let v3: i32 = Spiral_builder::method2(Spiral_builder::method1()) │
00:09:21 verbose #10218 > > │ + 2_i32 + 1_i32;                                                             │
00:09:21 verbose #10219 > > │             let v4: bool = v3 == 15_i32;                                     │
00:09:21 verbose #10220 > > │             let v6: bool = if v4 {                                           │
00:09:21 verbose #10221 > > │                 true                                                         │
00:09:21 verbose #10222 > > │             } else {                                                         │
00:09:21 verbose #10223 > > │                 Spiral_builder::method3(v4)                                  │
00:09:21 verbose #10224 > > │             };                                                               │
00:09:21 verbose #10225 > > │             let v10: string = sprintf!(                                      │
00:09:21 verbose #10226 > > │                 "{} / actual: {:?} / expected: {:?}",                        │
00:09:21 verbose #10227 > > │                 string("assert_eq"),                                         │
00:09:21 verbose #10228 > > │                 v3,                                                          │
00:09:21 verbose #10229 > > │                 15_i32                                                       │
00:09:21 verbose #10230 > > │             );                                                               │
00:09:21 verbose #10231 > > │             printfn!("{0}", v10.clone());                                    │
00:09:21 verbose #10232 > > │             if v6 == false {                                                 │
00:09:21 verbose #10233 > > │                 panic!("{}", v10,);                                          │
00:09:21 verbose #10234 > > │             }                                                                │
00:09:21 verbose #10235 > > │         }                                                                    │
00:09:21 verbose #10236 > > │         on_startup!(Spiral_builder::method0());                              │
00:09:21 verbose #10237 > > │     }                                                                        │
00:09:21 verbose #10238 > > │ }                                                                            │
00:09:21 verbose #10239 > > │ pub use module_14108a7f::*;                                                  │
00:09:21 verbose #10240 > > │                                                                              │
00:09:21 verbose #10241 > > │ pub fn main() -> Result<(), String> {                                        │
00:09:21 verbose #10242 > > │     Ok(())                                                                   │
00:09:21 verbose #10243 > > │ }                                                                            │
00:09:21 verbose #10244 > > │                                                                              │
00:09:21 verbose #10245 > > │ .ts:                                                                         │
00:09:21 verbose #10246 > > │ import { int32 } from "./fable_modules/fable-library-ts.4.19.3/Int32.js";    │
00:09:21 verbose #10247 > > │ import { interpolate, toText } from                                          │
00:09:21 verbose #10248 > > │ "./fable_modules/fable-library-ts.4.19.3/String.js";                         │
00:09:21 verbose #10249 > > │                                                                              │
00:09:21 verbose #10250 > > │ export function method1(): int32 {                                           │
00:09:21 verbose #10251 > > │     return 3;                                                                │
00:09:21 verbose #10252 > > │ }                                                                            │
00:09:21 verbose #10253 > > │                                                                              │
00:09:21 verbose #10254 > > │ export function method2(v0: int32): int32 {                                  │
00:09:21 verbose #10255 > > │     return 9 + v0;                                                           │
00:09:21 verbose #10256 > > │ }                                                                            │
00:09:21 verbose #10257 > > │                                                                              │
00:09:21 verbose #10258 > > │ export function method3(v0: boolean): boolean {                              │
00:09:21 verbose #10259 > > │     return v0;                                                               │
00:09:21 verbose #10260 > > │ }                                                                            │
00:09:21 verbose #10261 > > │                                                                              │
00:09:21 verbose #10262 > > │ export function method0(): void {                                            │
00:09:21 verbose #10263 > > │     const v3: int32 = ((method2(method1()) + 2) + 1) | 0;                    │
00:09:21 verbose #10264 > > │     const v4: boolean = v3 === 15;                                           │
00:09:21 verbose #10265 > > │     const v6: boolean = v4 ? true : method3(v4);                             │
00:09:21 verbose #10266 > > │     const v10: string = toText(interpolate("%P() / actual: %A%P() /          │
00:09:21 verbose #10267 > > │ expected: %A%P()", ["assert_eq", v3, 15]));                                  │
00:09:21 verbose #10268 > > │     console.log(v10);                                                        │
00:09:21 verbose #10269 > > │     if (v6 === false) {                                                      │
00:09:21 verbose #10270 > > │         throw new Error(v10);                                                │
00:09:21 verbose #10271 > > │     }                                                                        │
00:09:21 verbose #10272 > > │ }                                                                            │
00:09:21 verbose #10273 > > │                                                                              │
00:09:21 verbose #10274 > > │ method0();                                                                   │
00:09:21 verbose #10275 > > │                                                                              │
00:09:21 verbose #10276 > > │                                                                              │
00:09:21 verbose #10277 > > │                                                                              │
00:09:21 verbose #10278 > > │ // spiral_builder.process_typescript                                         │
00:09:21 verbose #10279 > > │                                                                              │
00:09:21 verbose #10280 > > │ .py:                                                                         │
00:09:21 verbose #10281 > > │ from fable_modules.fable_library.string_ import (to_text, interpolate)       │
00:09:21 verbose #10282 > > │                                                                              │
00:09:21 verbose #10283 > > │ def method1(__unit: None=None) -> int:                                       │
00:09:21 verbose #10284 > > │     return 3                                                                 │
00:09:21 verbose #10285 > > │                                                                              │
00:09:21 verbose #10286 > > │                                                                              │
00:09:21 verbose #10287 > > │ def method2(v0: int) -> int:                                                 │
00:09:21 verbose #10288 > > │     return 9 + v0                                                            │
00:09:21 verbose #10289 > > │                                                                              │
00:09:21 verbose #10290 > > │                                                                              │
00:09:21 verbose #10291 > > │ def method3(v0: bool) -> bool:                                               │
00:09:21 verbose #10292 > > │     return v0                                                                │
00:09:21 verbose #10293 > > │                                                                              │
00:09:21 verbose #10294 > > │                                                                              │
00:09:21 verbose #10295 > > │ def method0(__unit: None=None) -> None:                                      │
00:09:21 verbose #10296 > > │     v3: int = ((method2(method1()) + 2) + 1) or 0                            │
00:09:21 verbose #10297 > > │     v4: bool = v3 == 15                                                      │
00:09:21 verbose #10298 > > │     v6: bool = True if v4 else method3(v4)                                   │
00:09:21 verbose #10299 > > │     v10: str = to_text(interpolate("%P() / actual: %A%P() / expected:        │
00:09:21 verbose #10300 > > │ %A%P()", ["assert_eq", v3, 15]))                                             │
00:09:21 verbose #10301 > > │     print(v10)                                                               │
00:09:21 verbose #10302 > > │     if v6 == False:                                                          │
00:09:21 verbose #10303 > > │         raise Exception(v10)                                                 │
00:09:21 verbose #10304 > > │                                                                              │
00:09:21 verbose #10305 > > │                                                                              │
00:09:21 verbose #10306 > > │                                                                              │
00:09:21 verbose #10307 > > │ method0()                                                                    │
00:09:21 verbose #10308 > > │                                                                              │
00:09:21 verbose #10309 > > │                                                                              │
00:09:21 verbose #10310 > > │                                                                              │
00:09:21 verbose #10311 > > │ # spiral_builder.process_python                                              │
00:09:21 verbose #10312 > > │                                                                              │
00:09:21 verbose #10313 > > │ .py:                                                                         │
00:09:21 verbose #10314 > > │ kernel = r"""                                                                │
00:09:21 verbose #10315 > > │ """                                                                          │
00:09:21 verbose #10316 > > │ class static_array():                                                        │
00:09:21 verbose #10317 > > │     def __init__(self, length):                                              │
00:09:21 verbose #10318 > > │         self.ptr = []                                                        │
00:09:21 verbose #10319 > > │         for _ in range(length):                                              │
00:09:21 verbose #10320 > > │             self.ptr.append(None)                                            │
00:09:21 verbose #10321 > > │                                                                              │
00:09:21 verbose #10322 > > │     def __getitem__(self, index):                                            │
00:09:21 verbose #10323 > > │         assert 0 <= index < len(self.ptr), "The get index needs to be in     │
00:09:21 verbose #10324 > > │ range."                                                                      │
00:09:21 verbose #10325 > > │         return self.ptr[index]                                               │
00:09:21 verbose #10326 > > │                                                                              │
00:09:21 verbose #10327 > > │     def __setitem__(self, index, value):                                     │
00:09:21 verbose #10328 > > │         assert 0 <= index < len(self.ptr), "The set index needs to be in     │
00:09:21 verbose #10329 > > │ range."                                                                      │
00:09:21 verbose #10330 > > │         self.ptr[index] = value                                              │
00:09:21 verbose #10331 > > │                                                                              │
00:09:21 verbose #10332 > > │ class static_array_list(static_array):                                       │
00:09:21 verbose #10333 > > │     def __init__(self, length):                                              │
00:09:21 verbose #10334 > > │         super().__init__(length)                                             │
00:09:21 verbose #10335 > > │         self.length = 0                                                      │
00:09:21 verbose #10336 > > │                                                                              │
00:09:21 verbose #10337 > > │     def __getitem__(self, index):                                            │
00:09:21 verbose #10338 > > │         assert 0 <= index < self.length, "The get index needs to be in       │
00:09:21 verbose #10339 > > │ range."                                                                      │
00:09:21 verbose #10340 > > │         return self.ptr[index]                                               │
00:09:21 verbose #10341 > > │                                                                              │
00:09:21 verbose #10342 > > │     def __setitem__(self, index, value):                                     │
00:09:21 verbose #10343 > > │         assert 0 <= index < self.length, "The set index needs to be in       │
00:09:21 verbose #10344 > > │ range."                                                                      │
00:09:21 verbose #10345 > > │         self.ptr[index] = value                                              │
00:09:21 verbose #10346 > > │                                                                              │
00:09:21 verbose #10347 > > │     def push(self,value):                                                    │
00:09:21 verbose #10348 > > │         assert (self.length < len(self.ptr)), "The length before pushing has │
00:09:21 verbose #10349 > > │ to be less than the maximum length of the array."                            │
00:09:21 verbose #10350 > > │         self.ptr[self.length] = value                                        │
00:09:21 verbose #10351 > > │         self.length += 1                                                     │
00:09:21 verbose #10352 > > │                                                                              │
00:09:21 verbose #10353 > > │     def pop(self):                                                           │
00:09:21 verbose #10354 > > │         assert (0 < self.length), "The length before popping has to be       │
00:09:21 verbose #10355 > > │ greater than 0."                                                             │
00:09:21 verbose #10356 > > │         self.length -= 1                                                     │
00:09:21 verbose #10357 > > │         return self.ptr[self.length]                                         │
00:09:21 verbose #10358 > > │                                                                              │
00:09:21 verbose #10359 > > │     def unsafe_set_length(self,i):                                           │
00:09:21 verbose #10360 > > │         assert 0 <= i <= len(self.ptr), "The new length has to be in range." │
00:09:21 verbose #10361 > > │         self.length = i                                                      │
00:09:21 verbose #10362 > > │                                                                              │
00:09:21 verbose #10363 > > │ class dynamic_array(static_array):                                           │
00:09:21 verbose #10364 > > │     pass                                                                     │
00:09:21 verbose #10365 > > │                                                                              │
00:09:21 verbose #10366 > > │ class dynamic_array_list(static_array_list):                                 │
00:09:21 verbose #10367 > > │     def length_(self): return self.length                                    │
00:09:21 verbose #10368 > > │                                                                              │
00:09:21 verbose #10369 > > │ import cupy as cp                                                            │
00:09:21 verbose #10370 > > │ from dataclasses import dataclass                                            │
00:09:21 verbose #10371 > > │ from typing import NamedTuple, Union, Callable, Tuple                        │
00:09:21 verbose #10372 > > │ i8 = i16 = i32 = i64 = u8 = u16 = u32 = u64 = int; f32 = f64 = float; char = │
00:09:21 verbose #10373 > > │ string = str                                                                 │
00:09:21 verbose #10374 > > │                                                                              │
00:09:21 verbose #10375 > > │ def method1() -> i32:                                                        │
00:09:21 verbose #10376 > > │     return 3                                                                 │
00:09:21 verbose #10377 > > │ def method2(v0 : i32) -> i32:                                                │
00:09:21 verbose #10378 > > │     v1 = 9 + v0                                                              │
00:09:21 verbose #10379 > > │     del v0                                                                   │
00:09:21 verbose #10380 > > │     return v1                                                                │
00:09:21 verbose #10381 > > │ def method3(v0 : bool) -> bool:                                              │
00:09:21 verbose #10382 > > │     return v0                                                                │
00:09:21 verbose #10383 > > │ def method0() -> None:                                                       │
00:09:21 verbose #10384 > > │     v0 = method1()                                                           │
00:09:21 verbose #10385 > > │     v1 = method2(v0)                                                         │
00:09:21 verbose #10386 > > │     del v0                                                                   │
00:09:21 verbose #10387 > > │     v2 = v1 + 2                                                              │
00:09:21 verbose #10388 > > │     del v1                                                                   │
00:09:21 verbose #10389 > > │     v3 = v2 + 1                                                              │
00:09:21 verbose #10390 > > │     del v2                                                                   │
00:09:21 verbose #10391 > > │     v4 = v3 == 15                                                            │
00:09:21 verbose #10392 > > │     if v4:                                                                   │
00:09:21 verbose #10393 > > │         v6 = True                                                            │
00:09:21 verbose #10394 > > │     else:                                                                    │
00:09:21 verbose #10395 > > │         v6 = method3(v4)                                                     │
00:09:21 verbose #10396 > > │     del v4                                                                   │
00:09:21 verbose #10397 > > │     v13 = "assert_eq"                                                        │
00:09:21 verbose #10398 > > │     v14 = f"{v13} / actual: {v3} / expected: {15}"                           │
00:09:21 verbose #10399 > > │     del v3, v13                                                              │
00:09:21 verbose #10400 > > │     print(v14)                                                               │
00:09:21 verbose #10401 > > │     v25 = v6 == False                                                        │
00:09:21 verbose #10402 > > │     del v6                                                                   │
00:09:21 verbose #10403 > > │     if v25:                                                                  │
00:09:21 verbose #10404 > > │         del v25                                                              │
00:09:21 verbose #10405 > > │         raise Exception(v14)                                                 │
00:09:21 verbose #10406 > > │     else:                                                                    │
00:09:21 verbose #10407 > > │         del v14, v25                                                         │
00:09:21 verbose #10408 > > │         return                                                               │
00:09:21 verbose #10409 > > │ def main():                                                                  │
00:09:21 verbose #10410 > > │     return method0()                                                         │
00:09:21 verbose #10411 > > │                                                                              │
00:09:21 verbose #10412 > > │ if __name__ == '__main__': result = main(); None if result is None else      │
00:09:21 verbose #10413 > > │ print(result)                                                                │
00:09:21 verbose #10414 > > │                                                                              │
00:09:21 verbose #10415 > > │                                                                              │
00:09:21 verbose #10416 > > │ .py:                                                                         │
00:09:21 verbose #10417 > > │ kernel = r"""                                                                │
00:09:21 verbose #10418 > > │ """                                                                          │
00:09:21 verbose #10419 > > │ class static_array():                                                        │
00:09:21 verbose #10420 > > │     def __init__(self, length):                                              │
00:09:21 verbose #10421 > > │         self.ptr = []                                                        │
00:09:21 verbose #10422 > > │         for _ in range(length):                                              │
00:09:21 verbose #10423 > > │             self.ptr.append(None)                                            │
00:09:21 verbose #10424 > > │                                                                              │
00:09:21 verbose #10425 > > │     def __getitem__(self, index):                                            │
00:09:21 verbose #10426 > > │         assert 0 <= index < len(self.ptr), "The get index needs to be in     │
00:09:21 verbose #10427 > > │ range."                                                                      │
00:09:21 verbose #10428 > > │         return self.ptr[index]                                               │
00:09:21 verbose #10429 > > │                                                                              │
00:09:21 verbose #10430 > > │     def __setitem__(self, index, value):                                     │
00:09:21 verbose #10431 > > │         assert 0 <= index < len(self.ptr), "The set index needs to be in     │
00:09:21 verbose #10432 > > │ range."                                                                      │
00:09:21 verbose #10433 > > │         self.ptr[index] = value                                              │
00:09:21 verbose #10434 > > │                                                                              │
00:09:21 verbose #10435 > > │ class static_array_list(static_array):                                       │
00:09:21 verbose #10436 > > │     def __init__(self, length):                                              │
00:09:21 verbose #10437 > > │         super().__init__(length)                                             │
00:09:21 verbose #10438 > > │         self.length = 0                                                      │
00:09:21 verbose #10439 > > │                                                                              │
00:09:21 verbose #10440 > > │     def __getitem__(self, index):                                            │
00:09:21 verbose #10441 > > │         assert 0 <= index < self.length, "The get index needs to be in       │
00:09:21 verbose #10442 > > │ range."                                                                      │
00:09:21 verbose #10443 > > │         return self.ptr[index]                                               │
00:09:21 verbose #10444 > > │                                                                              │
00:09:21 verbose #10445 > > │     def __setitem__(self, index, value):                                     │
00:09:21 verbose #10446 > > │         assert 0 <= index < self.length, "The set index needs to be in       │
00:09:21 verbose #10447 > > │ range."                                                                      │
00:09:21 verbose #10448 > > │         self.ptr[index] = value                                              │
00:09:21 verbose #10449 > > │                                                                              │
00:09:21 verbose #10450 > > │     def push(self,value):                                                    │
00:09:21 verbose #10451 > > │         assert (self.length < len(self.ptr)), "The length before pushing has │
00:09:21 verbose #10452 > > │ to be less than the maximum length of the array."                            │
00:09:21 verbose #10453 > > │         self.ptr[self.length] = value                                        │
00:09:21 verbose #10454 > > │         self.length += 1                                                     │
00:09:21 verbose #10455 > > │                                                                              │
00:09:21 verbose #10456 > > │     def pop(self):                                                           │
00:09:21 verbose #10457 > > │         assert (0 < self.length), "The length before popping has to be       │
00:09:21 verbose #10458 > > │ greater than 0."                                                             │
00:09:21 verbose #10459 > > │         self.length -= 1                                                     │
00:09:21 verbose #10460 > > │         return self.ptr[self.length]                                         │
00:09:21 verbose #10461 > > │                                                                              │
00:09:21 verbose #10462 > > │     def unsafe_set_length(self,i):                                           │
00:09:21 verbose #10463 > > │         assert 0 <= i <= len(self.ptr), "The new length has to be in range." │
00:09:21 verbose #10464 > > │         self.length = i                                                      │
00:09:21 verbose #10465 > > │                                                                              │
00:09:21 verbose #10466 > > │ class dynamic_array(static_array):                                           │
00:09:21 verbose #10467 > > │     pass                                                                     │
00:09:21 verbose #10468 > > │                                                                              │
00:09:21 verbose #10469 > > │ class dynamic_array_list(static_array_list):                                 │
00:09:21 verbose #10470 > > │     def length_(self): return self.length                                    │
00:09:21 verbose #10471 > > │                                                                              │
00:09:21 verbose #10472 > > │ import cupy as cp                                                            │
00:09:21 verbose #10473 > > │ from dataclasses import dataclass                                            │
00:09:21 verbose #10474 > > │ from typing import NamedTuple, Union, Callable, Tuple                        │
00:09:21 verbose #10475 > > │ i8 = i16 = i32 = i64 = u8 = u16 = u32 = u64 = int; f32 = f64 = float; char = │
00:09:21 verbose #10476 > > │ string = str                                                                 │
00:09:21 verbose #10477 > > │                                                                              │
00:09:21 verbose #10478 > > │ def method1() -> i32:                                                        │
00:09:21 verbose #10479 > > │     return 3                                                                 │
00:09:21 verbose #10480 > > │ def method2(v0 : i32) -> i32:                                                │
00:09:21 verbose #10481 > > │     v1 = 9 + v0                                                              │
00:09:21 verbose #10482 > > │     del v0                                                                   │
00:09:21 verbose #10483 > > │     return v1                                                                │
00:09:21 verbose #10484 > > │ def method3(v0 : bool) -> bool:                                              │
00:09:21 verbose #10485 > > │     return v0                                                                │
00:09:21 verbose #10486 > > │ def method0() -> None:                                                       │
00:09:21 verbose #10487 > > │     v0 = method1()                                                           │
00:09:21 verbose #10488 > > │     v1 = method2(v0)                                                         │
00:09:21 verbose #10489 > > │     del v0                                                                   │
00:09:21 verbose #10490 > > │     v2 = v1 + 2                                                              │
00:09:21 verbose #10491 > > │     del v1                                                                   │
00:09:21 verbose #10492 > > │     v3 = v2 + 1                                                              │
00:09:21 verbose #10493 > > │     del v2                                                                   │
00:09:21 verbose #10494 > > │     v4 = v3 == 15                                                            │
00:09:21 verbose #10495 > > │     if v4:                                                                   │
00:09:21 verbose #10496 > > │         v6 = True                                                            │
00:09:21 verbose #10497 > > │     else:                                                                    │
00:09:21 verbose #10498 > > │         v6 = method3(v4)                                                     │
00:09:21 verbose #10499 > > │     del v4                                                                   │
00:09:21 verbose #10500 > > │     v13 = "assert_eq"                                                        │
00:09:21 verbose #10501 > > │     v14 = f"{v13} / actual: {v3} / expected: {15}"                           │
00:09:21 verbose #10502 > > │     del v3, v13                                                              │
00:09:21 verbose #10503 > > │     print(v14)                                                               │
00:09:21 verbose #10504 > > │     v25 = v6 == False                                                        │
00:09:21 verbose #10505 > > │     del v6                                                                   │
00:09:21 verbose #10506 > > │     if v25:                                                                  │
00:09:21 verbose #10507 > > │         del v25                                                              │
00:09:21 verbose #10508 > > │         raise Exception(v14)                                                 │
00:09:21 verbose #10509 > > │     else:                                                                    │
00:09:21 verbose #10510 > > │         del v14, v25                                                         │
00:09:21 verbose #10511 > > │         return                                                               │
00:09:21 verbose #10512 > > │ def main():                                                                  │
00:09:21 verbose #10513 > > │     return method0()                                                         │
00:09:21 verbose #10514 > > │                                                                              │
00:09:21 verbose #10515 > > │ if __name__ == '__main__': result = main(); None if result is None else      │
00:09:21 verbose #10516 > > │ print(result)                                                                │
00:09:21 verbose #10517 > > │                                                                              │
00:09:21 verbose #10518 > > │ .fsx output:                                                                 │
00:09:21 verbose #10519 > > │ assert_eq / actual: 15 / expected: 15                                        │
00:09:21 verbose #10520 > > │                                                                              │
00:09:21 verbose #10521 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:21 verbose #10522 > >
00:09:21 verbose #10523 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:21 verbose #10524 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:21 verbose #10525 > > │ ### retry_fn'                                                                │
00:09:21 verbose #10526 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:21 verbose #10527 > >
00:09:21 verbose #10528 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:21 verbose #10529 > > inl retry_fn' retries fn =
00:09:21 verbose #10530 > >     let rec loop retry =
00:09:21 verbose #10531 > >         inl is_error, result =
00:09:21 verbose #10532 > >             match fn () with
00:09:21 verbose #10533 > >             | Ok x => false, x
00:09:21 verbose #10534 > >             | Error x => true, x
00:09:21 verbose #10535 > >         if not is_error || retry >= retries
00:09:21 verbose #10536 > >         then result
00:09:21 verbose #10537 > >         else
00:09:21 verbose #10538 > >             trace Debug
00:09:21 verbose #10539 > >                 fun () => $'"common.retry_fn\' / loop"'
00:09:21 verbose #10540 > >                 fun () => { is_error retry = $'$"{!retry}/{!retries}"' : string;
00:09:21 verbose #10541 > > result }
00:09:21 verbose #10542 > >             loop (retry + 1)
00:09:21 verbose #10543 > >     loop 1
00:09:21 verbose #10544 > 00:09:21   debug #568 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f938d0dc36c600b88cac8cc666deb97f82660681c19858042224b5f4a964a9d0/main.spi
00:09:21 verbose #10545 > >
00:09:21 verbose #10546 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:21 verbose #10547 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:21 verbose #10548 > > │ ## fsharp                                                                    │
00:09:21 verbose #10549 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:21 verbose #10550 > >
00:09:21 verbose #10551 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:21 verbose #10552 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:21 verbose #10553 > > │ ### upcast                                                                   │
00:09:21 verbose #10554 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:21 verbose #10555 > >
00:09:21 verbose #10556 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:21 verbose #10557 > > inl upcast forall t u. (x : t) : u =
00:09:21 verbose #10558 > >     $'!x :> `u '
00:09:22 verbose #10559 > 00:09:21   debug #569 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7fdb50685233a901dbec4ce108ac806586d00b6fce959d17240ff5e393184cc3/main.spi
00:09:22 verbose #10560 > >
00:09:22 verbose #10561 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:22 verbose #10562 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:22 verbose #10563 > > │ ### downcast                                                                 │
00:09:22 verbose #10564 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:22 verbose #10565 > >
00:09:22 verbose #10566 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:22 verbose #10567 > > inl downcast forall t u. (x : t) : u =
00:09:22 verbose #10568 > >     $'!x :?> `u '
00:09:22 verbose #10569 > 00:09:21   debug #570 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/95c45a985792037922c9cbbaa0f816987f11e6b5e095979004cd8cf4ba18647c/main.spi
00:09:22 verbose #10570 > >
00:09:22 verbose #10571 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:22 verbose #10572 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:22 verbose #10573 > > │ ### random                                                                   │
00:09:22 verbose #10574 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:22 verbose #10575 > >
00:09:22 verbose #10576 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:22 verbose #10577 > > nominal random = $'System.Random'
00:09:22 verbose #10578 > >
00:09:22 verbose #10579 > > inl random () : random =
00:09:22 verbose #10580 > >     $'`random ' ()
00:09:22 verbose #10581 > 00:09:22   debug #571 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e2217c3a1f207cddf4e03e4883188e91d26e039d264dde255e86da0f0d5a89b1/main.spi
00:09:22 verbose #10582 > >
00:09:22 verbose #10583 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:22 verbose #10584 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:22 verbose #10585 > > │ ### random_next                                                              │
00:09:22 verbose #10586 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:22 verbose #10587 > >
00:09:22 verbose #10588 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:22 verbose #10589 > > inl random_next (min : i32) (max : i32) (random : random) : i32 =
00:09:22 verbose #10590 > >     $'!random.Next (!min, !max)'
00:09:23 verbose #10591 > 00:09:22   debug #572 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/608431eb3a68c1640518f11340c7df3bd83eac5b1b2ea70a74fd4994a69137c9/main.spi
00:09:23 verbose #10592 > >
00:09:23 verbose #10593 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:23 verbose #10594 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:23 verbose #10595 > > │ ### disposable                                                               │
00:09:23 verbose #10596 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:23 verbose #10597 > >
00:09:23 verbose #10598 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:23 verbose #10599 > > nominal disposable t = $"backend_switch `({ Fsharp : $'System.IDisposable';
00:09:23 verbose #10600 > > Python : $'object' })"
00:09:23 verbose #10601 > 00:09:22   debug #573 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0611081ec7b4e9f94519bf4e430420ea9b1f6d4a136eb44afefc83d013420d93/main.spi
00:09:23 verbose #10602 > >
00:09:23 verbose #10603 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:23 verbose #10604 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:23 verbose #10605 > > │ ### dispose                                                                  │
00:09:23 verbose #10606 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:23 verbose #10607 > >
00:09:23 verbose #10608 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:23 verbose #10609 > > inl dispose (disposable : disposable _) : () =
00:09:23 verbose #10610 > >     backend_switch {
00:09:23 verbose #10611 > >         Fsharp = fun () => disposable |> $'_.Dispose()' : ()
00:09:23 verbose #10612 > >         Python = fun () => $'!disposable.__exit__(None, None, None)' : ()
00:09:23 verbose #10613 > >     }
00:09:23 verbose #10614 > 00:09:23   debug #574 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d6bfd52eedaa648674da69658e5938cc640e15f96b96b0e2aaaddf1526213fd3/main.spi
00:09:23 verbose #10615 > >
00:09:23 verbose #10616 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:23 verbose #10617 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:23 verbose #10618 > > │ ### return                                                                   │
00:09:23 verbose #10619 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:23 verbose #10620 > >
00:09:23 verbose #10621 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:23 verbose #10622 > > inl return forall t. (x : t) : () =
00:09:23 verbose #10623 > >     $'return !x '
00:09:23 verbose #10624 > >
00:09:23 verbose #10625 > > inl return' forall t. (x : t) : t =
00:09:23 verbose #10626 > >     $'return !x '
00:09:24 verbose #10627 > 00:09:23   debug #575 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2b1407dd3e0c4c2383d93fb49484ceeab756b3ee9ecd3c1609b5c6e92502caf8/main.spi
00:09:24 verbose #10628 > >
00:09:24 verbose #10629 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:24 verbose #10630 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:24 verbose #10631 > > │ ### retry_fn                                                                 │
00:09:24 verbose #10632 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:24 verbose #10633 > >
00:09:24 verbose #10634 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:24 verbose #10635 > > inl retry_fn forall t. retries (fn : () -> t) : option t =
00:09:24 verbose #10636 > >     let rec loop retry =
00:09:24 verbose #10637 > >         try
00:09:24 verbose #10638 > >             fun () =>
00:09:24 verbose #10639 > >                 if retry < retries
00:09:24 verbose #10640 > >                 then fn () |> Some
00:09:24 verbose #10641 > >                 else None
00:09:24 verbose #10642 > >             fun ex =>
00:09:24 verbose #10643 > >                 trace Warning
00:09:24 verbose #10644 > >                     fun () => "common.retry_fn"
00:09:24 verbose #10645 > >                     fun () => { retry ex }
00:09:24 verbose #10646 > >                 None
00:09:24 verbose #10647 > >         |> function
00:09:24 verbose #10648 > >             | Some x => x
00:09:24 verbose #10649 > >             | None => loop (retry + 1)
00:09:24 verbose #10650 > >     loop 0
00:09:24 verbose #10651 > 00:09:23   debug #576 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ae0e9d69f4207f34953769fe323b5388466d0996860a5e5cf7db4daf2df48d9a/main.spi
00:09:24 verbose #10652 > >
00:09:24 verbose #10653 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:24 verbose #10654 > > //// test
00:09:24 verbose #10655 > > ///! fsharp
00:09:24 verbose #10656 > > ////! cuda // v3 = $"retry: {v0} / ex: %A{v1} / {v2 ()}"
00:09:24 verbose #10657 > > ///! rust
00:09:24 verbose #10658 > > ///! typescript
00:09:24 verbose #10659 > > ///! python
00:09:24 verbose #10660 > >
00:09:24 verbose #10661 > > types ()
00:09:24 verbose #10662 > > inl retry_fn_test = mut 0i32
00:09:24 verbose #10663 > > fun () =>
00:09:24 verbose #10664 > >     retry_fn_test <- *retry_fn_test + 1
00:09:24 verbose #10665 > >     *retry_fn_test
00:09:24 verbose #10666 > > |> retry_fn 3i32
00:09:24 verbose #10667 > > |> _assert_eq' (Some 1i32)
00:09:24 verbose #10668 > 00:09:24   debug #577 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d1332069811ed40b58ceb03402a85905815d18754409185ce7610428a8dbbc76/main.spi
00:09:29 verbose #10669 > >
00:09:29 verbose #10670 > > ╭─[ 4.78s - return value ]─────────────────────────────────────────────────────╮
00:09:29 verbose #10671 > > │ .rs output:                                                                  │
00:09:29 verbose #10672 > > │ assert_eq' / actual: US0_0(1) / expected: US0_0(1)                           │
00:09:29 verbose #10673 > > │                                                                              │
00:09:29 verbose #10674 > > │ .ts output:                                                                  │
00:09:29 verbose #10675 > > │ assert_eq' / actual: US0_0 1 / expected: US0_0 1                             │
00:09:29 verbose #10676 > > │                                                                              │
00:09:29 verbose #10677 > > │ .py output:                                                                  │
00:09:29 verbose #10678 > > │ assert_eq' / actual: US0_0 1 / expected: US0_0 1                             │
00:09:29 verbose #10679 > > │                                                                              │
00:09:29 verbose #10680 > > │                                                                              │
00:09:29 verbose #10681 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:29 verbose #10682 > >
00:09:29 verbose #10683 > > ╭─[ 4.79s - stdout ]───────────────────────────────────────────────────────────╮
00:09:29 verbose #10684 > > │ .fsx output:                                                                 │
00:09:29 verbose #10685 > > │ assert_eq' / actual: US0_0 1 / expected: US0_0 1                             │
00:09:29 verbose #10686 > > │                                                                              │
00:09:29 verbose #10687 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:29 verbose #10688 > >
00:09:29 verbose #10689 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:29 verbose #10690 > > //// test
00:09:29 verbose #10691 > > ///! fsharp
00:09:29 verbose #10692 > > ////! cuda // v3 = $"retry: {v0} / ex: %A{v1} / {v2 ()}"
00:09:29 verbose #10693 > > ///! rust
00:09:29 verbose #10694 > > ///! typescript
00:09:29 verbose #10695 > > ///! python
00:09:29 verbose #10696 > >
00:09:29 verbose #10697 > > types ()
00:09:29 verbose #10698 > > inl retry_fn_test = mut 0i32
00:09:29 verbose #10699 > > fun () =>
00:09:29 verbose #10700 > >     if *retry_fn_test >= 2
00:09:29 verbose #10701 > >     then *retry_fn_test
00:09:29 verbose #10702 > >     else
00:09:29 verbose #10703 > >         retry_fn_test <- *retry_fn_test + 1
00:09:29 verbose #10704 > >         failwith "test"
00:09:29 verbose #10705 > > |> retry_fn 3i32
00:09:29 verbose #10706 > > |> _assert_eq' (Some 2i32)
00:09:29 verbose #10707 > 00:09:28   debug #578 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/15fab4a47b2914e31e27be0ece9edd21e844b5c770062218717d90b813c6df14/main.spi
00:09:33 verbose #10708 > >
00:09:33 verbose #10709 > > ╭─[ 4.50s - return value ]─────────────────────────────────────────────────────╮
00:09:33 verbose #10710 > > │                                                                              │
00:09:33 verbose #10711 > > │ .rs output:                                                                  │
00:09:33 verbose #10712 > > │ 00:00:00 warning #1 common.retry_fn / { retry = 0; ex = Exception {    │
00:09:33 verbose #10713 > > │ message: "test" } }                                                          │
00:09:33 verbose #10714 > > │ 00:00:00 warning #2 common.retry_fn / { retry = 1; ex = Exception {    │
00:09:33 verbose #10715 > > │ message: "test" } }                                                          │
00:09:33 verbose #10716 > > │ assert_eq' / actual: US0_0(2) / expected: US0_0(2)                           │
00:09:33 verbose #10717 > > │                                                                              │
00:09:33 verbose #10718 > > │                                                                              │
00:09:33 verbose #10719 > > │ .ts output:                                                                  │
00:09:33 verbose #10720 > > │ 00:00:00 warning #1 common.retry_fn / { retry = 0; ex = Error: test }   │
00:09:33 verbose #10721 > > │ 00:00:00 warning #2 common.retry_fn / { retry = 1; ex = Error: test }   │
00:09:33 verbose #10722 > > │ assert_eq' / actual: US0_0 2 / expected: US0_0 2                             │
00:09:33 verbose #10723 > > │                                                                              │
00:09:33 verbose #10724 > > │                                                                              │
00:09:33 verbose #10725 > > │ .py output:                                                                  │
00:09:33 verbose #10726 > > │ 00:00:00 warning #1 common.retry_fn / { retry = 0; ex = test }          │
00:09:33 verbose #10727 > > │ 00:00:00 warning #2 common.retry_fn / { retry = 1; ex = test }          │
00:09:33 verbose #10728 > > │ assert_eq' / actual: US0_0 2 / expected: US0_0 2                             │
00:09:33 verbose #10729 > > │                                                                              │
00:09:33 verbose #10730 > > │                                                                              │
00:09:33 verbose #10731 > > │                                                                              │
00:09:33 verbose #10732 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:33 verbose #10733 > >
00:09:33 verbose #10734 > > ╭─[ 4.50s - stdout ]───────────────────────────────────────────────────────────╮
00:09:33 verbose #10735 > > │ .fsx output:                                                                 │
00:09:33 verbose #10736 > > │ 00:00:00 warning #1 common.retry_fn / { retry = 0; ex =                 │
00:09:33 verbose #10737 > > │ System.Exception: test                                                       │
00:09:33 verbose #10738 > > │    at FSI_0032.closure1(Mut0 v0, Int32 v1, Unit unitVar2)                    │
00:09:33 verbose #10739 > > │    at FSI_0032.method1(Mut0 v0, Int32 v1) }                                  │
00:09:33 verbose #10740 > > │ 00:00:00 warning #2 common.retry_fn / { retry = 1; ex =                 │
00:09:33 verbose #10741 > > │ System.Exception: test                                                       │
00:09:33 verbose #10742 > > │    at FSI_0032.closure1(Mut0 v0, Int32 v1, Unit unitVar2)                    │
00:09:33 verbose #10743 > > │    at FSI_0032.method1(Mut0 v0, Int32 v1) }                                  │
00:09:33 verbose #10744 > > │ assert_eq' / actual: US0_0 2 / expected: US0_0 2                             │
00:09:33 verbose #10745 > > │                                                                              │
00:09:33 verbose #10746 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:33 verbose #10747 > >
00:09:33 verbose #10748 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:33 verbose #10749 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:33 verbose #10750 > > │ ## common                                                                    │
00:09:33 verbose #10751 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:33 verbose #10752 > >
00:09:33 verbose #10753 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:33 verbose #10754 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:33 verbose #10755 > > │ ### random'                                                                  │
00:09:33 verbose #10756 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:33 verbose #10757 > >
00:09:33 verbose #10758 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:33 verbose #10759 > > inl random' forall t. (min : t) (max : t) : t =
00:09:33 verbose #10760 > >     run_target function
00:09:33 verbose #10761 > >         | Rust (Contract) => fun () =>
00:09:33 verbose #10762 > >             failwith "common.random' / target=Rust(Contract)"
00:09:33 verbose #10763 > >         | Rust _ => fun () =>
00:09:33 verbose #10764 > >             open rust_operators
00:09:33 verbose #10765 > >             !\\((min, max), $'"rand::Rng::gen_range(&mut rand::thread_rng(),
00:09:33 verbose #10766 > > $0..$1)"')
00:09:33 verbose #10767 > >         | _ => fun () =>
00:09:33 verbose #10768 > >             random () |> random_next (i32 min) (i32 max) |> convert
00:09:34 verbose #10769 > 00:09:33   debug #579 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/56733bc84f1dff3d4c0dab80b66a60956df6c1bc73bb58eb28835f66b2f6e9ef/main.spi
00:09:34 verbose #10770 > >
00:09:34 verbose #10771 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:34 verbose #10772 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:34 verbose #10773 > > │ ### new_disposable                                                           │
00:09:34 verbose #10774 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:34 verbose #10775 > >
00:09:34 verbose #10776 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:34 verbose #10777 > > inl new_disposable (fn : () -> ()) : disposable _ =
00:09:34 verbose #10778 > >     run_target function
00:09:34 verbose #10779 > >         | Rust _ => fun () =>
00:09:34 verbose #10780 > >             global "type Disposable (f : unit -> unit) = interface
00:09:34 verbose #10781 > > System.IDisposable with member _.Dispose () = f ()"
00:09:34 verbose #10782 > >             inl fn = join fn
00:09:34 verbose #10783 > >             $'new Disposable (fun () -> Fable.Core.RustInterop.emitRustExpr !fn
00:09:34 verbose #10784 > > "$0()" )'
00:09:34 verbose #10785 > >         | Fsharp _ | TypeScript _ | Python _ => fun () =>
00:09:34 verbose #10786 > >             inl fn = join fn
00:09:34 verbose #10787 > >             $'{ new System.IDisposable with member _.Dispose () = !fn () }'
00:09:34 verbose #10788 > >         | Cuda _ => fun () =>
00:09:34 verbose #10789 > >             $'class Disposable:'
00:09:34 verbose #10790 > >             $'    def __init__(self, fn):'
00:09:34 verbose #10791 > >             $'        self.fn = fn'
00:09:34 verbose #10792 > >             $'    def __exit__(self, exc_type, exc_value, traceback):'
00:09:34 verbose #10793 > >             $'        self.fn()'
00:09:34 verbose #10794 > >             $'        return False'
00:09:34 verbose #10795 > >             $'Disposable(!fn)'
00:09:34 verbose #10796 > >         | _ => fun () => null ()
00:09:34 verbose #10797 > 00:09:33   debug #580 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/99d2362369104afecd87da10b21a43f55b56d33c72addc211eb30a3c5b56f725/main.spi
00:09:34 verbose #10798 > >
00:09:34 verbose #10799 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:34 verbose #10800 > > //// test
00:09:34 verbose #10801 > > ///! fsharp
00:09:34 verbose #10802 > > ///! cuda
00:09:34 verbose #10803 > > ///! rust
00:09:34 verbose #10804 > > ///! typescript
00:09:34 verbose #10805 > > ///! python
00:09:34 verbose #10806 > >
00:09:34 verbose #10807 > > inl new_disposable_test = mut 0i32
00:09:34 verbose #10808 > > new_disposable fun () => new_disposable_test <- *new_disposable_test + 1
00:09:34 verbose #10809 > > |> fun x => x : disposable ()
00:09:34 verbose #10810 > > |> dispose
00:09:34 verbose #10811 > > *new_disposable_test |> _assert_eq 1
00:09:34 verbose #10812 > 00:09:34   debug #581 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6f48a9783c558b4aa7980c7a5c4c1fed0cec6c665aa1d33d6decbb3c3233ab04/main.spi
00:09:34 verbose #10813 > 00:09:34   debug #582 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/92d5743239234c7f87989d653d1967811fb271061ecbda4882ab8f55ec7dcb8e/main.spi
00:09:39 verbose #10814 > >
00:09:39 verbose #10815 > > ╭─[ 4.61s - return value ]─────────────────────────────────────────────────────╮
00:09:39 verbose #10816 > > │ .py output (Cuda):                                                           │
00:09:39 verbose #10817 > > │ assert_eq / actual: 1 / expected: 1                                          │
00:09:39 verbose #10818 > > │                                                                              │
00:09:39 verbose #10819 > > │ .rs output:                                                                  │
00:09:39 verbose #10820 > > │ assert_eq / actual: 1 / expected: 1                                          │
00:09:39 verbose #10821 > > │                                                                              │
00:09:39 verbose #10822 > > │ .ts output:                                                                  │
00:09:39 verbose #10823 > > │ assert_eq / actual: 1 / expected: 1                                          │
00:09:39 verbose #10824 > > │                                                                              │
00:09:39 verbose #10825 > > │ .py output:                                                                  │
00:09:39 verbose #10826 > > │ assert_eq / actual: 1 / expected: 1                                          │
00:09:39 verbose #10827 > > │                                                                              │
00:09:39 verbose #10828 > > │                                                                              │
00:09:39 verbose #10829 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:39 verbose #10830 > >
00:09:39 verbose #10831 > > ╭─[ 4.61s - stdout ]───────────────────────────────────────────────────────────╮
00:09:39 verbose #10832 > > │ .fsx output:                                                                 │
00:09:39 verbose #10833 > > │ assert_eq / actual: 1 / expected: 1                                          │
00:09:39 verbose #10834 > > │                                                                              │
00:09:39 verbose #10835 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:39 verbose #10836 > >
00:09:39 verbose #10837 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:39 verbose #10838 > > //// test
00:09:39 verbose #10839 > >
00:09:39 verbose #10840 > > inl new_disposable_test = mut 0i32
00:09:39 verbose #10841 > > fun () =>
00:09:39 verbose #10842 > >     new_disposable fun () => new_disposable_test <- *new_disposable_test + 1
00:09:39 verbose #10843 > >     |> fun x => x : disposable ()
00:09:39 verbose #10844 > >     |> use
00:09:39 verbose #10845 > >     |> ignore
00:09:39 verbose #10846 > >     |> return
00:09:39 verbose #10847 > > |> async.new_task
00:09:39 verbose #10848 > > |> async.await_task
00:09:39 verbose #10849 > > |> async.run_synchronously
00:09:39 verbose #10850 > > *new_disposable_test |> _assert_eq 1
00:09:39 verbose #10851 > 00:09:38   debug #583 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/133c3f569ddd8bc881eb472c9f6ca055bb88d0e86ac7163c697d6af8a85b1d90/main.spi
00:09:39 verbose #10852 > >
00:09:39 verbose #10853 > > ╭─[ 557.12ms - stdout ]────────────────────────────────────────────────────────╮
00:09:39 verbose #10854 > > │ assert_eq / actual: 1 / expected: 1                                          │
00:09:39 verbose #10855 > > │                                                                              │
00:09:39 verbose #10856 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:39 verbose #10857 > >
00:09:39 verbose #10858 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:39 verbose #10859 > > //// test
00:09:39 verbose #10860 > >
00:09:39 verbose #10861 > > inl new_disposable_test = mut 0i32
00:09:39 verbose #10862 > > fun () =>
00:09:39 verbose #10863 > >     new_disposable fun () => new_disposable_test <- *new_disposable_test + 1
00:09:39 verbose #10864 > >     |> fun x => x : disposable ()
00:09:39 verbose #10865 > >     |> use
00:09:39 verbose #10866 > >     |> ignore
00:09:39 verbose #10867 > >     |> return
00:09:39 verbose #10868 > > |> async.new_async
00:09:39 verbose #10869 > > |> async.run_synchronously
00:09:39 verbose #10870 > > *new_disposable_test |> _assert_eq 1
00:09:39 verbose #10871 > 00:09:39   debug #584 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9190e15a4af8d679ee63d75fc32437fb92e9f05f0b0d97b09d663a54ceb95b13/main.spi
00:09:40 verbose #10872 > >
00:09:40 verbose #10873 > > ╭─[ 394.65ms - stdout ]────────────────────────────────────────────────────────╮
00:09:40 verbose #10874 > > │ assert_eq / actual: 1 / expected: 1                                          │
00:09:40 verbose #10875 > > │                                                                              │
00:09:40 verbose #10876 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:40 verbose #10877 > >
00:09:40 verbose #10878 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:40 verbose #10879 > > //// test
00:09:40 verbose #10880 > >
00:09:40 verbose #10881 > > inl new_disposable_test = mut 0i32
00:09:40 verbose #10882 > > fun () =>
00:09:40 verbose #10883 > >     new_disposable fun () => new_disposable_test <- *new_disposable_test + 1
00:09:40 verbose #10884 > >     |> fun x => x : disposable ()
00:09:40 verbose #10885 > >     |> ignore
00:09:40 verbose #10886 > >     |> return
00:09:40 verbose #10887 > > |> async.new_async
00:09:40 verbose #10888 > > |> async.run_synchronously
00:09:40 verbose #10889 > > *new_disposable_test |> _assert_eq 0
00:09:40 verbose #10890 > 00:09:39   debug #585 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d07ed25897834c137242aa933f0498473da6c698232d68190e0a8a449bf9017f/main.spi
00:09:40 verbose #10891 > >
00:09:40 verbose #10892 > > ╭─[ 401.42ms - stdout ]────────────────────────────────────────────────────────╮
00:09:40 verbose #10893 > > │ assert_eq / actual: 0 / expected: 0                                          │
00:09:40 verbose #10894 > > │                                                                              │
00:09:40 verbose #10895 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:40 verbose #10896 > >
00:09:40 verbose #10897 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:40 verbose #10898 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:40 verbose #10899 > > │ ## main                                                                      │
00:09:40 verbose #10900 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:40 verbose #10901 > >
00:09:40 verbose #10902 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:40 verbose #10903 > > inl main () =
00:09:40 verbose #10904 > >     types ()
00:09:40 verbose #10905 > >     init_trace_state None
00:09:40 verbose #10906 > >     inl new_disposable x : _ () = new_disposable x
00:09:40 verbose #10907 > >     $'let new_disposable x = !new_disposable x' : ()
00:09:40 verbose #10908 > >
00:09:40 verbose #10909 > >     inl retry_fn (r : i32) (x : () -> _) : optionm'.option' () = retry_fn r x |>
00:09:40 verbose #10910 > > optionm'.box
00:09:40 verbose #10911 > >     $'let retry_fn x = !retry_fn x' : ()
00:09:40 verbose #10912 > >     inl memoize (fn : () -> ()) : () -> () = memoize fn
00:09:40 verbose #10913 > >     $'let memoize x = !memoize x' : ()
00:09:40 verbose #10914 > 00:09:40   debug #586 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6711e7ae8dbe202db79f2a3417975048d7167a1e61661608995b5399d8cf6fb0/main.spi
00:09:41 verbose #10915 > 00:00:52 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 117387 }
00:09:41 verbose #10916 > 00:00:52   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/common.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/common.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:09:43 verbose #10917 > 00:00:54 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/common.dib.ipynb to html
00:09:43 verbose #10918 > 00:00:54 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:09:43 verbose #10919 > 00:00:54 verbose #7 !   validate(nb)
00:09:45 verbose #10920 > 00:00:56 verbose #8 ! [NbConvertApp] Writing 365358 bytes to c:\home\git\polyglot\lib\spiral\common.dib.html
00:09:45 verbose #10921 > 00:00:56 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 643 }
00:09:45 verbose #10922 > 00:00:56   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 643 }
00:09:45 verbose #10923 > 00:00:56   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/common.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/common.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:09:46 verbose #10924 > 00:00:57 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:09:46 verbose #10925 > 00:00:57   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:09:46 verbose #10926 > 00:00:58   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 118089 }
00:09:46   debug #10927 runtime.execute_with_options_async / { exit_code = 0; output_length = 124106 }
00:09:46   debug #12 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path common.dib --retries 3
00:09:46   debug #10928 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path resultm.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:09:46 verbose #10929 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "resultm.dib", "--retries", "3"])) }
00:09:46 verbose #10930 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/resultm.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/resultm.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/resultm.dib" --output-path "c:/home/git/polyglot/lib/spiral/resultm.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:09:49 verbose #10931 > >
00:09:49 verbose #10932 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:49 verbose #10933 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:49 verbose #10934 > > │ # resultm                                                                    │
00:09:49 verbose #10935 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:53 verbose #10936 > >
00:09:53 verbose #10937 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:53 verbose #10938 > > open rust_operators
00:09:53 verbose #10939 > 00:09:53   debug #587 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0d9bd8e5bb71a8e1d983506a46e54fb8c8e6cf2d0bd973135d4cdd580c5f6d39/main.spi
00:09:54 verbose #10940 > >
00:09:54 verbose #10941 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:54 verbose #10942 > > //// test
00:09:54 verbose #10943 > >
00:09:54 verbose #10944 > > open testing
00:09:54 verbose #10945 > 00:09:53   debug #588 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d06211d48c36e09624381aad71e69f817df1a545af31c21067514d4d391bdd05/main.spi
00:09:54 verbose #10946 > >
00:09:54 verbose #10947 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:54 verbose #10948 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:54 verbose #10949 > > │ ## resultm                                                                   │
00:09:54 verbose #10950 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:54 verbose #10951 > >
00:09:54 verbose #10952 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:54 verbose #10953 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:54 verbose #10954 > > │ ### from_option_error                                                        │
00:09:54 verbose #10955 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:54 verbose #10956 > >
00:09:54 verbose #10957 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:54 verbose #10958 > > inl from_option_error error opt =
00:09:54 verbose #10959 > >     match opt with
00:09:54 verbose #10960 > >     | Some x => Ok x
00:09:54 verbose #10961 > >     | None => Error error
00:09:54 verbose #10962 > 00:09:54   debug #589 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/10cf36ba1046957d2334970ec32f638dc5214fe187f30c4839a3e960c4587f4d/main.spi
00:09:55 verbose #10963 > >
00:09:55 verbose #10964 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:55 verbose #10965 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:55 verbose #10966 > > │ ### from_option                                                              │
00:09:55 verbose #10967 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:55 verbose #10968 > >
00:09:55 verbose #10969 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:55 verbose #10970 > > inl from_option opt =
00:09:55 verbose #10971 > >     opt |> from_option_error "resultm.from_option / Option does not have a
00:09:55 verbose #10972 > > value."
00:09:55 verbose #10973 > 00:09:54   debug #590 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d54f8e0042f7554778b52b0c8f40c939195dd8fea9de7e582b6e1bea629d059d/main.spi
00:09:55 verbose #10974 > >
00:09:55 verbose #10975 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:55 verbose #10976 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:55 verbose #10977 > > │ ### flatten_option                                                           │
00:09:55 verbose #10978 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:55 verbose #10979 > >
00:09:55 verbose #10980 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:55 verbose #10981 > > inl flatten_option forall t u. (x : option (result (option t) u)) : result
00:09:55 verbose #10982 > > (option t) u =
00:09:55 verbose #10983 > >     match x with
00:09:55 verbose #10984 > >     | Some (Error x) => Error x
00:09:55 verbose #10985 > >     | Some (Ok (Some x)) => Ok (Some x)
00:09:55 verbose #10986 > >     | _ => Ok None
00:09:55 verbose #10987 > 00:09:54   debug #591 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ae799835c9f414a09307dde929b16407569ccd981a9bdf6b34790fff3f55c490/main.spi
00:09:55 verbose #10988 > >
00:09:55 verbose #10989 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:55 verbose #10990 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:55 verbose #10991 > > │ ### flatten                                                                  │
00:09:55 verbose #10992 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:55 verbose #10993 > >
00:09:55 verbose #10994 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:55 verbose #10995 > > inl flatten forall t u. (x : result (result t u) u) : result t u =
00:09:55 verbose #10996 > >     match x with
00:09:55 verbose #10997 > >     | Ok x => x
00:09:55 verbose #10998 > >     | Error x => Error x
00:09:56 verbose #10999 > 00:09:55   debug #592 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d0bd97a08f23205f5cda1d86c79021ef5f95e3a27c7f799b1f984979486d9f77/main.spi
00:09:56 verbose #11000 > >
00:09:56 verbose #11001 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:56 verbose #11002 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:56 verbose #11003 > > │ ### get                                                                      │
00:09:56 verbose #11004 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:56 verbose #11005 > >
00:09:56 verbose #11006 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:56 verbose #11007 > > inl get forall t e. (source : result t e) : t =
00:09:56 verbose #11008 > >     match source with
00:09:56 verbose #11009 > >     | Ok x => x
00:09:56 verbose #11010 > >     | Error x => failwith $'$"resultm.get / Result value was Error: {!x}"'
00:09:56 verbose #11011 > 00:09:55   debug #593 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3d1ad32e04ccf576651c1a423909a525edc8227cd08a0d815bb7f207a3915817/main.spi
00:09:56 verbose #11012 > >
00:09:56 verbose #11013 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:56 verbose #11014 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:56 verbose #11015 > > │ ### map                                                                      │
00:09:56 verbose #11016 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:56 verbose #11017 > >
00:09:56 verbose #11018 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:56 verbose #11019 > > inl map forall t e u. (fn : t -> u) (source : result t e) : result u e =
00:09:56 verbose #11020 > >     match source with
00:09:56 verbose #11021 > >     | Ok x => x |> fn |> Ok
00:09:56 verbose #11022 > >     | Error x => Error x
00:09:56 verbose #11023 > 00:09:56   debug #594 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/844186f9e51231c22fa80dc79f4df41c42884b4a3652094f8086f04d17fe0707/main.spi
00:09:56 verbose #11024 > >
00:09:56 verbose #11025 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:56 verbose #11026 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:56 verbose #11027 > > │ ### map_error                                                                │
00:09:56 verbose #11028 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:56 verbose #11029 > >
00:09:56 verbose #11030 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:56 verbose #11031 > > inl map_error forall t e u. (fn : e -> u) (source : result t e) : result t u =
00:09:56 verbose #11032 > >     match source with
00:09:56 verbose #11033 > >     | Ok x => Ok x
00:09:56 verbose #11034 > >     | Error x => x |> fn |> Error
00:09:57 verbose #11035 > 00:09:56   debug #595 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b44ee6ceecf6da8c452280095687322bf9b94c35569bf3a88c70e6032673440a/main.spi
00:09:57 verbose #11036 > >
00:09:57 verbose #11037 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:57 verbose #11038 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:57 verbose #11039 > > │ ### unwrap_err                                                               │
00:09:57 verbose #11040 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:57 verbose #11041 > >
00:09:57 verbose #11042 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:57 verbose #11043 > > inl unwrap_err forall t u. (x : result t u) : u =
00:09:57 verbose #11044 > >     match x with
00:09:57 verbose #11045 > >     | Ok x => failwith $'$"resultm.unwrap_err / x: {!x}"'
00:09:57 verbose #11046 > >     | Error x => x
00:09:57 verbose #11047 > 00:09:56   debug #596 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/42cf32401d5946066a899fca7fa45f5901c6dd5421136759da9bcf013116dad7/main.spi
00:09:57 verbose #11048 > >
00:09:57 verbose #11049 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:57 verbose #11050 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:57 verbose #11051 > > │ ### ok                                                                       │
00:09:57 verbose #11052 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:57 verbose #11053 > >
00:09:57 verbose #11054 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:57 verbose #11055 > > inl ok forall t. (x : result t _) : option t =
00:09:57 verbose #11056 > >     match x with
00:09:57 verbose #11057 > >     | Ok x => Some x
00:09:57 verbose #11058 > >     | Error _ => None
00:09:57 verbose #11059 > 00:09:57   debug #597 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/74eae852ef12c913f10fc7f8cf9156bc193ac87b7d1ffef7e9784d3cb90613eb/main.spi
00:09:57 verbose #11060 > >
00:09:57 verbose #11061 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:57 verbose #11062 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:57 verbose #11063 > > │ ## fsharp                                                                    │
00:09:57 verbose #11064 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:57 verbose #11065 > >
00:09:57 verbose #11066 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:57 verbose #11067 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:57 verbose #11068 > > │ ### result'                                                                  │
00:09:57 verbose #11069 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:57 verbose #11070 > >
00:09:57 verbose #11071 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:57 verbose #11072 > > nominal result' t u = $'Result<`t, `u>'
00:09:58 verbose #11073 > 00:09:57   debug #598 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/38a2a4b74f7a2969bc1fae8484f945532fc2393d49a8cbc27b73f2049c10b708/main.spi
00:09:58 verbose #11074 > >
00:09:58 verbose #11075 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:58 verbose #11076 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:58 verbose #11077 > > │ ### unbox                                                                    │
00:09:58 verbose #11078 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:58 verbose #11079 > >
00:09:58 verbose #11080 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:58 verbose #11081 > > inl unbox forall t u. (x : result' t u) : result t u =
00:09:58 verbose #11082 > >     inl ok x : result t u = Ok x
00:09:58 verbose #11083 > >     inl error x : result t u = Error x
00:09:58 verbose #11084 > >     real
00:09:58 verbose #11085 > >         typecase t with
00:09:58 verbose #11086 > >         | () => $'match !x with Ok () -> !ok () | Error x -> !error x' : result
00:09:58 verbose #11087 > > t u
00:09:58 verbose #11088 > >         | _ => $'match !x with Ok x -> !ok x | Error x -> !error x' : result t u
00:09:58 verbose #11089 > 00:09:57   debug #599 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3a7ff59574e506fcb44d25933dd3275747bd41885e26e70160fc2ed6f707dbaf/main.spi
00:09:58 verbose #11090 > >
00:09:58 verbose #11091 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:58 verbose #11092 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:58 verbose #11093 > > │ ### box                                                                      │
00:09:58 verbose #11094 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:58 verbose #11095 > >
00:09:58 verbose #11096 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:58 verbose #11097 > > inl box forall t u. (x : result t u) : result' t u =
00:09:58 verbose #11098 > >     match x with
00:09:58 verbose #11099 > >     | Ok x => $'Ok !x '
00:09:58 verbose #11100 > >     | Error err => $'Error !err '
00:09:58 verbose #11101 > 00:09:58   debug #600 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ae7fdfab3e2caf25e09e4c581bfbd27a4771d1f7d9f194a2cc46610f616737cb/main.spi
00:09:59 verbose #11102 > >
00:09:59 verbose #11103 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:59 verbose #11104 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:59 verbose #11105 > > │ ## rust                                                                      │
00:09:59 verbose #11106 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:59 verbose #11107 > >
00:09:59 verbose #11108 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:59 verbose #11109 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:59 verbose #11110 > > │ ### try'                                                                     │
00:09:59 verbose #11111 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:59 verbose #11112 > >
00:09:59 verbose #11113 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:59 verbose #11114 > > inl try' forall t u. (x : result' t u) : t =
00:09:59 verbose #11115 > >     !\\(x, $'"$0?"')
00:09:59 verbose #11116 > 00:09:58   debug #601 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0d9f4e5cfe4d2579bc9c2299812839c369a82daab5ecef26323f5feea31a72b6/main.spi
00:09:59 verbose #11117 > >
00:09:59 verbose #11118 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:59 verbose #11119 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:59 verbose #11120 > > │ ### to_try                                                                   │
00:09:59 verbose #11121 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:59 verbose #11122 > >
00:09:59 verbose #11123 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:59 verbose #11124 > > inl to_try forall t u. (x : result' t u) : rust.try t =
00:09:59 verbose #11125 > >     !\\(x, $'"$0"')
00:09:59 verbose #11126 > 00:09:58   debug #602 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1f71aaa431afab489cc9bfc6bfb357eb8f715bcb4bf2a63178349a2f602cdb14/main.spi
00:09:59 verbose #11127 > >
00:09:59 verbose #11128 > > ── markdown ────────────────────────────────────────────────────────────────────
00:09:59 verbose #11129 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:09:59 verbose #11130 > > │ ### unwrap'                                                                  │
00:09:59 verbose #11131 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:09:59 verbose #11132 > >
00:09:59 verbose #11133 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:09:59 verbose #11134 > > inl unwrap' forall t u. (x : result' t u) : t =
00:09:59 verbose #11135 > >     !\\(x, $'"$0.unwrap()"')
00:09:59 verbose #11136 > 00:09:59   debug #603 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/803b8c787032becd5f09afeb5b2eed5be4a6d21b467b3633345305d0caf483b3/main.spi
00:10:00 verbose #11137 > >
00:10:00 verbose #11138 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:00 verbose #11139 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:00 verbose #11140 > > │ ### unbox'                                                                   │
00:10:00 verbose #11141 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:00 verbose #11142 > >
00:10:00 verbose #11143 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:00 verbose #11144 > > inl unbox' forall t u. (x : result' t u) : result t u =
00:10:00 verbose #11145 > >     inl ok x : result t u = Ok x
00:10:00 verbose #11146 > >     inl ok = join ok
00:10:00 verbose #11147 > >     inl error x : result t u = Error x
00:10:00 verbose #11148 > >     inl error = join error
00:10:00 verbose #11149 > >     real
00:10:00 verbose #11150 > >         typecase t with
00:10:00 verbose #11151 > >         | () =>
00:10:00 verbose #11152 > >             (~!\\)
00:10:00 verbose #11153 > >                 `((result' t u -> result t u) * (result' t u -> result t u))
00:10:00 verbose #11154 > >                 `(result t u)
00:10:00 verbose #11155 > >                 ((ok, error), ($'"match !x { Ok(()) => $0(()), Err(e) => $1(e)
00:10:00 verbose #11156 > > }"' : string))
00:10:00 verbose #11157 > >         | _ =>
00:10:00 verbose #11158 > >             (~!\\)
00:10:00 verbose #11159 > >                 `((result' t u -> result t u) * (result' t u -> result t u))
00:10:00 verbose #11160 > >                 `(result t u)
00:10:00 verbose #11161 > >                 ((ok, error), ($'"match !x { Ok(x) => $0(x), Err(e) => $1(e) }"'
00:10:00 verbose #11162 > > : string))
00:10:00 verbose #11163 > 00:09:59   debug #604 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c7b9542ea75cc7238c2777aafbbc78449f5c4b02ddfaa470a35232441c3d6886/main.spi
00:10:00 verbose #11164 > >
00:10:00 verbose #11165 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:00 verbose #11166 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:00 verbose #11167 > > │ ### map'                                                                     │
00:10:00 verbose #11168 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:00 verbose #11169 > >
00:10:00 verbose #11170 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:00 verbose #11171 > > inl map' forall t e u. (fn : t -> u) (source : result' t e) : result' u e =
00:10:00 verbose #11172 > >     (!\\(source, $'"true; let _result = $0.map(|x| { //"') : bool) |> ignore
00:10:00 verbose #11173 > >     (!\\(fn !\($'"x"'), $'"true; $0 })"') : bool) |> ignore
00:10:00 verbose #11174 > >     !\($'"_result"')
00:10:00 verbose #11175 > 00:09:59   debug #605 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/416d81b230fd362b4077809c010967bc965067b03d4e9c9e2dddb357dc8dbc66/main.spi
00:10:00 verbose #11176 > >
00:10:00 verbose #11177 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:00 verbose #11178 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:00 verbose #11179 > > │ ### map''                                                                    │
00:10:00 verbose #11180 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:00 verbose #11181 > >
00:10:00 verbose #11182 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:00 verbose #11183 > > inl map'' forall t e u. (fn : t -> u) (source : result' t e) : result' u e =
00:10:00 verbose #11184 > >     inl fn = join fn
00:10:00 verbose #11185 > >     inl source = join source
00:10:00 verbose #11186 > >     !\($'"!source.map(|x| !fn(x))"')
00:10:01 verbose #11187 > 00:10:00   debug #606 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5db11d835709d9d85939d60218e709b530b5a1848fda97a7c4c68b818eb0ac63/main.spi
00:10:01 verbose #11188 > >
00:10:01 verbose #11189 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:01 verbose #11190 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:01 verbose #11191 > > │ ### map_error'                                                               │
00:10:01 verbose #11192 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:01 verbose #11193 > >
00:10:01 verbose #11194 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:01 verbose #11195 > > inl map_error' forall t e u. (fn : e -> u) (source : result' t e) : result' t u
00:10:01 verbose #11196 > > =
00:10:01 verbose #11197 > >     inl fn = join fn
00:10:01 verbose #11198 > >     !\\((source, fn), $'"$0.map_err(|x| $1(x))"')
00:10:01 verbose #11199 > 00:10:00   debug #607 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a5f04ad3cdf98367108f9963889e169d1bd768c5aedf1e42431b1645f97025c9/main.spi
00:10:01 verbose #11200 > >
00:10:01 verbose #11201 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:01 verbose #11202 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:01 verbose #11203 > > │ ### map_error''                                                              │
00:10:01 verbose #11204 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:01 verbose #11205 > >
00:10:01 verbose #11206 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:01 verbose #11207 > > inl map_error'' forall t e u. (fn : e -> u) (source : result' t e) : result' t u
00:10:01 verbose #11208 > > =
00:10:01 verbose #11209 > >     (!\\(source, $'"true; let _result = $0.map_err(|x| { //"') : bool) |> ignore
00:10:01 verbose #11210 > >     (!\\(fn !\($'"x"'), $'"true; $0 })"') : bool) |> ignore
00:10:01 verbose #11211 > >     !\($'"_result"')
00:10:01 verbose #11212 > 00:10:01   debug #608 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6331a0f674b9fd36abb2452d5e56700dca3730e2527f2ec7c9dd53222e22a809/main.spi
00:10:01 verbose #11213 > >
00:10:01 verbose #11214 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:01 verbose #11215 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:01 verbose #11216 > > │ ### option_ok_or                                                             │
00:10:01 verbose #11217 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:01 verbose #11218 > >
00:10:01 verbose #11219 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:01 verbose #11220 > > inl option_ok_or forall t e. (e : e) (source : optionm'.option' t) : result' t e
00:10:01 verbose #11221 > > =
00:10:01 verbose #11222 > >     !\\(source, $'"$0.ok_or(!e)"')
00:10:02 verbose #11223 > 00:10:01   debug #609 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cf022fee3c6eeee2a7ff5d0d398dd25ed5d751e8967464409018d7a09eab5aa3/main.spi
00:10:02 verbose #11224 > >
00:10:02 verbose #11225 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:02 verbose #11226 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:02 verbose #11227 > > │ ### unwrap_or_else                                                           │
00:10:02 verbose #11228 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:02 verbose #11229 > >
00:10:02 verbose #11230 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:02 verbose #11231 > > inl unwrap_or_else forall t e u. (fn : e -> u) (source : result' t e) : u =
00:10:02 verbose #11232 > >     (!\\(source, $'"true; let _result = $0.unwrap_or_else(|x| { //"') : bool) |>
00:10:02 verbose #11233 > > ignore
00:10:02 verbose #11234 > >     (!\\(fn !\($'"x"'), $'"true; $0 })"') : bool) |> ignore
00:10:02 verbose #11235 > >     !\($'"_result"')
00:10:02 verbose #11236 > 00:10:01   debug #610 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/68877efca9c8bcde313c9d12c31e7cd40d5f7cb4dd82840df08764bbe18fcff3/main.spi
00:10:02 verbose #11237 > >
00:10:02 verbose #11238 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:02 verbose #11239 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:02 verbose #11240 > > │ ### map_or_else                                                              │
00:10:02 verbose #11241 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:02 verbose #11242 > >
00:10:02 verbose #11243 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:02 verbose #11244 > > inl map_or_else forall t e u v. (fn : e -> v) (fn2 : u -> v) (source : result' t
00:10:02 verbose #11245 > > e) : v =
00:10:02 verbose #11246 > >     (!\\(source, $'"true; let _result = $0.map_or_else(|x| { //"') : bool) |>
00:10:02 verbose #11247 > > ignore
00:10:02 verbose #11248 > >     (!\\(fn !\($'"x"'), $'"true; $0 }, |x| { //"') : bool) |> ignore
00:10:02 verbose #11249 > >     (!\\(fn2 !\($'"x"'), $'"true; $0 })"') : bool) |> ignore
00:10:02 verbose #11250 > >     !\($'"_result"')
00:10:02 verbose #11251 > 00:10:02   debug #611 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/951ba1988e5ec11a72266c871760d6293772830068939ee39aee2a2fae733ec7/main.spi
00:10:03 verbose #11252 > >
00:10:03 verbose #11253 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:03 verbose #11254 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:03 verbose #11255 > > │ ### as_ref                                                                   │
00:10:03 verbose #11256 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:03 verbose #11257 > >
00:10:03 verbose #11258 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:03 verbose #11259 > > inl as_ref forall t e. (source : result' t e) : result' (rust.ref' t) (rust.ref'
00:10:03 verbose #11260 > > e) =
00:10:03 verbose #11261 > >     !\($'"!source.as_ref()"')
00:10:03 verbose #11262 > 00:10:02   debug #612 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6770b65069699973f8f146bfe8e438f64c5e7552d0850ffce0b982fef75c2d60/main.spi
00:10:03 verbose #11263 > >
00:10:03 verbose #11264 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:03 verbose #11265 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:03 verbose #11266 > > │ ### as_ref'                                                                  │
00:10:03 verbose #11267 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:03 verbose #11268 > >
00:10:03 verbose #11269 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:03 verbose #11270 > > inl as_ref' forall t e. (source : rust.ref' (result' t e)) : result' (rust.ref'
00:10:03 verbose #11271 > > t) (rust.ref' e) =
00:10:03 verbose #11272 > >     !\($'"!source.as_ref()"')
00:10:03 verbose #11273 > 00:10:02   debug #613 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5a904202e27139b3b8a1d96df5a029dbca7f2068a67dbd082bf9e5c53b89ccfc/main.spi
00:10:03 verbose #11274 > >
00:10:03 verbose #11275 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:03 verbose #11276 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:03 verbose #11277 > > │ ### unwrap_or'                                                               │
00:10:03 verbose #11278 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:03 verbose #11279 > >
00:10:03 verbose #11280 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:03 verbose #11281 > > inl unwrap_or' forall t u. (default : t) (x : result' t u) : t =
00:10:03 verbose #11282 > >     !\\((x, default), $'"$0.unwrap_or($1)"')
00:10:04 verbose #11283 > 00:10:03   debug #614 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2882b5ecc0c8a873f533d32369ceef6bf2f32ab67b339604deb05d2f9fdee72a/main.spi
00:10:04 verbose #11284 > >
00:10:04 verbose #11285 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:04 verbose #11286 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:04 verbose #11287 > > │ ### expect                                                                   │
00:10:04 verbose #11288 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:04 verbose #11289 > >
00:10:04 verbose #11290 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:04 verbose #11291 > > inl expect forall t u. (error : rust.ref' string) (x : result' t u) : t =
00:10:04 verbose #11292 > >     !\($'"!x.expect(&!error)"')
00:10:04 verbose #11293 > 00:10:03   debug #615 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2d64440704af9229f48db247405cc5c4e8588873b77a2e35dc65e4e0101985c9/main.spi
00:10:04 verbose #11294 > >
00:10:04 verbose #11295 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:04 verbose #11296 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:04 verbose #11297 > > │ ### is_err                                                                   │
00:10:04 verbose #11298 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:04 verbose #11299 > >
00:10:04 verbose #11300 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:04 verbose #11301 > > inl is_err forall t u. (x : result' t u) : bool =
00:10:04 verbose #11302 > >     !\($'"!x.is_err()"')
00:10:04 verbose #11303 > 00:10:04   debug #616 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/877299dd7bec34f020a8a9c9e5ff5b513d2718baaa70af8475ed80618855ca2d/main.spi
00:10:04 verbose #11304 > >
00:10:04 verbose #11305 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:04 verbose #11306 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:04 verbose #11307 > > │ ### ok'                                                                      │
00:10:04 verbose #11308 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:04 verbose #11309 > >
00:10:04 verbose #11310 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:04 verbose #11311 > > inl ok' forall t. (x : result' t _) : optionm'.option' t =
00:10:04 verbose #11312 > >     !\($'"!x.ok()"')
00:10:05 verbose #11313 > 00:10:04   debug #617 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ad03f8daf91b1a9b4d4789c0633b4fda7a0c359b67513b7f166f0a1e95a2c82b/main.spi
00:10:05 verbose #11314 > >
00:10:05 verbose #11315 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:05 verbose #11316 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:05 verbose #11317 > > │ ### transpose                                                                │
00:10:05 verbose #11318 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:05 verbose #11319 > >
00:10:05 verbose #11320 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:05 verbose #11321 > > inl transpose forall t u. (x : optionm'.option' (result' t u)) : result'
00:10:05 verbose #11322 > > (optionm'.option' t) u =
00:10:05 verbose #11323 > >     !\\(x, $'"$0.transpose()"')
00:10:05 verbose #11324 > 00:10:04   debug #618 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/939c2cc8e2d13363e9ca77a1c26dee29bef63ac4f72e3b494303a1bf85a2b7fe/main.spi
00:10:05 verbose #11325 > >
00:10:05 verbose #11326 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:05 verbose #11327 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:05 verbose #11328 > > │ ### rc_try_unwrap                                                            │
00:10:05 verbose #11329 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:05 verbose #11330 > >
00:10:05 verbose #11331 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:05 verbose #11332 > > inl rc_try_unwrap forall t. (x : rust.rc t) : result' t (rust.rc t) =
00:10:05 verbose #11333 > >     !\\(x, $'"std::rc::Rc::try_unwrap($0)"')
00:10:05 verbose #11334 > 00:10:05   debug #619 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3d926d19c76302aac979c62e893f7b3086ff58e936b4bc1c20f2ec1fca9c6c38/main.spi
00:10:06 verbose #11335 > >
00:10:06 verbose #11336 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:06 verbose #11337 > > //// test
00:10:06 verbose #11338 > > ///! rust
00:10:06 verbose #11339 > >
00:10:06 verbose #11340 > > types ()
00:10:06 verbose #11341 > > rust.new_rc true
00:10:06 verbose #11342 > > |> rc_try_unwrap
00:10:06 verbose #11343 > > |> unbox
00:10:06 verbose #11344 > > |> _assert_eq (Ok true)
00:10:06 verbose #11345 > 00:10:05   debug #620 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c1159e8f748fbbd6aec5da732ad04b798ee732776719b717616800974b5a9b43/main.spi
00:10:09 verbose #11346 > >
00:10:09 verbose #11347 > > ╭─[ 3.46s - return value ]─────────────────────────────────────────────────────╮
00:10:09 verbose #11348 > > │ assert_eq / actual: US0_0(true) / expected: US0_0(true)                      │
00:10:09 verbose #11349 > > │                                                                              │
00:10:09 verbose #11350 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:09 verbose #11351 > 00:00:22 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 19614 }
00:10:09 verbose #11352 > 00:00:22   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/resultm.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/resultm.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:10:11 verbose #11353 > 00:00:24 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/resultm.dib.ipynb to html
00:10:11 verbose #11354 > 00:00:24 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:10:11 verbose #11355 > 00:00:24 verbose #7 !   validate(nb)
00:10:13 verbose #11356 > 00:00:26 verbose #8 ! [NbConvertApp] Writing 336344 bytes to c:\home\git\polyglot\lib\spiral\resultm.dib.html
00:10:13 verbose #11357 > 00:00:26 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 645 }
00:10:13 verbose #11358 > 00:00:26   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 645 }
00:10:13 verbose #11359 > 00:00:26   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/resultm.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/resultm.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:10:14 verbose #11360 > 00:00:27 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:10:14 verbose #11361 > 00:00:27   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:10:14 verbose #11362 > 00:00:27   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 20318 }
00:10:14   debug #11363 runtime.execute_with_options_async / { exit_code = 0; output_length = 23716 }
00:10:14   debug #13 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path resultm.dib --retries 3
00:10:14   debug #11364 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path console.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:10:14 verbose #11365 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "console.dib", "--retries", "3"])) }
00:10:14 verbose #11366 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/console.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/console.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/console.dib" --output-path "c:/home/git/polyglot/lib/spiral/console.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:10:16 verbose #11367 > >
00:10:16 verbose #11368 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:16 verbose #11369 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:16 verbose #11370 > > │ # console                                                                    │
00:10:16 verbose #11371 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:21 verbose #11372 > >
00:10:21 verbose #11373 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:21 verbose #11374 > > //// test
00:10:21 verbose #11375 > >
00:10:21 verbose #11376 > > open testing
00:10:21 verbose #11377 > 00:10:20   debug #621 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7845de436c12d0ca65282fe0cd65832468ca943e72feba50e6b1bb441e251a/main.spi
00:10:22 verbose #11378 > >
00:10:22 verbose #11379 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:22 verbose #11380 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:22 verbose #11381 > > │ ## fsharp                                                                    │
00:10:22 verbose #11382 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:22 verbose #11383 > >
00:10:22 verbose #11384 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:22 verbose #11385 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:22 verbose #11386 > > │ ### console_color                                                            │
00:10:22 verbose #11387 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:22 verbose #11388 > >
00:10:22 verbose #11389 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:22 verbose #11390 > > nominal console_color = $'System.ConsoleColor'
00:10:22 verbose #11391 > 00:10:21   debug #622 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/96ee93cc39aabd1a2400d81adcac40e5e064bc89969421c61af0a57daada1596/main.spi
00:10:22 verbose #11392 > >
00:10:22 verbose #11393 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:22 verbose #11394 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:22 verbose #11395 > > │ ### reset_color                                                              │
00:10:22 verbose #11396 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:22 verbose #11397 > >
00:10:22 verbose #11398 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:22 verbose #11399 > > inl reset_color () : () =
00:10:22 verbose #11400 > >     run_target function
00:10:22 verbose #11401 > >         | Fsharp => fun () => $'System.Console.ResetColor' ()
00:10:22 verbose #11402 > >         | _ => fun () => ()
00:10:22 verbose #11403 > 00:10:22   debug #623 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ac51230b1568e2b64d79d68080e0289818a6d783b7625413038e5a2d24cacc83/main.spi
00:10:22 verbose #11404 > >
00:10:22 verbose #11405 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:22 verbose #11406 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:22 verbose #11407 > > │ ### set_foreground_color                                                     │
00:10:22 verbose #11408 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:22 verbose #11409 > >
00:10:22 verbose #11410 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:22 verbose #11411 > > inl set_foreground_color (color : console_color) : () =
00:10:22 verbose #11412 > >     run_target function
00:10:22 verbose #11413 > >         | Fsharp => fun () => $'System.Console.ForegroundColor <- !color '
00:10:22 verbose #11414 > >         | _ => fun () => ()
00:10:23 verbose #11415 > 00:10:22   debug #624 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cf9c28f9e2a5f5d016e0b8de6b10cdf9962e0970fe4835d147d1b1865d7d7fc7/main.spi
00:10:23 verbose #11416 > >
00:10:23 verbose #11417 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:23 verbose #11418 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:23 verbose #11419 > > │ ## console                                                                   │
00:10:23 verbose #11420 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:23 verbose #11421 > >
00:10:23 verbose #11422 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:23 verbose #11423 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:23 verbose #11424 > > │ ### write_line                                                               │
00:10:23 verbose #11425 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:23 verbose #11426 > >
00:10:23 verbose #11427 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:23 verbose #11428 > > inl write_line obj : () =
00:10:23 verbose #11429 > >     backend_switch {
00:10:23 verbose #11430 > >         Fsharp = fun () => obj |> $'System.Console.WriteLine' : ()
00:10:23 verbose #11431 > >         Python = fun () => $'print(!obj)' : ()
00:10:23 verbose #11432 > >     }
00:10:23 verbose #11433 > 00:10:22   debug #625 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4ceb52c0729e80d8829407f49c301452ca65e7839576a25aa6e92a01d4b169ef/main.spi
00:10:23 verbose #11434 > >
00:10:23 verbose #11435 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:23 verbose #11436 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:23 verbose #11437 > > │ ### write                                                                    │
00:10:23 verbose #11438 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:23 verbose #11439 > >
00:10:23 verbose #11440 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:23 verbose #11441 > > inl write forall t. (x : t) : () =
00:10:23 verbose #11442 > >     inl s = x |> sm'.format
00:10:23 verbose #11443 > >     backend_switch {
00:10:23 verbose #11444 > >         Python = fun () => $'print(!s, end="")' : ()
00:10:23 verbose #11445 > >         Fsharp = fun () => s |> $'System.Console.Write' : ()
00:10:23 verbose #11446 > >     }
00:10:23 verbose #11447 > 00:10:23   debug #626 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/57f205f0f4c31189591f16c8942472fb03aba7acfce495fd6e0084ebc07bf81d/main.spi
00:10:23 verbose #11448 > >
00:10:23 verbose #11449 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:23 verbose #11450 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:23 verbose #11451 > > │ ### write_ln                                                                 │
00:10:23 verbose #11452 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:23 verbose #11453 > >
00:10:23 verbose #11454 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:23 verbose #11455 > > inl write_ln l : () =
00:10:23 verbose #11456 > >     write l
00:10:23 verbose #11457 > >     backend_switch {
00:10:23 verbose #11458 > >         Cuda = fun () => $'printf("\\n")' : ()
00:10:23 verbose #11459 > >         Python = fun () => $"print()" : ()
00:10:23 verbose #11460 > >         Fsharp = fun () => write_line () : ()
00:10:23 verbose #11461 > >     }
00:10:24 verbose #11462 > 00:10:23   debug #627 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/edf38f87e76af91dbfec6ae6c6b85bc779a17635f4fede47be66481c2ee9cf64/main.spi
00:10:24 verbose #11463 > 00:00:09 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 4460 }
00:10:24 verbose #11464 > 00:00:09   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/console.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/console.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:10:26 verbose #11465 > 00:00:11 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/console.dib.ipynb to html
00:10:26 verbose #11466 > 00:00:11 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:10:26 verbose #11467 > 00:00:11 verbose #7 !   validate(nb)
00:10:27 verbose #11468 > 00:00:12 verbose #8 ! [NbConvertApp] Writing 283342 bytes to c:\home\git\polyglot\lib\spiral\console.dib.html
00:10:27 verbose #11469 > 00:00:12 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 645 }
00:10:27 verbose #11470 > 00:00:12   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 645 }
00:10:27 verbose #11471 > 00:00:12   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/console.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/console.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:10:28 verbose #11472 > 00:00:13 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:10:28 verbose #11473 > 00:00:13   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:10:29 verbose #11474 > 00:00:14   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 5164 }
00:10:29   debug #11475 runtime.execute_with_options_async / { exit_code = 0; output_length = 7966 }
00:10:29   debug #14 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path console.dib --retries 3
00:10:29   debug #11476 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path date_time.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:10:29 verbose #11477 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "date_time.dib", "--retries", "3"])) }
00:10:29 verbose #11478 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/date_time.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/date_time.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/date_time.dib" --output-path "c:/home/git/polyglot/lib/spiral/date_time.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:10:31 verbose #11479 > >
00:10:31 verbose #11480 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:31 verbose #11481 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:31 verbose #11482 > > │ # date_time                                                                  │
00:10:31 verbose #11483 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:35 verbose #11484 > >
00:10:35 verbose #11485 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:35 verbose #11486 > > open rust_operators
00:10:35 verbose #11487 > > open sm'_operators
00:10:36 verbose #11488 > 00:10:35   debug #628 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bf61618f8655d8e50dd31f6ed591bb82f1f3131ec57d5c0ea9955695867e89ad/main.spi
00:10:36 verbose #11489 > >
00:10:36 verbose #11490 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:36 verbose #11491 > > //// test
00:10:36 verbose #11492 > >
00:10:36 verbose #11493 > > open testing
00:10:36 verbose #11494 > 00:10:36   debug #629 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2730b74780c23dd1c489c875b384f3d8721906375fcf264307b568f98aed681f/main.spi
00:10:37 verbose #11495 > >
00:10:37 verbose #11496 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:37 verbose #11497 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:37 verbose #11498 > > │ ## types                                                                     │
00:10:37 verbose #11499 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:37 verbose #11500 > >
00:10:37 verbose #11501 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:37 verbose #11502 > > inl types () =
00:10:37 verbose #11503 > >     backend_switch {
00:10:37 verbose #11504 > >         Fsharp = fun () =>
00:10:37 verbose #11505 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:10:37 verbose #11506 > > Fable.Core.Emit(\"chrono::DateTime<$0>\")>]]\n#endif\ntype chrono_DateTime<'T> =
00:10:37 verbose #11507 > > class end"
00:10:37 verbose #11508 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:10:37 verbose #11509 > > Fable.Core.Emit(\"chrono::Local\")>]]\n#endif\ntype chrono_Local = class end"
00:10:37 verbose #11510 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:10:37 verbose #11511 > > Fable.Core.Emit(\"chrono::NaiveDateTime\")>]]\n#endif\ntype chrono_NaiveDateTime
00:10:37 verbose #11512 > > = class end"
00:10:37 verbose #11513 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:10:37 verbose #11514 > > Fable.Core.Emit(\"chrono::Utc\")>]]\n#endif\ntype chrono_Utc = class end"
00:10:37 verbose #11515 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:10:37 verbose #11516 > > Fable.Core.Emit(\"std::time::Duration\")>]]\n#endif\ntype std_time_Duration =
00:10:37 verbose #11517 > > class end"
00:10:37 verbose #11518 > >         Python = fun () =>
00:10:37 verbose #11519 > >             global "import datetime"
00:10:37 verbose #11520 > >             global "import timeit"
00:10:37 verbose #11521 > >     }
00:10:37 verbose #11522 > 00:10:36   debug #630 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/466bc2982f7ddfdd693fe07fd531ffaf208e76ed2cd6c8792832f8b991d84f9d/main.spi
00:10:37 verbose #11523 > >
00:10:37 verbose #11524 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:37 verbose #11525 > > inl types () =
00:10:37 verbose #11526 > >     sm'.types ()
00:10:37 verbose #11527 > >     types ()
00:10:37 verbose #11528 > 00:10:36   debug #631 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c6edf781f7e38da0411873cae8a292dd25916671c904edbde76405d1ddd2c0a8/main.spi
00:10:37 verbose #11529 > >
00:10:37 verbose #11530 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:37 verbose #11531 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:37 verbose #11532 > > │ ## date_time                                                                 │
00:10:37 verbose #11533 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:37 verbose #11534 > >
00:10:37 verbose #11535 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:37 verbose #11536 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:37 verbose #11537 > > │ ### timestamp                                                                │
00:10:37 verbose #11538 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:37 verbose #11539 > >
00:10:37 verbose #11540 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:37 verbose #11541 > > nominal timestamp = i64
00:10:38 verbose #11542 > 00:10:37   debug #632 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d869b28702f0d8b86b22fb0e27bd3d1dc2b7fbf69e97675fc802e89e25616b6f/main.spi
00:10:38 verbose #11543 > >
00:10:38 verbose #11544 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:38 verbose #11545 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:38 verbose #11546 > > │ ### timestamp_guid                                                           │
00:10:38 verbose #11547 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:38 verbose #11548 > >
00:10:38 verbose #11549 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:38 verbose #11550 > > type timestamp_guid = guid.guid
00:10:38 verbose #11551 > 00:10:37   debug #633 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/09275b8ad906e2a641ca2aba25831320234a2317dbc3d3bcc12f94a2b7efa755/main.spi
00:10:38 verbose #11552 > >
00:10:38 verbose #11553 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:38 verbose #11554 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:38 verbose #11555 > > │ ### date_time_guid                                                           │
00:10:38 verbose #11556 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:38 verbose #11557 > >
00:10:38 verbose #11558 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:38 verbose #11559 > > type date_time_guid = guid.guid
00:10:38 verbose #11560 > 00:10:37   debug #634 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/947af33b76b7ff8712477ee2e202644b1029263d2c88e6cde30a6d2f6639c702/main.spi
00:10:38 verbose #11561 > >
00:10:38 verbose #11562 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:38 verbose #11563 > > //// test
00:10:38 verbose #11564 > >
00:10:38 verbose #11565 > > inl test_guid () =
00:10:38 verbose #11566 > >     guid.new_guid "FEDCBA98-7654-3210-FEDC-BA9876543210"
00:10:39 verbose #11567 > 00:10:38   debug #635 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/98550ab7081a368fb6a1ac6403f6d54cc3000f33c3519dbf9ac1eee46ef6f1c0/main.spi
00:10:39 verbose #11568 > >
00:10:39 verbose #11569 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:39 verbose #11570 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:39 verbose #11571 > > │ ## fsharp                                                                    │
00:10:39 verbose #11572 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:39 verbose #11573 > >
00:10:39 verbose #11574 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:39 verbose #11575 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:39 verbose #11576 > > │ ### date_time                                                                │
00:10:39 verbose #11577 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:39 verbose #11578 > >
00:10:39 verbose #11579 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:39 verbose #11580 > > nominal date_time = $"backend_switch `({ Fsharp : $"System.DateTime"; Python :
00:10:39 verbose #11581 > > $"datetime.datetime" })"
00:10:39 verbose #11582 > 00:10:38   debug #636 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3e6fbe0d65b2d3a7be57db5f3a8fed7232e11737c594493c61bdc35c059cb1ba/main.spi
00:10:39 verbose #11583 > >
00:10:39 verbose #11584 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:39 verbose #11585 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:39 verbose #11586 > > │ ### date_time_milliseconds                                                   │
00:10:39 verbose #11587 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:39 verbose #11588 > >
00:10:39 verbose #11589 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:39 verbose #11590 > > inl date_time_milliseconds
00:10:39 verbose #11591 > >     (year : int) (month : int) (day : int) (hour : int) (minute : int) (second :
00:10:39 verbose #11592 > > int) (millisecond : int)
00:10:39 verbose #11593 > >     : date_time
00:10:39 verbose #11594 > >     =
00:10:39 verbose #11595 > >     backend_switch {
00:10:39 verbose #11596 > >         Fsharp = fun () =>
00:10:39 verbose #11597 > >             $'System.DateTime (!year, !month, !day, !hour, !minute, !second,
00:10:39 verbose #11598 > > !millisecond)' : date_time
00:10:39 verbose #11599 > >         Python = fun () =>
00:10:39 verbose #11600 > >             $'datetime.datetime(!year, !month, !day, !hour, !minute, !second,
00:10:39 verbose #11601 > > !millisecond)' : date_time
00:10:39 verbose #11602 > >     }
00:10:39 verbose #11603 > 00:10:39   debug #637 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e4935e49b4d00e5e61c4ca71cbabfeaa759db0f24aca9b1bb9504e7495e33ec8/main.spi
00:10:39 verbose #11604 > >
00:10:39 verbose #11605 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:39 verbose #11606 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:39 verbose #11607 > > │ ### date_time_utc                                                            │
00:10:39 verbose #11608 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:39 verbose #11609 > >
00:10:39 verbose #11610 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:39 verbose #11611 > > inl date_time_utc
00:10:39 verbose #11612 > >     (year : int) (month : int) (day : int) (hour : int) (minute : int) (second :
00:10:39 verbose #11613 > > int)
00:10:39 verbose #11614 > >     : date_time
00:10:39 verbose #11615 > >     =
00:10:39 verbose #11616 > >     backend_switch {
00:10:39 verbose #11617 > >         Fsharp = fun () =>
00:10:39 verbose #11618 > >             $'System.DateTime (!year, !month, !day, !hour, !minute, !second,
00:10:39 verbose #11619 > > System.DateTimeKind.Utc)' : date_time
00:10:39 verbose #11620 > >         Python = fun () =>
00:10:39 verbose #11621 > >             $'datetime.datetime(!year, !month, !day, !hour, !minute, !second,
00:10:39 verbose #11622 > > tzinfo=datetime.timezone.utc)' : date_time
00:10:39 verbose #11623 > >     }
00:10:40 verbose #11624 > 00:10:39   debug #638 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/360ac120617ecadae50da429cb663688ffe2e1eb534ee2f289b3be86281e40b8/main.spi
00:10:40 verbose #11625 > >
00:10:40 verbose #11626 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:40 verbose #11627 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:40 verbose #11628 > > │ ### ticks                                                                    │
00:10:40 verbose #11629 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:40 verbose #11630 > >
00:10:40 verbose #11631 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:40 verbose #11632 > > inl ticks (date_time : date_time) : timestamp =
00:10:40 verbose #11633 > >     backend_switch {
00:10:40 verbose #11634 > >         Fsharp = fun () => date_time |> $'_.Ticks' : timestamp
00:10:40 verbose #11635 > >         Python = fun () => $'!date_time.timestamp()' : timestamp
00:10:40 verbose #11636 > >     }
00:10:40 verbose #11637 > 00:10:39   debug #639 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7912d6bfea06fbc878ad00be132c10485a41e5ab595c8b2f0e1909121280bdd3/main.spi
00:10:40 verbose #11638 > >
00:10:40 verbose #11639 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:40 verbose #11640 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:40 verbose #11641 > > │ ### format                                                                   │
00:10:40 verbose #11642 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:40 verbose #11643 > >
00:10:40 verbose #11644 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:40 verbose #11645 > > inl format (format : string) (date_time : date_time) : string =
00:10:40 verbose #11646 > >     backend_switch {
00:10:40 verbose #11647 > >         Fsharp = fun () => $'!date_time.ToString' format : string
00:10:40 verbose #11648 > >         Python = fun () => $'!date_time.strftime(!format)' : string
00:10:40 verbose #11649 > >     }
00:10:40 verbose #11650 > 00:10:40   debug #640 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1db61c7b25775a17cafd8a96e1224bbeb582df318f0918c6ad05f1910c237d41/main.spi
00:10:40 verbose #11651 > >
00:10:40 verbose #11652 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:40 verbose #11653 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:40 verbose #11654 > > │ ### format_iso8601                                                           │
00:10:40 verbose #11655 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:40 verbose #11656 > >
00:10:40 verbose #11657 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:40 verbose #11658 > > inl format_iso8601 (date_time : date_time) : string =
00:10:40 verbose #11659 > >     backend_switch {
00:10:40 verbose #11660 > >         Fsharp = fun () => date_time |> format "yyyy-MM-ddTHH-mm-ss.fff" :
00:10:40 verbose #11661 > > string
00:10:40 verbose #11662 > >         Python = fun () => date_time |> format "%Y-%m-%dT%H-%M-%S.%f" : string
00:10:40 verbose #11663 > >     }
00:10:41 verbose #11664 > 00:10:40   debug #641 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/62dced6dc0a665a54bf509a4b50abc55ff4cc56b6a6a66d5511666453e8cabc6/main.spi
00:10:41 verbose #11665 > >
00:10:41 verbose #11666 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:41 verbose #11667 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:41 verbose #11668 > > │ ### min_value                                                                │
00:10:41 verbose #11669 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:41 verbose #11670 > >
00:10:41 verbose #11671 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:41 verbose #11672 > > inl min_value () : date_time =
00:10:41 verbose #11673 > >     backend_switch {
00:10:41 verbose #11674 > >         Fsharp = fun () => $'System.DateTime.MinValue' : date_time
00:10:41 verbose #11675 > >         Python = fun () => $'datetime.datetime.min' : date_time
00:10:41 verbose #11676 > >     }
00:10:41 verbose #11677 > 00:10:40   debug #642 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bbbf688475755a7f3ae1a14043e1741792d18b4b03961d97b9ad904ec6cff72e/main.spi
00:10:41 verbose #11678 > >
00:10:41 verbose #11679 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:41 verbose #11680 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:41 verbose #11681 > > │ ### max_value                                                                │
00:10:41 verbose #11682 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:41 verbose #11683 > >
00:10:41 verbose #11684 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:41 verbose #11685 > > inl max_value () : date_time =
00:10:41 verbose #11686 > >     backend_switch {
00:10:41 verbose #11687 > >         Fsharp = fun () => $'System.DateTime.MaxValue' : date_time
00:10:41 verbose #11688 > >         Python = fun () => $'datetime.datetime.max' : date_time
00:10:41 verbose #11689 > >     }
00:10:41 verbose #11690 > 00:10:41   debug #643 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f5db708a63370c7f75a14cfae23894f72da8120d5cf6f95bf6504a208c4e5290/main.spi
00:10:41 verbose #11691 > >
00:10:41 verbose #11692 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:41 verbose #11693 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:41 verbose #11694 > > │ ### unix_epoch                                                               │
00:10:41 verbose #11695 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:41 verbose #11696 > >
00:10:41 verbose #11697 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:41 verbose #11698 > > inl unix_epoch () : date_time =
00:10:41 verbose #11699 > >     backend_switch {
00:10:41 verbose #11700 > >         Fsharp = fun () => $'System.DateTime.UnixEpoch' : date_time
00:10:41 verbose #11701 > >         Python = fun () => $'datetime.datetime(1970, 1, 1)' : date_time
00:10:41 verbose #11702 > >     }
00:10:42 verbose #11703 > 00:10:41   debug #644 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/23052ace4c5acf43aa2999c35d722f0e0e55a3d40fa6689f44c5cd6995661692/main.spi
00:10:42 verbose #11704 > >
00:10:42 verbose #11705 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:42 verbose #11706 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:42 verbose #11707 > > │ ### to_universal_time                                                        │
00:10:42 verbose #11708 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:42 verbose #11709 > >
00:10:42 verbose #11710 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:42 verbose #11711 > > inl to_universal_time (date_time : date_time) : date_time =
00:10:42 verbose #11712 > >     backend_switch {
00:10:42 verbose #11713 > >         Fsharp = fun () => date_time |> $'_.ToUniversalTime()' : date_time
00:10:42 verbose #11714 > >         Python = fun () => $'!date_time.astimezone(datetime.timezone.utc)' :
00:10:42 verbose #11715 > > date_time
00:10:42 verbose #11716 > >     }
00:10:42 verbose #11717 > 00:10:41   debug #645 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/33820ffe7d283ba8e3201901e4c97052f772581d8f3f9bf069b197a632dc72d1/main.spi
00:10:42 verbose #11718 > >
00:10:42 verbose #11719 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:42 verbose #11720 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:42 verbose #11721 > > │ ### date_time_kind                                                           │
00:10:42 verbose #11722 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:42 verbose #11723 > >
00:10:42 verbose #11724 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:42 verbose #11725 > > union date_time_kind =
00:10:42 verbose #11726 > >     | Unspecified
00:10:42 verbose #11727 > >     | Utc
00:10:42 verbose #11728 > >     | Local
00:10:42 verbose #11729 > 00:10:42   debug #646 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ea264169e1645dc28d0e7eb15861289ceb7a3cec96731952b296e1f62a945ccb/main.spi
00:10:42 verbose #11730 > >
00:10:42 verbose #11731 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:42 verbose #11732 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:42 verbose #11733 > > │ ### specify_date_kind                                                        │
00:10:42 verbose #11734 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:42 verbose #11735 > >
00:10:42 verbose #11736 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:42 verbose #11737 > > inl specify_date_kind (kind : date_time_kind) (date_time : date_time) :
00:10:42 verbose #11738 > > date_time =
00:10:42 verbose #11739 > >     inl kind : $'System.DateTimeKind' =
00:10:42 verbose #11740 > >         match kind with
00:10:42 verbose #11741 > >         | Unspecified => $'System.DateTimeKind.Unspecified'
00:10:42 verbose #11742 > >         | Utc => $'System.DateTimeKind.Utc'
00:10:42 verbose #11743 > >         | Local => $'System.DateTimeKind.Local'
00:10:42 verbose #11744 > >     $'System.DateTime.SpecifyKind (!date_time, !kind)'
00:10:43 verbose #11745 > 00:10:42   debug #647 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e30d892dc355b3c6c24fd0045ce071ee65df90753c7a2232e1ecb3d78c9a9b52/main.spi
00:10:43 verbose #11746 > >
00:10:43 verbose #11747 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:43 verbose #11748 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:43 verbose #11749 > > │ ### time_span                                                                │
00:10:43 verbose #11750 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:43 verbose #11751 > >
00:10:43 verbose #11752 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:43 verbose #11753 > > nominal time_span = $"backend_switch `({ Fsharp : $"System.TimeSpan"; Python :
00:10:43 verbose #11754 > > $"datetime.timedelta" })"
00:10:43 verbose #11755 > >
00:10:43 verbose #11756 > > inl time_span x : time_span =
00:10:43 verbose #11757 > >     backend_switch {
00:10:43 verbose #11758 > >         Fsharp = fun () => x |> $'`time_span ' : time_span
00:10:43 verbose #11759 > >         Python = fun () => $'datetime.timedelta(!x)' : time_span
00:10:43 verbose #11760 > >     }
00:10:43 verbose #11761 > 00:10:42   debug #648 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/161a0df9c5101b0b589598da2b7d59e555366a71c2aaebd8a7306a72a475e3e1/main.spi
00:10:43 verbose #11762 > >
00:10:43 verbose #11763 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:43 verbose #11764 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:43 verbose #11765 > > │ ### new_time_span                                                            │
00:10:43 verbose #11766 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:43 verbose #11767 > >
00:10:43 verbose #11768 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:43 verbose #11769 > > inl new_time_span (a : date_time) (b : date_time) : time_span =
00:10:43 verbose #11770 > >     $'!b - !a '
00:10:43 verbose #11771 > 00:10:43   debug #649 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a0c6e1893e87a139d5ee113c221e86d0e91369a63d6d44bb0dfa3c42878f1d10/main.spi
00:10:44 verbose #11772 > >
00:10:44 verbose #11773 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:44 verbose #11774 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:44 verbose #11775 > > │ ### time_span_format                                                         │
00:10:44 verbose #11776 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:44 verbose #11777 > >
00:10:44 verbose #11778 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:44 verbose #11779 > > inl time_span_format (format : string) (time_span : time_span) : string =
00:10:44 verbose #11780 > >     run_target function
00:10:44 verbose #11781 > >         | (TypeScript _ | Python _) => fun () =>
00:10:44 verbose #11782 > >             $'!time_span.ToString ("c",
00:10:44 verbose #11783 > > System.Globalization.CultureInfo.InvariantCulture)'
00:10:44 verbose #11784 > >         | _ => fun () =>
00:10:44 verbose #11785 > >             $'!time_span.ToString !format '
00:10:44 verbose #11786 > 00:10:43   debug #650 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/21442e64cc58c2176c15fb477a65faa78519b5eb7e2317161b33eb4d1021d7ec/main.spi
00:10:44 verbose #11787 > >
00:10:44 verbose #11788 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:44 verbose #11789 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:44 verbose #11790 > > │ ### hours                                                                    │
00:10:44 verbose #11791 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:44 verbose #11792 > >
00:10:44 verbose #11793 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:44 verbose #11794 > > inl hours (time_span : time_span) : i32 =
00:10:44 verbose #11795 > >     backend_switch {
00:10:44 verbose #11796 > >         Fsharp = fun () => time_span |> $'_.Hours' : i32
00:10:44 verbose #11797 > >         Python = fun () => $'!time_span.days * 24 + !time_span.seconds // 3600'
00:10:44 verbose #11798 > > : i32
00:10:44 verbose #11799 > >     }
00:10:44 verbose #11800 > 00:10:43   debug #651 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ecc31cf6a2057262f1c0ea9e41ec85226d6daff629fe437bb4222e8c4b147b60/main.spi
00:10:44 verbose #11801 > >
00:10:44 verbose #11802 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:44 verbose #11803 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:44 verbose #11804 > > │ ### milliseconds                                                             │
00:10:44 verbose #11805 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:44 verbose #11806 > >
00:10:44 verbose #11807 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:44 verbose #11808 > > inl milliseconds (time_span : time_span) : i32 =
00:10:44 verbose #11809 > >     backend_switch {
00:10:44 verbose #11810 > >         Fsharp = fun () => time_span |> $'_.Milliseconds' : i32
00:10:44 verbose #11811 > >         Python = fun () => $'!time_span.microseconds // 1000' : i32
00:10:44 verbose #11812 > >     }
00:10:44 verbose #11813 > 00:10:44   debug #652 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/661b36f5fb5039123f67ac712e1b18b742eb0bb9d062980cc39985d9509b30a5/main.spi
00:10:45 verbose #11814 > >
00:10:45 verbose #11815 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:45 verbose #11816 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:45 verbose #11817 > > │ ### minutes                                                                  │
00:10:45 verbose #11818 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:45 verbose #11819 > >
00:10:45 verbose #11820 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:45 verbose #11821 > > inl minutes (time_span : time_span) : i32 =
00:10:45 verbose #11822 > >     backend_switch {
00:10:45 verbose #11823 > >         Fsharp = fun () => time_span |> $'_.Minutes' : i32
00:10:45 verbose #11824 > >         Python = fun () => $'!time_span.seconds // 60' : i32
00:10:45 verbose #11825 > >     }
00:10:45 verbose #11826 > 00:10:44   debug #653 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f61635835217c91d5ea4a913ab7d8b8fef156d70ae3d2e36544385613e0eadea/main.spi
00:10:45 verbose #11827 > >
00:10:45 verbose #11828 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:45 verbose #11829 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:45 verbose #11830 > > │ ### seconds                                                                  │
00:10:45 verbose #11831 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:45 verbose #11832 > >
00:10:45 verbose #11833 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:45 verbose #11834 > > inl seconds (time_span : time_span) : i32 =
00:10:45 verbose #11835 > >     backend_switch {
00:10:45 verbose #11836 > >         Fsharp = fun () => time_span |> $'_.Seconds' : i32
00:10:45 verbose #11837 > >         Python = fun () => $'!time_span.seconds % 60' : i32
00:10:45 verbose #11838 > >     }
00:10:45 verbose #11839 > 00:10:45   debug #654 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5b5efcc7be4c768f2f70424181c13595fce6f968aab9949aaf866706824730d0/main.spi
00:10:45 verbose #11840 > >
00:10:45 verbose #11841 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:45 verbose #11842 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:45 verbose #11843 > > │ ### total_seconds                                                            │
00:10:45 verbose #11844 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:45 verbose #11845 > >
00:10:45 verbose #11846 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:45 verbose #11847 > > inl total_seconds (time_span : time_span) : f64 =
00:10:45 verbose #11848 > >     backend_switch {
00:10:45 verbose #11849 > >         Fsharp = fun () => time_span |> $'_.TotalSeconds' : f64
00:10:45 verbose #11850 > >         Python = fun () => $'!time_span.total_seconds()' : f64
00:10:45 verbose #11851 > >     }
00:10:46 verbose #11852 > 00:10:45   debug #655 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/48e8dc8d0c4f209d5dc038129c6caf34b9ebeb59e528ea7fffa42208219dd0f1/main.spi
00:10:46 verbose #11853 > >
00:10:46 verbose #11854 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:46 verbose #11855 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:46 verbose #11856 > > │ ### time_zone_info                                                           │
00:10:46 verbose #11857 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:46 verbose #11858 > >
00:10:46 verbose #11859 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:46 verbose #11860 > > nominal time_zone_info = $'System.TimeZoneInfo'
00:10:46 verbose #11861 > 00:10:45   debug #656 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/27b72b2deca8cc8f19c18909805881b8e22e0715f826e3cdcaad0cc365f588c2/main.spi
00:10:46 verbose #11862 > >
00:10:46 verbose #11863 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:46 verbose #11864 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:46 verbose #11865 > > │ ### add_days                                                                 │
00:10:46 verbose #11866 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:46 verbose #11867 > >
00:10:46 verbose #11868 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:46 verbose #11869 > > inl add_days (days : i32) (date_time : date_time) : date_time =
00:10:46 verbose #11870 > >     $'!date_time.AddDays' days
00:10:46 verbose #11871 > 00:10:46   debug #657 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/631ec1c29ff4c54f04bb11b7e0f4aeae47e903cec9d624a10687b68119d2ed94/main.spi
00:10:46 verbose #11872 > >
00:10:46 verbose #11873 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:46 verbose #11874 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:46 verbose #11875 > > │ ### now                                                                      │
00:10:46 verbose #11876 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:46 verbose #11877 > >
00:10:46 verbose #11878 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:46 verbose #11879 > > inl now () : date_time =
00:10:46 verbose #11880 > >     backend_switch {
00:10:46 verbose #11881 > >         Fsharp = fun () => $'System.DateTime.Now' : date_time
00:10:46 verbose #11882 > >         Python = fun () =>
00:10:46 verbose #11883 > >             global "import datetime"
00:10:46 verbose #11884 > >             $'datetime.datetime.now()' : date_time
00:10:46 verbose #11885 > >     }
00:10:47 verbose #11886 > 00:10:46   debug #658 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a7c2896dfe474e45732845382f84aa954c4dfcbd393c32e9e91478f8233d13cd/main.spi
00:10:47 verbose #11887 > >
00:10:47 verbose #11888 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:47 verbose #11889 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:47 verbose #11890 > > │ ### utc_now                                                                  │
00:10:47 verbose #11891 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:47 verbose #11892 > >
00:10:47 verbose #11893 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:47 verbose #11894 > > inl utc_now () : date_time =
00:10:47 verbose #11895 > >     backend_switch {
00:10:47 verbose #11896 > >         Fsharp = fun () => $'System.DateTime.UtcNow' : date_time
00:10:47 verbose #11897 > >         Python = fun () =>
00:10:47 verbose #11898 > >             global "import datetime"
00:10:47 verbose #11899 > >             $'datetime.datetime.utcnow()' : date_time
00:10:47 verbose #11900 > >     }
00:10:47 verbose #11901 > 00:10:46   debug #659 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ae4ca49708ba7d2353005f6f2f6970c4bbe0b9261996d0ac4f38e929c4814dff/main.spi
00:10:47 verbose #11902 > >
00:10:47 verbose #11903 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:47 verbose #11904 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:47 verbose #11905 > > │ ### stopwatch                                                                │
00:10:47 verbose #11906 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:47 verbose #11907 > >
00:10:47 verbose #11908 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:47 verbose #11909 > > nominal stopwatch = $"backend_switch `({ Fsharp :
00:10:47 verbose #11910 > > $'System.Diagnostics.Stopwatch'; Python : $'timeit.default_timer' })"
00:10:47 verbose #11911 > >
00:10:47 verbose #11912 > > inl stopwatch () : stopwatch =
00:10:47 verbose #11913 > >     backend_switch {
00:10:47 verbose #11914 > >         Fsharp = fun () => $'`stopwatch ' () : stopwatch
00:10:47 verbose #11915 > >         Python = fun () => $'`stopwatch ' : stopwatch
00:10:47 verbose #11916 > >     }
00:10:47 verbose #11917 > 00:10:47   debug #660 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/69b417fbeb02b6573563f008a4ce193f5d168f97a2ba3952ec9b19fca2a99788/main.spi
00:10:48 verbose #11918 > >
00:10:48 verbose #11919 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:48 verbose #11920 > > inl stopwatch_elapsed_milliseconds (stopwatch : stopwatch) : i64 =
00:10:48 verbose #11921 > >     $'!stopwatch.ElapsedMilliseconds'
00:10:48 verbose #11922 > 00:10:47   debug #661 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/55d79eb7343e95bfbc4bcde6b1031fd0cc72d52e46b1b16f6b3bfa5842025e84/main.spi
00:10:48 verbose #11923 > >
00:10:48 verbose #11924 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:48 verbose #11925 > > inl stopwatch_start (stopwatch : stopwatch) : () =
00:10:48 verbose #11926 > >     $'!stopwatch.Start' ()
00:10:48 verbose #11927 > 00:10:47   debug #662 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cd1c31aa81f6911b8d3efce90698b1be656c04db0801493be6f538705fd26b0f/main.spi
00:10:48 verbose #11928 > >
00:10:48 verbose #11929 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:48 verbose #11930 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:48 verbose #11931 > > │ ## rust                                                                      │
00:10:48 verbose #11932 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:48 verbose #11933 > >
00:10:48 verbose #11934 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:48 verbose #11935 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:48 verbose #11936 > > │ ### duration                                                                 │
00:10:48 verbose #11937 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:48 verbose #11938 > >
00:10:48 verbose #11939 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:48 verbose #11940 > > nominal duration = $'std_time_Duration'
00:10:49 verbose #11941 > 00:10:48   debug #663 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/06ee0e1852842b83b80e7ff47934185eba7235b3002d2a9c6ee5c725e8256df3/main.spi
00:10:49 verbose #11942 > >
00:10:49 verbose #11943 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:49 verbose #11944 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:49 verbose #11945 > > │ ### date_time'                                                               │
00:10:49 verbose #11946 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:49 verbose #11947 > >
00:10:49 verbose #11948 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:49 verbose #11949 > > nominal date_time' t = $'chrono_DateTime<`t>'
00:10:49 verbose #11950 > 00:10:48   debug #664 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/836fb5c7c3d0024366a283248cc58126e8b71dfad64d03fc1b758f0717c03e84/main.spi
00:10:49 verbose #11951 > >
00:10:49 verbose #11952 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:49 verbose #11953 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:49 verbose #11954 > > │ ### local                                                                    │
00:10:49 verbose #11955 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:49 verbose #11956 > >
00:10:49 verbose #11957 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:49 verbose #11958 > > nominal local = $'chrono_Local'
00:10:49 verbose #11959 > 00:10:49   debug #665 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bb708b9ce33ad0b12b1fd007209300a35c82047cef85b20b9bf535185d4cc065/main.spi
00:10:49 verbose #11960 > >
00:10:49 verbose #11961 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:49 verbose #11962 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:49 verbose #11963 > > │ ### naive_date_time                                                          │
00:10:49 verbose #11964 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:49 verbose #11965 > >
00:10:49 verbose #11966 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:49 verbose #11967 > > nominal naive_date_time = $'chrono_NaiveDateTime'
00:10:50 verbose #11968 > 00:10:49   debug #666 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/38801efc1ea2fd20d0eba31e6bddebc2a1e696c3ce9450cffa93f7dbf6d1d346/main.spi
00:10:50 verbose #11969 > >
00:10:50 verbose #11970 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:50 verbose #11971 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:50 verbose #11972 > > │ ## utc                                                                       │
00:10:50 verbose #11973 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:50 verbose #11974 > >
00:10:50 verbose #11975 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:50 verbose #11976 > > nominal utc = $'chrono_Utc'
00:10:50 verbose #11977 > 00:10:49   debug #667 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c63561efc2bfce24645c5c4e6d03b255d3992da0a4584c18645ab9a25d7f8202/main.spi
00:10:50 verbose #11978 > >
00:10:50 verbose #11979 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:50 verbose #11980 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:50 verbose #11981 > > │ ### naive_utc                                                                │
00:10:50 verbose #11982 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:50 verbose #11983 > >
00:10:50 verbose #11984 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:50 verbose #11985 > > inl naive_utc (date_time : date_time' utc) : naive_date_time =
00:10:50 verbose #11986 > >     !\\(date_time, $'"$0.naive_utc()"')
00:10:50 verbose #11987 > 00:10:50   debug #668 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f7bb70b508a1855654c66e67a5d6419c553747900491b81a48974a0be0e348d7/main.spi
00:10:51 verbose #11988 > >
00:10:51 verbose #11989 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:51 verbose #11990 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:51 verbose #11991 > > │ ### to_local                                                                 │
00:10:51 verbose #11992 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:51 verbose #11993 > >
00:10:51 verbose #11994 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:51 verbose #11995 > > inl to_local (date_time : date_time' utc) : date_time' local =
00:10:51 verbose #11996 > >     inl naive_date_time = date_time |> naive_utc
00:10:51 verbose #11997 > >     !\\(naive_date_time,
00:10:51 verbose #11998 > > $'"chrono::offset::TimeZone::from_utc_datetime(&chrono::Local, &$0)"')
00:10:51 verbose #11999 > 00:10:50   debug #669 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0787e66460356bb9b3cde371d761b6cfd8a5cf49c95f97348bac441b07316de3/main.spi
00:10:51 verbose #12000 > >
00:10:51 verbose #12001 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:51 verbose #12002 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:51 verbose #12003 > > │ ### from_timestamp_micros                                                    │
00:10:51 verbose #12004 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:51 verbose #12005 > >
00:10:51 verbose #12006 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:51 verbose #12007 > > inl from_timestamp_micros forall t {number; int}. (timestamp : t) : option
00:10:51 verbose #12008 > > (date_time' utc) =
00:10:51 verbose #12009 > >     inl result : optionm'.option' (date_time' utc) =
00:10:51 verbose #12010 > >         !\\(timestamp, $'"chrono::DateTime::from_timestamp_micros($0)"')
00:10:51 verbose #12011 > >     result |> optionm'.unbox
00:10:51 verbose #12012 > 00:10:50   debug #670 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b6ef78e7362baa24a071ba213f876cff1c1923b281854a464ada5ea2bbc270f2/main.spi
00:10:51 verbose #12013 > >
00:10:51 verbose #12014 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:51 verbose #12015 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:51 verbose #12016 > > │ ### format'                                                                  │
00:10:51 verbose #12017 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:51 verbose #12018 > >
00:10:51 verbose #12019 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:51 verbose #12020 > > inl format' (format : string) (date_time : date_time' utc) : sm'.std_string =
00:10:51 verbose #12021 > >     !\\((date_time, #format), $'"$0.format($1).to_string()"')
00:10:52 verbose #12022 > 00:10:51   debug #671 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/118ebc1202bfaf4d6dec231f0f6ad196b3524dfc4eea7df5540229b020db39f0/main.spi
00:10:52 verbose #12023 > >
00:10:52 verbose #12024 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:52 verbose #12025 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:52 verbose #12026 > > │ ### format''                                                                 │
00:10:52 verbose #12027 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:52 verbose #12028 > >
00:10:52 verbose #12029 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:52 verbose #12030 > > inl format'' (format : string) (date_time : date_time' _) : sm'.std_string =
00:10:52 verbose #12031 > >     !\\((date_time, #format), $'"$0.format($1).to_string()"')
00:10:52 verbose #12032 > 00:10:51   debug #672 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/66b29bcdd393c558c4d2673c150f317e89ad7a9047f12f661e251d8212a5ebe1/main.spi
00:10:52 verbose #12033 > >
00:10:52 verbose #12034 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:52 verbose #12035 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:52 verbose #12036 > > │ ### format_timestamp                                                         │
00:10:52 verbose #12037 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:52 verbose #12038 > >
00:10:52 verbose #12039 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:52 verbose #12040 > > inl format_timestamp forall t {number; int}. (timestamp : t) =
00:10:52 verbose #12041 > >     inl timestamp = join timestamp
00:10:52 verbose #12042 > >     (timestamp / 1000)
00:10:52 verbose #12043 > >     |> from_timestamp_micros
00:10:52 verbose #12044 > >     |> optionm.map fun x =>
00:10:52 verbose #12045 > >         x
00:10:52 verbose #12046 > >         |> to_local
00:10:52 verbose #12047 > >         |> format'' "%Y-%m-%d %H:%M:%S"
00:10:52 verbose #12048 > >         |> sm'.from_std_string
00:10:52 verbose #12049 > >     |> resultm.from_option
00:10:52 verbose #12050 > 00:10:52   debug #673 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5958062b383e01da767e9717e13829a6ca6abbf7e458cec8731d885e526fdb7f/main.spi
00:10:52 verbose #12051 > >
00:10:52 verbose #12052 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:52 verbose #12053 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:52 verbose #12054 > > │ ### duration_from_millis                                                     │
00:10:52 verbose #12055 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:52 verbose #12056 > >
00:10:52 verbose #12057 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:52 verbose #12058 > > inl duration_from_millis (ms : u64) : duration =
00:10:52 verbose #12059 > >     inl ms = join ms
00:10:52 verbose #12060 > >     !\($'"std::time::Duration::from_millis(!ms)"')
00:10:53 verbose #12061 > 00:10:52   debug #674 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/55401b6955a1887ed14679e6eac9a65c97d0eb31bfeaf4f2876e7684873e8366/main.spi
00:10:53 verbose #12062 > >
00:10:53 verbose #12063 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:53 verbose #12064 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:53 verbose #12065 > > │ ## date_time                                                                 │
00:10:53 verbose #12066 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:53 verbose #12067 > >
00:10:53 verbose #12068 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:53 verbose #12069 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:53 verbose #12070 > > │ ### time_zone_local                                                          │
00:10:53 verbose #12071 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:53 verbose #12072 > >
00:10:53 verbose #12073 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:53 verbose #12074 > > inl time_zone_local () : time_zone_info =
00:10:53 verbose #12075 > >     run_target function
00:10:53 verbose #12076 > >         | Rust (Native) => fun () =>
00:10:53 verbose #12077 > >             open rust_operators
00:10:53 verbose #12078 > >             !\($'"0i64.into()"')
00:10:53 verbose #12079 > >         | Fsharp _ => fun () =>
00:10:53 verbose #12080 > >             $'System.TimeZoneInfo.Local'
00:10:53 verbose #12081 > >         | _ => fun () => null ()
00:10:53 verbose #12082 > 00:10:52   debug #675 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7c77aa836f57b8a167a1041c3bd4d9bac1d6469deb90413529898eaeb6bb50/main.spi
00:10:53 verbose #12083 > >
00:10:53 verbose #12084 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:53 verbose #12085 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:53 verbose #12086 > > │ ### get_utc_offset                                                           │
00:10:53 verbose #12087 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:53 verbose #12088 > >
00:10:53 verbose #12089 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:53 verbose #12090 > > inl get_utc_offset (time_zone_info : time_zone_info) (date_time : date_time) :
00:10:53 verbose #12091 > > time_span =
00:10:53 verbose #12092 > >     run_target function
00:10:53 verbose #12093 > >         | Rust _ => fun () => time_span ()
00:10:53 verbose #12094 > >         | Fsharp _ => fun () => date_time |> $'_.GetUtcOffset' (time_zone_local
00:10:53 verbose #12095 > > ())
00:10:53 verbose #12096 > >         | target => fun () => failwith $'$"date_time.get_utc_offset / target:
00:10:53 verbose #12097 > > {!target}"'
00:10:53 verbose #12098 > 00:10:53   debug #676 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/62cd25b7fc599aa62fe5e15868d5a6d9c444d399eb2ca6b78172a60328200fcd/main.spi
00:10:54 verbose #12099 > >
00:10:54 verbose #12100 > > ── markdown ────────────────────────────────────────────────────────────────────
00:10:54 verbose #12101 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:10:54 verbose #12102 > > │ ### date_time_guid_from_date_time                                            │
00:10:54 verbose #12103 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:54 verbose #12104 > >
00:10:54 verbose #12105 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:54 verbose #12106 > > let date_time_guid_from_date_time (guid : guid.guid) (date_time : date_time) =
00:10:54 verbose #12107 > >     inl create prefix time_zone : date_time_guid =
00:10:54 verbose #12108 > >         inl guid = guid |> sm'.obj_to_string
00:10:54 verbose #12109 > >         $'`date_time_guid $"{!prefix}{!time_zone}{!guid.[[!prefix.Length +
00:10:54 verbose #12110 > > !time_zone.Length..]]}"'
00:10:54 verbose #12111 > >     run_target function
00:10:54 verbose #12112 > >         | Rust (Contract) => fun () => null ()
00:10:54 verbose #12113 > >         | Rust (Native | Wasm) => fun () =>
00:10:54 verbose #12114 > >             inl epoch =
00:10:54 verbose #12115 > >                 date_time_utc 1970 1 1 0 0 0
00:10:54 verbose #12116 > >                 |> to_universal_time
00:10:54 verbose #12117 > >             inl date_time =
00:10:54 verbose #12118 > >                 date_time
00:10:54 verbose #12119 > >                 |> specify_date_kind Local
00:10:54 verbose #12120 > >                 |> to_universal_time
00:10:54 verbose #12121 > >             inl unixticks =
00:10:54 verbose #12122 > >                 match date_time |> ticks, epoch |> ticks with
00:10:54 verbose #12123 > >                 | timestamp date_time, timestamp epoch => date_time - epoch
00:10:54 verbose #12124 > >             inl prefix =
00:10:54 verbose #12125 > >                 unixticks / 10
00:10:54 verbose #12126 > >                 |> from_timestamp_micros
00:10:54 verbose #12127 > >                 |> optionm.map (
00:10:54 verbose #12128 > >                     to_local
00:10:54 verbose #12129 > >                     >> format'' "%Y%m%d-%H%M-%S%f"
00:10:54 verbose #12130 > >                     >> sm'.from_std_string
00:10:54 verbose #12131 > >                     >> fun s => $'$"{!s.[[0..17]]}-{!s.[[18..21]]}-{!s.[[22]]}"'
00:10:54 verbose #12132 > >                 )
00:10:54 verbose #12133 > >                 |> optionm'.default_value ""
00:10:54 verbose #12134 > >             inl time_zone = date_time |> get_utc_offset (time_zone_local ())
00:10:54 verbose #12135 > >             inl time_zone_signal = if hours time_zone > 0 then 1u8 else 0
00:10:54 verbose #12136 > >             inl time_zone_value = time_zone |> time_span_format (join "hh:mm")
00:10:54 verbose #12137 > >             inl time_zone =
00:10:54 verbose #12138 > > $'$"{!time_zone_signal}{!time_zone_value.[[0..1]]}{!time_zone_value.[[3..4]]}"'
00:10:54 verbose #12139 > > : string
00:10:54 verbose #12140 > >             create prefix time_zone
00:10:54 verbose #12141 > >         | target => fun () =>
00:10:54 verbose #12142 > >             inl prefix = date_time |> format (join "yyyyMMdd-HHmm-ssff-ffff-f")
00:10:54 verbose #12143 > >             inl time_zone = date_time |> get_utc_offset (time_zone_local ())
00:10:54 verbose #12144 > >             inl time_zone_signal = if hours time_zone > 0 then 1u8 else 0
00:10:54 verbose #12145 > >             inl time_zone_value = time_zone |> time_span_format (join "hhmm")
00:10:54 verbose #12146 > >             inl time_zone = $'$"{!time_zone_signal}{!time_zone_value}"' : string
00:10:54 verbose #12147 > >             create prefix time_zone
00:10:54 verbose #12148 > 00:10:53   debug #677 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1b2a31e749b1ae90c55daf0cb89deb0c4297d3f99ae13c88f976460f4a32e2ba/main.spi
00:10:54 verbose #12149 > >
00:10:54 verbose #12150 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:54 verbose #12151 > > //// test
00:10:54 verbose #12152 > >
00:10:54 verbose #12153 > > types ()
00:10:54 verbose #12154 > > now () |> to_universal_time |> date_time_guid_from_date_time (test_guid ()) |>
00:10:54 verbose #12155 > > sm'.obj_to_string
00:10:54 verbose #12156 > > |> console.write_line
00:10:54 verbose #12157 > 00:10:53   debug #678 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/188a56a4826ea3665de34c28f682e6893c503e2fb8116a77439d11d3bb1c5754/main.spi
00:10:56 verbose #12158 > >
00:10:56 verbose #12159 > > ╭─[ 1.75s - stdout ]───────────────────────────────────────────────────────────╮
00:10:56 verbose #12160 > > │ 20240709-0258-3311-1123-100300543210                                         │
00:10:56 verbose #12161 > > │                                                                              │
00:10:56 verbose #12162 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:56 verbose #12163 > >
00:10:56 verbose #12164 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:56 verbose #12165 > > //// test
00:10:56 verbose #12166 > > ///! rust -d chrono
00:10:56 verbose #12167 > >
00:10:56 verbose #12168 > > types ()
00:10:56 verbose #12169 > > inl suffix = test_guid () |> sm'.obj_to_string |> sm'.range (am'.End fun x => x
00:10:56 verbose #12170 > > - 6i32) (am'.End id)
00:10:56 verbose #12171 > > now ()
00:10:56 verbose #12172 > > |> to_universal_time
00:10:56 verbose #12173 > > |> date_time_guid_from_date_time (test_guid ())
00:10:56 verbose #12174 > > |> sm'.obj_to_string
00:10:56 verbose #12175 > > |> fun s => s |> _assert_eq' $'$"{!s.[[0..29]]}{!suffix}"'
00:10:56 verbose #12176 > 00:10:55   debug #679 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5fe3d7e18d455443a4b5613e6d9dbf4d2a2281c6305786a9a7d1a983bacad247/main.spi
00:10:59 verbose #12177 > >
00:10:59 verbose #12178 > > ╭─[ 3.56s - return value ]─────────────────────────────────────────────────────╮
00:10:59 verbose #12179 > > │ assert_eq' / actual: "20240709-0258-3658-4664-000000543210" / expected:      │
00:10:59 verbose #12180 > > │ "20240709-0258-3658-4664-000000543210"                                       │
00:10:59 verbose #12181 > > │                                                                              │
00:10:59 verbose #12182 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:10:59 verbose #12183 > >
00:10:59 verbose #12184 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:10:59 verbose #12185 > > //// test
00:10:59 verbose #12186 > > ///! fsharp
00:10:59 verbose #12187 > > ///! rust -d chrono
00:10:59 verbose #12188 > >
00:10:59 verbose #12189 > > types ()
00:10:59 verbose #12190 > >
00:10:59 verbose #12191 > > inl suffix = test_guid () |> sm'.obj_to_string |> sm'.range (am'.End fun x => x
00:10:59 verbose #12192 > > - 6i32) (am'.End id)
00:10:59 verbose #12193 > > min_value ()
00:10:59 verbose #12194 > > |> specify_date_kind Local
00:10:59 verbose #12195 > > |> date_time_guid_from_date_time (test_guid ())
00:10:59 verbose #12196 > > |> sm'.obj_to_string
00:10:59 verbose #12197 > > |> fun s => s |> _assert_eq'
00:10:59 verbose #12198 > > $'$"00010101-0000-0000-0000-0{!s.[[25..29]]}{!suffix}"'
00:10:59 verbose #12199 > 00:10:59   debug #680 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/41b4f1488a4f599c6dbaaed31b9c2475d48fdbce82a9c8ec66f75d0b82a5bd8f/main.spi
00:11:03 verbose #12200 > >
00:11:03 verbose #12201 > > ╭─[ 3.26s - return value ]─────────────────────────────────────────────────────╮
00:11:03 verbose #12202 > > │ .rs output:                                                                  │
00:11:03 verbose #12203 > > │ assert_eq' / actual: "00010101-0000-0000-0000-000000543210" / expected:      │
00:11:03 verbose #12204 > > │ "00010101-0000-0000-0000-000000543210"                                       │
00:11:03 verbose #12205 > > │                                                                              │
00:11:03 verbose #12206 > > │                                                                              │
00:11:03 verbose #12207 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:03 verbose #12208 > >
00:11:03 verbose #12209 > > ╭─[ 3.26s - stdout ]───────────────────────────────────────────────────────────╮
00:11:03 verbose #12210 > > │ .fsx output:                                                                 │
00:11:03 verbose #12211 > > │ assert_eq' / actual: "00010101-0000-0000-0000-000200543210" / expected:      │
00:11:03 verbose #12212 > > │ "00010101-0000-0000-0000-000200543210"                                       │
00:11:03 verbose #12213 > > │                                                                              │
00:11:03 verbose #12214 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:03 verbose #12215 > >
00:11:03 verbose #12216 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:03 verbose #12217 > > //// test
00:11:03 verbose #12218 > > ///! fsharp
00:11:03 verbose #12219 > >
00:11:03 verbose #12220 > > types ()
00:11:03 verbose #12221 > > inl suffix = test_guid () |> sm'.obj_to_string |> sm'.range (am'.End fun x => x
00:11:03 verbose #12222 > > - 6i32) (am'.End id)
00:11:03 verbose #12223 > > max_value ()
00:11:03 verbose #12224 > > |> specify_date_kind Utc
00:11:03 verbose #12225 > > |> add_days -1
00:11:03 verbose #12226 > > |> date_time_guid_from_date_time (test_guid ())
00:11:03 verbose #12227 > > |> sm'.obj_to_string
00:11:03 verbose #12228 > > |> fun s => s |> _assert_eq
00:11:03 verbose #12229 > > $'$"99991230-2359-5999-9999-9{!s.[[25..29]]}{!suffix}"'
00:11:03 verbose #12230 > 00:11:02   debug #681 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3190b8c9c4885bfbda9def3cc001d7e2aeedfac4465878ffdc2f661eac0e6154/main.spi
00:11:03 verbose #12231 > >
00:11:03 verbose #12232 > > ╭─[ 640.42ms - stdout ]────────────────────────────────────────────────────────╮
00:11:03 verbose #12233 > > │ assert_eq / actual: "99991230-2359-5999-9999-900300543210" / expected:       │
00:11:03 verbose #12234 > > │ "99991230-2359-5999-9999-900300543210"                                       │
00:11:03 verbose #12235 > > │                                                                              │
00:11:03 verbose #12236 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:03 verbose #12237 > >
00:11:03 verbose #12238 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:03 verbose #12239 > > //// test
00:11:03 verbose #12240 > > ///! rust -d chrono
00:11:03 verbose #12241 > >
00:11:03 verbose #12242 > > types ()
00:11:03 verbose #12243 > > inl suffix = test_guid () |> sm'.obj_to_string |> sm'.range (am'.End fun x => x
00:11:03 verbose #12244 > > - 6i32) (am'.End id)
00:11:03 verbose #12245 > > max_value ()
00:11:03 verbose #12246 > > |> specify_date_kind Utc
00:11:03 verbose #12247 > > |> add_days -1
00:11:03 verbose #12248 > > |> date_time_guid_from_date_time (test_guid ())
00:11:03 verbose #12249 > > |> sm'.obj_to_string
00:11:03 verbose #12250 > > |> fun s => s |> _assert_eq
00:11:03 verbose #12251 > > $'$"99991230-2359-5999-9999-0{!s.[[25..29]]}{!suffix}"'
00:11:03 verbose #12252 > 00:11:03   debug #682 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/db9aea6de799aecc6608b64e5792c8897d53b6389770bab032dbc3321bee8690/main.spi
00:11:06 verbose #12253 > >
00:11:06 verbose #12254 > > ╭─[ 3.07s - return value ]─────────────────────────────────────────────────────╮
00:11:06 verbose #12255 > > │ assert_eq / actual: "99991230-2359-5999-9999-000000543210" / expected:       │
00:11:06 verbose #12256 > > │ "99991230-2359-5999-9999-000000543210"                                       │
00:11:06 verbose #12257 > > │                                                                              │
00:11:06 verbose #12258 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:06 verbose #12259 > >
00:11:06 verbose #12260 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:06 verbose #12261 > > //// test
00:11:06 verbose #12262 > >
00:11:06 verbose #12263 > > inl suffix = test_guid () |> sm'.obj_to_string |> sm'.range (am'.End fun x => x
00:11:06 verbose #12264 > > - 6i32) (am'.End id)
00:11:06 verbose #12265 > > unix_epoch ()
00:11:06 verbose #12266 > > |> specify_date_kind Utc
00:11:06 verbose #12267 > > |> add_days 1
00:11:06 verbose #12268 > > |> date_time_guid_from_date_time (test_guid ())
00:11:06 verbose #12269 > > |> sm'.obj_to_string
00:11:06 verbose #12270 > > |> fun s => s |> _assert_eq
00:11:06 verbose #12271 > > $'$"19700102-0000-0000-0000-0{!s.[[25..29]]}{!suffix}"'
00:11:06 verbose #12272 > 00:11:06   debug #683 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5ab10423016d39a14147519ca525fad6d8dd5ce05197ca90e320a61a74496bd7/main.spi
00:11:07 verbose #12273 > >
00:11:07 verbose #12274 > > ╭─[ 549.01ms - stdout ]────────────────────────────────────────────────────────╮
00:11:07 verbose #12275 > > │ assert_eq / actual: "19700102-0000-0000-0000-000200543210" / expected:       │
00:11:07 verbose #12276 > > │ "19700102-0000-0000-0000-000200543210"                                       │
00:11:07 verbose #12277 > > │                                                                              │
00:11:07 verbose #12278 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:07 verbose #12279 > >
00:11:07 verbose #12280 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:07 verbose #12281 > > //// test
00:11:07 verbose #12282 > > ///! rust -d chrono
00:11:07 verbose #12283 > >
00:11:07 verbose #12284 > > types ()
00:11:07 verbose #12285 > > inl suffix = test_guid () |> sm'.obj_to_string |> sm'.range (am'.End fun x => x
00:11:07 verbose #12286 > > - 6i32) (am'.End id)
00:11:07 verbose #12287 > > unix_epoch ()
00:11:07 verbose #12288 > > |> specify_date_kind Utc
00:11:07 verbose #12289 > > |> add_days 1
00:11:07 verbose #12290 > > |> date_time_guid_from_date_time (test_guid ())
00:11:07 verbose #12291 > > |> sm'.obj_to_string
00:11:07 verbose #12292 > > |> fun s => s |> _assert_eq
00:11:07 verbose #12293 > > $'$"19700102-0000-0000-0000-0{!s.[[25..29]]}{!suffix}"'
00:11:07 verbose #12294 > 00:11:06   debug #684 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dc0f86de5eabf86daaf46bc551309d3ab431cb1b4db894afa8210b678bcafae4/main.spi
00:11:10 verbose #12295 > >
00:11:10 verbose #12296 > > ╭─[ 3.14s - return value ]─────────────────────────────────────────────────────╮
00:11:10 verbose #12297 > > │ assert_eq / actual: "19700102-0000-0000-0000-000000543210" / expected:       │
00:11:10 verbose #12298 > > │ "19700102-0000-0000-0000-000000543210"                                       │
00:11:10 verbose #12299 > > │                                                                              │
00:11:10 verbose #12300 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:10 verbose #12301 > >
00:11:10 verbose #12302 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:10 verbose #12303 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:10 verbose #12304 > > │ ### date_time_from_guid                                                      │
00:11:10 verbose #12305 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:10 verbose #12306 > >
00:11:10 verbose #12307 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:10 verbose #12308 > > inl date_time_from_guid (date_time_guid : date_time_guid) =
00:11:10 verbose #12309 > >     inl date_time_guid = date_time_guid |> sm'.obj_to_string
00:11:10 verbose #12310 > >     inl sm'_replace = join sm'.replace
00:11:10 verbose #12311 > >     run_target function
00:11:10 verbose #12312 > >         | (Rust _ | TypeScript _) => fun () =>
00:11:10 verbose #12313 > >             $'System.DateTime.Parse (!date_time_guid.[[..24]] |> !sm'_replace
00:11:10 verbose #12314 > > "-" "")' : date_time
00:11:10 verbose #12315 > >         | _ => fun () => $'System.DateTime.ParseExact (!date_time_guid.[[..24]]
00:11:10 verbose #12316 > > |> !sm'_replace "-" "", "yyyyMMddHHmmssfffffff", null)' : date_time
00:11:10 verbose #12317 > 00:11:09   debug #685 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ad9827979c5d306f17b0f2db3d3a496f5a0201c09f22994a78ab846f4b715897/main.spi
00:11:10 verbose #12318 > >
00:11:10 verbose #12319 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:10 verbose #12320 > > //// test
00:11:10 verbose #12321 > >
00:11:10 verbose #12322 > > date_time_from_guid (guid.new_guid "00010101-0000-0000-0000-0a9876543210")
00:11:10 verbose #12323 > > |> _assert_eq' (min_value ())
00:11:11 verbose #12324 > 00:11:10   debug #686 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7542ef3ea27a62e50f21e45a82628bbc22d925b207c53720f537c4762fad3258/main.spi
00:11:11 verbose #12325 > >
00:11:11 verbose #12326 > > ╭─[ 426.91ms - stdout ]────────────────────────────────────────────────────────╮
00:11:11 verbose #12327 > > │ assert_eq' / actual: 0001-01-01 12:00:00 AM / expected: 0001-01-01 12:00:00  │
00:11:11 verbose #12328 > > │ AM                                                                           │
00:11:11 verbose #12329 > > │                                                                              │
00:11:11 verbose #12330 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:11 verbose #12331 > >
00:11:11 verbose #12332 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:11 verbose #12333 > > //// test
00:11:11 verbose #12334 > >
00:11:11 verbose #12335 > > date_time_from_guid (guid.new_guid $'$"99991231-2359-5999-9999-9{(!test_guid ()
00:11:11 verbose #12336 > > |> string).[[^10..]]}"')
00:11:11 verbose #12337 > > |> _assert_eq' (max_value ())
00:11:11 verbose #12338 > 00:11:10   debug #687 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b296f27c6c26bbe17d65c0da6bc1a984d1f0eeeb489b7399b290bce95107299c/main.spi
00:11:11 verbose #12339 > >
00:11:11 verbose #12340 > > ╭─[ 444.96ms - stdout ]────────────────────────────────────────────────────────╮
00:11:11 verbose #12341 > > │ assert_eq' / actual: 9999-12-31 11:59:59 PM / expected: 9999-12-31 11:59:59  │
00:11:11 verbose #12342 > > │ PM                                                                           │
00:11:11 verbose #12343 > > │                                                                              │
00:11:11 verbose #12344 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:11 verbose #12345 > >
00:11:11 verbose #12346 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:11 verbose #12347 > > //// test
00:11:11 verbose #12348 > >
00:11:11 verbose #12349 > > date_time_from_guid (guid.new_guid $'$"19700101-0000-0000-0000-0{(!test_guid ()
00:11:11 verbose #12350 > > |> string).[[^10..]]}"')
00:11:11 verbose #12351 > > |> _assert_eq' $'System.DateTime.UnixEpoch'
00:11:11 verbose #12352 > 00:11:11   debug #688 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9475cba8174ff9098a5e2f8911c0fbd8c78cb22e890b7f79bcc1cb7221696584/main.spi
00:11:12 verbose #12353 > >
00:11:12 verbose #12354 > > ╭─[ 411.99ms - stdout ]────────────────────────────────────────────────────────╮
00:11:12 verbose #12355 > > │ assert_eq' / actual: 1970-01-01 12:00:00 AM / expected: 1970-01-01 12:00:00  │
00:11:12 verbose #12356 > > │ AM                                                                           │
00:11:12 verbose #12357 > > │                                                                              │
00:11:12 verbose #12358 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:12 verbose #12359 > >
00:11:12 verbose #12360 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:12 verbose #12361 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:12 verbose #12362 > > │ ### timestamp_guid_from_timestamp                                            │
00:11:12 verbose #12363 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:12 verbose #12364 > >
00:11:12 verbose #12365 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:12 verbose #12366 > > inl timestamp_guid_from_timestamp (guid : guid.guid) (timestamp : timestamp) :
00:11:12 verbose #12367 > > timestamp_guid =
00:11:12 verbose #12368 > >     inl guid = guid |> sm'.obj_to_string
00:11:12 verbose #12369 > >     inl timestamp = timestamp |> sm'.obj_to_string |> sm'.pad_left 18i32 '0'
00:11:12 verbose #12370 > >     $'`timestamp_guid
00:11:12 verbose #12371 > > $"{!timestamp.[[0..7]]}-{!timestamp.[[8..11]]}-{!timestamp.[[12..15]]}-{!timesta
00:11:12 verbose #12372 > > mp.[[16..17]]}{!guid.[[21..]]}"'
00:11:12 verbose #12373 > 00:11:11   debug #689 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6080d599ac2edc9243bd750b81a8211c4242ccfa88b61a57e8f01209362a6805/main.spi
00:11:12 verbose #12374 > >
00:11:12 verbose #12375 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:12 verbose #12376 > > //// test
00:11:12 verbose #12377 > >
00:11:12 verbose #12378 > > timestamp_guid_from_timestamp (test_guid ()) (timestamp 0i64)
00:11:12 verbose #12379 > > |> _assert_eq' (guid.new_guid "00000000-0000-0000-00dc-ba9876543210")
00:11:12 verbose #12380 > 00:11:11   debug #690 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ceec2fb0c969e292a4c0a5e789da53736ff09f0687cbd1f7c72eb479d2adf3e0/main.spi
00:11:12 verbose #12381 > >
00:11:12 verbose #12382 > > ╭─[ 420.23ms - stdout ]────────────────────────────────────────────────────────╮
00:11:12 verbose #12383 > > │ assert_eq' / actual: 00000000-0000-0000-00dc-ba9876543210 / expected:        │
00:11:12 verbose #12384 > > │ 00000000-0000-0000-00dc-ba9876543210                                         │
00:11:12 verbose #12385 > > │                                                                              │
00:11:12 verbose #12386 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:12 verbose #12387 > >
00:11:12 verbose #12388 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:12 verbose #12389 > > //// test
00:11:12 verbose #12390 > >
00:11:12 verbose #12391 > > timestamp_guid_from_timestamp (test_guid ()) (timestamp 999999999999999999i64)
00:11:12 verbose #12392 > > |> _assert_eq' (guid.new_guid $'$"99999999-9999-9999-99dc-b{(!test_guid () |>
00:11:12 verbose #12393 > > string).[[^10..]]}"')
00:11:13 verbose #12394 > 00:11:12   debug #691 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b9264a9781707fd65d908db3ed0faf0c76d693ff9115db98918dfaf924bedf34/main.spi
00:11:13 verbose #12395 > >
00:11:13 verbose #12396 > > ╭─[ 436.93ms - stdout ]────────────────────────────────────────────────────────╮
00:11:13 verbose #12397 > > │ assert_eq' / actual: 99999999-9999-9999-99dc-ba9876543210 / expected:        │
00:11:13 verbose #12398 > > │ 99999999-9999-9999-99dc-ba9876543210                                         │
00:11:13 verbose #12399 > > │                                                                              │
00:11:13 verbose #12400 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:13 verbose #12401 > >
00:11:13 verbose #12402 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:13 verbose #12403 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:13 verbose #12404 > > │ ### timestamp_from_guid                                                      │
00:11:13 verbose #12405 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:13 verbose #12406 > >
00:11:13 verbose #12407 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:13 verbose #12408 > > inl timestamp_from_guid (guid : date_time_guid) : timestamp =
00:11:13 verbose #12409 > >     inl guid = guid |> sm'.obj_to_string
00:11:13 verbose #12410 > >     $'`i64
00:11:13 verbose #12411 > > $"{!guid.[[0..7]]}{!guid.[[9..12]]}{!guid.[[14..17]]}{!guid.[[19..20]]}"'
00:11:13 verbose #12412 > 00:11:12   debug #692 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e5ebfde3246b026c97acb70fe9bad2705d28efec4697752aea1936b8d22b4ba8/main.spi
00:11:13 verbose #12413 > >
00:11:13 verbose #12414 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:13 verbose #12415 > > //// test
00:11:13 verbose #12416 > >
00:11:13 verbose #12417 > > timestamp_from_guid (guid.new_guid "00000000-0000-0000-00dc-ba9876543210")
00:11:13 verbose #12418 > > |> _assert_eq (timestamp 0)
00:11:13 verbose #12419 > 00:11:13   debug #693 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8baafce6bf8f5ac875f46a1fa626b9a2c9d4c2df4ee82b4d53293210737e222d/main.spi
00:11:14 verbose #12420 > >
00:11:14 verbose #12421 > > ╭─[ 355.29ms - stdout ]────────────────────────────────────────────────────────╮
00:11:14 verbose #12422 > > │ assert_eq / actual: 0L / expected: 0L                                        │
00:11:14 verbose #12423 > > │                                                                              │
00:11:14 verbose #12424 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:14 verbose #12425 > >
00:11:14 verbose #12426 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:14 verbose #12427 > > //// test
00:11:14 verbose #12428 > >
00:11:14 verbose #12429 > > timestamp_from_guid (guid.new_guid $'$"99999999-9999-9999-99{(!test_guid () |>
00:11:14 verbose #12430 > > string).[[^14..]]}"')
00:11:14 verbose #12431 > > |> _assert_eq (timestamp 999999999999999999)
00:11:14 verbose #12432 > 00:11:13   debug #694 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7de1fa4711a57980944909a8f1c6d37c6731ba752891a105ffe8758a0fbd818f/main.spi
00:11:14 verbose #12433 > >
00:11:14 verbose #12434 > > ╭─[ 412.88ms - stdout ]────────────────────────────────────────────────────────╮
00:11:14 verbose #12435 > > │ assert_eq / actual: 999999999999999999L / expected: 999999999999999999L      │
00:11:14 verbose #12436 > > │                                                                              │
00:11:14 verbose #12437 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:14 verbose #12438 > >
00:11:14 verbose #12439 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:14 verbose #12440 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:14 verbose #12441 > > │ ### new_guid_from_date_time                                                  │
00:11:14 verbose #12442 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:14 verbose #12443 > >
00:11:14 verbose #12444 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:14 verbose #12445 > > inl new_guid_from_date_time (date_time : date_time) =
00:11:14 verbose #12446 > >     inl guid = guid.new_raw_guid ()
00:11:14 verbose #12447 > >     date_time_guid_from_date_time guid date_time
00:11:14 verbose #12448 > 00:11:14   debug #695 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2c39cf3773241181ae111601511d1f9e84ccc2a61cef50b8186a2e323277dbd1/main.spi
00:11:14 verbose #12449 > >
00:11:14 verbose #12450 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:14 verbose #12451 > > //// test
00:11:14 verbose #12452 > >
00:11:14 verbose #12453 > > utc_now ()
00:11:14 verbose #12454 > > |> new_guid_from_date_time
00:11:14 verbose #12455 > > |> date_time_from_guid
00:11:14 verbose #12456 > > |> fun date_time => new_time_span date_time (utc_now ()) |> total_seconds |> i32
00:11:14 verbose #12457 > > |> _assert_eq 0
00:11:15 verbose #12458 > 00:11:14   debug #696 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5dca393901970c8c4badf21850a09c5e9e7842021c9c617416232879239c92c5/main.spi
00:11:15 verbose #12459 > >
00:11:15 verbose #12460 > > ╭─[ 606.19ms - stdout ]────────────────────────────────────────────────────────╮
00:11:15 verbose #12461 > > │ assert_eq / actual: 0 / expected: 0                                          │
00:11:15 verbose #12462 > > │                                                                              │
00:11:15 verbose #12463 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:15 verbose #12464 > >
00:11:15 verbose #12465 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:15 verbose #12466 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:15 verbose #12467 > > │ ### new_guid_from_timestamp                                                  │
00:11:15 verbose #12468 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:15 verbose #12469 > >
00:11:15 verbose #12470 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:15 verbose #12471 > > inl new_guid_from_timestamp (timestamp : timestamp) =
00:11:15 verbose #12472 > >     inl guid = guid.new_raw_guid ()
00:11:15 verbose #12473 > >     timestamp_guid_from_timestamp guid timestamp
00:11:15 verbose #12474 > 00:11:14   debug #697 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2d827b81e889340b56b403650ad2560fcc3b8a4d9b10f355dcaa5eb1ce7cad8c/main.spi
00:11:15 verbose #12475 > >
00:11:15 verbose #12476 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:15 verbose #12477 > > //// test
00:11:15 verbose #12478 > >
00:11:15 verbose #12479 > > utc_now ()
00:11:15 verbose #12480 > > |> ticks
00:11:15 verbose #12481 > > |> new_guid_from_timestamp
00:11:15 verbose #12482 > > |> timestamp_from_guid
00:11:15 verbose #12483 > > |> fun (timestamp timestamp) => (timestamp - (utc_now () |> ticks |> fun
00:11:15 verbose #12484 > > (timestamp x) => x)) / 100000i64
00:11:15 verbose #12485 > > |> _assert_eq 0i64
00:11:16 verbose #12486 > 00:11:15   debug #698 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f97b7c0229bdee1c8394a99c28f5712a89844489a84081ce2323eb698c7b3d9c/main.spi
00:11:16 verbose #12487 > >
00:11:16 verbose #12488 > > ╭─[ 401.96ms - stdout ]────────────────────────────────────────────────────────╮
00:11:16 verbose #12489 > > │ assert_eq / actual: 0L / expected: 0L                                        │
00:11:16 verbose #12490 > > │                                                                              │
00:11:16 verbose #12491 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:16 verbose #12492 > >
00:11:16 verbose #12493 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:16 verbose #12494 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:16 verbose #12495 > > │ ## main                                                                      │
00:11:16 verbose #12496 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:16 verbose #12497 > >
00:11:16 verbose #12498 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:16 verbose #12499 > > inl main () =
00:11:16 verbose #12500 > >     types ()
00:11:16 verbose #12501 > >     $'let date_time_guid_from_date_time x = !date_time_guid_from_date_time x' :
00:11:16 verbose #12502 > > ()
00:11:16 verbose #12503 > >     $'let date_time_from_guid x = !date_time_from_guid x' : ()
00:11:16 verbose #12504 > >     $'let timestamp_guid_from_timestamp x = !timestamp_guid_from_timestamp x' :
00:11:16 verbose #12505 > > ()
00:11:16 verbose #12506 > >     $'let timestamp_from_guid x = !timestamp_from_guid x' : ()
00:11:16 verbose #12507 > >     $'let new_guid_from_date_time x = !new_guid_from_date_time x' : ()
00:11:16 verbose #12508 > >     $'let new_guid_from_timestamp x = !new_guid_from_timestamp x' : ()
00:11:16 verbose #12509 > >     $'let format x = !format x' : ()
00:11:16 verbose #12510 > >     $'let format_iso8601 x = !format_iso8601 x' : ()
00:11:16 verbose #12511 > 00:11:15   debug #699 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4fef6d3ed5c89e1da32793e8946d4195bb426b696db47f6fda0fe3b811298b20/main.spi
00:11:17 verbose #12512 > 00:00:47 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 46902 }
00:11:17 verbose #12513 > 00:00:47   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/date_time.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/date_time.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:11:19 verbose #12514 > 00:00:49 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/date_time.dib.ipynb to html
00:11:19 verbose #12515 > 00:00:49 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:11:19 verbose #12516 > 00:00:49 verbose #7 !   validate(nb)
00:11:20 verbose #12517 > 00:00:51 verbose #8 ! [NbConvertApp] Writing 411517 bytes to c:\home\git\polyglot\lib\spiral\date_time.dib.html
00:11:21 verbose #12518 > 00:00:51 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 649 }
00:11:21 verbose #12519 > 00:00:51   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 649 }
00:11:21 verbose #12520 > 00:00:51   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/date_time.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/date_time.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:11:22 verbose #12521 > 00:00:52 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:11:22 verbose #12522 > 00:00:52   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:11:22 verbose #12523 > 00:00:53   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 47610 }
00:11:22   debug #12524 runtime.execute_with_options_async / { exit_code = 0; output_length = 52176 }
00:11:22   debug #15 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path date_time.dib --retries 3
00:11:22   debug #12525 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path math.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:11:22 verbose #12526 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "math.dib", "--retries", "3"])) }
00:11:22 verbose #12527 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/math.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/math.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/math.dib" --output-path "c:/home/git/polyglot/lib/spiral/math.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:11:24 verbose #12528 > >
00:11:24 verbose #12529 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:24 verbose #12530 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:24 verbose #12531 > > │ # math                                                                       │
00:11:24 verbose #12532 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:28 verbose #12533 > >
00:11:28 verbose #12534 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:28 verbose #12535 > > //// test
00:11:28 verbose #12536 > >
00:11:28 verbose #12537 > > open testing
00:11:29 verbose #12538 > 00:11:28   debug #700 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7845de436c12d0ca65282fe0cd65832468ca943e72feba50e6b1bb441e251a/main.spi
00:11:30 verbose #12539 > >
00:11:30 verbose #12540 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:30 verbose #12541 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:30 verbose #12542 > > │ ## math                                                                      │
00:11:30 verbose #12543 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:30 verbose #12544 > >
00:11:30 verbose #12545 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:30 verbose #12546 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:30 verbose #12547 > > │ ### e                                                                        │
00:11:30 verbose #12548 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:30 verbose #12549 > >
00:11:30 verbose #12550 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:30 verbose #12551 > > inl e () =
00:11:30 verbose #12552 > >     exp 1f64
00:11:30 verbose #12553 > 00:11:29   debug #701 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ad8fe92be0dbc38e45aef60c1ef8263bc2c36b963b582c4daaa7a6231f197c37/main.spi
00:11:30 verbose #12554 > >
00:11:30 verbose #12555 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:30 verbose #12556 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:30 verbose #12557 > > │ ## square                                                                    │
00:11:30 verbose #12558 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:30 verbose #12559 > >
00:11:30 verbose #12560 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:30 verbose #12561 > > inl square x =
00:11:30 verbose #12562 > >     x ** 2
00:11:30 verbose #12563 > 00:11:29   debug #702 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4f777aa39b8f5387d4c32b6e3bccee1d0130085d98ddfcb94a8f66472f905006/main.spi
00:11:30 verbose #12564 > >
00:11:30 verbose #12565 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:30 verbose #12566 > > //// test
00:11:30 verbose #12567 > >
00:11:30 verbose #12568 > > 5f64
00:11:30 verbose #12569 > > |> sqrt
00:11:30 verbose #12570 > > |> square
00:11:30 verbose #12571 > > |> _assert_approx_eq None 5
00:11:30 verbose #12572 > 00:11:30   debug #703 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/27abda1843b1bbfcadf8a746514b5f9b4aed7baa93785d6b352c5b478793c0cb/main.spi
00:11:31 verbose #12573 > >
00:11:31 verbose #12574 > > ╭─[ 903.21ms - stdout ]────────────────────────────────────────────────────────╮
00:11:31 verbose #12575 > > │ assert_approx_eq / actual: 5.0 / expected: 5.0                               │
00:11:31 verbose #12576 > > │                                                                              │
00:11:31 verbose #12577 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:31 verbose #12578 > >
00:11:31 verbose #12579 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:31 verbose #12580 > > //// test
00:11:31 verbose #12581 > >
00:11:31 verbose #12582 > > e () |> square
00:11:31 verbose #12583 > > |> _assert_approx_eq None 7.3890560989306495
00:11:31 verbose #12584 > 00:11:31   debug #704 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/417634bcbae2b61fa4822bd5baddd804653f1e470adfbfe6e60ce30aaee154e7/main.spi
00:11:32 verbose #12585 > >
00:11:32 verbose #12586 > > ╭─[ 344.43ms - stdout ]────────────────────────────────────────────────────────╮
00:11:32 verbose #12587 > > │ assert_approx_eq / actual: 7.389056099 / expected: 7.389056099               │
00:11:32 verbose #12588 > > │                                                                              │
00:11:32 verbose #12589 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:32 verbose #12590 > >
00:11:32 verbose #12591 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:32 verbose #12592 > > //// test
00:11:32 verbose #12593 > >
00:11:32 verbose #12594 > > 2 * 2 / 0.4f64 |> sqrt
00:11:32 verbose #12595 > > |> _assert_approx_eq None 3.1622776601683795
00:11:32 verbose #12596 > 00:11:31   debug #705 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9803c2eeb0df6f028e71deedc9cf6fcfc95fd406c15fc3e28ef038d887e254c1/main.spi
00:11:32 verbose #12597 > >
00:11:32 verbose #12598 > > ╭─[ 348.96ms - stdout ]────────────────────────────────────────────────────────╮
00:11:32 verbose #12599 > > │ assert_approx_eq / actual: 3.16227766 / expected: 3.16227766                 │
00:11:32 verbose #12600 > > │                                                                              │
00:11:32 verbose #12601 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:32 verbose #12602 > >
00:11:32 verbose #12603 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:32 verbose #12604 > > //// test
00:11:32 verbose #12605 > >
00:11:32 verbose #12606 > > 2f64 / 3
00:11:32 verbose #12607 > > |> _assert_approx_eq None 0.6666666666666666
00:11:32 verbose #12608 > 00:11:31   debug #706 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/15fd9877050a993af976323a53d388a892895592a32716a1dac4a8a54ff66635/main.spi
00:11:32 verbose #12609 > >
00:11:32 verbose #12610 > > ╭─[ 367.29ms - stdout ]────────────────────────────────────────────────────────╮
00:11:32 verbose #12611 > > │ assert_approx_eq / actual: 0.6666666667 / expected: 0.6666666667             │
00:11:32 verbose #12612 > > │                                                                              │
00:11:32 verbose #12613 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:32 verbose #12614 > >
00:11:32 verbose #12615 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:32 verbose #12616 > > //// test
00:11:32 verbose #12617 > >
00:11:32 verbose #12618 > > 2f64 |> log
00:11:32 verbose #12619 > > |> _assert_approx_eq None 0.6931471805599453
00:11:32 verbose #12620 > 00:11:32   debug #707 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/91a5ac1fb9da5da905602bf6ccf6603aa4ef71599235328ca2f25392355606ee/main.spi
00:11:33 verbose #12621 > >
00:11:33 verbose #12622 > > ╭─[ 357.96ms - stdout ]────────────────────────────────────────────────────────╮
00:11:33 verbose #12623 > > │ assert_approx_eq / actual: 0.6931471806 / expected: 0.6931471806             │
00:11:33 verbose #12624 > > │                                                                              │
00:11:33 verbose #12625 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:33 verbose #12626 > >
00:11:33 verbose #12627 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:33 verbose #12628 > > //// test
00:11:33 verbose #12629 > >
00:11:33 verbose #12630 > > pi
00:11:33 verbose #12631 > > |> _assert_approx_eq None 3.141592653589793f64
00:11:33 verbose #12632 > 00:11:32   debug #708 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6cbd694cb8cd1fd510130e43dceb50f76dd4ba103395c011b7163372aa93e671/main.spi
00:11:33 verbose #12633 > >
00:11:33 verbose #12634 > > ╭─[ 364.21ms - stdout ]────────────────────────────────────────────────────────╮
00:11:33 verbose #12635 > > │ assert_approx_eq / actual: 3.141592654 / expected: 3.141592654               │
00:11:33 verbose #12636 > > │                                                                              │
00:11:33 verbose #12637 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:33 verbose #12638 > >
00:11:33 verbose #12639 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:33 verbose #12640 > > //// test
00:11:33 verbose #12641 > >
00:11:33 verbose #12642 > > pi |> cos
00:11:33 verbose #12643 > > |> _assert_eq -1f64
00:11:33 verbose #12644 > 00:11:32   debug #709 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4e86be50b2c4461fca5f17fc2283ebc955689147f173956fc397f2872bc810ad/main.spi
00:11:33 verbose #12645 > >
00:11:33 verbose #12646 > > ╭─[ 373.91ms - stdout ]────────────────────────────────────────────────────────╮
00:11:33 verbose #12647 > > │ assert_eq / actual: -1.0 / expected: -1.0                                    │
00:11:33 verbose #12648 > > │                                                                              │
00:11:33 verbose #12649 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:33 verbose #12650 > >
00:11:33 verbose #12651 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:33 verbose #12652 > > //// test
00:11:33 verbose #12653 > >
00:11:33 verbose #12654 > > pi
00:11:33 verbose #12655 > > |> cos
00:11:33 verbose #12656 > > |> fun n => n / 2f64
00:11:33 verbose #12657 > > |> _assert_approx_eq None -0.5
00:11:34 verbose #12658 > 00:11:33   debug #710 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d11db61b5561f4a704bae6d53d12be936cd4c75f771130279db53516c47e3dae/main.spi
00:11:34 verbose #12659 > >
00:11:34 verbose #12660 > > ╭─[ 391.07ms - stdout ]────────────────────────────────────────────────────────╮
00:11:34 verbose #12661 > > │ assert_approx_eq / actual: -0.5 / expected: -0.5                             │
00:11:34 verbose #12662 > > │                                                                              │
00:11:34 verbose #12663 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:34 verbose #12664 > >
00:11:34 verbose #12665 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:34 verbose #12666 > > //// test
00:11:34 verbose #12667 > >
00:11:34 verbose #12668 > > pi / 2 |> cos
00:11:34 verbose #12669 > > |> _assert_approx_eq None 0.00000000000000006123233995736766f64
00:11:34 verbose #12670 > 00:11:33   debug #711 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/01f000f121901a943bdbae5303e9ffeab7ff49e3de12eda710518263da40599e/main.spi
00:11:34 verbose #12671 > >
00:11:34 verbose #12672 > > ╭─[ 353.18ms - stdout ]────────────────────────────────────────────────────────╮
00:11:34 verbose #12673 > > │ assert_approx_eq / actual: 6.123233996e-17 / expected: 6.123233996e-17       │
00:11:34 verbose #12674 > > │                                                                              │
00:11:34 verbose #12675 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:34 verbose #12676 > >
00:11:34 verbose #12677 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:34 verbose #12678 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:34 verbose #12679 > > │ ## fsharp                                                                    │
00:11:34 verbose #12680 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:34 verbose #12681 > >
00:11:34 verbose #12682 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:34 verbose #12683 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:34 verbose #12684 > > │ ### atan2                                                                    │
00:11:34 verbose #12685 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:34 verbose #12686 > >
00:11:34 verbose #12687 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:34 verbose #12688 > > inl atan2 (y : f64) (x : f64) : f64 =
00:11:34 verbose #12689 > >     $'System.Math.Atan2 (!y, !x)'
00:11:34 verbose #12690 > 00:11:34   debug #712 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1f795928ff928f6502b00f51adcfc5670325e0f8442775a415b42f837b298003/main.spi
00:11:34 verbose #12691 > >
00:11:34 verbose #12692 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:34 verbose #12693 > > //// test
00:11:34 verbose #12694 > >
00:11:34 verbose #12695 > > 0 |> atan2 1
00:11:34 verbose #12696 > > |> _assert_eq 1.5707963267948966
00:11:35 verbose #12697 > 00:11:34   debug #713 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ad4a765474445f31270422024044c4a17172f04d73cd93202313b0b3214a65a3/main.spi
00:11:35 verbose #12698 > >
00:11:35 verbose #12699 > > ╭─[ 489.63ms - stdout ]────────────────────────────────────────────────────────╮
00:11:35 verbose #12700 > > │ assert_eq / actual: 1.570796327 / expected: 1.570796327                      │
00:11:35 verbose #12701 > > │                                                                              │
00:11:35 verbose #12702 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:35 verbose #12703 > >
00:11:35 verbose #12704 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:35 verbose #12705 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:35 verbose #12706 > > │ ## floor                                                                     │
00:11:35 verbose #12707 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:35 verbose #12708 > >
00:11:35 verbose #12709 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:35 verbose #12710 > > inl floor forall t {float}. (n : t) : t =
00:11:35 verbose #12711 > >     n |> $'floor'
00:11:35 verbose #12712 > 00:11:34   debug #714 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2776e4a18130fb34519738dae7dd13a1f55428748c384c33e7bf585241f0773d/main.spi
00:11:35 verbose #12713 > >
00:11:35 verbose #12714 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:35 verbose #12715 > > //// test
00:11:35 verbose #12716 > >
00:11:35 verbose #12717 > > 0.6 |> floor
00:11:35 verbose #12718 > > |> _assert_eq 0f64
00:11:36 verbose #12719 > 00:11:35   debug #715 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3279513f4fa0ca5bd482d1e9650f8cc8cb091f0ac77320be5f3172f57cdc315a/main.spi
00:11:36 verbose #12720 > >
00:11:36 verbose #12721 > > ╭─[ 477.55ms - stdout ]────────────────────────────────────────────────────────╮
00:11:36 verbose #12722 > > │ assert_eq / actual: 0.0 / expected: 0.0                                      │
00:11:36 verbose #12723 > > │                                                                              │
00:11:36 verbose #12724 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:36 verbose #12725 > >
00:11:36 verbose #12726 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:36 verbose #12727 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:36 verbose #12728 > > │ ## ceil                                                                      │
00:11:36 verbose #12729 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:36 verbose #12730 > >
00:11:36 verbose #12731 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:36 verbose #12732 > > inl ceil forall t {float}. (n : t) : t =
00:11:36 verbose #12733 > >     n |> $'ceil'
00:11:36 verbose #12734 > 00:11:35   debug #716 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f2deebd6f0612d0de94281b43c9d93bd7c0bf6592fd118f24594071024793104/main.spi
00:11:36 verbose #12735 > >
00:11:36 verbose #12736 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:36 verbose #12737 > > //// test
00:11:36 verbose #12738 > >
00:11:36 verbose #12739 > > 0.6 |> ceil
00:11:36 verbose #12740 > > |> _assert_eq 1f64
00:11:36 verbose #12741 > 00:11:36   debug #717 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/113dd8ce105485a83550e0df0f84a16a37d7c444280a0adf5cdc5df828f21ebd/main.spi
00:11:37 verbose #12742 > >
00:11:37 verbose #12743 > > ╭─[ 435.13ms - stdout ]────────────────────────────────────────────────────────╮
00:11:37 verbose #12744 > > │ assert_eq / actual: 1.0 / expected: 1.0                                      │
00:11:37 verbose #12745 > > │                                                                              │
00:11:37 verbose #12746 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:37 verbose #12747 > >
00:11:37 verbose #12748 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:37 verbose #12749 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:37 verbose #12750 > > │ ## round                                                                     │
00:11:37 verbose #12751 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:37 verbose #12752 > >
00:11:37 verbose #12753 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:37 verbose #12754 > > inl round forall t {float}. (n : t) : t =
00:11:37 verbose #12755 > >     n |> $'round'
00:11:37 verbose #12756 > 00:11:36   debug #718 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/551698a8022b42ff500312d981ac7e4a2f55ac6ae42fac2aca58eef0acb3db00/main.spi
00:11:37 verbose #12757 > >
00:11:37 verbose #12758 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:37 verbose #12759 > > //// test
00:11:37 verbose #12760 > >
00:11:37 verbose #12761 > > 0.5 |> round
00:11:37 verbose #12762 > > |> _assert_eq 0f64
00:11:37 verbose #12763 > >
00:11:37 verbose #12764 > > 1.5 |> round
00:11:37 verbose #12765 > > |> _assert_eq 2f64
00:11:37 verbose #12766 > >
00:11:37 verbose #12767 > > 2.5 |> round
00:11:37 verbose #12768 > > |> _assert_eq 2f64
00:11:37 verbose #12769 > >
00:11:37 verbose #12770 > > 3.5 |> round
00:11:37 verbose #12771 > > |> _assert_eq 4f64
00:11:37 verbose #12772 > 00:11:36   debug #719 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/edd7c077b840ea0e214886b7dc326331fc41d2875ee2656c67efa57d721e38bd/main.spi
00:11:37 verbose #12773 > >
00:11:37 verbose #12774 > > ╭─[ 408.24ms - stdout ]────────────────────────────────────────────────────────╮
00:11:37 verbose #12775 > > │ assert_eq / actual: 0.0 / expected: 0.0                                      │
00:11:37 verbose #12776 > > │ assert_eq / actual: 2.0 / expected: 2.0                                      │
00:11:37 verbose #12777 > > │ assert_eq / actual: 2.0 / expected: 2.0                                      │
00:11:37 verbose #12778 > > │ assert_eq / actual: 4.0 / expected: 4.0                                      │
00:11:37 verbose #12779 > > │                                                                              │
00:11:37 verbose #12780 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:37 verbose #12781 > >
00:11:37 verbose #12782 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:37 verbose #12783 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:37 verbose #12784 > > │ ## log_base                                                                  │
00:11:37 verbose #12785 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:37 verbose #12786 > >
00:11:37 verbose #12787 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:37 verbose #12788 > > inl log_base (new_base : f64) (a : f64) : f64 =
00:11:37 verbose #12789 > >     $'System.Math.Log (!a, !new_base)'
00:11:38 verbose #12790 > 00:11:37   debug #720 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ff6b4ebd65a25b655dafa88c4e6298d550e53475dc6f3245933eabb5a2e10eac/main.spi
00:11:38 verbose #12791 > >
00:11:38 verbose #12792 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:38 verbose #12793 > > //// test
00:11:38 verbose #12794 > >
00:11:38 verbose #12795 > > 100 |> log_base 10
00:11:38 verbose #12796 > > |> _assert_eq 2
00:11:38 verbose #12797 > 00:11:37   debug #721 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/21fe238390c53f8aeff5f03c0fc04aa447181b01c3b5cc44059e7adb74cf221a/main.spi
00:11:38 verbose #12798 > >
00:11:38 verbose #12799 > > ╭─[ 363.97ms - stdout ]────────────────────────────────────────────────────────╮
00:11:38 verbose #12800 > > │ assert_eq / actual: 2.0 / expected: 2.0                                      │
00:11:38 verbose #12801 > > │                                                                              │
00:11:38 verbose #12802 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:38 verbose #12803 > >
00:11:38 verbose #12804 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:38 verbose #12805 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:38 verbose #12806 > > │ ## round                                                                     │
00:11:38 verbose #12807 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:38 verbose #12808 > >
00:11:38 verbose #12809 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:38 verbose #12810 > > inl round forall t {float}. (x : t) : t =
00:11:38 verbose #12811 > >     x |> $'round'
00:11:38 verbose #12812 > 00:11:38   debug #722 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2d5e986840ddc840e7f478982678bb4d73d260343f1aa22faac9484c656d5104/main.spi
00:11:38 verbose #12813 > >
00:11:38 verbose #12814 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:38 verbose #12815 > > //// test
00:11:38 verbose #12816 > >
00:11:38 verbose #12817 > > 0.5 |> round
00:11:38 verbose #12818 > > |> _assert_eq 0f64
00:11:39 verbose #12819 > 00:11:38   debug #723 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/60e03150460852473585587083e836e23a357fb9462f4bec701279fd323ba429/main.spi
00:11:39 verbose #12820 > >
00:11:39 verbose #12821 > > ╭─[ 387.30ms - stdout ]────────────────────────────────────────────────────────╮
00:11:39 verbose #12822 > > │ assert_eq / actual: 0.0 / expected: 0.0                                      │
00:11:39 verbose #12823 > > │                                                                              │
00:11:39 verbose #12824 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:39 verbose #12825 > >
00:11:39 verbose #12826 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:39 verbose #12827 > > //// test
00:11:39 verbose #12828 > >
00:11:39 verbose #12829 > > 0.6 |> round
00:11:39 verbose #12830 > > |> _assert_eq 1f64
00:11:39 verbose #12831 > 00:11:38   debug #724 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/43afd09b490ef5fd462dd34af86683fb8d7f29219ecc63a18b33a0c70615ec42/main.spi
00:11:39 verbose #12832 > >
00:11:39 verbose #12833 > > ╭─[ 413.05ms - stdout ]────────────────────────────────────────────────────────╮
00:11:39 verbose #12834 > > │ assert_eq / actual: 1.0 / expected: 1.0                                      │
00:11:39 verbose #12835 > > │                                                                              │
00:11:39 verbose #12836 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:39 verbose #12837 > 00:00:17 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 12563 }
00:11:39 verbose #12838 > 00:00:17   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/math.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/math.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:11:41 verbose #12839 > 00:00:19 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/math.dib.ipynb to html
00:11:41 verbose #12840 > 00:00:19 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:11:41 verbose #12841 > 00:00:19 verbose #7 !   validate(nb)
00:11:43 verbose #12842 > 00:00:20 verbose #8 ! [NbConvertApp] Writing 304804 bytes to c:\home\git\polyglot\lib\spiral\math.dib.html
00:11:43 verbose #12843 > 00:00:20 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 639 }
00:11:43 verbose #12844 > 00:00:20   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 639 }
00:11:43 verbose #12845 > 00:00:20   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/math.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/math.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:11:44 verbose #12846 > 00:00:21 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:11:44 verbose #12847 > 00:00:21   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:11:44 verbose #12848 > 00:00:22   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 13261 }
00:11:44   debug #12849 runtime.execute_with_options_async / { exit_code = 0; output_length = 16428 }
00:11:44   debug #16 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path math.dib --retries 3
00:11:44   debug #12850 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path mapm.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:11:44 verbose #12851 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "mapm.dib", "--retries", "3"])) }
00:11:44 verbose #12852 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/mapm.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/mapm.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/mapm.dib" --output-path "c:/home/git/polyglot/lib/spiral/mapm.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:11:46 verbose #12853 > >
00:11:46 verbose #12854 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:46 verbose #12855 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:46 verbose #12856 > > │ # mapm                                                                       │
00:11:46 verbose #12857 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:50 verbose #12858 > >
00:11:50 verbose #12859 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:50 verbose #12860 > > open rust_operators
00:11:51 verbose #12861 > 00:11:50   debug #725 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0d9bd8e5bb71a8e1d983506a46e54fb8c8e6cf2d0bd973135d4cdd580c5f6d39/main.spi
00:11:51 verbose #12862 > >
00:11:51 verbose #12863 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:51 verbose #12864 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:51 verbose #12865 > > │ ## types                                                                     │
00:11:51 verbose #12866 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:51 verbose #12867 > >
00:11:51 verbose #12868 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:51 verbose #12869 > > inl types () =
00:11:51 verbose #12870 > >     backend_switch {
00:11:51 verbose #12871 > >         Fsharp = fun () =>
00:11:51 verbose #12872 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:11:51 verbose #12873 > > Fable.Core.Emit(\"std::collections::HashMap<$0, $1>\")>]]\n#endif\ntype
00:11:51 verbose #12874 > > std_collections_HashMap<'K, 'V> = class end"
00:11:51 verbose #12875 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:11:51 verbose #12876 > > Fable.Core.Emit(\"std::collections::BTreeMap<$0, $1>\")>]]\n#endif\ntype
00:11:51 verbose #12877 > > std_collections_BTreeMap<'K, 'V> = class end"
00:11:51 verbose #12878 > >         Python = fun () => ()
00:11:51 verbose #12879 > >     }
00:11:52 verbose #12880 > 00:11:51   debug #726 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c94c7a07ac6046cb8b4a4f4e2465424f8ab4f6346e0fb8137ce324c0b70932f5/main.spi
00:11:52 verbose #12881 > >
00:11:52 verbose #12882 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:52 verbose #12883 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:52 verbose #12884 > > │ ## rust                                                                      │
00:11:52 verbose #12885 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:52 verbose #12886 > >
00:11:52 verbose #12887 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:52 verbose #12888 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:52 verbose #12889 > > │ ### hash_map                                                                 │
00:11:52 verbose #12890 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:52 verbose #12891 > >
00:11:52 verbose #12892 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:52 verbose #12893 > > nominal hash_map k v = $'std_collections_HashMap<`k, `v>'
00:11:52 verbose #12894 > 00:11:51   debug #727 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/98be6d03ced9b2f32482452011f6554d79c2fae646798b425c1f6cbfab78ddcc/main.spi
00:11:52 verbose #12895 > >
00:11:52 verbose #12896 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:52 verbose #12897 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:52 verbose #12898 > > │ ### b_tree_map                                                               │
00:11:52 verbose #12899 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:52 verbose #12900 > >
00:11:52 verbose #12901 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:52 verbose #12902 > > nominal b_tree_map k v = $'std_collections_BTreeMap<`k, `v>'
00:11:52 verbose #12903 > 00:11:52   debug #728 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fbbff85e47ae532dcec256be946c7b768808b26f5dd19b633f2e79be8b809270/main.spi
00:11:52 verbose #12904 > >
00:11:52 verbose #12905 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:52 verbose #12906 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:52 verbose #12907 > > │ ### new_hash_map                                                             │
00:11:52 verbose #12908 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:52 verbose #12909 > >
00:11:52 verbose #12910 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:52 verbose #12911 > > inl new_hash_map () : hash_map _ _ =
00:11:52 verbose #12912 > >     !\($'"std::collections::HashMap::new()"')
00:11:53 verbose #12913 > 00:11:52   debug #729 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/45af17830a52ccbab76bfb1feb120b86d0b7441e545dd69ac30a935926cb35b7/main.spi
00:11:53 verbose #12914 > >
00:11:53 verbose #12915 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:53 verbose #12916 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:53 verbose #12917 > > │ ### new_b_tree_map                                                           │
00:11:53 verbose #12918 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:53 verbose #12919 > >
00:11:53 verbose #12920 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:53 verbose #12921 > > inl new_b_tree_map () : b_tree_map _ _ =
00:11:53 verbose #12922 > >     !\($'"std::collections::BTreeMap::new()"')
00:11:53 verbose #12923 > 00:11:52   debug #730 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/209dd1a30931423a0b9e7960fc9ebb30a800e300d0a1b310c57c3d5815aa0027/main.spi
00:11:53 verbose #12924 > >
00:11:53 verbose #12925 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:53 verbose #12926 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:53 verbose #12927 > > │ ### get                                                                      │
00:11:53 verbose #12928 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:53 verbose #12929 > >
00:11:53 verbose #12930 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:53 verbose #12931 > > inl get forall k v. (key : k) (map : hash_map k v) : optionm'.option' v =
00:11:53 verbose #12932 > >     inl key = join key
00:11:53 verbose #12933 > >     !\\(map, $'"std::collections::HashMap::get(&$0, &!key).map(|x|
00:11:53 verbose #12934 > > x).cloned()"')
00:11:53 verbose #12935 > 00:11:53   debug #731 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/58e2d92ca0e7df13186500e853c189607c73f9e6232c3aaaf89ba6b6dbab9951/main.spi
00:11:53 verbose #12936 > >
00:11:53 verbose #12937 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:53 verbose #12938 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:53 verbose #12939 > > │ ### insert                                                                   │
00:11:53 verbose #12940 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:53 verbose #12941 > >
00:11:53 verbose #12942 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:53 verbose #12943 > > inl insert forall k v. (key : k) (value : v) (map : hash_map k v) :
00:11:53 verbose #12944 > > optionm'.option' v =
00:11:53 verbose #12945 > >     inl key = join key
00:11:53 verbose #12946 > >     !\($'"let mut !map = !map"')
00:11:53 verbose #12947 > >     !\($'"std::collections::HashMap::insert(&mut !map, !key, !value)"')
00:11:54 verbose #12948 > 00:11:53   debug #732 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c0671b6788660e4d41b3933aa1daec09a62daf6d14ae46de6230160adcd56b1c/main.spi
00:11:54 verbose #12949 > >
00:11:54 verbose #12950 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:54 verbose #12951 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:54 verbose #12952 > > │ ### map'                                                                     │
00:11:54 verbose #12953 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:54 verbose #12954 > >
00:11:54 verbose #12955 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:54 verbose #12956 > > inl map' forall k v w. (fn : v -> w) (map : hash_map k v) : hash_map k w =
00:11:54 verbose #12957 > >     !\\((map, fn), $'"$0.into_iter().map(|(k, v)| (k, $1(v))).collect()"')
00:11:54 verbose #12958 > 00:11:53   debug #733 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/777a97542f4814b908d629765fcf10e137c806b9a49271a2daa6b6562264c44d/main.spi
00:11:54 verbose #12959 > >
00:11:54 verbose #12960 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:54 verbose #12961 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:54 verbose #12962 > > │ ### hash_map_count                                                           │
00:11:54 verbose #12963 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:54 verbose #12964 > >
00:11:54 verbose #12965 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:54 verbose #12966 > > inl hash_map_count forall k v. (map : hash_map k v) : i32 =
00:11:54 verbose #12967 > >     !\\(map, $'"$0.count()"')
00:11:54 verbose #12968 > 00:11:54   debug #734 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/065ec2ace7e697be4b27aa512fa94fce4bd866e106ea7d2e99b785f46a8c9389/main.spi
00:11:54 verbose #12969 > >
00:11:54 verbose #12970 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:54 verbose #12971 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:54 verbose #12972 > > │ ### from_vec                                                                 │
00:11:54 verbose #12973 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:54 verbose #12974 > >
00:11:54 verbose #12975 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:54 verbose #12976 > > inl from_vec forall k v. (vec : am'.vec (k * v)) : hash_map k v =
00:11:54 verbose #12977 > >     !\($'"std::collections::HashMap::from_iter(!vec)"')
00:11:55 verbose #12978 > 00:11:54   debug #735 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2f9cd096d14f5828139b6ac5044e189173c8cc3fb6c2124a6f08a562d857d7d7/main.spi
00:11:55 verbose #12979 > >
00:11:55 verbose #12980 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:55 verbose #12981 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:55 verbose #12982 > > │ ### from_vec_pairs                                                           │
00:11:55 verbose #12983 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:55 verbose #12984 > >
00:11:55 verbose #12985 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:55 verbose #12986 > > inl from_vec_pairs forall k v. (vec : am'.vec (pair k v)) : hash_map k v =
00:11:55 verbose #12987 > >     !\($'"std::collections::HashMap::from_iter(!vec.iter().map(|x|
00:11:55 verbose #12988 > > x.as_ref()).map(|&(ref k, ref v)| (k.clone(), v.clone())))"')
00:11:55 verbose #12989 > 00:11:54   debug #736 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cad9fa93ac8ec2460ba0baf59fe37c0412108824e7029a5afaa7fd7044cc1997/main.spi
00:11:55 verbose #12990 > >
00:11:55 verbose #12991 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:55 verbose #12992 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:55 verbose #12993 > > │ ### b_tree_map_from_vec_pairs                                                │
00:11:55 verbose #12994 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:55 verbose #12995 > >
00:11:55 verbose #12996 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:55 verbose #12997 > > inl b_tree_map_from_vec_pairs forall k v. (vec : am'.vec (pair k v)) :
00:11:55 verbose #12998 > > b_tree_map k v =
00:11:55 verbose #12999 > >     !\($'"std::collections::BTreeMap::from_iter(!vec.iter().map(|x|
00:11:55 verbose #13000 > > x.as_ref()).map(|&(ref k, ref v)| (k.clone(), v.clone())))"')
00:11:55 verbose #13001 > 00:11:55   debug #737 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3c5919180668f02004b5e4b93a0c820d21d40f87f173343297a6c3433c4727b1/main.spi
00:11:55 verbose #13002 > >
00:11:55 verbose #13003 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:55 verbose #13004 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:55 verbose #13005 > > │ ### from_array                                                               │
00:11:55 verbose #13006 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:55 verbose #13007 > >
00:11:55 verbose #13008 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:55 verbose #13009 > > inl from_array forall k v. (array : array_base (k * v)) : hash_map k v =
00:11:55 verbose #13010 > >     array |> am'.to_vec |> from_vec
00:11:56 verbose #13011 > 00:11:55   debug #738 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bbce35b478e47e0249f33144241adefad13eb400e5706c06440a1ecd3f32e715/main.spi
00:11:56 verbose #13012 > >
00:11:56 verbose #13013 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:56 verbose #13014 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:56 verbose #13015 > > │ ### from_list                                                                │
00:11:56 verbose #13016 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:56 verbose #13017 > >
00:11:56 verbose #13018 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:56 verbose #13019 > > inl from_list forall k v. (list : list (k * v)) : hash_map k v =
00:11:56 verbose #13020 > >     inl (a list) : _ i32 _ = list |> listm.toArray
00:11:56 verbose #13021 > >     list |> am'.to_vec |> from_vec
00:11:56 verbose #13022 > 00:11:55   debug #739 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ad3c71ba6ccd9f4a439e99fe0a308e9a82cd1328b1802e1cbc89696c651d304d/main.spi
00:11:56 verbose #13023 > >
00:11:56 verbose #13024 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:56 verbose #13025 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:56 verbose #13026 > > │ ### to_vec                                                                   │
00:11:56 verbose #13027 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:56 verbose #13028 > >
00:11:56 verbose #13029 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:56 verbose #13030 > > inl to_vec forall k v. (map : hash_map k v) : am'.vec (k * v) =
00:11:56 verbose #13031 > >     !\\(map, $'"$0.into_iter().map(|(k, v)| (k, v)).collect::<Vec<_>>()"')
00:11:56 verbose #13032 > 00:11:56   debug #740 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5b444dc68ac31ec472cf97530f168c34f745760248e76b3744bba9805efb30c3/main.spi
00:11:57 verbose #13033 > >
00:11:57 verbose #13034 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:57 verbose #13035 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:57 verbose #13036 > > │ ## fsharp                                                                    │
00:11:57 verbose #13037 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:57 verbose #13038 > >
00:11:57 verbose #13039 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:57 verbose #13040 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:57 verbose #13041 > > │ ### map                                                                      │
00:11:57 verbose #13042 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:57 verbose #13043 > >
00:11:57 verbose #13044 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:57 verbose #13045 > > nominal map k v = $'Map<`k, `v>'
00:11:57 verbose #13046 > 00:11:56   debug #741 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4d6c78ec59e1a07b5625f3e7698b5d456e18acfde2139d66958b9f13ee5c15d3/main.spi
00:11:57 verbose #13047 > >
00:11:57 verbose #13048 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:57 verbose #13049 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:57 verbose #13050 > > │ ### item                                                                     │
00:11:57 verbose #13051 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:57 verbose #13052 > >
00:11:57 verbose #13053 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:57 verbose #13054 > > inl item forall k v. (k : k) (map : map k v) : v =
00:11:57 verbose #13055 > >     $'!map.[[!k]]'
00:11:57 verbose #13056 > 00:11:56   debug #742 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c643cd1ee14ae8172329a1dff0377f49e01f596b7bd0f7f37b7af9421caf1726/main.spi
00:11:57 verbose #13057 > >
00:11:57 verbose #13058 > > ── markdown ────────────────────────────────────────────────────────────────────
00:11:57 verbose #13059 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:11:57 verbose #13060 > > │ ### of_array                                                                 │
00:11:57 verbose #13061 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:11:57 verbose #13062 > >
00:11:57 verbose #13063 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:11:57 verbose #13064 > > inl of_array forall k v. (array : a _ (k * v)) : map k v =
00:11:57 verbose #13065 > >     $'!array |> Array.map (fun (struct (a, b)) -> a, b) |> Map.ofArray'
00:11:57 verbose #13066 > 00:11:57   debug #743 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3a02388bad9cfa4daf127b9d63090f679086909dbb471a12758514cc842ba350/main.spi
00:11:58 verbose #13067 > 00:00:13 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 10971 }
00:11:58 verbose #13068 > 00:00:13   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/mapm.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/mapm.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:12:00 verbose #13069 > 00:00:15 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/mapm.dib.ipynb to html
00:12:00 verbose #13070 > 00:00:15 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:12:00 verbose #13071 > 00:00:15 verbose #7 !   validate(nb)
00:12:01 verbose #13072 > 00:00:16 verbose #8 ! [NbConvertApp] Writing 302258 bytes to c:\home\git\polyglot\lib\spiral\mapm.dib.html
00:12:01 verbose #13073 > 00:00:17 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 639 }
00:12:01 verbose #13074 > 00:00:17   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 639 }
00:12:01 verbose #13075 > 00:00:17   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/mapm.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/mapm.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:12:02 verbose #13076 > 00:00:18 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:12:02 verbose #13077 > 00:00:18   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:12:03 verbose #13078 > 00:00:18   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 11669 }
00:12:03   debug #13079 runtime.execute_with_options_async / { exit_code = 0; output_length = 14658 }
00:12:03   debug #17 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path mapm.dib --retries 3
00:12:03   debug #13080 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path optionm'.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:12:03 verbose #13081 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "optionm'.dib", "--retries", "3"])) }
00:12:03 verbose #13082 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/optionm'.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/optionm'.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/optionm'.dib" --output-path "c:/home/git/polyglot/lib/spiral/optionm'.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:12:05 verbose #13083 > >
00:12:05 verbose #13084 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:05 verbose #13085 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:05 verbose #13086 > > │ # optionm'                                                                   │
00:12:05 verbose #13087 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:09 verbose #13088 > >
00:12:09 verbose #13089 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:09 verbose #13090 > > open rust_operators
00:12:10 verbose #13091 > 00:12:09   debug #744 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0d9bd8e5bb71a8e1d983506a46e54fb8c8e6cf2d0bd973135d4cdd580c5f6d39/main.spi
00:12:10 verbose #13092 > >
00:12:10 verbose #13093 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:10 verbose #13094 > > //// test
00:12:10 verbose #13095 > >
00:12:10 verbose #13096 > > open testing
00:12:10 verbose #13097 > 00:12:10   debug #745 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d06211d48c36e09624381aad71e69f817df1a545af31c21067514d4d391bdd05/main.spi
00:12:10 verbose #13098 > >
00:12:10 verbose #13099 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:10 verbose #13100 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:10 verbose #13101 > > │ ## optionm'                                                                  │
00:12:10 verbose #13102 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:10 verbose #13103 > >
00:12:10 verbose #13104 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:10 verbose #13105 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:10 verbose #13106 > > │ ### default_value                                                            │
00:12:10 verbose #13107 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:10 verbose #13108 > >
00:12:10 verbose #13109 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:10 verbose #13110 > > inl default_value d =
00:12:10 verbose #13111 > >     optionm.defaultWith d
00:12:11 verbose #13112 > 00:12:10   debug #746 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3c164f6fa5ec7db865c327e7fce7e5ee6c616227a686c2b9637536352087abeb/main.spi
00:12:11 verbose #13113 > >
00:12:11 verbose #13114 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:11 verbose #13115 > > //// test
00:12:11 verbose #13116 > >
00:12:11 verbose #13117 > > None
00:12:11 verbose #13118 > > |> default_value 3i32
00:12:11 verbose #13119 > > |> _assert_eq 3i32
00:12:11 verbose #13120 > 00:12:10   debug #747 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/31bf7167085cd2610fe9290bf868d61b95157219f104f6554e3007b08b28f1df/main.spi
00:12:12 verbose #13121 > >
00:12:12 verbose #13122 > > ╭─[ 877.59ms - stdout ]────────────────────────────────────────────────────────╮
00:12:12 verbose #13123 > > │ assert_eq / actual: 3 / expected: 3                                          │
00:12:12 verbose #13124 > > │                                                                              │
00:12:12 verbose #13125 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:12 verbose #13126 > >
00:12:12 verbose #13127 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:12 verbose #13128 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:12 verbose #13129 > > │ ### (/??)                                                                    │
00:12:12 verbose #13130 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:12 verbose #13131 > >
00:12:12 verbose #13132 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:12 verbose #13133 > > inl (/??) a b =
00:12:12 verbose #13134 > >     a |> default_value b
00:12:12 verbose #13135 > 00:12:11   debug #748 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b7623cefcf9e9ad1b5940f1b6e0ee4681aaeb732eb6d615aaeaf50f1bb721acc/main.spi
00:12:12 verbose #13136 > >
00:12:12 verbose #13137 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:12 verbose #13138 > > //// test
00:12:12 verbose #13139 > >
00:12:12 verbose #13140 > > None /?? 3i32
00:12:12 verbose #13141 > > |> _assert_eq 3i32
00:12:12 verbose #13142 > 00:12:12   debug #749 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1ea87edf78df24ac65bd906b1f3bee3061b4dba74267ee343fdbddaa5a520234/main.spi
00:12:12 verbose #13143 > >
00:12:12 verbose #13144 > > ╭─[ 337.90ms - stdout ]────────────────────────────────────────────────────────╮
00:12:12 verbose #13145 > > │ assert_eq / actual: 3 / expected: 3                                          │
00:12:12 verbose #13146 > > │                                                                              │
00:12:12 verbose #13147 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:12 verbose #13148 > >
00:12:12 verbose #13149 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:12 verbose #13150 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:12 verbose #13151 > > │ ### default_with                                                             │
00:12:12 verbose #13152 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:12 verbose #13153 > >
00:12:12 verbose #13154 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:12 verbose #13155 > > inl default_with fn = function
00:12:12 verbose #13156 > >     | Some x => x
00:12:12 verbose #13157 > >     | None => fn ()
00:12:13 verbose #13158 > 00:12:12   debug #750 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/36f32166bb2660394714991a5f7e189cfce1a4cf9a2a9d58dd0f9e3c8e778246/main.spi
00:12:13 verbose #13159 > >
00:12:13 verbose #13160 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:13 verbose #13161 > > //// test
00:12:13 verbose #13162 > >
00:12:13 verbose #13163 > > None
00:12:13 verbose #13164 > > |> default_with fun () => 3i32
00:12:13 verbose #13165 > > |> _assert_eq 3i32
00:12:13 verbose #13166 > 00:12:12   debug #751 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/31e3e4b3846532668e1db0526cd04e84ca2199778c1ba5b1ee1fe58fa7540157/main.spi
00:12:13 verbose #13167 > >
00:12:13 verbose #13168 > > ╭─[ 344.36ms - stdout ]────────────────────────────────────────────────────────╮
00:12:13 verbose #13169 > > │ assert_eq / actual: 3 / expected: 3                                          │
00:12:13 verbose #13170 > > │                                                                              │
00:12:13 verbose #13171 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:13 verbose #13172 > >
00:12:13 verbose #13173 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:13 verbose #13174 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:13 verbose #13175 > > │ ### choose                                                                   │
00:12:13 verbose #13176 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:13 verbose #13177 > >
00:12:13 verbose #13178 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:13 verbose #13179 > > inl choose fn a b =
00:12:13 verbose #13180 > >     match a, b with
00:12:13 verbose #13181 > >     | Some x, Some y => fn x y |> Some
00:12:13 verbose #13182 > >     | _ => None
00:12:13 verbose #13183 > 00:12:13   debug #752 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/aecca55a4b6ea2f8e032cda6608f84b8b03c1427f86c119b6ac6f88ea97ec791/main.spi
00:12:13 verbose #13184 > >
00:12:13 verbose #13185 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:13 verbose #13186 > > //// test
00:12:13 verbose #13187 > >
00:12:13 verbose #13188 > > (Some 2i32, Some 3)
00:12:13 verbose #13189 > > ||> choose (+)
00:12:13 verbose #13190 > > |> _assert_eq (Some 5)
00:12:14 verbose #13191 > 00:12:13   debug #753 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e9d39be94d81d6fb3046df95f47ce66e5e2a572d53e86e3b7888dd3dfcc95370/main.spi
00:12:14 verbose #13192 > >
00:12:14 verbose #13193 > > ╭─[ 774.16ms - stdout ]────────────────────────────────────────────────────────╮
00:12:14 verbose #13194 > > │ assert_eq / actual: US0_0 5 / expected: US0_0 5                              │
00:12:14 verbose #13195 > > │                                                                              │
00:12:14 verbose #13196 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:14 verbose #13197 > >
00:12:14 verbose #13198 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:14 verbose #13199 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:14 verbose #13200 > > │ ### iter                                                                     │
00:12:14 verbose #13201 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:14 verbose #13202 > >
00:12:14 verbose #13203 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:14 verbose #13204 > > inl iter fn = function
00:12:14 verbose #13205 > >     | Some x => fn x
00:12:14 verbose #13206 > >     | None => ()
00:12:14 verbose #13207 > 00:12:14   debug #754 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b5a848bed362740e28665725e070ea9b221f084fec4484dea138daf5515ccb78/main.spi
00:12:15 verbose #13208 > >
00:12:15 verbose #13209 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:15 verbose #13210 > > //// test
00:12:15 verbose #13211 > >
00:12:15 verbose #13212 > > inl n = mut 1i32
00:12:15 verbose #13213 > > inl fn =
00:12:15 verbose #13214 > >     fun n' =>
00:12:15 verbose #13215 > >         n <- *n + n'
00:12:15 verbose #13216 > > Some 1i32 |> iter fn
00:12:15 verbose #13217 > > None |> iter fn
00:12:15 verbose #13218 > > *n
00:12:15 verbose #13219 > > |> _assert_eq 2i32
00:12:15 verbose #13220 > 00:12:14   debug #755 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5fc1e9f86268a4f4082904395f1ac73ef5f3b94e14a893a00532df6c7f715211/main.spi
00:12:15 verbose #13221 > >
00:12:15 verbose #13222 > > ╭─[ 527.09ms - stdout ]────────────────────────────────────────────────────────╮
00:12:15 verbose #13223 > > │ assert_eq / actual: 2 / expected: 2                                          │
00:12:15 verbose #13224 > > │                                                                              │
00:12:15 verbose #13225 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:15 verbose #13226 > >
00:12:15 verbose #13227 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:15 verbose #13228 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:15 verbose #13229 > > │ ### flatten                                                                  │
00:12:15 verbose #13230 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:15 verbose #13231 > >
00:12:15 verbose #13232 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:15 verbose #13233 > > inl flatten x =
00:12:15 verbose #13234 > >     match x with
00:12:15 verbose #13235 > >     | Some (Some x) => Some x
00:12:15 verbose #13236 > >     | _ => None
00:12:15 verbose #13237 > 00:12:15   debug #756 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/920e068bd648daafde2e99144226f0e6a91214b7443e93aae3f9983db44b2c76/main.spi
00:12:15 verbose #13238 > >
00:12:15 verbose #13239 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:15 verbose #13240 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:15 verbose #13241 > > │ ## fsharp                                                                    │
00:12:15 verbose #13242 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:15 verbose #13243 > >
00:12:15 verbose #13244 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:15 verbose #13245 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:15 verbose #13246 > > │ ### option'                                                                  │
00:12:15 verbose #13247 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:15 verbose #13248 > >
00:12:15 verbose #13249 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:15 verbose #13250 > > nominal option' t = $"backend_switch `({ Fsharp : $"`t option"; Python : t })"
00:12:16 verbose #13251 > 00:12:15   debug #757 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/063e2fc6d429d658f49c2fff20c0aaadb35c27ffeae502c3e20e095b6a257240/main.spi
00:12:16 verbose #13252 > >
00:12:16 verbose #13253 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:16 verbose #13254 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:16 verbose #13255 > > │ ### none'                                                                    │
00:12:16 verbose #13256 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:16 verbose #13257 > >
00:12:16 verbose #13258 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:16 verbose #13259 > > inl none' forall t. () : option' t =
00:12:16 verbose #13260 > >     $'None'
00:12:16 verbose #13261 > 00:12:15   debug #758 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3b3628633bbd13528cc1e5c27f17e11d1bc82ce0d83f71d2bf5afd2d58a41df1/main.spi
00:12:16 verbose #13262 > >
00:12:16 verbose #13263 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:16 verbose #13264 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:16 verbose #13265 > > │ ### some'                                                                    │
00:12:16 verbose #13266 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:16 verbose #13267 > >
00:12:16 verbose #13268 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:16 verbose #13269 > > inl some' forall t. (x : t) : option' t =
00:12:16 verbose #13270 > >     backend_switch {
00:12:16 verbose #13271 > >         Fsharp = fun () => $'Some !x ' : option' t
00:12:16 verbose #13272 > >         Python = fun () => $'!x # some\' ' : option' t
00:12:16 verbose #13273 > >     }
00:12:16 verbose #13274 > 00:12:16   debug #759 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b0cfdfd1fd2aa8b7e36fdb2e479d6adb1937c732b7c6fdc0dca08bfdc6bb432e/main.spi
00:12:16 verbose #13275 > >
00:12:16 verbose #13276 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:16 verbose #13277 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:16 verbose #13278 > > │ ### default_value'                                                           │
00:12:16 verbose #13279 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:16 verbose #13280 > >
00:12:16 verbose #13281 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:16 verbose #13282 > > inl default_value' forall t. (value : t) (x : option' t) : t =
00:12:16 verbose #13283 > >     backend_switch {
00:12:16 verbose #13284 > >         Fsharp = fun () => $'!x |> Option.defaultValue !value ' : t
00:12:16 verbose #13285 > >         Python = fun () => $'!x or !value ' : t
00:12:16 verbose #13286 > >     }
00:12:17 verbose #13287 > 00:12:16   debug #760 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8862f13b469768bd42cb0c81cfa7e96dd311f819505d91badab128a1bdefef5c/main.spi
00:12:17 verbose #13288 > >
00:12:17 verbose #13289 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:17 verbose #13290 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:17 verbose #13291 > > │ ### box                                                                      │
00:12:17 verbose #13292 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:17 verbose #13293 > >
00:12:17 verbose #13294 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:17 verbose #13295 > > inl box forall t. (x : option t) : option' t =
00:12:17 verbose #13296 > >     // x
00:12:17 verbose #13297 > >     // |> optionm.map some'
00:12:17 verbose #13298 > >     // |> default_with none'
00:12:17 verbose #13299 > >     match x with
00:12:17 verbose #13300 > >     | Some x => some' x
00:12:17 verbose #13301 > >     | None => none' ()
00:12:17 verbose #13302 > 00:12:16   debug #761 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/04741ee239278521e107db49a6e6e15ff0558194131171b368a4420b4cefb5d7/main.spi
00:12:17 verbose #13303 > >
00:12:17 verbose #13304 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:17 verbose #13305 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:17 verbose #13306 > > │ ### map                                                                      │
00:12:17 verbose #13307 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:17 verbose #13308 > >
00:12:17 verbose #13309 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:17 verbose #13310 > > inl map forall t u. (fn : t -> u) (x : option' t) : option' u =
00:12:17 verbose #13311 > >     backend_switch {
00:12:17 verbose #13312 > >         Fsharp = fun () =>
00:12:17 verbose #13313 > >             inl result : option' u = none' ()
00:12:17 verbose #13314 > >             $'let _!result = ref !result '
00:12:17 verbose #13315 > >             $'match !x with'
00:12:17 verbose #13316 > >             $'| Some x -> ('
00:12:17 verbose #13317 > >             $'(fun () ->'
00:12:17 verbose #13318 > >             $'(fun () ->'
00:12:17 verbose #13319 > >             inl x = dyn $'x'
00:12:17 verbose #13320 > >             x |> fn |> emit_unit
00:12:17 verbose #13321 > >             $')'
00:12:17 verbose #13322 > >             $'|> fun x -> x () |> Some'
00:12:17 verbose #13323 > >             $') () ) | None -> None'
00:12:17 verbose #13324 > >             $'|> fun x -> _!result.Value <- x'
00:12:17 verbose #13325 > >             $'_!result.Value ' : option' u
00:12:17 verbose #13326 > >         Python = fun () =>
00:12:17 verbose #13327 > >             if x =. none' ()
00:12:17 verbose #13328 > >             then none' ()
00:12:17 verbose #13329 > >             else fn $'!x ' |> fun x => $'!x ' : option' u
00:12:17 verbose #13330 > >     }
00:12:17 verbose #13331 > 00:12:17   debug #762 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/84435577d37554aceece76f144c96662014a15ab4a27b94a99458a7020a2c9ad/main.spi
00:12:17 verbose #13332 > >
00:12:17 verbose #13333 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:17 verbose #13334 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:17 verbose #13335 > > │ ### map''                                                                    │
00:12:17 verbose #13336 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:17 verbose #13337 > >
00:12:17 verbose #13338 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:17 verbose #13339 > > inl map'' forall t u. (fn : t -> u) (x : option' t) : option' u =
00:12:17 verbose #13340 > >     backend_switch {
00:12:17 verbose #13341 > >         Fsharp = fun () => $'!x |> Option.map !fn ' : option' u
00:12:17 verbose #13342 > >         Python = fun () => x |> map fn
00:12:17 verbose #13343 > >     }
00:12:18 verbose #13344 > 00:12:17   debug #763 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0920a52ce0fda5de162bd28dbaa4f3651cb6dd961a39c87d687c654fd6dc2ce9/main.spi
00:12:18 verbose #13345 > >
00:12:18 verbose #13346 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:18 verbose #13347 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:18 verbose #13348 > > │ ### unbox                                                                    │
00:12:18 verbose #13349 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:18 verbose #13350 > >
00:12:18 verbose #13351 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:18 verbose #13352 > > inl unbox forall t. (x : option' t) : option t =
00:12:18 verbose #13353 > >     x |> map Some |> default_value' None
00:12:18 verbose #13354 > >     // inl some x : option t = Some x
00:12:18 verbose #13355 > >     // inl some = join some
00:12:18 verbose #13356 > >     // inl none : option t = None
00:12:18 verbose #13357 > >     // $'!x |> Option.map !some |> Option.defaultValue !none '
00:12:18 verbose #13358 > 00:12:17   debug #764 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8ef33b6314d16db5bffbd02137db5c7c8a185d3762d03e06ab51db582fc98171/main.spi
00:12:18 verbose #13359 > >
00:12:18 verbose #13360 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:18 verbose #13361 > > //// test
00:12:18 verbose #13362 > > ///! fsharp
00:12:18 verbose #13363 > > ///! cuda
00:12:18 verbose #13364 > > ///! rust
00:12:18 verbose #13365 > > ///! typescript
00:12:18 verbose #13366 > > ///! python
00:12:18 verbose #13367 > >
00:12:18 verbose #13368 > > inl x = Some 3i32
00:12:18 verbose #13369 > > inl y : option i32 = None
00:12:18 verbose #13370 > > inl x' = x |> box |> unbox
00:12:18 verbose #13371 > > inl y' = y |> box |> map id |> unbox
00:12:18 verbose #13372 > > (x', y') |> _assert_eq' (x, y)
00:12:18 verbose #13373 > 00:12:18   debug #765 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/54650d8263674e9568b2c2b7f20b1872eef419f52d8a300dba5c60df4b892762/main.spi
00:12:18 verbose #13374 > 00:12:18   debug #766 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/36035628d575522d310366a5fa92b5e6065957d00ff79e8ae01686968acd2394/main.spi
00:12:24 verbose #13375 > >
00:12:24 verbose #13376 > > ╭─[ 5.34s - return value ]─────────────────────────────────────────────────────╮
00:12:24 verbose #13377 > > │ .py output (Cuda):                                                           │
00:12:24 verbose #13378 > > │ assert_eq' / actual: (US0_0(v0=3), US0_1()) / expected: (US0_0(v0=3),        │
00:12:24 verbose #13379 > > │ US0_1())                                                                     │
00:12:24 verbose #13380 > > │                                                                              │
00:12:24 verbose #13381 > > │ .rs output:                                                                  │
00:12:24 verbose #13382 > > │ assert_eq' / actual: (US0_0(3), US0_1) / expected: (US0_0(3), US0_1)         │
00:12:24 verbose #13383 > > │                                                                              │
00:12:24 verbose #13384 > > │ .ts output:                                                                  │
00:12:24 verbose #13385 > > │ assert_eq' / actual: US0_0 3,US0_1 / expected: US0_0 3,US0_1                 │
00:12:24 verbose #13386 > > │                                                                              │
00:12:24 verbose #13387 > > │ .py output:                                                                  │
00:12:24 verbose #13388 > > │ assert_eq' / actual: (US0_0 3, US0_1) / expected: (US0_0 3, US0_1)           │
00:12:24 verbose #13389 > > │                                                                              │
00:12:24 verbose #13390 > > │                                                                              │
00:12:24 verbose #13391 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:24 verbose #13392 > >
00:12:24 verbose #13393 > > ╭─[ 5.34s - stdout ]───────────────────────────────────────────────────────────╮
00:12:24 verbose #13394 > > │ .fsx output:                                                                 │
00:12:24 verbose #13395 > > │ assert_eq' / actual: struct (US0_0 3, US0_1) / expected: struct (US0_0 3,    │
00:12:24 verbose #13396 > > │ US0_1)                                                                       │
00:12:24 verbose #13397 > > │                                                                              │
00:12:24 verbose #13398 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:24 verbose #13399 > >
00:12:24 verbose #13400 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:24 verbose #13401 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:24 verbose #13402 > > │ ### of_obj                                                                   │
00:12:24 verbose #13403 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:24 verbose #13404 > >
00:12:24 verbose #13405 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:24 verbose #13406 > > inl of_obj forall t. (x : t) : option' t =
00:12:24 verbose #13407 > >     backend_switch {
00:12:24 verbose #13408 > >         Fsharp = fun () =>
00:12:24 verbose #13409 > >             $'let mutable _!x = None'
00:12:24 verbose #13410 > >             $'#if \!FABLE_COMPILER && \!WASM && \!CONTRACT'
00:12:24 verbose #13411 > >             ((x |> $'Option.ofObj') : option' t) |> emit_unit
00:12:24 verbose #13412 > >             $'#else'
00:12:24 verbose #13413 > >             $'Some !x '
00:12:24 verbose #13414 > >             $'#endif'
00:12:24 verbose #13415 > >             $'|> fun x -> _!x <- Some x'
00:12:24 verbose #13416 > >             $'match _!x with Some x -> x | None -> failwith "optionm\'.of_obj
00:12:24 verbose #13417 > > _!x=None"' : option' t
00:12:24 verbose #13418 > >         Python = fun () =>
00:12:24 verbose #13419 > >             $'!x ' : option' t
00:12:24 verbose #13420 > >     }
00:12:24 verbose #13421 > 00:12:23   debug #767 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/272a35980fd5daafcd343e10b9871e7fc6d94d30efebfda7260d612c2d96abee/main.spi
00:12:24 verbose #13422 > >
00:12:24 verbose #13423 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:24 verbose #13424 > > //// test
00:12:24 verbose #13425 > > ///! fsharp
00:12:24 verbose #13426 > > ///! cuda
00:12:24 verbose #13427 > > ////! rust // attempted to zero-initialize type `alloc::sync::Arc<dyn
00:12:24 verbose #13428 > > core::any::Any>`, which is invalid
00:12:24 verbose #13429 > > ///! typescript
00:12:24 verbose #13430 > > ///! python
00:12:24 verbose #13431 > >
00:12:24 verbose #13432 > > null ()
00:12:24 verbose #13433 > > |> of_obj
00:12:24 verbose #13434 > > |> unbox
00:12:24 verbose #13435 > > |> _assert_eq (None : option string)
00:12:24 verbose #13436 > 00:12:23   debug #768 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/544da254ffd29bf111c83b5a4133a198cf1296e0675a5aa5730301e7133328f4/main.spi
00:12:24 verbose #13437 > 00:12:23   debug #769 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/035573f130228d245fae891d67161819e77d5f1e39a5c5614a1541f580c9c0e8/main.spi
00:12:27 verbose #13438 > >
00:12:27 verbose #13439 > > ╭─[ 3.16s - return value ]─────────────────────────────────────────────────────╮
00:12:27 verbose #13440 > > │ .py output (Cuda):                                                           │
00:12:27 verbose #13441 > > │ assert_eq / actual: US0_1() / expected: US0_1()                              │
00:12:27 verbose #13442 > > │                                                                              │
00:12:27 verbose #13443 > > │ .ts output:                                                                  │
00:12:27 verbose #13444 > > │ assert_eq / actual: US0_1 / expected: US0_1                                  │
00:12:27 verbose #13445 > > │                                                                              │
00:12:27 verbose #13446 > > │ .py output:                                                                  │
00:12:27 verbose #13447 > > │ assert_eq / actual: US0_1 / expected: US0_1                                  │
00:12:27 verbose #13448 > > │                                                                              │
00:12:27 verbose #13449 > > │                                                                              │
00:12:27 verbose #13450 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:27 verbose #13451 > >
00:12:27 verbose #13452 > > ╭─[ 3.17s - stdout ]───────────────────────────────────────────────────────────╮
00:12:27 verbose #13453 > > │ .fsx output:                                                                 │
00:12:27 verbose #13454 > > │ assert_eq / actual: US0_1 / expected: US0_1                                  │
00:12:27 verbose #13455 > > │                                                                              │
00:12:27 verbose #13456 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:27 verbose #13457 > >
00:12:27 verbose #13458 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:27 verbose #13459 > > //// test
00:12:27 verbose #13460 > > ///! fsharp
00:12:27 verbose #13461 > > ///! cuda
00:12:27 verbose #13462 > > ///! rust
00:12:27 verbose #13463 > > ///! typescript
00:12:27 verbose #13464 > > ///! python
00:12:27 verbose #13465 > >
00:12:27 verbose #13466 > > ""
00:12:27 verbose #13467 > > |> of_obj
00:12:27 verbose #13468 > > |> unbox
00:12:27 verbose #13469 > > |> _assert_eq' (Some "")
00:12:27 verbose #13470 > 00:12:27   debug #770 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/713995bcb2e00006760e8d7463f3744ad701fef6448c3b781b7fadcc36a9f85b/main.spi
00:12:27 verbose #13471 > 00:12:27   debug #771 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/70916855152f56dad541f885b516bad7047206794cb58b9f0280a5f3f50223d3/main.spi
00:12:31 verbose #13472 > >
00:12:31 verbose #13473 > > ╭─[ 4.34s - return value ]─────────────────────────────────────────────────────╮
00:12:31 verbose #13474 > > │ .py output (Cuda):                                                           │
00:12:31 verbose #13475 > > │ assert_eq' / actual: US0_0(v0='') / expected: US0_0(v0='')                   │
00:12:31 verbose #13476 > > │                                                                              │
00:12:31 verbose #13477 > > │ .rs output:                                                                  │
00:12:31 verbose #13478 > > │ assert_eq' / actual: US0_0("") / expected: US0_0("")                         │
00:12:31 verbose #13479 > > │                                                                              │
00:12:31 verbose #13480 > > │ .ts output:                                                                  │
00:12:31 verbose #13481 > > │ assert_eq' / actual: US0_0  / expected: US0_0                                │
00:12:31 verbose #13482 > > │                                                                              │
00:12:31 verbose #13483 > > │ .py output:                                                                  │
00:12:31 verbose #13484 > > │ assert_eq' / actual: US0_0 "" / expected: US0_0 ""                           │
00:12:31 verbose #13485 > > │                                                                              │
00:12:31 verbose #13486 > > │                                                                              │
00:12:31 verbose #13487 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:31 verbose #13488 > >
00:12:31 verbose #13489 > > ╭─[ 4.34s - stdout ]───────────────────────────────────────────────────────────╮
00:12:31 verbose #13490 > > │ .fsx output:                                                                 │
00:12:31 verbose #13491 > > │ assert_eq' / actual: US0_0 "" / expected: US0_0 ""                           │
00:12:31 verbose #13492 > > │                                                                              │
00:12:31 verbose #13493 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:31 verbose #13494 > >
00:12:31 verbose #13495 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:31 verbose #13496 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:31 verbose #13497 > > │ ### flatten'                                                                 │
00:12:31 verbose #13498 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:31 verbose #13499 > >
00:12:31 verbose #13500 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:31 verbose #13501 > > inl flatten' x =
00:12:31 verbose #13502 > >     x
00:12:31 verbose #13503 > >     |> unbox
00:12:31 verbose #13504 > >     |> optionm.map unbox
00:12:31 verbose #13505 > >     |> flatten
00:12:32 verbose #13506 > 00:12:31   debug #772 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6d7a21d5df6ee2eee4a6170fbe650b75389b7df33faa46094435c4d33516eeea/main.spi
00:12:32 verbose #13507 > >
00:12:32 verbose #13508 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:32 verbose #13509 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:32 verbose #13510 > > │ ## rust                                                                      │
00:12:32 verbose #13511 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:32 verbose #13512 > >
00:12:32 verbose #13513 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:32 verbose #13514 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:32 verbose #13515 > > │ ### try'                                                                     │
00:12:32 verbose #13516 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:32 verbose #13517 > >
00:12:32 verbose #13518 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:32 verbose #13519 > > inl try' forall t. (x : option' t) : t =
00:12:32 verbose #13520 > >     !\\(x, $'"$0?"')
00:12:32 verbose #13521 > 00:12:31   debug #773 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e3282559f6075faa22f559e896b14f579996076982774c729d7ef85635ea63da/main.spi
00:12:32 verbose #13522 > >
00:12:32 verbose #13523 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:32 verbose #13524 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:32 verbose #13525 > > │ ### map'                                                                     │
00:12:32 verbose #13526 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:32 verbose #13527 > >
00:12:32 verbose #13528 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:32 verbose #13529 > > inl map' forall t u. (fn : t -> u) (x : option' t) : option' u =
00:12:32 verbose #13530 > >     (!\($'"true; let _result = !x.map(|x| { //"') : bool) |> ignore
00:12:32 verbose #13531 > >     (!\\(fn !\($'"x"'), $'"true; $0 })"') : bool) |> ignore
00:12:32 verbose #13532 > >     !\($'"_result"')
00:12:32 verbose #13533 > 00:12:32   debug #774 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fe3a8a73b6f3d91248562b2a7a2c04d6dfcd6f99bca0a368a1e59974709f1106/main.spi
00:12:32 verbose #13534 > >
00:12:32 verbose #13535 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:32 verbose #13536 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:32 verbose #13537 > > │ ### unwrap                                                                   │
00:12:32 verbose #13538 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:32 verbose #13539 > >
00:12:32 verbose #13540 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:32 verbose #13541 > > inl unwrap forall t. (x : option' t) : t =
00:12:32 verbose #13542 > >     !\\(x, $'"$0.unwrap()"')
00:12:33 verbose #13543 > 00:12:32   debug #775 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/15444cac8deaab83ccf1477649e4048731668de4c60a2f4878d7fdea1709b8ef/main.spi
00:12:33 verbose #13544 > >
00:12:33 verbose #13545 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:33 verbose #13546 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:33 verbose #13547 > > │ ### take                                                                     │
00:12:33 verbose #13548 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:33 verbose #13549 > >
00:12:33 verbose #13550 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:33 verbose #13551 > > inl take forall t. (x : option' t) : option' t =
00:12:33 verbose #13552 > >     (!\\(x, $'"true; let mut !x = !x"') : bool) |> ignore
00:12:33 verbose #13553 > >     !\\(x, $'"Option::take(&mut $0)"')
00:12:33 verbose #13554 > 00:12:32   debug #776 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/75c299b67bd42847ab15b5c49a605108846c2f7d6e66b73596481c7ff720e195/main.spi
00:12:33 verbose #13555 > >
00:12:33 verbose #13556 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:33 verbose #13557 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:33 verbose #13558 > > │ ### take_ref                                                                 │
00:12:33 verbose #13559 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:33 verbose #13560 > >
00:12:33 verbose #13561 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:33 verbose #13562 > > inl take_ref forall t. (x : rust.ref' (option' t)) : option' t =
00:12:33 verbose #13563 > >     (!\\(x, $'"true; let mut !x = !x"') : bool) |> ignore
00:12:33 verbose #13564 > >     !\\(x, $'"Option::take(&mut $0)"')
00:12:33 verbose #13565 > 00:12:33   debug #777 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/014fbf25328455d7b1c87e28901dd2b4bdc0dee90ae5fd8333c73c1dad945e77/main.spi
00:12:34 verbose #13566 > >
00:12:34 verbose #13567 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:34 verbose #13568 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:34 verbose #13569 > > │ ### take_ref_mut                                                             │
00:12:34 verbose #13570 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:34 verbose #13571 > >
00:12:34 verbose #13572 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:34 verbose #13573 > > inl take_ref_mut forall t. (x : rust.ref' (rust.mut' (option' t))) : option' t =
00:12:34 verbose #13574 > >     !\\(x, $'"Option::take($0)"')
00:12:34 verbose #13575 > 00:12:33   debug #778 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/40b0169426a9c41f77c81bc19c43583f63da7cd560c28802479cc426bcd752c8/main.spi
00:12:34 verbose #13576 > >
00:12:34 verbose #13577 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:34 verbose #13578 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:34 verbose #13579 > > │ ### as_ref                                                                   │
00:12:34 verbose #13580 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:34 verbose #13581 > >
00:12:34 verbose #13582 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:34 verbose #13583 > > inl as_ref forall t. (x : rust.ref' (option' t)) : option' (rust.ref' t) =
00:12:34 verbose #13584 > >     !\\(x, $'"$0.as_ref()"')
00:12:34 verbose #13585 > 00:12:33   debug #779 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1d2633d04f422876b9b0ca3d84b832d676b48af133869febe17371107db7e1af/main.spi
00:12:34 verbose #13586 > >
00:12:34 verbose #13587 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:34 verbose #13588 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:34 verbose #13589 > > │ ### as_mut                                                                   │
00:12:34 verbose #13590 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:34 verbose #13591 > >
00:12:34 verbose #13592 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:34 verbose #13593 > > inl as_mut forall t. (x : rust.ref' (rust.mut' (option' t))) : option'
00:12:34 verbose #13594 > > (rust.ref' (rust.mut' t)) =
00:12:34 verbose #13595 > >     !\\(x, $'"$0.as_mut()"')
00:12:35 verbose #13596 > 00:12:34   debug #780 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d39eacf55c52f1d527ae41c3c2ef2b4424f43128f2158f4adf7775ccd42200dd/main.spi
00:12:35 verbose #13597 > >
00:12:35 verbose #13598 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:35 verbose #13599 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:35 verbose #13600 > > │ ### unwrap_or                                                                │
00:12:35 verbose #13601 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:35 verbose #13602 > >
00:12:35 verbose #13603 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:35 verbose #13604 > > inl unwrap_or forall t. (def : t) (x : option' t) : t =
00:12:35 verbose #13605 > >     !\($'"!x.unwrap_or(!def)"')
00:12:35 verbose #13606 > 00:12:34   debug #781 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f23f6ccc5f038a2c4da7594ee88acbb9614db9559d3ce0548055b39bab0d4ef4/main.spi
00:12:35 verbose #13607 > >
00:12:35 verbose #13608 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:35 verbose #13609 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:35 verbose #13610 > > │ ### and_then                                                                 │
00:12:35 verbose #13611 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:35 verbose #13612 > >
00:12:35 verbose #13613 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:35 verbose #13614 > > inl and_then forall t u. (fn : t -> option' u) (x : option' t) : option' u =
00:12:35 verbose #13615 > >     !\\((x, fn), $'"$0.and_then(|x| $1(x))"')
00:12:35 verbose #13616 > 00:12:35   debug #782 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b206added52f96288e7263b5fdb3eabd7007c14b01585085c0459fe95ed76426/main.spi
00:12:35 verbose #13617 > >
00:12:35 verbose #13618 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:35 verbose #13619 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:35 verbose #13620 > > │ ### rc_upgrade                                                               │
00:12:35 verbose #13621 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:35 verbose #13622 > >
00:12:35 verbose #13623 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:35 verbose #13624 > > inl rc_upgrade forall t. (x : rust.weak_rc t) : option' (rust.rc t) =
00:12:35 verbose #13625 > >     !\\(x, $'"std::rc::Weak::upgrade(&$0)"')
00:12:36 verbose #13626 > 00:12:35   debug #783 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8d9cbabe48493461bee1e409368c88b5e78cd9831d2498687e9e5edd8728256d/main.spi
00:12:36 verbose #13627 > >
00:12:36 verbose #13628 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:36 verbose #13629 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:36 verbose #13630 > > │ ### rc_into_inner                                                            │
00:12:36 verbose #13631 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:36 verbose #13632 > >
00:12:36 verbose #13633 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:36 verbose #13634 > > inl rc_into_inner forall t. (x : rust.rc t) : option' t =
00:12:36 verbose #13635 > >     !\\(x, $'"std::rc::Rc::into_inner($0)"')
00:12:36 verbose #13636 > 00:12:35   debug #784 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b991af9b41f196278afc7c3b8a224eaae9aeb5013db9aba7afa7b63fec2bf75e/main.spi
00:12:36 verbose #13637 > >
00:12:36 verbose #13638 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:36 verbose #13639 > > //// test
00:12:36 verbose #13640 > > ///! rust
00:12:36 verbose #13641 > >
00:12:36 verbose #13642 > > types ()
00:12:36 verbose #13643 > > rust.new_rc 0i32
00:12:36 verbose #13644 > > |> rc_into_inner
00:12:36 verbose #13645 > > |> unbox
00:12:36 verbose #13646 > > |> _assert_eq' (Some 0i32)
00:12:36 verbose #13647 > 00:12:36   debug #785 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2a89131a48749945197c95a6325b6d0e0b828ee141f29ba178ea5f6eaf8b47ab/main.spi
00:12:39 verbose #13648 > >
00:12:39 verbose #13649 > > ╭─[ 2.86s - return value ]─────────────────────────────────────────────────────╮
00:12:39 verbose #13650 > > │ assert_eq' / actual: US0_0(0) / expected: US0_0(0)                           │
00:12:39 verbose #13651 > > │                                                                              │
00:12:39 verbose #13652 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:39 verbose #13653 > 00:00:36 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 25669 }
00:12:39 verbose #13654 > 00:00:36   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/optionm'.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/optionm'.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:12:41 verbose #13655 > 00:00:38 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/optionm'.dib.ipynb to html
00:12:41 verbose #13656 > 00:00:38 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:12:41 verbose #13657 > 00:00:38 verbose #7 !   validate(nb)
00:12:43 verbose #13658 > 00:00:40 verbose #8 ! [NbConvertApp] Writing 340763 bytes to c:\home\git\polyglot\lib\spiral\optionm'.dib.html
00:12:43 verbose #13659 > 00:00:40 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 647 }
00:12:43 verbose #13660 > 00:00:40   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 647 }
00:12:43 verbose #13661 > 00:00:40   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/optionm''.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/optionm''.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:12:44 verbose #13662 > 00:00:41 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:12:44 verbose #13663 > 00:00:41   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:12:45 verbose #13664 > 00:00:41   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 26375 }
00:12:45   debug #13665 runtime.execute_with_options_async / { exit_code = 0; output_length = 30068 }
00:12:45   debug #18 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path optionm'.dib --retries 3
00:12:45   debug #13666 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path listm'.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:12:45 verbose #13667 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "listm'.dib", "--retries", "3"])) }
00:12:45 verbose #13668 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/listm'.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/listm'.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/listm'.dib" --output-path "c:/home/git/polyglot/lib/spiral/listm'.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:12:47 verbose #13669 > >
00:12:47 verbose #13670 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:47 verbose #13671 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:47 verbose #13672 > > │ # listm'                                                                     │
00:12:47 verbose #13673 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:50 verbose #13674 > >
00:12:50 verbose #13675 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:50 verbose #13676 > > //// test
00:12:50 verbose #13677 > >
00:12:50 verbose #13678 > > open testing
00:12:51 verbose #13679 > 00:12:50   debug #786 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7845de436c12d0ca65282fe0cd65832468ca943e72feba50e6b1bb441e251a/main.spi
00:12:52 verbose #13680 > >
00:12:52 verbose #13681 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:52 verbose #13682 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:52 verbose #13683 > > │ ## listm'                                                                    │
00:12:52 verbose #13684 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:52 verbose #13685 > >
00:12:52 verbose #13686 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:52 verbose #13687 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:52 verbose #13688 > > │ ### append                                                                   │
00:12:52 verbose #13689 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:52 verbose #13690 > >
00:12:52 verbose #13691 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:52 verbose #13692 > > instance append list t =
00:12:52 verbose #13693 > >     listm.append
00:12:52 verbose #13694 > 00:12:51   debug #787 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ac2d50a7d27726add1bcb0372fd8edbfedd5a4cebc54a7d7ed47565e7d48af7a/main.spi
00:12:52 verbose #13695 > >
00:12:52 verbose #13696 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:52 verbose #13697 > > //// test
00:12:52 verbose #13698 > >
00:12:52 verbose #13699 > > [[ "a"; "b" ]] ++ [[ "c"; "d" ]]
00:12:52 verbose #13700 > > |> _assert_eq [[ "a"; "b"; "c"; "d" ]]
00:12:52 verbose #13701 > 00:12:51   debug #788 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/86af39ebf815404325b75ab00b3547380beba07b357114185b526c84d0b4f4f6/main.spi
00:12:53 verbose #13702 > >
00:12:53 verbose #13703 > > ╭─[ 1.32s - stdout ]───────────────────────────────────────────────────────────╮
00:12:53 verbose #13704 > > │ assert_eq / actual: UH0_1 ("a", UH0_1 ("b", UH0_1 ("c", UH0_1 ("d",          │
00:12:53 verbose #13705 > > │ UH0_0)))) / expected: UH0_1 ("a", UH0_1 ("b", UH0_1 ("c", UH0_1 ("d",        │
00:12:53 verbose #13706 > > │ UH0_0))))                                                                    │
00:12:53 verbose #13707 > > │                                                                              │
00:12:53 verbose #13708 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:53 verbose #13709 > >
00:12:53 verbose #13710 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:53 verbose #13711 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:53 verbose #13712 > > │ ### collect                                                                  │
00:12:53 verbose #13713 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:53 verbose #13714 > >
00:12:53 verbose #13715 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:53 verbose #13716 > > inl collect forall t r. (fn : t -> list r) (items : list t) : list r =
00:12:53 verbose #13717 > >     items
00:12:53 verbose #13718 > >     |> listm.map fn
00:12:53 verbose #13719 > >     |> listm.fold (++) [[]]
00:12:53 verbose #13720 > 00:12:53   debug #789 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6cab2bfe4d19f0c9cf526dce2e91a9144ee99603a6a751acad047b780a7baea5/main.spi
00:12:54 verbose #13721 > >
00:12:54 verbose #13722 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:54 verbose #13723 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:54 verbose #13724 > > │ ### init_series                                                              │
00:12:54 verbose #13725 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:54 verbose #13726 > >
00:12:54 verbose #13727 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:54 verbose #13728 > > inl init_series start end inc =
00:12:54 verbose #13729 > >     inl total : f64 = conv ((end - start) / inc) + 1
00:12:54 verbose #13730 > >     listm.init total (conv >> (*) inc >> (+) start)
00:12:54 verbose #13731 > 00:12:53   debug #790 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4b70a8dcaf3befefe66bd978a8288673ed6710c1d5b3835e55cbc61c93c782c9/main.spi
00:12:54 verbose #13732 > >
00:12:54 verbose #13733 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:54 verbose #13734 > > //// test
00:12:54 verbose #13735 > >
00:12:54 verbose #13736 > > init_series 0 1 0.5
00:12:54 verbose #13737 > > |> _assert_eq [[ 0f64; 0.5; 1 ]]
00:12:54 verbose #13738 > 00:12:53   debug #791 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a8c05ad6c161fc5da481fcb1e6f63d49be5509308075539183f2aff86f0a418a/main.spi
00:12:54 verbose #13739 > >
00:12:54 verbose #13740 > > ╭─[ 466.50ms - stdout ]────────────────────────────────────────────────────────╮
00:12:54 verbose #13741 > > │ assert_eq / actual: UH0_1 (0.0, UH0_1 (0.5, UH0_1 (1.0, UH0_0))) / expected: │
00:12:54 verbose #13742 > > │ UH0_1 (0.0, UH0_1 (0.5, UH0_1 (1.0, UH0_0)))                                 │
00:12:54 verbose #13743 > > │                                                                              │
00:12:54 verbose #13744 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:54 verbose #13745 > >
00:12:54 verbose #13746 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:54 verbose #13747 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:54 verbose #13748 > > │ ### try_item                                                                 │
00:12:54 verbose #13749 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:54 verbose #13750 > >
00:12:54 verbose #13751 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:54 verbose #13752 > > inl rec try_item i = function
00:12:54 verbose #13753 > >     | Cons (x, _) when i = 0 => Some x
00:12:54 verbose #13754 > >     | Cons (_, xs) => try_item (i - 1) xs
00:12:54 verbose #13755 > >     | Nil => None
00:12:55 verbose #13756 > 00:12:54   debug #792 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1ece2c0cff2a4144396eb7af0cefb80fadfc988ab05fbb632ecea95afcb34fef/main.spi
00:12:55 verbose #13757 > >
00:12:55 verbose #13758 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:55 verbose #13759 > > //// test
00:12:55 verbose #13760 > >
00:12:55 verbose #13761 > > listm.init 10i32 id
00:12:55 verbose #13762 > > |> try_item 9i32
00:12:55 verbose #13763 > > |> _assert_eq (Some 9)
00:12:55 verbose #13764 > 00:12:54   debug #793 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4ddf0276108369c630833744f1dad952a4c26d5e0ecf0089874bb3a30180b4c8/main.spi
00:12:55 verbose #13765 > >
00:12:55 verbose #13766 > > ╭─[ 392.66ms - stdout ]────────────────────────────────────────────────────────╮
00:12:55 verbose #13767 > > │ assert_eq / actual: US0_0 9 / expected: US0_0 9                              │
00:12:55 verbose #13768 > > │                                                                              │
00:12:55 verbose #13769 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:55 verbose #13770 > >
00:12:55 verbose #13771 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:55 verbose #13772 > > //// test
00:12:55 verbose #13773 > >
00:12:55 verbose #13774 > > listm.init 10i32 id
00:12:55 verbose #13775 > > |> try_item 10i32
00:12:55 verbose #13776 > > |> _assert_eq None
00:12:55 verbose #13777 > 00:12:55   debug #794 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/97607e27ddbf94644fc1cd2cdfbe47241417004887a52b9c622d9078f2588f7b/main.spi
00:12:56 verbose #13778 > >
00:12:56 verbose #13779 > > ╭─[ 379.70ms - stdout ]────────────────────────────────────────────────────────╮
00:12:56 verbose #13780 > > │ assert_eq / actual: US0_1 / expected: US0_1                                  │
00:12:56 verbose #13781 > > │                                                                              │
00:12:56 verbose #13782 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:56 verbose #13783 > >
00:12:56 verbose #13784 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:56 verbose #13785 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:56 verbose #13786 > > │ ### item                                                                     │
00:12:56 verbose #13787 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:56 verbose #13788 > >
00:12:56 verbose #13789 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:56 verbose #13790 > > inl item i =
00:12:56 verbose #13791 > >     try_item i >> optionm.value
00:12:56 verbose #13792 > 00:12:55   debug #795 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/09eee9e762823abd1bcef11058bacaecb52b4643288953048a5b2217369a89b1/main.spi
00:12:56 verbose #13793 > >
00:12:56 verbose #13794 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:56 verbose #13795 > > //// test
00:12:56 verbose #13796 > >
00:12:56 verbose #13797 > > listm.init 10i32 id
00:12:56 verbose #13798 > > |> item 9i32
00:12:56 verbose #13799 > > |> _assert_eq 9
00:12:56 verbose #13800 > 00:12:55   debug #796 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ac6612e0e4c898638d1cbfafee9775e114d94b77844d42ea552b483bf69e75eb/main.spi
00:12:56 verbose #13801 > >
00:12:56 verbose #13802 > > ╭─[ 428.76ms - stdout ]────────────────────────────────────────────────────────╮
00:12:56 verbose #13803 > > │ assert_eq / actual: 9 / expected: 9                                          │
00:12:56 verbose #13804 > > │                                                                              │
00:12:56 verbose #13805 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:56 verbose #13806 > >
00:12:56 verbose #13807 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:56 verbose #13808 > > //// test
00:12:56 verbose #13809 > >
00:12:56 verbose #13810 > > fun () =>
00:12:56 verbose #13811 > >     listm.init 10i32 id
00:12:56 verbose #13812 > >     |> item 10i32
00:12:56 verbose #13813 > >     |> ignore
00:12:56 verbose #13814 > > |> _throws
00:12:56 verbose #13815 > > |> optionm.map sm'.format_exception
00:12:56 verbose #13816 > > |> _assert_eq (Some "System.Exception: Option does not have a value.")
00:12:57 verbose #13817 > 00:12:56   debug #797 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9efe014a1bb64aa6050ac3179df7b67e222efc310825ea3639f983e24a2092a6/main.spi
00:12:57 verbose #13818 > >
00:12:57 verbose #13819 > > ╭─[ 593.33ms - stdout ]────────────────────────────────────────────────────────╮
00:12:57 verbose #13820 > > │ assert_eq / actual: US1_0 "System.Exception: Option does not have a value."  │
00:12:57 verbose #13821 > > │ / expected: US1_0 "System.Exception: Option does not have a value."          │
00:12:57 verbose #13822 > > │                                                                              │
00:12:57 verbose #13823 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:57 verbose #13824 > >
00:12:57 verbose #13825 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:57 verbose #13826 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:57 verbose #13827 > > │ ### try_item_                                                                │
00:12:57 verbose #13828 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:57 verbose #13829 > >
00:12:57 verbose #13830 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:57 verbose #13831 > > let rec try_item_ i = function
00:12:57 verbose #13832 > >     | Cons (x, _) when i = 0 => Some x
00:12:57 verbose #13833 > >     | Cons (_, xs) => try_item_ (i - 1) xs
00:12:57 verbose #13834 > >     | Nil => None
00:12:57 verbose #13835 > 00:12:56   debug #798 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c5c84714f74da96fda60b04e2049ee226f55faf56e0304d03c01aa9d0d29a65a/main.spi
00:12:57 verbose #13836 > >
00:12:57 verbose #13837 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:57 verbose #13838 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:57 verbose #13839 > > │ ### item_                                                                    │
00:12:57 verbose #13840 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:57 verbose #13841 > >
00:12:57 verbose #13842 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:57 verbose #13843 > > inl item_ i =
00:12:57 verbose #13844 > >     try_item_ i >> optionm.value
00:12:58 verbose #13845 > 00:12:57   debug #799 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ec8d97a24caf5ba89408e5824cf34365bd9ee9a04c3163dca5e54f5889a0b4af/main.spi
00:12:58 verbose #13846 > >
00:12:58 verbose #13847 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:58 verbose #13848 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:58 verbose #13849 > > │ ### sum                                                                      │
00:12:58 verbose #13850 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:58 verbose #13851 > >
00:12:58 verbose #13852 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:58 verbose #13853 > > inl sum list =
00:12:58 verbose #13854 > >     list |> listm.fold (+) 0
00:12:58 verbose #13855 > 00:12:57   debug #800 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8d16d7149b84e2452fe5e8d0038a8b7248e58bd7189534c4f53ed11221478261/main.spi
00:12:58 verbose #13856 > >
00:12:58 verbose #13857 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:58 verbose #13858 > > //// test
00:12:58 verbose #13859 > >
00:12:58 verbose #13860 > > listm.init 10i32 id
00:12:58 verbose #13861 > > |> sum
00:12:58 verbose #13862 > > |> _assert_eq 45
00:12:58 verbose #13863 > 00:12:57   debug #801 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a7110fb0a4fb98c8ebeaf774577d30899dcd2afd4810e3181215398426cee8a2/main.spi
00:12:58 verbose #13864 > >
00:12:58 verbose #13865 > > ╭─[ 325.85ms - stdout ]────────────────────────────────────────────────────────╮
00:12:58 verbose #13866 > > │ assert_eq / actual: 45 / expected: 45                                        │
00:12:58 verbose #13867 > > │                                                                              │
00:12:58 verbose #13868 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:58 verbose #13869 > >
00:12:58 verbose #13870 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:58 verbose #13871 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:58 verbose #13872 > > │ ### unzip                                                                    │
00:12:58 verbose #13873 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:58 verbose #13874 > >
00:12:58 verbose #13875 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:58 verbose #13876 > > inl unzip list =
00:12:58 verbose #13877 > >     (([[]], [[]]), list)
00:12:58 verbose #13878 > >     ||> listm.fold fun (acc_x, acc_y) (x, y) =>
00:12:58 verbose #13879 > >         x :: acc_x, y :: acc_y
00:12:58 verbose #13880 > >     |> fun x, y =>
00:12:58 verbose #13881 > >         x |> listm.rev, y |> listm.rev
00:12:58 verbose #13882 > 00:12:58   debug #802 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2ed906661c54e10a79be7b7ae9b5600b05ab6dfd80c7975248acbc11aa6e2a7e/main.spi
00:12:59 verbose #13883 > >
00:12:59 verbose #13884 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:59 verbose #13885 > > //// test
00:12:59 verbose #13886 > >
00:12:59 verbose #13887 > > listm.init 10i32 id
00:12:59 verbose #13888 > > |> listm.map (fun x => x, x)
00:12:59 verbose #13889 > > |> unzip
00:12:59 verbose #13890 > > |> fun x, y =>
00:12:59 verbose #13891 > >     x |> sum
00:12:59 verbose #13892 > >     |> _assert_eq 45
00:12:59 verbose #13893 > >
00:12:59 verbose #13894 > >     y |> sum
00:12:59 verbose #13895 > >     |> _assert_eq 45
00:12:59 verbose #13896 > 00:12:58   debug #803 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/77f1c00d88f54ea461a23baef9f89ecd729eb33b7fd1eb4748170efe6bf71abb/main.spi
00:12:59 verbose #13897 > >
00:12:59 verbose #13898 > > ╭─[ 375.37ms - stdout ]────────────────────────────────────────────────────────╮
00:12:59 verbose #13899 > > │ assert_eq / actual: 45 / expected: 45                                        │
00:12:59 verbose #13900 > > │ assert_eq / actual: 45 / expected: 45                                        │
00:12:59 verbose #13901 > > │                                                                              │
00:12:59 verbose #13902 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:59 verbose #13903 > >
00:12:59 verbose #13904 > > ── markdown ────────────────────────────────────────────────────────────────────
00:12:59 verbose #13905 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:12:59 verbose #13906 > > │ ### try_index_of                                                             │
00:12:59 verbose #13907 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:12:59 verbose #13908 > >
00:12:59 verbose #13909 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:12:59 verbose #13910 > > inl try_index_of item list =
00:12:59 verbose #13911 > >     inl rec loop i = function
00:12:59 verbose #13912 > >         | [[]] => None
00:12:59 verbose #13913 > >         | x :: xs =>
00:12:59 verbose #13914 > >             if x = item
00:12:59 verbose #13915 > >             then Some i
00:12:59 verbose #13916 > >             else loop (i + 1) xs
00:12:59 verbose #13917 > >     loop 0 list
00:12:59 verbose #13918 > >
00:12:59 verbose #13919 > > inl index_of item =
00:12:59 verbose #13920 > >     try_index_of item >> optionm.value
00:12:59 verbose #13921 > >
00:12:59 verbose #13922 > > inl try_index_of_ item list =
00:12:59 verbose #13923 > >     let rec loop i = function
00:12:59 verbose #13924 > >         | [[]] => None
00:12:59 verbose #13925 > >         | x :: xs =>
00:12:59 verbose #13926 > >             if x = item
00:12:59 verbose #13927 > >             then Some i
00:12:59 verbose #13928 > >             else loop (i + 1) xs
00:12:59 verbose #13929 > >     loop 0 list
00:12:59 verbose #13930 > >
00:12:59 verbose #13931 > > inl index_of_ item =
00:12:59 verbose #13932 > >     try_index_of_ item >> optionm.value
00:12:59 verbose #13933 > >
00:12:59 verbose #13934 > > inl try_index_of__ item list =
00:12:59 verbose #13935 > >     inl i = mut 0
00:12:59 verbose #13936 > >     inl list = mut list
00:12:59 verbose #13937 > >     inl result = mut None
00:12:59 verbose #13938 > >     let rec loop () =
00:12:59 verbose #13939 > >         match *list with
00:12:59 verbose #13940 > >         | [[]] => result <- None
00:12:59 verbose #13941 > >         | x :: xs =>
00:12:59 verbose #13942 > >             if x = item
00:12:59 verbose #13943 > >             then result <- Some *i
00:12:59 verbose #13944 > >             else
00:12:59 verbose #13945 > >                 i <- *i + 1
00:12:59 verbose #13946 > >                 list <- xs
00:12:59 verbose #13947 > >                 loop ()
00:12:59 verbose #13948 > >     loop ()
00:12:59 verbose #13949 > >     *result
00:12:59 verbose #13950 > >
00:12:59 verbose #13951 > > inl index_of__ item =
00:12:59 verbose #13952 > >     try_index_of__ item >> optionm.value
00:12:59 verbose #13953 > 00:12:59   debug #804 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9410c20181f7476afe2394d55a1a43bb9e0c0b93ef9ab94da6bebd574bdbb1ac/main.spi
00:13:00 verbose #13954 > >
00:13:00 verbose #13955 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:00 verbose #13956 > > //// test
00:13:00 verbose #13957 > >
00:13:00 verbose #13958 > > listm.init 10i32 id
00:13:00 verbose #13959 > > |> index_of 5i32
00:13:00 verbose #13960 > > |> _assert_eq 5i32
00:13:00 verbose #13961 > 00:12:59   debug #805 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2748a0c24e0c5ff6cfc2364d7881e828f3e6484e31a9118c35f31efa43dcedb5/main.spi
00:13:00 verbose #13962 > >
00:13:00 verbose #13963 > > ╭─[ 377.33ms - stdout ]────────────────────────────────────────────────────────╮
00:13:00 verbose #13964 > > │ assert_eq / actual: 5 / expected: 5                                          │
00:13:00 verbose #13965 > > │                                                                              │
00:13:00 verbose #13966 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:00 verbose #13967 > >
00:13:00 verbose #13968 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:00 verbose #13969 > > //// test
00:13:00 verbose #13970 > >
00:13:00 verbose #13971 > > listm.init 10i32 id
00:13:00 verbose #13972 > > |> try_index_of 10i32
00:13:00 verbose #13973 > > |> _assert_eq (None : option i32)
00:13:00 verbose #13974 > 00:12:59   debug #806 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c700ac5e4646093f8d07ccd158e1be1fb43a76fd8d8402f4152eb478f87d2d22/main.spi
00:13:00 verbose #13975 > >
00:13:00 verbose #13976 > > ╭─[ 405.86ms - stdout ]────────────────────────────────────────────────────────╮
00:13:00 verbose #13977 > > │ assert_eq / actual: US0_1 / expected: US0_1                                  │
00:13:00 verbose #13978 > > │                                                                              │
00:13:00 verbose #13979 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:00 verbose #13980 > >
00:13:00 verbose #13981 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:00 verbose #13982 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:00 verbose #13983 > > │ ### try_find                                                                 │
00:13:00 verbose #13984 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:00 verbose #13985 > >
00:13:00 verbose #13986 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:00 verbose #13987 > > inl try_find fn list =
00:13:00 verbose #13988 > >     inl rec loop = function
00:13:00 verbose #13989 > >         | [[]] => None
00:13:00 verbose #13990 > >         | x :: xs =>
00:13:00 verbose #13991 > >             if fn x
00:13:00 verbose #13992 > >             then Some x
00:13:00 verbose #13993 > >             else loop xs
00:13:00 verbose #13994 > >     loop list
00:13:00 verbose #13995 > >
00:13:00 verbose #13996 > > inl try_find_ fn list =
00:13:00 verbose #13997 > >     let rec loop = function
00:13:00 verbose #13998 > >         | [[]] => None
00:13:00 verbose #13999 > >         | x :: xs =>
00:13:00 verbose #14000 > >             if fn x
00:13:00 verbose #14001 > >             then Some x
00:13:00 verbose #14002 > >             else loop xs
00:13:00 verbose #14003 > >     loop list
00:13:01 verbose #14004 > 00:13:00   debug #807 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dfe320ac8ab68776ed36f0bf7fdcc5a87a13f2ea28e1ceb759e2fd90ac65a3c2/main.spi
00:13:01 verbose #14005 > >
00:13:01 verbose #14006 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:01 verbose #14007 > > //// test
00:13:01 verbose #14008 > >
00:13:01 verbose #14009 > > listm.init 10i32 id
00:13:01 verbose #14010 > > |> try_find ((=) 5i32)
00:13:01 verbose #14011 > > |> _assert_eq (Some 5i32)
00:13:01 verbose #14012 > 00:13:00   debug #808 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/da6df0c57eccfd46ec73c74d96f89420d247e56daf27900ab9c909c12444bcf4/main.spi
00:13:01 verbose #14013 > >
00:13:01 verbose #14014 > > ╭─[ 398.29ms - stdout ]────────────────────────────────────────────────────────╮
00:13:01 verbose #14015 > > │ assert_eq / actual: US0_0 5 / expected: US0_0 5                              │
00:13:01 verbose #14016 > > │                                                                              │
00:13:01 verbose #14017 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:01 verbose #14018 > >
00:13:01 verbose #14019 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:01 verbose #14020 > > inl find x =
00:13:01 verbose #14021 > >     try_find x >> optionm.value
00:13:01 verbose #14022 > >
00:13:01 verbose #14023 > > inl find_ x =
00:13:01 verbose #14024 > >     try_find_ x >> optionm.value
00:13:01 verbose #14025 > 00:13:01   debug #809 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a1821aec9fa5e2801b042726b550b210f3fd0f77e057319c773b3280cb11d566/main.spi
00:13:01 verbose #14026 > >
00:13:01 verbose #14027 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:01 verbose #14028 > > //// test
00:13:01 verbose #14029 > >
00:13:01 verbose #14030 > > listm.init 10i32 id
00:13:01 verbose #14031 > > |> find ((=) 5i32)
00:13:01 verbose #14032 > > |> _assert_eq 5i32
00:13:02 verbose #14033 > 00:13:01   debug #810 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/54626bb7db8bf25e66e400bc0b2672653abb74fb28b030403992c48ae3d5e2de/main.spi
00:13:02 verbose #14034 > >
00:13:02 verbose #14035 > > ╭─[ 354.79ms - stdout ]────────────────────────────────────────────────────────╮
00:13:02 verbose #14036 > > │ assert_eq / actual: 5 / expected: 5                                          │
00:13:02 verbose #14037 > > │                                                                              │
00:13:02 verbose #14038 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:02 verbose #14039 > >
00:13:02 verbose #14040 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:02 verbose #14041 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:02 verbose #14042 > > │ ### choose                                                                   │
00:13:02 verbose #14043 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:02 verbose #14044 > >
00:13:02 verbose #14045 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:02 verbose #14046 > > inl choose f l =
00:13:02 verbose #14047 > >     (l, [[]])
00:13:02 verbose #14048 > >     ||> listm.foldBack fun x acc =>
00:13:02 verbose #14049 > >         match f x with
00:13:02 verbose #14050 > >         | Some y => y :: acc
00:13:02 verbose #14051 > >         | None => acc
00:13:02 verbose #14052 > 00:13:01   debug #811 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bc27e102a1774cd3266dc3e0000828fdb7417375f7bf974a23d5f2131a1e54cd/main.spi
00:13:02 verbose #14053 > >
00:13:02 verbose #14054 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:02 verbose #14055 > > //// test
00:13:02 verbose #14056 > >
00:13:02 verbose #14057 > > listm.init 10i32 id
00:13:02 verbose #14058 > > |> choose (fun x => if x % 2 = 0 then Some x else None)
00:13:02 verbose #14059 > > |> _assert_eq [[ 0; 2; 4; 6; 8 ]]
00:13:02 verbose #14060 > 00:13:02   debug #812 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8cba64b56c6f2a47619e841da8cf886d09ad2ea634606f60871d38ddc60ed326/main.spi
00:13:03 verbose #14061 > >
00:13:03 verbose #14062 > > ╭─[ 418.00ms - stdout ]────────────────────────────────────────────────────────╮
00:13:03 verbose #14063 > > │ assert_eq / actual: UH0_1 (0, UH0_1 (2, UH0_1 (4, UH0_1 (6, UH0_1 (8,        │
00:13:03 verbose #14064 > > │ UH0_0))))) / expected: UH0_1 (0, UH0_1 (2, UH0_1 (4, UH0_1 (6, UH0_1 (8,     │
00:13:03 verbose #14065 > > │ UH0_0)))))                                                                   │
00:13:03 verbose #14066 > > │                                                                              │
00:13:03 verbose #14067 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:03 verbose #14068 > >
00:13:03 verbose #14069 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:03 verbose #14070 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:03 verbose #14071 > > │ ### filter                                                                   │
00:13:03 verbose #14072 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:03 verbose #14073 > >
00:13:03 verbose #14074 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:03 verbose #14075 > > inl filter forall t. (fn : t -> bool) (list : list t) : list t =
00:13:03 verbose #14076 > >     (list, Nil)
00:13:03 verbose #14077 > >     ||> listm.foldBack fun x acc =>
00:13:03 verbose #14078 > >         if fn x then x :: acc else acc
00:13:03 verbose #14079 > 00:13:02   debug #813 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7c89e2877f6980ba0b691c887bd82f3505751f120357d2f8ec1196db746a0bec/main.spi
00:13:03 verbose #14080 > >
00:13:03 verbose #14081 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:03 verbose #14082 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:03 verbose #14083 > > │ ### zip_with                                                                 │
00:13:03 verbose #14084 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:03 verbose #14085 > >
00:13:03 verbose #14086 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:03 verbose #14087 > > inl zip_with fn xs ys =
00:13:03 verbose #14088 > >     inl rec loop acc xs ys =
00:13:03 verbose #14089 > >         match xs, ys with
00:13:03 verbose #14090 > >         | Cons (x, xs), Cons (y, ys) =>
00:13:03 verbose #14091 > >             loop (fn x y :: acc) xs ys
00:13:03 verbose #14092 > >         | _ => listm.rev acc
00:13:03 verbose #14093 > >     loop [[]] xs ys
00:13:03 verbose #14094 > >
00:13:03 verbose #14095 > > inl zip_with_ fn xs ys =
00:13:03 verbose #14096 > >     let rec loop acc xs ys =
00:13:03 verbose #14097 > >         match xs, ys with
00:13:03 verbose #14098 > >         | Cons (x, xs), Cons (y, ys) =>
00:13:03 verbose #14099 > >             loop (fn x y :: acc) xs ys
00:13:03 verbose #14100 > >         | _ => listm.rev acc
00:13:03 verbose #14101 > >     loop [[]] xs ys
00:13:03 verbose #14102 > 00:13:02   debug #814 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e72df7220c23bed98ed14a55ce842f6a6aa059186e76dcc7a201a2cfb70ccc8f/main.spi
00:13:03 verbose #14103 > >
00:13:03 verbose #14104 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:03 verbose #14105 > > //// test
00:13:03 verbose #14106 > >
00:13:03 verbose #14107 > > ([[ 1i32; 2; 3 ]], [[ 4; 5; 6 ]])
00:13:03 verbose #14108 > > ||> zip_with (+)
00:13:03 verbose #14109 > > |> _assert_eq [[ 5; 7; 9 ]]
00:13:03 verbose #14110 > 00:13:03   debug #815 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/14da4286ed89be4b37a7c48e1ca86e8e63672fe3918696599958ade30b811e54/main.spi
00:13:04 verbose #14111 > >
00:13:04 verbose #14112 > > ╭─[ 485.65ms - stdout ]────────────────────────────────────────────────────────╮
00:13:04 verbose #14113 > > │ assert_eq / actual: UH0_1 (5, UH0_1 (7, UH0_1 (9, UH0_0))) / expected: UH0_1 │
00:13:04 verbose #14114 > > │ (5, UH0_1 (7, UH0_1 (9, UH0_0)))                                             │
00:13:04 verbose #14115 > > │                                                                              │
00:13:04 verbose #14116 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:04 verbose #14117 > >
00:13:04 verbose #14118 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:04 verbose #14119 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:04 verbose #14120 > > │ ### zip                                                                      │
00:13:04 verbose #14121 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:04 verbose #14122 > >
00:13:04 verbose #14123 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:04 verbose #14124 > > inl zip xs ys =
00:13:04 verbose #14125 > >     zip_with pair xs ys
00:13:04 verbose #14126 > >
00:13:04 verbose #14127 > > inl zip_ xs ys =
00:13:04 verbose #14128 > >     zip_with_ pair xs ys
00:13:04 verbose #14129 > 00:13:03   debug #816 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e2e0f7f80191515ef21f7a5c0e07187fac8a46ed7f0131c404cd85aa1893c5f3/main.spi
00:13:04 verbose #14130 > >
00:13:04 verbose #14131 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:04 verbose #14132 > > //// test
00:13:04 verbose #14133 > >
00:13:04 verbose #14134 > > ([[ 1i32; 2; 3 ]], [[ 4i32; 5; 6 ]])
00:13:04 verbose #14135 > > ||> zip
00:13:04 verbose #14136 > > |> _assert_eq [[ 1, 4; 2, 5; 3, 6 ]]
00:13:04 verbose #14137 > 00:13:04   debug #817 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2092e6581b1b53dae5464546f30538c71f315e378806230ffed6e6ce63a07381/main.spi
00:13:05 verbose #14138 > >
00:13:05 verbose #14139 > > ╭─[ 439.15ms - stdout ]────────────────────────────────────────────────────────╮
00:13:05 verbose #14140 > > │ assert_eq / actual: UH0_1 (1, 4, UH0_1 (2, 5, UH0_1 (3, 6, UH0_0))) /        │
00:13:05 verbose #14141 > > │ expected: UH0_1 (1, 4, UH0_1 (2, 5, UH0_1 (3, 6, UH0_0)))                    │
00:13:05 verbose #14142 > > │                                                                              │
00:13:05 verbose #14143 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:05 verbose #14144 > >
00:13:05 verbose #14145 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:05 verbose #14146 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:05 verbose #14147 > > │ ### indexed                                                                  │
00:13:05 verbose #14148 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:05 verbose #14149 > >
00:13:05 verbose #14150 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:05 verbose #14151 > > inl indexed list =
00:13:05 verbose #14152 > >     (([[]], 0), list)
00:13:05 verbose #14153 > >     ||> listm.fold fun (acc, i) x =>
00:13:05 verbose #14154 > >         (i, x) :: acc, i + 1
00:13:05 verbose #14155 > >     |> fst
00:13:05 verbose #14156 > >     |> listm.rev
00:13:05 verbose #14157 > 00:13:04   debug #818 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7790cdd4e704a1546e4155eaa513eb2684859039b9eca39bc7a542285c21f6de/main.spi
00:13:05 verbose #14158 > >
00:13:05 verbose #14159 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:05 verbose #14160 > > //// test
00:13:05 verbose #14161 > >
00:13:05 verbose #14162 > > listm.init 5i32 ((*) 2)
00:13:05 verbose #14163 > > |> indexed
00:13:05 verbose #14164 > > |> _assert_eq [[ 0i32, 0; 1, 2; 2, 4; 3, 6; 4, 8 ]]
00:13:05 verbose #14165 > 00:13:04   debug #819 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/48b8239b3a9a61573ff10c54c56cae3352a51b0dd7ae36fb43851fec470b97f4/main.spi
00:13:05 verbose #14166 > >
00:13:05 verbose #14167 > > ╭─[ 436.34ms - stdout ]────────────────────────────────────────────────────────╮
00:13:05 verbose #14168 > > │ assert_eq / actual: UH0_1 (0, 0, UH0_1 (1, 2, UH0_1 (2, 4, UH0_1 (3, 6,      │
00:13:05 verbose #14169 > > │ UH0_1 (4, 8, UH0_0))))) / expected: UH0_1 (0, 0, UH0_1 (1, 2, UH0_1 (2, 4,   │
00:13:05 verbose #14170 > > │ UH0_1 (3, 6, UH0_1 (4, 8, UH0_0)))))                                         │
00:13:05 verbose #14171 > > │                                                                              │
00:13:05 verbose #14172 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:05 verbose #14173 > >
00:13:05 verbose #14174 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:05 verbose #14175 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:05 verbose #14176 > > │ ### group_by                                                                 │
00:13:05 verbose #14177 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:05 verbose #14178 > >
00:13:05 verbose #14179 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:05 verbose #14180 > > inl group_by fn list =
00:13:05 verbose #14181 > >     (list, [[]])
00:13:05 verbose #14182 > >     ||> listm.foldBack fun x acc =>
00:13:05 verbose #14183 > >         inl xk = fn x
00:13:05 verbose #14184 > >         inl found, new_acc =
00:13:05 verbose #14185 > >             ((false, [[]]), acc)
00:13:05 verbose #14186 > >             ||> listm.fold fun (found, acc') (k, xs) =>
00:13:05 verbose #14187 > >                 if k = xk
00:13:05 verbose #14188 > >                 then true, (k, x :: xs) :: acc'
00:13:05 verbose #14189 > >                 else found, (k, xs) :: acc'
00:13:05 verbose #14190 > >         if found
00:13:05 verbose #14191 > >         then new_acc
00:13:05 verbose #14192 > >         else (xk, [[ x ]]) :: new_acc
00:13:05 verbose #14193 > 00:13:05   debug #820 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/195e6ad65fcb0882a9afd68cf1e99a00f941af283e8ec6d9b56f501a381b5d13/main.spi
00:13:06 verbose #14194 > >
00:13:06 verbose #14195 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:06 verbose #14196 > > //// test
00:13:06 verbose #14197 > >
00:13:06 verbose #14198 > > listm.init 10i32 id
00:13:06 verbose #14199 > > |> group_by (fun x => x % 2 = 0)
00:13:06 verbose #14200 > > |> _assert_eq [[ true, [[ 0; 2; 4; 6; 8 ]]; false, [[ 1; 3; 5; 7; 9 ]] ]]
00:13:06 verbose #14201 > 00:13:05   debug #821 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/92a891871c62ff507482306f406c9ffc02859257b9f695f5f880f829e2aa625c/main.spi
00:13:06 verbose #14202 > >
00:13:06 verbose #14203 > > ╭─[ 486.32ms - stdout ]────────────────────────────────────────────────────────╮
00:13:06 verbose #14204 > > │ assert_eq / actual: UH1_1                                                    │
00:13:06 verbose #14205 > > │   (true, UH0_1 (0, UH0_1 (2, UH0_1 (4, UH0_1 (6, UH0_1 (8, UH0_0))))),       │
00:13:06 verbose #14206 > > │    UH1_1                                                                     │
00:13:06 verbose #14207 > > │      (false, UH0_1 (1, UH0_1 (3, UH0_1 (5, UH0_1 (7, UH0_1 (9, UH0_0))))),   │
00:13:06 verbose #14208 > > │ UH1_0)) / expected: UH1_1                                                    │
00:13:06 verbose #14209 > > │   (true, UH0_1 (0, UH0_1 (2, UH0_1 (4, UH0_1 (6, UH0_1 (8, UH0_0))))),       │
00:13:06 verbose #14210 > > │    UH1_1                                                                     │
00:13:06 verbose #14211 > > │      (false, UH0_1 (1, UH0_1 (3, UH0_1 (5, UH0_1 (7, UH0_1 (9, UH0_0))))),   │
00:13:06 verbose #14212 > > │ UH1_0))                                                                      │
00:13:06 verbose #14213 > > │                                                                              │
00:13:06 verbose #14214 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:06 verbose #14215 > >
00:13:06 verbose #14216 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:06 verbose #14217 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:06 verbose #14218 > > │ ### forall'                                                                  │
00:13:06 verbose #14219 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:06 verbose #14220 > >
00:13:06 verbose #14221 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:06 verbose #14222 > > inl forall' fn (head :: tail) =
00:13:06 verbose #14223 > >     (true, tail)
00:13:06 verbose #14224 > >     ||> listm.fold fun acc x =>
00:13:06 verbose #14225 > >         acc && x = head
00:13:06 verbose #14226 > 00:13:06   debug #822 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4b9d2d1ff5bfcf87f01a2aa0cc43982fe88fd6c85f7f968c30b142c45aa2fe98/main.spi
00:13:06 verbose #14227 > >
00:13:06 verbose #14228 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:06 verbose #14229 > > //// test
00:13:06 verbose #14230 > >
00:13:06 verbose #14231 > > [[ 1i32; 1; 1; 1; 1 ]]
00:13:06 verbose #14232 > > |> forall' ((=) 1i32)
00:13:06 verbose #14233 > > |> _assert_eq true
00:13:07 verbose #14234 > 00:13:06   debug #823 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1e274c07f1e0d30263eae35dd53ecdf071733f2fd87bc4bb66ca415ff91bb91e/main.spi
00:13:07 verbose #14235 > >
00:13:07 verbose #14236 > > ╭─[ 425.34ms - stdout ]────────────────────────────────────────────────────────╮
00:13:07 verbose #14237 > > │ assert_eq / actual: true / expected: true                                    │
00:13:07 verbose #14238 > > │                                                                              │
00:13:07 verbose #14239 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:07 verbose #14240 > >
00:13:07 verbose #14241 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:07 verbose #14242 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:07 verbose #14243 > > │ ### last                                                                     │
00:13:07 verbose #14244 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:07 verbose #14245 > >
00:13:07 verbose #14246 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:07 verbose #14247 > > inl last list =
00:13:07 verbose #14248 > >     list
00:13:07 verbose #14249 > >     |> listm.rev
00:13:07 verbose #14250 > >     |> item 0i32
00:13:07 verbose #14251 > 00:13:06   debug #824 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b818ebef9e709fa2747c8affd06d9e430875f66132f7e3656a1942ee4293cc8f/main.spi
00:13:07 verbose #14252 > >
00:13:07 verbose #14253 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:07 verbose #14254 > > //// test
00:13:07 verbose #14255 > >
00:13:07 verbose #14256 > > listm.init 10i32 id
00:13:07 verbose #14257 > > |> last
00:13:07 verbose #14258 > > |> _assert_eq 9
00:13:07 verbose #14259 > 00:13:07   debug #825 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ba6754a77758facec97723b3d569d9109cb6015ecd9d9efec438e2a95c6ec886/main.spi
00:13:08 verbose #14260 > >
00:13:08 verbose #14261 > > ╭─[ 357.96ms - stdout ]────────────────────────────────────────────────────────╮
00:13:08 verbose #14262 > > │ assert_eq / actual: 9 / expected: 9                                          │
00:13:08 verbose #14263 > > │                                                                              │
00:13:08 verbose #14264 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:08 verbose #14265 > >
00:13:08 verbose #14266 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:08 verbose #14267 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:08 verbose #14268 > > │ ### try_pick                                                                 │
00:13:08 verbose #14269 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:08 verbose #14270 > >
00:13:08 verbose #14271 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:08 verbose #14272 > > inl try_pick fn list =
00:13:08 verbose #14273 > >     inl rec body fn = function
00:13:08 verbose #14274 > >         | [[]] => None
00:13:08 verbose #14275 > >         | x :: xs =>
00:13:08 verbose #14276 > >             match fn x with
00:13:08 verbose #14277 > >             | Some y => Some y
00:13:08 verbose #14278 > >             | None => loop xs
00:13:08 verbose #14279 > >     and inl loop list =
00:13:08 verbose #14280 > >         if var_is list |> not
00:13:08 verbose #14281 > >         then body fn list
00:13:08 verbose #14282 > >         else
00:13:08 verbose #14283 > >             inl fn = join fn
00:13:08 verbose #14284 > >             inl list = dyn list
00:13:08 verbose #14285 > >             join body fn list
00:13:08 verbose #14286 > >     loop list
00:13:08 verbose #14287 > 00:13:07   debug #826 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/44699bcd3e14dfe2949bedb41b2099f064971d5ef69c22fc0470e7880cde34fb/main.spi
00:13:08 verbose #14288 > >
00:13:08 verbose #14289 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:08 verbose #14290 > > //// test
00:13:08 verbose #14291 > >
00:13:08 verbose #14292 > > listm.init 10i32 id
00:13:08 verbose #14293 > > |> try_pick (fun x => if x = 5i32 then Some x else None)
00:13:08 verbose #14294 > > |> _assert_eq (Some 5i32)
00:13:08 verbose #14295 > 00:13:08   debug #827 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9e412b3deeacf64930140305b47ade398b853cf7bbec13c5a887858e63195a59/main.spi
00:13:08 verbose #14296 > >
00:13:08 verbose #14297 > > ╭─[ 425.94ms - stdout ]────────────────────────────────────────────────────────╮
00:13:08 verbose #14298 > > │ assert_eq / actual: US0_0 5 / expected: US0_0 5                              │
00:13:08 verbose #14299 > > │                                                                              │
00:13:08 verbose #14300 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:08 verbose #14301 > >
00:13:08 verbose #14302 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:08 verbose #14303 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:08 verbose #14304 > > │ ### exists'                                                                  │
00:13:08 verbose #14305 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:08 verbose #14306 > >
00:13:08 verbose #14307 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:08 verbose #14308 > > inl exists' f x =
00:13:08 verbose #14309 > >     inl length_x : i64 = x |> listm.length
00:13:08 verbose #14310 > >     let rec loop i =
00:13:08 verbose #14311 > >         if i >= length_x
00:13:08 verbose #14312 > >         then false
00:13:08 verbose #14313 > >         elif x |> item i |> f
00:13:08 verbose #14314 > >         then true
00:13:08 verbose #14315 > >         else loop (i + 1)
00:13:08 verbose #14316 > >     loop 0
00:13:09 verbose #14317 > 00:13:08   debug #828 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ac298a668672d93f64eb8e9ffca419fec4833723f905c1644e1737c9dce3573d/main.spi
00:13:09 verbose #14318 > >
00:13:09 verbose #14319 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:09 verbose #14320 > > //// test
00:13:09 verbose #14321 > >
00:13:09 verbose #14322 > > [[ 'a'; 'b'; 'c' ]]
00:13:09 verbose #14323 > > |> exists' fun x => x = 'b'
00:13:09 verbose #14324 > > |> _assert_eq true
00:13:09 verbose #14325 > >
00:13:09 verbose #14326 > > [[ 'a'; 'b' ]]
00:13:09 verbose #14327 > > |> exists' fun x => x = 'c'
00:13:09 verbose #14328 > > |> _assert_eq false
00:13:09 verbose #14329 > >
00:13:09 verbose #14330 > > [[]]
00:13:09 verbose #14331 > > |> exists' fun x => x = 'a'
00:13:09 verbose #14332 > > |> _assert_eq false
00:13:09 verbose #14333 > 00:13:08   debug #829 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9c5445379b3e3455f365331f6d0ba17fb6e14aad833a707aa55760256d6653dd/main.spi
00:13:09 verbose #14334 > >
00:13:09 verbose #14335 > > ╭─[ 462.04ms - stdout ]────────────────────────────────────────────────────────╮
00:13:09 verbose #14336 > > │ assert_eq / actual: true / expected: true                                    │
00:13:09 verbose #14337 > > │ assert_eq / actual: false / expected: false                                  │
00:13:09 verbose #14338 > > │ assert_eq / actual: false / expected: false                                  │
00:13:09 verbose #14339 > > │                                                                              │
00:13:09 verbose #14340 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:09 verbose #14341 > >
00:13:09 verbose #14342 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:09 verbose #14343 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:09 verbose #14344 > > │ ## fsharp                                                                    │
00:13:09 verbose #14345 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:09 verbose #14346 > >
00:13:09 verbose #14347 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:09 verbose #14348 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:09 verbose #14349 > > │ ### list'                                                                    │
00:13:09 verbose #14350 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:09 verbose #14351 > >
00:13:09 verbose #14352 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:09 verbose #14353 > > nominal list' t = $"backend_switch `({ Fsharp : $'`t list'; Python :
00:13:09 verbose #14354 > > $'List[[`t]]' })"
00:13:09 verbose #14355 > 00:13:09   debug #830 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cc41ed68f166c8007ab7e930b199a9f0376a0d8b7220eef3fadee76cf688923b/main.spi
00:13:10 verbose #14356 > >
00:13:10 verbose #14357 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:10 verbose #14358 > > inl empty' forall t. () : list' t =
00:13:10 verbose #14359 > >     $'[[]]'
00:13:10 verbose #14360 > 00:13:09   debug #831 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4228352ff945d47ad00895cc766c80681c03fafb00fbff735a6baf3db88b291c/main.spi
00:13:10 verbose #14361 > >
00:13:10 verbose #14362 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:10 verbose #14363 > > inl cons' forall t. (head : t) (tail : list' t) : list' t =
00:13:10 verbose #14364 > >     backend_switch {
00:13:10 verbose #14365 > >         Fsharp = fun () => $'!head :: !tail ' : list' t
00:13:10 verbose #14366 > >         Python = fun () =>
00:13:10 verbose #14367 > >             $'!tail.insert(0, !head)'
00:13:10 verbose #14368 > >             $'!tail ' : list' t
00:13:10 verbose #14369 > >     }
00:13:10 verbose #14370 > 00:13:09   debug #832 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/51124402b26b82a57afc07366f5a9c8c41df375cb4713a1e59655bd6965bd02e/main.spi
00:13:10 verbose #14371 > >
00:13:10 verbose #14372 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:10 verbose #14373 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:10 verbose #14374 > > │ ### box                                                                      │
00:13:10 verbose #14375 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:10 verbose #14376 > >
00:13:10 verbose #14377 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:10 verbose #14378 > > inl box forall t. (list : list t) : list' t =
00:13:10 verbose #14379 > >     (list, empty' ())
00:13:10 verbose #14380 > >     ||> listm.foldBack fun x acc =>
00:13:10 verbose #14381 > >         acc |> cons' x
00:13:11 verbose #14382 > 00:13:10   debug #833 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/35ab1849b21ae783fc28309cce0eccbaac352daf4df53b1259fe24c6fb12b11b/main.spi
00:13:11 verbose #14383 > >
00:13:11 verbose #14384 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:11 verbose #14385 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:11 verbose #14386 > > │ ### fold'                                                                    │
00:13:11 verbose #14387 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:11 verbose #14388 > >
00:13:11 verbose #14389 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:11 verbose #14390 > > inl fold' forall t u. (fn : t -> u) (init : list u) (list : list' t) : list u =
00:13:11 verbose #14391 > >     backend_switch {
00:13:11 verbose #14392 > >         Fsharp = fun () =>
00:13:11 verbose #14393 > >             (init, list)
00:13:11 verbose #14394 > >             ||> $'List.fold' join fun acc x => Cons (fn x, acc)
00:13:11 verbose #14395 > >             : list u
00:13:11 verbose #14396 > >         Python = fun () =>
00:13:11 verbose #14397 > >             $'x = !init '
00:13:11 verbose #14398 > >             $'for x in !list: x = !fn(x)'
00:13:11 verbose #14399 > >             $'x' : list u
00:13:11 verbose #14400 > >     }
00:13:11 verbose #14401 > 00:13:10   debug #834 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/41eed85454897c606d69ab05d696a6e8eaa1e5d47028a65daa36c12b72a4c57b/main.spi
00:13:11 verbose #14402 > >
00:13:11 verbose #14403 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:11 verbose #14404 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:11 verbose #14405 > > │ ### fold_back'                                                               │
00:13:11 verbose #14406 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:11 verbose #14407 > >
00:13:11 verbose #14408 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:11 verbose #14409 > > inl fold_back' forall t u. (fn : t -> u) (list : list' t) (init : list u) : list
00:13:11 verbose #14410 > > u =
00:13:11 verbose #14411 > >     backend_switch {
00:13:11 verbose #14412 > >         Fsharp = fun () =>
00:13:11 verbose #14413 > >             (list, init)
00:13:11 verbose #14414 > >             ||> $'List.foldBack' join fun x acc => Cons (fn x, acc)
00:13:11 verbose #14415 > >             : list u
00:13:11 verbose #14416 > >         Python = fun () =>
00:13:11 verbose #14417 > >             $'x = !init '
00:13:11 verbose #14418 > >             $'for x in reversed(!list): x = !fn(x)'
00:13:11 verbose #14419 > >             $'x' : list u
00:13:11 verbose #14420 > >     }
00:13:11 verbose #14421 > 00:13:11   debug #835 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b5ba365603ae86a2e4752c6bec5c8755597c68e2e4492e12fe6e9650c66f4682/main.spi
00:13:12 verbose #14422 > >
00:13:12 verbose #14423 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:12 verbose #14424 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:12 verbose #14425 > > │ ### filter'                                                                  │
00:13:12 verbose #14426 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:12 verbose #14427 > >
00:13:12 verbose #14428 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:12 verbose #14429 > > inl filter' forall t. (fn : t -> bool) (list : list' t) : list' t =
00:13:12 verbose #14430 > >     backend_switch {
00:13:12 verbose #14431 > >         Fsharp = fun () => list |> $'"List.filter !fn"' : list' t
00:13:12 verbose #14432 > >         Python = fun () => $'list(filter(!fn, !list))' : list' t
00:13:12 verbose #14433 > >     }
00:13:12 verbose #14434 > 00:13:11   debug #836 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/519d116cfb210de81a8d77b9265008d585244714099a9c4249297fd49bb72c3f/main.spi
00:13:12 verbose #14435 > >
00:13:12 verbose #14436 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:12 verbose #14437 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:12 verbose #14438 > > │ ### map                                                                      │
00:13:12 verbose #14439 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:12 verbose #14440 > >
00:13:12 verbose #14441 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:12 verbose #14442 > > inl map forall t u. (fn : t -> u) (list : list' t) : list' u =
00:13:12 verbose #14443 > >     backend_switch {
00:13:12 verbose #14444 > >         Fsharp = fun () => list |> $'List.map' fn : list' u
00:13:12 verbose #14445 > >         Python = fun () => $'list(map(!fn, !list))' : list' u
00:13:12 verbose #14446 > >     }
00:13:12 verbose #14447 > 00:13:11   debug #837 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/999b4a8a741111821ee91ab04f56cb357cf8c4974c9beaa0e450825e5a3cef55/main.spi
00:13:12 verbose #14448 > >
00:13:12 verbose #14449 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:12 verbose #14450 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:12 verbose #14451 > > │ ### unbox                                                                    │
00:13:12 verbose #14452 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:12 verbose #14453 > >
00:13:12 verbose #14454 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:12 verbose #14455 > > inl unbox forall t. (list : list' t) : list t =
00:13:12 verbose #14456 > >     (list, Nil)
00:13:12 verbose #14457 > >     ||> fold_back' id
00:13:12 verbose #14458 > 00:13:12   debug #838 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/259beec62d897679f5f2d7bfbc413aeb2ba147c53575a2ce4b572e2f3f8cb111/main.spi
00:13:13 verbose #14459 > >
00:13:13 verbose #14460 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:13 verbose #14461 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:13 verbose #14462 > > │ ### distinct'                                                                │
00:13:13 verbose #14463 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:13 verbose #14464 > >
00:13:13 verbose #14465 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:13 verbose #14466 > > inl distinct' forall t. (list : list' t) : list' t =
00:13:13 verbose #14467 > >     backend_switch {
00:13:13 verbose #14468 > >         Fsharp = fun () => list |> $'List.distinct' : list' t
00:13:13 verbose #14469 > >         Python = fun () => $'list(set(!list))' : list' t
00:13:13 verbose #14470 > >     }
00:13:13 verbose #14471 > 00:13:12   debug #839 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5ea3172eca6510064925eb2bb736f43799fbd09049af3faedddd2d6b654a73fd/main.spi
00:13:13 verbose #14472 > >
00:13:13 verbose #14473 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:13 verbose #14474 > > //// test
00:13:13 verbose #14475 > >
00:13:13 verbose #14476 > > [[ "1"; "2"; "2"; "3" ]]
00:13:13 verbose #14477 > > |> box
00:13:13 verbose #14478 > > |> distinct'
00:13:13 verbose #14479 > > |> unbox
00:13:13 verbose #14480 > > |> _assert_eq [[ "1"; "2"; "3" ]]
00:13:13 verbose #14481 > 00:13:13   debug #840 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/08b005aedc9eba44762be4f5a7e9c4527a2d911f59a9715ababb2e08c0636a9d/main.spi
00:13:14 verbose #14482 > >
00:13:14 verbose #14483 > > ╭─[ 576.24ms - stdout ]────────────────────────────────────────────────────────╮
00:13:14 verbose #14484 > > │ assert_eq / actual: UH0_1 ("1", UH0_1 ("2", UH0_1 ("3", UH0_0))) / expected: │
00:13:14 verbose #14485 > > │ UH0_1 ("1", UH0_1 ("2", UH0_1 ("3", UH0_0)))                                 │
00:13:14 verbose #14486 > > │                                                                              │
00:13:14 verbose #14487 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:14 verbose #14488 > >
00:13:14 verbose #14489 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:14 verbose #14490 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:14 verbose #14491 > > │ ### to_array'                                                                │
00:13:14 verbose #14492 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:14 verbose #14493 > >
00:13:14 verbose #14494 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:14 verbose #14495 > > inl to_array' forall t. (items : list' t) : array_base t =
00:13:14 verbose #14496 > >     backend_switch {
00:13:14 verbose #14497 > >         Fsharp = fun () => items |> $'List.toArray' : array_base t
00:13:14 verbose #14498 > >         Python = fun () => $'cp.array(!items)' : array_base t
00:13:14 verbose #14499 > >     }
00:13:14 verbose #14500 > 00:13:13   debug #841 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9fa875c208245b60c0430c5074806f3035b1b924967cc598429aaf4ecbee6017/main.spi
00:13:14 verbose #14501 > 00:00:29 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 32996 }
00:13:14 verbose #14502 > 00:00:29   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/listm'.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/listm'.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:13:17 verbose #14503 > 00:00:31 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/listm'.dib.ipynb to html
00:13:17 verbose #14504 > 00:00:31 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:13:17 verbose #14505 > 00:00:31 verbose #7 !   validate(nb)
00:13:19 verbose #14506 > 00:00:33 verbose #8 ! [NbConvertApp] Writing 380323 bytes to c:\home\git\polyglot\lib\spiral\listm'.dib.html
00:13:19 verbose #14507 > 00:00:34 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 643 }
00:13:19 verbose #14508 > 00:00:34   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 643 }
00:13:19 verbose #14509 > 00:00:34   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/listm''.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/listm''.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:13:20 verbose #14510 > 00:00:35 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:13:20 verbose #14511 > 00:00:35   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:13:21 verbose #14512 > 00:00:36   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 33698 }
00:13:21   debug #14513 runtime.execute_with_options_async / { exit_code = 0; output_length = 37869 }
00:13:21   debug #19 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path listm'.dib --retries 3
00:13:21   debug #14514 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path reflection.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:13:21 verbose #14515 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "reflection.dib", "--retries", "3"])) }
00:13:21 verbose #14516 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/reflection.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/reflection.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/reflection.dib" --output-path "c:/home/git/polyglot/lib/spiral/reflection.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:13:23 verbose #14517 > >
00:13:23 verbose #14518 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:23 verbose #14519 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:23 verbose #14520 > > │ # reflection                                                                 │
00:13:23 verbose #14521 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:27 verbose #14522 > >
00:13:27 verbose #14523 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:27 verbose #14524 > > //// test
00:13:27 verbose #14525 > >
00:13:27 verbose #14526 > > open testing
00:13:28 verbose #14527 > 00:13:27   debug #842 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7845de436c12d0ca65282fe0cd65832468ca943e72feba50e6b1bb441e251a/main.spi
00:13:28 verbose #14528 > >
00:13:28 verbose #14529 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:28 verbose #14530 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:28 verbose #14531 > > │ ## reflection                                                                │
00:13:28 verbose #14532 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:28 verbose #14533 > >
00:13:28 verbose #14534 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:28 verbose #14535 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:28 verbose #14536 > > │ ### get_union_fields                                                         │
00:13:28 verbose #14537 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:28 verbose #14538 > >
00:13:28 verbose #14539 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:28 verbose #14540 > > inl get_union_fields forall union_type. () : list (string * union_type) =
00:13:28 verbose #14541 > >     real
00:13:28 verbose #14542 > >         real_core.union_to_record
00:13:28 verbose #14543 > >             `union_type
00:13:28 verbose #14544 > >             forall union_record_type. =>
00:13:28 verbose #14545 > >                 real_core.record_type_fold
00:13:28 verbose #14546 > >                     fun acc key =>
00:13:28 verbose #14547 > >                         forall value. =>
00:13:28 verbose #14548 > >                             inl item = real_core.nominal_create `union_type
00:13:28 verbose #14549 > > (key, ())
00:13:28 verbose #14550 > >                             inl key' = real_sm'.symbol_to_string `(`key)
00:13:28 verbose #14551 > >                             (::) `(string * union_type) (key', item) acc
00:13:28 verbose #14552 > >                     (Nil `(string * union_type))
00:13:28 verbose #14553 > >                     `union_record_type
00:13:28 verbose #14554 > 00:13:28   debug #843 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/474e08872511d8605cecc2e70a6243211a296a51fc1796f350e312a4756c3e8d/main.spi
00:13:28 verbose #14555 > >
00:13:28 verbose #14556 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:28 verbose #14557 > > //// test
00:13:28 verbose #14558 > > ///! fsharp
00:13:28 verbose #14559 > > ///! rust
00:13:28 verbose #14560 > > ///! typescript
00:13:28 verbose #14561 > > ///! python
00:13:28 verbose #14562 > >
00:13:28 verbose #14563 > > get_union_fields ()
00:13:28 verbose #14564 > > |> listm'.box
00:13:28 verbose #14565 > > |> listm'.to_array'
00:13:28 verbose #14566 > > |> a
00:13:28 verbose #14567 > > |> am'.sort_by snd
00:13:28 verbose #14568 > > |> fun (a x : _ int _) => x
00:13:28 verbose #14569 > > |> _assert_eq' ;[[ "Native", Native; "Wasm", Wasm; "Contract", Contract ]]
00:13:29 verbose #14570 > 00:13:28   debug #844 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d42090b14173d4e442559e63aa331b7dd7157da039e8c170aa077a82766775c5/main.spi
00:13:34 verbose #14571 > >
00:13:34 verbose #14572 > > ╭─[ 5.75s - return value ]─────────────────────────────────────────────────────╮
00:13:34 verbose #14573 > > │ .rs output:                                                                  │
00:13:34 verbose #14574 > > │ assert_eq' / actual: Array(MutCell([("Native", US0_0), ("Wasm", US0_1),      │
00:13:34 verbose #14575 > > │ ("Contract", US0_2)])) / expected: Array(MutCell([("Native", US0_0),         │
00:13:34 verbose #14576 > > │ ("Wasm", US0_1), ("Contract", US0_2)]))                                      │
00:13:34 verbose #14577 > > │                                                                              │
00:13:34 verbose #14578 > > │ .ts output:                                                                  │
00:13:34 verbose #14579 > > │ assert_eq' / actual: Native,US0_0,Wasm,US0_1,Contract,US0_2 / expected:      │
00:13:34 verbose #14580 > > │ Native,US0_0,Wasm,US0_1,Contract,US0_2                                       │
00:13:34 verbose #14581 > > │                                                                              │
00:13:34 verbose #14582 > > │ .py output:                                                                  │
00:13:34 verbose #14583 > > │ assert_eq' / actual: [('Native', US0_0), ('Wasm', US0_1), ('Contract',       │
00:13:34 verbose #14584 > > │ US0_2)] / expected: [('Native', US0_0), ('Wasm', US0_1), ('Contract',        │
00:13:34 verbose #14585 > > │ US0_2)]                                                                      │
00:13:34 verbose #14586 > > │                                                                              │
00:13:34 verbose #14587 > > │                                                                              │
00:13:34 verbose #14588 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:34 verbose #14589 > >
00:13:34 verbose #14590 > > ╭─[ 5.76s - stdout ]───────────────────────────────────────────────────────────╮
00:13:34 verbose #14591 > > │ .fsx output:                                                                 │
00:13:34 verbose #14592 > > │ assert_eq' / actual: [|struct ("Native", US0_0); struct ("Wasm", US0_1);     │
00:13:34 verbose #14593 > > │ struct ("Contract", US0_2)|] / expected: [|struct ("Native", US0_0); struct  │
00:13:34 verbose #14594 > > │ ("Wasm", US0_1); struct ("Contract", US0_2)|]                                │
00:13:34 verbose #14595 > > │                                                                              │
00:13:34 verbose #14596 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:34 verbose #14597 > >
00:13:34 verbose #14598 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:34 verbose #14599 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:34 verbose #14600 > > │ ### get_union_fields_untag                                                   │
00:13:34 verbose #14601 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:34 verbose #14602 > >
00:13:34 verbose #14603 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:34 verbose #14604 > > inl get_union_fields_untag forall union_type. () : list (string * union_type) =
00:13:34 verbose #14605 > >     real
00:13:34 verbose #14606 > >         real_core.union_to_record
00:13:34 verbose #14607 > >             `union_type
00:13:34 verbose #14608 > >             forall union_record_type. =>
00:13:34 verbose #14609 > >                 inl result =
00:13:34 verbose #14610 > >                     real_core.record_type_fold_back
00:13:34 verbose #14611 > >                         fun _key =>
00:13:34 verbose #14612 > >                             forall value. (acc, (i : i32)) =>
00:13:34 verbose #14613 > >                                 inl key, item : (string * union_type) =
00:13:34 verbose #14614 > >                                     real_core.union_untag `union_type i
00:13:34 verbose #14615 > >                                         (fun key => forall value. =>
00:13:34 verbose #14616 > >                                             inl key' = real_sm'.symbol_to_string
00:13:34 verbose #14617 > > `(`key)
00:13:34 verbose #14618 > >                                             key', real_core.nominal_create
00:13:34 verbose #14619 > > `union_type (key, ())
00:13:34 verbose #14620 > >                                         )
00:13:34 verbose #14621 > >                                         (fun _ => failwith `(string *
00:13:34 verbose #14622 > > union_type) "reflection.get_union_fields_untag / invalid tag")
00:13:34 verbose #14623 > >                                 (::) `(string * union_type) (key, item) acc, (+)
00:13:34 verbose #14624 > > `i32 i 1
00:13:34 verbose #14625 > >                         `union_record_type
00:13:34 verbose #14626 > >                         (Nil `(string * union_type), 0i32)
00:13:34 verbose #14627 > >                 inl result = fst `(list (string * union_type)) `i32 result
00:13:34 verbose #14628 > >                 listm.rev `(string * union_type) result
00:13:34 verbose #14629 > 00:13:34   debug #845 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/30fc8ba0cbe8a8d0c80c1b9253d11db0a622ab536855196661a7228160bafa9c/main.spi
00:13:35 verbose #14630 > >
00:13:35 verbose #14631 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:35 verbose #14632 > > //// test
00:13:35 verbose #14633 > > ///! fsharp
00:13:35 verbose #14634 > > ///! rust
00:13:35 verbose #14635 > > ///! typescript
00:13:35 verbose #14636 > > ///! python
00:13:35 verbose #14637 > >
00:13:35 verbose #14638 > > get_union_fields_untag ()
00:13:35 verbose #14639 > > |> listm'.box
00:13:35 verbose #14640 > > |> listm'.to_array'
00:13:35 verbose #14641 > > |> _assert_eq' ;[[ "Native", Native; "Wasm", Wasm; "Contract", Contract ]]
00:13:35 verbose #14642 > 00:13:34   debug #846 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a1f0be2c27f87e69454bb0543b3734a2e01daab0d5642138f66fa69c5060f1db/main.spi
00:13:39 verbose #14643 > >
00:13:39 verbose #14644 > > ╭─[ 4.28s - return value ]─────────────────────────────────────────────────────╮
00:13:39 verbose #14645 > > │ .rs output:                                                                  │
00:13:39 verbose #14646 > > │ assert_eq' / actual: Array(MutCell([("Native", US0_0), ("Wasm", US0_1),      │
00:13:39 verbose #14647 > > │ ("Contract", US0_2)])) / expected: Array(MutCell([("Native", US0_0),         │
00:13:39 verbose #14648 > > │ ("Wasm", US0_1), ("Contract", US0_2)]))                                      │
00:13:39 verbose #14649 > > │                                                                              │
00:13:39 verbose #14650 > > │ .ts output:                                                                  │
00:13:39 verbose #14651 > > │ assert_eq' / actual: Native,US0_0,Wasm,US0_1,Contract,US0_2 / expected:      │
00:13:39 verbose #14652 > > │ Native,US0_0,Wasm,US0_1,Contract,US0_2                                       │
00:13:39 verbose #14653 > > │                                                                              │
00:13:39 verbose #14654 > > │ .py output:                                                                  │
00:13:39 verbose #14655 > > │ assert_eq' / actual: [('Native', US0_0), ('Wasm', US0_1), ('Contract',       │
00:13:39 verbose #14656 > > │ US0_2)] / expected: [('Native', US0_0), ('Wasm', US0_1), ('Contract',        │
00:13:39 verbose #14657 > > │ US0_2)]                                                                      │
00:13:39 verbose #14658 > > │                                                                              │
00:13:39 verbose #14659 > > │                                                                              │
00:13:39 verbose #14660 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:39 verbose #14661 > >
00:13:39 verbose #14662 > > ╭─[ 4.29s - stdout ]───────────────────────────────────────────────────────────╮
00:13:39 verbose #14663 > > │ .fsx output:                                                                 │
00:13:39 verbose #14664 > > │ assert_eq' / actual: [|struct ("Native", US0_0); struct ("Wasm", US0_1);     │
00:13:39 verbose #14665 > > │ struct ("Contract", US0_2)|] / expected: [|struct ("Native", US0_0); struct  │
00:13:39 verbose #14666 > > │ ("Wasm", US0_1); struct ("Contract", US0_2)|]                                │
00:13:39 verbose #14667 > > │                                                                              │
00:13:39 verbose #14668 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:39 verbose #14669 > >
00:13:39 verbose #14670 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:39 verbose #14671 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:39 verbose #14672 > > │ ### union_try_pick                                                           │
00:13:39 verbose #14673 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:39 verbose #14674 > >
00:13:39 verbose #14675 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:39 verbose #14676 > > inl union_try_pick forall t. (key : string) : option t =
00:13:39 verbose #14677 > >     real get_union_fields_untag `t ()
00:13:39 verbose #14678 > >     |> listm'.try_pick fun key', x =>
00:13:39 verbose #14679 > >         if key' = key
00:13:39 verbose #14680 > >         then Some x
00:13:39 verbose #14681 > >         else None
00:13:39 verbose #14682 > 00:13:38   debug #847 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2e82ef62ce3ab9cf967f507288ed9d841f685ec45e648463d9124fadcbc8f5ad/main.spi
00:13:39 verbose #14683 > >
00:13:39 verbose #14684 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:39 verbose #14685 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:39 verbose #14686 > > │ ### union_to_string                                                          │
00:13:39 verbose #14687 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:39 verbose #14688 > >
00:13:39 verbose #14689 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:39 verbose #14690 > > inl union_to_string forall t. (x : t) : string =
00:13:39 verbose #14691 > >     real get_union_fields_untag `t ()
00:13:39 verbose #14692 > >     |> listm'.try_pick fun key, x' =>
00:13:39 verbose #14693 > >         if x' = x
00:13:39 verbose #14694 > >         then Some key
00:13:39 verbose #14695 > >         else None
00:13:39 verbose #14696 > >     |> optionm.value
00:13:39 verbose #14697 > 00:13:39   debug #848 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/df2181e8dbb4027cbb9690aeb0d65ad3f0f3d4f8b5cd82cb9f2a0c41e46f061c/main.spi
00:13:40 verbose #14698 > >
00:13:40 verbose #14699 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:40 verbose #14700 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:40 verbose #14701 > > │ ### nameof                                                                   │
00:13:40 verbose #14702 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:40 verbose #14703 > >
00:13:40 verbose #14704 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:40 verbose #14705 > > inl nameof forall t. (x : t) : string =
00:13:40 verbose #14706 > >     real
00:13:40 verbose #14707 > >         inl result : string =
00:13:40 verbose #14708 > >             real_core.record_type_fold_back
00:13:40 verbose #14709 > >                 fun key =>
00:13:40 verbose #14710 > >                     forall value. _ =>
00:13:40 verbose #14711 > >                         real_sm'.symbol_to_string `(`key)
00:13:40 verbose #14712 > >                 `t
00:13:40 verbose #14713 > >                 ""
00:13:40 verbose #14714 > >         result
00:13:40 verbose #14715 > 00:13:39   debug #849 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/aec94b4fb543e75c5a4a87def4511a6a949cfc614954a2a194bc734e1e2d6b04/main.spi
00:13:40 verbose #14716 > >
00:13:40 verbose #14717 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:40 verbose #14718 > > //// test
00:13:40 verbose #14719 > >
00:13:40 verbose #14720 > > { test1 = ""; test2 = "" }
00:13:40 verbose #14721 > > |> nameof
00:13:40 verbose #14722 > > |> _assert_eq' "test1"
00:13:40 verbose #14723 > 00:13:40   debug #850 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/65e32eb20c6c46db9298fc0b13c086f64f9b9f54ef7834043b7bbde0b2277326/main.spi
00:13:40 verbose #14724 > >
00:13:40 verbose #14725 > > ╭─[ 370.30ms - stdout ]────────────────────────────────────────────────────────╮
00:13:40 verbose #14726 > > │ assert_eq' / actual: "test1" / expected: "test1"                             │
00:13:40 verbose #14727 > > │                                                                              │
00:13:40 verbose #14728 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:41 verbose #14729 > 00:00:19 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 10347 }
00:13:41 verbose #14730 > 00:00:19   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/reflection.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/reflection.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:13:43 verbose #14731 > 00:00:22 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/reflection.dib.ipynb to html
00:13:43 verbose #14732 > 00:00:22 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:13:43 verbose #14733 > 00:00:22 verbose #7 !   validate(nb)
00:13:45 verbose #14734 > 00:00:24 verbose #8 ! [NbConvertApp] Writing 294204 bytes to c:\home\git\polyglot\lib\spiral\reflection.dib.html
00:13:45 verbose #14735 > 00:00:24 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 651 }
00:13:45 verbose #14736 > 00:00:24   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 651 }
00:13:45 verbose #14737 > 00:00:24   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/reflection.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/reflection.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:13:46 verbose #14738 > 00:00:25 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:13:46 verbose #14739 > 00:00:25   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:13:47 verbose #14740 > 00:00:26   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 11057 }
00:13:47   debug #14741 runtime.execute_with_options_async / { exit_code = 0; output_length = 14116 }
00:13:47   debug #20 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path reflection.dib --retries 3
00:13:47   debug #14742 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path base.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:13:47 verbose #14743 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "base.dib", "--retries", "3"])) }
00:13:47 verbose #14744 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/base.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/base.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/base.dib" --output-path "c:/home/git/polyglot/lib/spiral/base.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:13:50 verbose #14745 > >
00:13:50 verbose #14746 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:50 verbose #14747 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:50 verbose #14748 > > │ # base                                                                       │
00:13:50 verbose #14749 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:55 verbose #14750 > >
00:13:55 verbose #14751 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:55 verbose #14752 > > //// test
00:13:55 verbose #14753 > >
00:13:55 verbose #14754 > > open testing
00:13:56 verbose #14755 > 00:13:56   debug #851 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7845de436c12d0ca65282fe0cd65832468ca943e72feba50e6b1bb441e251a/main.spi
00:13:57 verbose #14756 > >
00:13:57 verbose #14757 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:57 verbose #14758 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:57 verbose #14759 > > │ ## execution                                                                 │
00:13:57 verbose #14760 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:57 verbose #14761 > >
00:13:57 verbose #14762 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:57 verbose #14763 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:57 verbose #14764 > > │ ### emit                                                                     │
00:13:57 verbose #14765 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:57 verbose #14766 > >
00:13:57 verbose #14767 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:57 verbose #14768 > > inl emit forall t. (x : t) : t =
00:13:57 verbose #14769 > >     $'!x '
00:13:57 verbose #14770 > 00:13:56   debug #852 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/648b92af66c7db6a77722a4a6300f8b9819861d85a6afe069d09153158c2e8fb/main.spi
00:13:57 verbose #14771 > >
00:13:57 verbose #14772 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:57 verbose #14773 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:57 verbose #14774 > > │ ### emit_unit                                                                │
00:13:57 verbose #14775 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:57 verbose #14776 > >
00:13:57 verbose #14777 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:57 verbose #14778 > > inl emit_unit forall t. (x : t) : () =
00:13:57 verbose #14779 > >     $'!x '
00:13:57 verbose #14780 > 00:13:57   debug #853 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a68981bb224e67662ae65b1efd646f57c712748e5adb5a7453c50f0cb03cb098/main.spi
00:13:58 verbose #14781 > >
00:13:58 verbose #14782 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:58 verbose #14783 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:58 verbose #14784 > > │ ### use                                                                      │
00:13:58 verbose #14785 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:58 verbose #14786 > >
00:13:58 verbose #14787 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:58 verbose #14788 > > inl use forall t. (x : t) : t =
00:13:58 verbose #14789 > >     $'use !x = !x ' : ()
00:13:58 verbose #14790 > >     $'!x '
00:13:58 verbose #14791 > 00:13:57   debug #854 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/255dc504edb81506a2836ae4ca98dc7ae9f1c46b0aa971409c339af5c43180db/main.spi
00:13:58 verbose #14792 > >
00:13:58 verbose #14793 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:58 verbose #14794 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:58 verbose #14795 > > │ ## target                                                                    │
00:13:58 verbose #14796 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:58 verbose #14797 > >
00:13:58 verbose #14798 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:58 verbose #14799 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:58 verbose #14800 > > │ ### backend_switch                                                           │
00:13:58 verbose #14801 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:58 verbose #14802 > >
00:13:58 verbose #14803 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:58 verbose #14804 > > inl backend_switch forall t. x : t =
00:13:58 verbose #14805 > >     real
00:13:58 verbose #14806 > >         inl backend key : t =
00:13:58 verbose #14807 > >             inl s = real_core.string_lit_to_symbol key
00:13:58 verbose #14808 > >             real_core.record_type_try_find `(`x) s
00:13:58 verbose #14809 > >                 (forall v'. => (x s) ())
00:13:58 verbose #14810 > >                 (fun () => $'' : t)
00:13:58 verbose #14811 > >         !!!!BackendSwitch (
00:13:58 verbose #14812 > >             ("Fsharp", backend "Fsharp"),
00:13:58 verbose #14813 > >             ("Python", backend "Python"),
00:13:58 verbose #14814 > >             ("Cuda", backend "Cuda")
00:13:58 verbose #14815 > >         )
00:13:58 verbose #14816 > 00:13:57   debug #855 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9054738f9d81744854b1b3685214364aa68b910cf4837f26208db48e06f2b5f1/main.spi
00:13:58 verbose #14817 > >
00:13:58 verbose #14818 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:58 verbose #14819 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:58 verbose #14820 > > │ ### target_runtime                                                           │
00:13:58 verbose #14821 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:58 verbose #14822 > >
00:13:58 verbose #14823 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:58 verbose #14824 > > union target_runtime =
00:13:58 verbose #14825 > >     | Native
00:13:58 verbose #14826 > >     | Wasm
00:13:58 verbose #14827 > >     | Contract
00:13:59 verbose #14828 > 00:13:58   debug #856 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6de5deb231ab8703150b71c20a5ffb753dc6ec6a6b755eff1bc556125ae92f88/main.spi
00:13:59 verbose #14829 > >
00:13:59 verbose #14830 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:59 verbose #14831 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:59 verbose #14832 > > │ ### target                                                                   │
00:13:59 verbose #14833 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:59 verbose #14834 > >
00:13:59 verbose #14835 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:59 verbose #14836 > > union target =
00:13:59 verbose #14837 > >     | Fsharp : target_runtime
00:13:59 verbose #14838 > >     | Cuda : target_runtime
00:13:59 verbose #14839 > >     | Rust : target_runtime
00:13:59 verbose #14840 > >     | TypeScript : target_runtime
00:13:59 verbose #14841 > >     | Python : target_runtime
00:13:59 verbose #14842 > 00:13:58   debug #857 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/212555e699979423ab21936100a02d5c099ee43a8d755a9b1207a996416acfd4/main.spi
00:13:59 verbose #14843 > >
00:13:59 verbose #14844 > > ── markdown ────────────────────────────────────────────────────────────────────
00:13:59 verbose #14845 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:13:59 verbose #14846 > > │ ### run_target                                                               │
00:13:59 verbose #14847 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:13:59 verbose #14848 > >
00:13:59 verbose #14849 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:59 verbose #14850 > > inl run_target forall t. (fn : target -> (() -> t)) : t =
00:13:59 verbose #14851 > >     backend_switch {
00:13:59 verbose #14852 > >         Fsharp = fun () =>
00:13:59 verbose #14853 > >             inl result = dyn true
00:13:59 verbose #14854 > >             $'let mutable _!result : `t option = None '
00:13:59 verbose #14855 > >             $'\n#if FABLE_COMPILER || WASM || CONTRACT'
00:13:59 verbose #14856 > >             $'\n#if FABLE_COMPILER_RUST && \!WASM && \!CONTRACT'
00:13:59 verbose #14857 > >             fn (Rust Native) () |> emit_unit
00:13:59 verbose #14858 > >             $'#endif\n#if FABLE_COMPILER_RUST && WASM'
00:13:59 verbose #14859 > >             fn (Rust Wasm) () |> emit_unit
00:13:59 verbose #14860 > >             $'#endif\n#if FABLE_COMPILER_RUST && CONTRACT'
00:13:59 verbose #14861 > >             fn (Rust Contract) () |> emit_unit
00:13:59 verbose #14862 > >             $'#endif\n#if FABLE_COMPILER_TYPESCRIPT'
00:13:59 verbose #14863 > >             fn (TypeScript Native) () |> emit_unit
00:13:59 verbose #14864 > >             $'#endif\n#if FABLE_COMPILER_PYTHON'
00:13:59 verbose #14865 > >             fn (Python Native) () |> emit_unit
00:13:59 verbose #14866 > >             $'#endif\n#else'
00:13:59 verbose #14867 > >             fn (Fsharp Native) () |> emit_unit
00:13:59 verbose #14868 > >             $'#endif'
00:13:59 verbose #14869 > >             $'|> fun x -> _!result <- Some x'
00:13:59 verbose #14870 > >             $'match _!result with Some x -> x | None -> failwith
00:13:59 verbose #14871 > > "base.run_target / _!result=None"' : t
00:13:59 verbose #14872 > >         Python = fun () =>
00:13:59 verbose #14873 > >             fn (Cuda Native) ()
00:13:59 verbose #14874 > >     }
00:13:59 verbose #14875 > 00:13:59   debug #858 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ec9d9a62af58dcd02418544d13f7a6635a4531a196d687ba51746386148db6ad/main.spi
00:13:59 verbose #14876 > >
00:13:59 verbose #14877 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:13:59 verbose #14878 > > //// test
00:13:59 verbose #14879 > > ///! fsharp
00:13:59 verbose #14880 > > ///! cuda
00:13:59 verbose #14881 > > ///! rust
00:13:59 verbose #14882 > > ///! typescript
00:13:59 verbose #14883 > > ///! python
00:13:59 verbose #14884 > >
00:13:59 verbose #14885 > > run_target function
00:13:59 verbose #14886 > >     | Fsharp (Native) => fun () => $'1uy'
00:13:59 verbose #14887 > >     | Cuda (Native) => fun () => $'1'
00:13:59 verbose #14888 > >     | Rust (Native) => fun () => $'1uy'
00:13:59 verbose #14889 > >     | TypeScript (Native) => fun () => $'1uy'
00:13:59 verbose #14890 > >     | Python (Native) => fun () => $'1uy'
00:13:59 verbose #14891 > >     | _ => fun () => $'2uy'
00:13:59 verbose #14892 > > |> _assert_eq 1u8
00:14:00 verbose #14893 > 00:13:59   debug #859 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4696a6a0d4d784f39adbf2c40a9db43644a1e331f06871dee08058604ac80e46/main.spi
00:14:00 verbose #14894 > 00:13:59   debug #860 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6293d3133dd9a0ff624513efbeb48f5fcab4c3324dd72086780e7b072a515ac3/main.spi
00:14:07 verbose #14895 > >
00:14:07 verbose #14896 > > ╭─[ 7.46s - return value ]─────────────────────────────────────────────────────╮
00:14:07 verbose #14897 > > │ .py output (Cuda):                                                           │
00:14:07 verbose #14898 > > │ assert_eq / actual: 1 / expected: 1                                          │
00:14:07 verbose #14899 > > │                                                                              │
00:14:07 verbose #14900 > > │ .rs output:                                                                  │
00:14:07 verbose #14901 > > │ assert_eq / actual: 1 / expected: 1                                          │
00:14:07 verbose #14902 > > │                                                                              │
00:14:07 verbose #14903 > > │ .ts output:                                                                  │
00:14:07 verbose #14904 > > │ assert_eq / actual: 1 / expected: 1                                          │
00:14:07 verbose #14905 > > │                                                                              │
00:14:07 verbose #14906 > > │ .py output:                                                                  │
00:14:07 verbose #14907 > > │ assert_eq / actual: 1 / expected: 1                                          │
00:14:07 verbose #14908 > > │                                                                              │
00:14:07 verbose #14909 > > │                                                                              │
00:14:07 verbose #14910 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:07 verbose #14911 > >
00:14:07 verbose #14912 > > ╭─[ 7.47s - stdout ]───────────────────────────────────────────────────────────╮
00:14:07 verbose #14913 > > │ .fsx output:                                                                 │
00:14:07 verbose #14914 > > │ assert_eq / actual: 1uy / expected: 1uy                                      │
00:14:07 verbose #14915 > > │                                                                              │
00:14:07 verbose #14916 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:07 verbose #14917 > >
00:14:07 verbose #14918 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:07 verbose #14919 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:07 verbose #14920 > > │ ## function                                                                  │
00:14:07 verbose #14921 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:07 verbose #14922 > >
00:14:07 verbose #14923 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:07 verbose #14924 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:07 verbose #14925 > > │ ### invoke                                                                   │
00:14:07 verbose #14926 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:07 verbose #14927 > >
00:14:07 verbose #14928 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:07 verbose #14929 > > inl invoke fn =
00:14:07 verbose #14930 > >     fn ()
00:14:07 verbose #14931 > 00:14:06   debug #861 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e478234a9538e8d8c293229bb5adc0f58638aa7100031a93d3f7c005f9bfb4be/main.spi
00:14:07 verbose #14932 > >
00:14:07 verbose #14933 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:07 verbose #14934 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:07 verbose #14935 > > │ ### lazy                                                                     │
00:14:07 verbose #14936 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:07 verbose #14937 > >
00:14:07 verbose #14938 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:07 verbose #14939 > > nominal lazy t = $'Lazy<`t>'
00:14:08 verbose #14940 > 00:14:07   debug #862 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ea13f2b990cabb2a5305e46948074770465f889126d419caf2cf87669ab5caf4/main.spi
00:14:08 verbose #14941 > >
00:14:08 verbose #14942 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:08 verbose #14943 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:08 verbose #14944 > > │ ### memoize                                                                  │
00:14:08 verbose #14945 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:08 verbose #14946 > >
00:14:08 verbose #14947 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:08 verbose #14948 > > nominal lazy t = $'Lazy<`t>'
00:14:08 verbose #14949 > >
00:14:08 verbose #14950 > > inl memoize forall t. (fn : () -> t) : () -> t =
00:14:08 verbose #14951 > >     inl fn = join fn
00:14:08 verbose #14952 > >     backend_switch {
00:14:08 verbose #14953 > >         Fsharp = fun () =>
00:14:08 verbose #14954 > >             inl result : lazy t = $'lazy !fn ()'
00:14:08 verbose #14955 > >             fun () => $'!result.Value' : t
00:14:08 verbose #14956 > >         Python = fun () =>
00:14:08 verbose #14957 > >             inl result = mut None
00:14:08 verbose #14958 > >             inl computed = mut false
00:14:08 verbose #14959 > >             fun () =>
00:14:08 verbose #14960 > >                 if *computed
00:14:08 verbose #14961 > >                 then *result
00:14:08 verbose #14962 > >                 else
00:14:08 verbose #14963 > >                     result <- fn () |> Some
00:14:08 verbose #14964 > >                     computed <- true
00:14:08 verbose #14965 > >                     *result
00:14:08 verbose #14966 > >                 |> optionm.value
00:14:08 verbose #14967 > >     }
00:14:08 verbose #14968 > 00:14:07   debug #863 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/79b670314107b71eda7bde7c58f9755efee43bac71ba4195e68b16b2e85131a9/main.spi
00:14:08 verbose #14969 > >
00:14:08 verbose #14970 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:08 verbose #14971 > > //// test
00:14:08 verbose #14972 > > ///! fsharp
00:14:08 verbose #14973 > > ///! cuda
00:14:08 verbose #14974 > > ///! rust
00:14:08 verbose #14975 > > ///! typescript
00:14:08 verbose #14976 > > ///! python
00:14:08 verbose #14977 > >
00:14:08 verbose #14978 > > inl count = mut 0i32
00:14:08 verbose #14979 > > inl add =
00:14:08 verbose #14980 > >     fun () =>
00:14:08 verbose #14981 > >         count <- *count + 1
00:14:08 verbose #14982 > >         count
00:14:08 verbose #14983 > >     |> memoize
00:14:08 verbose #14984 > >
00:14:08 verbose #14985 > > add () |> ignore
00:14:08 verbose #14986 > > add () |> ignore
00:14:08 verbose #14987 > > add () |> ignore
00:14:08 verbose #14988 > >
00:14:08 verbose #14989 > > *count
00:14:08 verbose #14990 > > |> _assert_eq 1
00:14:08 verbose #14991 > 00:14:08   debug #864 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/73a6f3c0d59895f3a323acc7b8e41cea04a658cdea2a362fe7b1d0dd03a75d52/main.spi
00:14:08 verbose #14992 > 00:14:08   debug #865 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a3ddcc73b8dd9c6267e8a93e7c632e23a066230f1ef0f0b9d2334d6e38364f25/main.spi
00:14:15 verbose #14993 > >
00:14:15 verbose #14994 > > ╭─[ 6.48s - return value ]─────────────────────────────────────────────────────╮
00:14:15 verbose #14995 > > │ .py output (Cuda):                                                           │
00:14:15 verbose #14996 > > │ assert_eq / actual: 1 / expected: 1                                          │
00:14:15 verbose #14997 > > │                                                                              │
00:14:15 verbose #14998 > > │ .rs output:                                                                  │
00:14:15 verbose #14999 > > │ assert_eq / actual: 1 / expected: 1                                          │
00:14:15 verbose #15000 > > │                                                                              │
00:14:15 verbose #15001 > > │ .ts output:                                                                  │
00:14:15 verbose #15002 > > │ assert_eq / actual: 1 / expected: 1                                          │
00:14:15 verbose #15003 > > │                                                                              │
00:14:15 verbose #15004 > > │ .py output:                                                                  │
00:14:15 verbose #15005 > > │ assert_eq / actual: 1 / expected: 1                                          │
00:14:15 verbose #15006 > > │                                                                              │
00:14:15 verbose #15007 > > │                                                                              │
00:14:15 verbose #15008 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:15 verbose #15009 > >
00:14:15 verbose #15010 > > ╭─[ 6.48s - stdout ]───────────────────────────────────────────────────────────╮
00:14:15 verbose #15011 > > │ .fsx output:                                                                 │
00:14:15 verbose #15012 > > │ assert_eq / actual: 1 / expected: 1                                          │
00:14:15 verbose #15013 > > │                                                                              │
00:14:15 verbose #15014 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:15 verbose #15015 > >
00:14:15 verbose #15016 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:15 verbose #15017 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:15 verbose #15018 > > │ ### capture                                                                  │
00:14:15 verbose #15019 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:15 verbose #15020 > >
00:14:15 verbose #15021 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:15 verbose #15022 > > inl capture forall t. (fn : () -> t) : t =
00:14:15 verbose #15023 > >     inl result = dyn true
00:14:15 verbose #15024 > >     $'let mutable _!result : `t option = None '
00:14:15 verbose #15025 > >     $'('
00:14:15 verbose #15026 > >     $'(fun () ->'
00:14:15 verbose #15027 > >     $'(fun () ->'
00:14:15 verbose #15028 > >     fn () |> emit_unit
00:14:15 verbose #15029 > >     $')'
00:14:15 verbose #15030 > >     $'|> fun x -> x ()'
00:14:15 verbose #15031 > >     $') () )'
00:14:15 verbose #15032 > >     $'|> fun x -> _!result <- Some x'
00:14:15 verbose #15033 > >     $'match _!result with Some x -> x | None -> failwith "base.capture
00:14:15 verbose #15034 > > _!result=None"'
00:14:15 verbose #15035 > 00:14:14   debug #866 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/088b85f58e2daed78ef4e28ee8720d97444f48b9c2d8b87680a4d64919c48c8c/main.spi
00:14:15 verbose #15036 > >
00:14:15 verbose #15037 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:15 verbose #15038 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:15 verbose #15039 > > │ ## arithmetic                                                                │
00:14:15 verbose #15040 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:15 verbose #15041 > >
00:14:15 verbose #15042 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:15 verbose #15043 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:15 verbose #15044 > > │ ### (+.)                                                                     │
00:14:15 verbose #15045 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:15 verbose #15046 > >
00:14:15 verbose #15047 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:15 verbose #15048 > > inl (+.) forall t. (a : t) (b : t) : t =
00:14:15 verbose #15049 > >     $'!a + !b '
00:14:15 verbose #15050 > 00:14:14   debug #867 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f88bc935aeed3306e7a710679d99702754ed10bed775060ee076c792f6fefd06/main.spi
00:14:15 verbose #15051 > >
00:14:15 verbose #15052 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:15 verbose #15053 > > //// test
00:14:15 verbose #15054 > > ///! fsharp
00:14:15 verbose #15055 > > ///! cuda
00:14:15 verbose #15056 > > ///! rust
00:14:15 verbose #15057 > > ///! typescript
00:14:15 verbose #15058 > > ///! python
00:14:15 verbose #15059 > >
00:14:15 verbose #15060 > > ($'3' : i32) +. ($'-6' : i32)
00:14:15 verbose #15061 > > |> _assert_eq -3i32
00:14:16 verbose #15062 > 00:14:15   debug #868 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/df35fafda58ac1fa1be830acbdb2facc8ca919959d668463bb148b5fd77277d4/main.spi
00:14:16 verbose #15063 > 00:14:15   debug #869 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fe50388b02b6d97770ae2e693d428f23fbfba6929643f8a0d73aa6fa4069fc76/main.spi
00:14:21 verbose #15064 > >
00:14:21 verbose #15065 > > ╭─[ 5.76s - return value ]─────────────────────────────────────────────────────╮
00:14:21 verbose #15066 > > │ .py output (Cuda):                                                           │
00:14:21 verbose #15067 > > │ assert_eq / actual: -3 / expected: -3                                        │
00:14:21 verbose #15068 > > │                                                                              │
00:14:21 verbose #15069 > > │ .rs output:                                                                  │
00:14:21 verbose #15070 > > │ assert_eq / actual: -3 / expected: -3                                        │
00:14:21 verbose #15071 > > │                                                                              │
00:14:21 verbose #15072 > > │ .ts output:                                                                  │
00:14:21 verbose #15073 > > │ assert_eq / actual: -3 / expected: -3                                        │
00:14:21 verbose #15074 > > │                                                                              │
00:14:21 verbose #15075 > > │ .py output:                                                                  │
00:14:21 verbose #15076 > > │ assert_eq / actual: -3 / expected: -3                                        │
00:14:21 verbose #15077 > > │                                                                              │
00:14:21 verbose #15078 > > │                                                                              │
00:14:21 verbose #15079 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:21 verbose #15080 > >
00:14:21 verbose #15081 > > ╭─[ 5.76s - stdout ]───────────────────────────────────────────────────────────╮
00:14:21 verbose #15082 > > │ .fsx output:                                                                 │
00:14:21 verbose #15083 > > │ assert_eq / actual: -3 / expected: -3                                        │
00:14:21 verbose #15084 > > │                                                                              │
00:14:21 verbose #15085 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:21 verbose #15086 > >
00:14:21 verbose #15087 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:21 verbose #15088 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:21 verbose #15089 > > │ ### (-.)                                                                     │
00:14:21 verbose #15090 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:21 verbose #15091 > >
00:14:21 verbose #15092 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:21 verbose #15093 > > inl (-.) forall t. (a : t) (b : t) : t =
00:14:21 verbose #15094 > >     $'!a - !b '
00:14:21 verbose #15095 > 00:14:21   debug #870 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c1ff3ae3cc78d3abf4a8683ffa886a7a12c10f9f150daf8661bb11b96a46f617/main.spi
00:14:21 verbose #15096 > >
00:14:21 verbose #15097 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:21 verbose #15098 > > //// test
00:14:21 verbose #15099 > > ///! fsharp
00:14:21 verbose #15100 > > ///! cuda
00:14:21 verbose #15101 > > ///! rust
00:14:21 verbose #15102 > > ///! typescript
00:14:21 verbose #15103 > > ///! python
00:14:21 verbose #15104 > >
00:14:21 verbose #15105 > > ($'3' : i32) -. ($'6' : i32)
00:14:21 verbose #15106 > > |> _assert_eq -3i32
00:14:22 verbose #15107 > 00:14:21   debug #871 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c8cecb4e0319207640d394bdc0b52ce5f1fdfbe5ef4442b694b641e1a1424332/main.spi
00:14:22 verbose #15108 > 00:14:21   debug #872 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cf9086b060f67d464484632dc50ce8b359fe4094d8945ae51d4d561778d3d0b7/main.spi
00:14:27 verbose #15109 > >
00:14:27 verbose #15110 > > ╭─[ 5.88s - return value ]─────────────────────────────────────────────────────╮
00:14:27 verbose #15111 > > │ .py output (Cuda):                                                           │
00:14:27 verbose #15112 > > │ assert_eq / actual: -3 / expected: -3                                        │
00:14:27 verbose #15113 > > │                                                                              │
00:14:27 verbose #15114 > > │ .rs output:                                                                  │
00:14:27 verbose #15115 > > │ assert_eq / actual: -3 / expected: -3                                        │
00:14:27 verbose #15116 > > │                                                                              │
00:14:27 verbose #15117 > > │ .ts output:                                                                  │
00:14:27 verbose #15118 > > │ assert_eq / actual: -3 / expected: -3                                        │
00:14:27 verbose #15119 > > │                                                                              │
00:14:27 verbose #15120 > > │ .py output:                                                                  │
00:14:27 verbose #15121 > > │ assert_eq / actual: -3 / expected: -3                                        │
00:14:27 verbose #15122 > > │                                                                              │
00:14:27 verbose #15123 > > │                                                                              │
00:14:27 verbose #15124 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:27 verbose #15125 > >
00:14:27 verbose #15126 > > ╭─[ 5.88s - stdout ]───────────────────────────────────────────────────────────╮
00:14:27 verbose #15127 > > │ .fsx output:                                                                 │
00:14:27 verbose #15128 > > │ assert_eq / actual: -3 / expected: -3                                        │
00:14:27 verbose #15129 > > │                                                                              │
00:14:27 verbose #15130 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:27 verbose #15131 > >
00:14:27 verbose #15132 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:27 verbose #15133 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:27 verbose #15134 > > │ ### (*.)                                                                     │
00:14:27 verbose #15135 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:27 verbose #15136 > >
00:14:27 verbose #15137 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:27 verbose #15138 > > inl (*.) forall t. (a : t) (b : t) : t =
00:14:27 verbose #15139 > >     $'!a * !b '
00:14:28 verbose #15140 > 00:14:27   debug #873 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2773ddcd203ab8f85cdcf228fce8a9c6ac5a16e721e9d102c0bf66f441c97c84/main.spi
00:14:28 verbose #15141 > >
00:14:28 verbose #15142 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:28 verbose #15143 > > //// test
00:14:28 verbose #15144 > > ///! fsharp
00:14:28 verbose #15145 > > ///! cuda
00:14:28 verbose #15146 > > ///! rust
00:14:28 verbose #15147 > > ///! typescript
00:14:28 verbose #15148 > > ///! python
00:14:28 verbose #15149 > >
00:14:28 verbose #15150 > > ($'3' : i32) *. ($'-1' : i32)
00:14:28 verbose #15151 > > |> _assert_eq -3i32
00:14:28 verbose #15152 > 00:14:27   debug #874 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f29852ed548fec5827e886734d011f83ad3e8708fb68e22e06a03f6a62638275/main.spi
00:14:28 verbose #15153 > 00:14:27   debug #875 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/06aa84768bb1c8ab9e202422c8728ef1e3c7262ffa64663f01425eccef0b5d4a/main.spi
00:14:33 verbose #15154 > >
00:14:33 verbose #15155 > > ╭─[ 5.46s - return value ]─────────────────────────────────────────────────────╮
00:14:33 verbose #15156 > > │ .py output (Cuda):                                                           │
00:14:33 verbose #15157 > > │ assert_eq / actual: -3 / expected: -3                                        │
00:14:33 verbose #15158 > > │                                                                              │
00:14:33 verbose #15159 > > │ .rs output:                                                                  │
00:14:33 verbose #15160 > > │ assert_eq / actual: -3 / expected: -3                                        │
00:14:33 verbose #15161 > > │                                                                              │
00:14:33 verbose #15162 > > │ .ts output:                                                                  │
00:14:33 verbose #15163 > > │ assert_eq / actual: -3 / expected: -3                                        │
00:14:33 verbose #15164 > > │                                                                              │
00:14:33 verbose #15165 > > │ .py output:                                                                  │
00:14:33 verbose #15166 > > │ assert_eq / actual: -3 / expected: -3                                        │
00:14:33 verbose #15167 > > │                                                                              │
00:14:33 verbose #15168 > > │                                                                              │
00:14:33 verbose #15169 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:33 verbose #15170 > >
00:14:33 verbose #15171 > > ╭─[ 5.46s - stdout ]───────────────────────────────────────────────────────────╮
00:14:33 verbose #15172 > > │ .fsx output:                                                                 │
00:14:33 verbose #15173 > > │ assert_eq / actual: -3 / expected: -3                                        │
00:14:33 verbose #15174 > > │                                                                              │
00:14:33 verbose #15175 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:33 verbose #15176 > >
00:14:33 verbose #15177 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:33 verbose #15178 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:33 verbose #15179 > > │ ### (/.)                                                                     │
00:14:33 verbose #15180 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:33 verbose #15181 > >
00:14:33 verbose #15182 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:33 verbose #15183 > > inl (/.) forall t. (a : t) (b : t) : t =
00:14:33 verbose #15184 > >     $'!a / !b '
00:14:33 verbose #15185 > 00:14:33   debug #876 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/791039f6c21951b43618f8116a01db6ceec102a6736ce7fbdf5bfe5bef5f5ee1/main.spi
00:14:34 verbose #15186 > >
00:14:34 verbose #15187 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:34 verbose #15188 > > //// test
00:14:34 verbose #15189 > > ///! fsharp
00:14:34 verbose #15190 > > ///! cuda
00:14:34 verbose #15191 > > ///! rust
00:14:34 verbose #15192 > > ///! typescript
00:14:34 verbose #15193 > > ///! python
00:14:34 verbose #15194 > >
00:14:34 verbose #15195 > > ($'-3' : i32) /. ($'1' : i32)
00:14:34 verbose #15196 > > |> _assert_eq -3i32
00:14:34 verbose #15197 > 00:14:33   debug #877 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b57a1bae56af6eb981d706953524585c943eb9c83d679d108138b5d0098e39ab/main.spi
00:14:34 verbose #15198 > 00:14:33   debug #878 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1b2dcca12dc3ff18919af81e584cab45f02f36b0a78ff408d1748c756a9af342/main.spi
00:14:39 verbose #15199 > >
00:14:39 verbose #15200 > > ╭─[ 5.68s - return value ]─────────────────────────────────────────────────────╮
00:14:39 verbose #15201 > > │ .py output (Cuda):                                                           │
00:14:39 verbose #15202 > > │ assert_eq / actual: -3.0 / expected: -3                                      │
00:14:39 verbose #15203 > > │                                                                              │
00:14:39 verbose #15204 > > │ .rs output:                                                                  │
00:14:39 verbose #15205 > > │ assert_eq / actual: -3 / expected: -3                                        │
00:14:39 verbose #15206 > > │                                                                              │
00:14:39 verbose #15207 > > │ .ts output:                                                                  │
00:14:39 verbose #15208 > > │ assert_eq / actual: -3 / expected: -3                                        │
00:14:39 verbose #15209 > > │                                                                              │
00:14:39 verbose #15210 > > │ .py output:                                                                  │
00:14:39 verbose #15211 > > │ assert_eq / actual: -3 / expected: -3                                        │
00:14:39 verbose #15212 > > │                                                                              │
00:14:39 verbose #15213 > > │                                                                              │
00:14:39 verbose #15214 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:39 verbose #15215 > >
00:14:39 verbose #15216 > > ╭─[ 5.68s - stdout ]───────────────────────────────────────────────────────────╮
00:14:39 verbose #15217 > > │ .fsx output:                                                                 │
00:14:39 verbose #15218 > > │ assert_eq / actual: -3 / expected: -3                                        │
00:14:39 verbose #15219 > > │                                                                              │
00:14:39 verbose #15220 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:39 verbose #15221 > >
00:14:39 verbose #15222 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:39 verbose #15223 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:39 verbose #15224 > > │ ## comparison                                                                │
00:14:39 verbose #15225 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:39 verbose #15226 > >
00:14:39 verbose #15227 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:39 verbose #15228 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:39 verbose #15229 > > │ ### (=.)                                                                     │
00:14:39 verbose #15230 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:39 verbose #15231 > >
00:14:39 verbose #15232 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:39 verbose #15233 > > inl (=.) forall t. (a : t) (b : t) : bool =
00:14:39 verbose #15234 > >     backend_switch {
00:14:39 verbose #15235 > >         Fsharp = fun () => $'!a = !b ' : bool
00:14:39 verbose #15236 > >         Python = fun () => $'!a == !b ' : bool
00:14:39 verbose #15237 > >     }
00:14:39 verbose #15238 > 00:14:39   debug #879 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a8c0f0e5762a08ff379cf14df0ca4d81252b98b982d1dcd086227143307ac49d/main.spi
00:14:40 verbose #15239 > >
00:14:40 verbose #15240 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:40 verbose #15241 > > //// test
00:14:40 verbose #15242 > > ///! fsharp
00:14:40 verbose #15243 > > ///! cuda
00:14:40 verbose #15244 > > ///! rust
00:14:40 verbose #15245 > > ///! typescript
00:14:40 verbose #15246 > > ///! python
00:14:40 verbose #15247 > >
00:14:40 verbose #15248 > > ($'-3' : i32) =. ($'-3' : i32)
00:14:40 verbose #15249 > > |> _assert_eq true
00:14:40 verbose #15250 > 00:14:39   debug #880 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/86953148dd24772448afe681fe264e07b3e837eb14b60331b5dec0a8fb6daecf/main.spi
00:14:40 verbose #15251 > 00:14:39   debug #881 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/500cc873ed4b082c06a2fe8eedb4eaa8d4c525da2642e769486935293f3ee5c7/main.spi
00:14:45 verbose #15252 > >
00:14:45 verbose #15253 > > ╭─[ 5.42s - return value ]─────────────────────────────────────────────────────╮
00:14:45 verbose #15254 > > │ .py output (Cuda):                                                           │
00:14:45 verbose #15255 > > │ assert_eq / actual: True / expected: True                                    │
00:14:45 verbose #15256 > > │                                                                              │
00:14:45 verbose #15257 > > │ .rs output:                                                                  │
00:14:45 verbose #15258 > > │ assert_eq / actual: true / expected: true                                    │
00:14:45 verbose #15259 > > │                                                                              │
00:14:45 verbose #15260 > > │ .ts output:                                                                  │
00:14:45 verbose #15261 > > │ assert_eq / actual: true / expected: true                                    │
00:14:45 verbose #15262 > > │                                                                              │
00:14:45 verbose #15263 > > │ .py output:                                                                  │
00:14:45 verbose #15264 > > │ assert_eq / actual: true / expected: true                                    │
00:14:45 verbose #15265 > > │                                                                              │
00:14:45 verbose #15266 > > │                                                                              │
00:14:45 verbose #15267 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:45 verbose #15268 > >
00:14:45 verbose #15269 > > ╭─[ 5.42s - stdout ]───────────────────────────────────────────────────────────╮
00:14:45 verbose #15270 > > │ .fsx output:                                                                 │
00:14:45 verbose #15271 > > │ assert_eq / actual: true / expected: true                                    │
00:14:45 verbose #15272 > > │                                                                              │
00:14:45 verbose #15273 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:45 verbose #15274 > >
00:14:45 verbose #15275 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:45 verbose #15276 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:45 verbose #15277 > > │ ### (<>.)                                                                    │
00:14:45 verbose #15278 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:45 verbose #15279 > >
00:14:45 verbose #15280 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:45 verbose #15281 > > inl (<>.) forall t. (a : t) (b : t) : bool =
00:14:45 verbose #15282 > >     backend_switch {
00:14:45 verbose #15283 > >         Fsharp = fun () => $'!a <> !b ' : bool
00:14:45 verbose #15284 > >         Python = fun () => $'!a \!= !b ' : bool
00:14:45 verbose #15285 > >     }
00:14:45 verbose #15286 > 00:14:45   debug #882 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e0e33c4652e429b2ea000ae4e3345f8b63bd16219cec5189f4293a84e1aca058/main.spi
00:14:45 verbose #15287 > >
00:14:45 verbose #15288 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:45 verbose #15289 > > //// test
00:14:45 verbose #15290 > > ///! fsharp
00:14:45 verbose #15291 > > ///! cuda
00:14:45 verbose #15292 > > ///! rust
00:14:45 verbose #15293 > > ///! typescript
00:14:45 verbose #15294 > > ///! python
00:14:45 verbose #15295 > >
00:14:45 verbose #15296 > > ($'-3' : i32) <>. ($'3' : i32)
00:14:45 verbose #15297 > > |> _assert_eq true
00:14:46 verbose #15298 > 00:14:45   debug #883 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1aebc32c2d1deedf4465deed496832edd0d06e49b0fa5c06ff3edf2cb92d1fb1/main.spi
00:14:46 verbose #15299 > 00:14:45   debug #884 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/22c7a55c6b1254de19eb61d973e9052e0bc6b613e01af70ff63535801730d3c1/main.spi
00:14:51 verbose #15300 > >
00:14:51 verbose #15301 > > ╭─[ 5.85s - return value ]─────────────────────────────────────────────────────╮
00:14:51 verbose #15302 > > │ .py output (Cuda):                                                           │
00:14:51 verbose #15303 > > │ assert_eq / actual: True / expected: True                                    │
00:14:51 verbose #15304 > > │                                                                              │
00:14:51 verbose #15305 > > │ .rs output:                                                                  │
00:14:51 verbose #15306 > > │ assert_eq / actual: true / expected: true                                    │
00:14:51 verbose #15307 > > │                                                                              │
00:14:51 verbose #15308 > > │ .ts output:                                                                  │
00:14:51 verbose #15309 > > │ assert_eq / actual: true / expected: true                                    │
00:14:51 verbose #15310 > > │                                                                              │
00:14:51 verbose #15311 > > │ .py output:                                                                  │
00:14:51 verbose #15312 > > │ assert_eq / actual: true / expected: true                                    │
00:14:51 verbose #15313 > > │                                                                              │
00:14:51 verbose #15314 > > │                                                                              │
00:14:51 verbose #15315 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:51 verbose #15316 > >
00:14:51 verbose #15317 > > ╭─[ 5.85s - stdout ]───────────────────────────────────────────────────────────╮
00:14:51 verbose #15318 > > │ .fsx output:                                                                 │
00:14:51 verbose #15319 > > │ assert_eq / actual: true / expected: true                                    │
00:14:51 verbose #15320 > > │                                                                              │
00:14:51 verbose #15321 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:51 verbose #15322 > >
00:14:51 verbose #15323 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:51 verbose #15324 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:51 verbose #15325 > > │ ## (<>..)                                                                    │
00:14:51 verbose #15326 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:51 verbose #15327 > >
00:14:51 verbose #15328 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:51 verbose #15329 > > inl (<>..) a b =
00:14:51 verbose #15330 > >     fun () => a = b
00:14:51 verbose #15331 > >     |> dyn
00:14:51 verbose #15332 > >     |> invoke
00:14:51 verbose #15333 > >     |> not
00:14:51 verbose #15334 > 00:14:51   debug #885 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1f17c43ae9476ac6d38aeb8b2026cff24d60c670e07920f2ac63eb6c3ff985bc/main.spi
00:14:52 verbose #15335 > >
00:14:52 verbose #15336 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:52 verbose #15337 > > //// test
00:14:52 verbose #15338 > > ///! fsharp
00:14:52 verbose #15339 > > ///! cuda
00:14:52 verbose #15340 > > ///! rust
00:14:52 verbose #15341 > > ///! typescript
00:14:52 verbose #15342 > > ///! python
00:14:52 verbose #15343 > >
00:14:52 verbose #15344 > > ($'-3' : i32) <>.. ($'3' : i32)
00:14:52 verbose #15345 > > |> _assert_eq true
00:14:52 verbose #15346 > 00:14:51   debug #886 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bece00be37b4eefa5731a508b29fc3a585b7038031c241b8529ea4eec64053e4/main.spi
00:14:52 verbose #15347 > 00:14:51   debug #887 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3ce9e44857698914d6eb16dbf69d23cd90384c978eef6d65b828479dac79d50a/main.spi
00:14:58 verbose #15348 > >
00:14:58 verbose #15349 > > ╭─[ 5.92s - return value ]─────────────────────────────────────────────────────╮
00:14:58 verbose #15350 > > │ .py output (Cuda):                                                           │
00:14:58 verbose #15351 > > │ assert_eq / actual: True / expected: True                                    │
00:14:58 verbose #15352 > > │                                                                              │
00:14:58 verbose #15353 > > │ .rs output:                                                                  │
00:14:58 verbose #15354 > > │ assert_eq / actual: true / expected: true                                    │
00:14:58 verbose #15355 > > │                                                                              │
00:14:58 verbose #15356 > > │ .ts output:                                                                  │
00:14:58 verbose #15357 > > │ assert_eq / actual: true / expected: true                                    │
00:14:58 verbose #15358 > > │                                                                              │
00:14:58 verbose #15359 > > │ .py output:                                                                  │
00:14:58 verbose #15360 > > │ assert_eq / actual: true / expected: true                                    │
00:14:58 verbose #15361 > > │                                                                              │
00:14:58 verbose #15362 > > │                                                                              │
00:14:58 verbose #15363 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:58 verbose #15364 > >
00:14:58 verbose #15365 > > ╭─[ 5.92s - stdout ]───────────────────────────────────────────────────────────╮
00:14:58 verbose #15366 > > │ .fsx output:                                                                 │
00:14:58 verbose #15367 > > │ assert_eq / actual: true / expected: true                                    │
00:14:58 verbose #15368 > > │                                                                              │
00:14:58 verbose #15369 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:58 verbose #15370 > >
00:14:58 verbose #15371 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:58 verbose #15372 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:58 verbose #15373 > > │ ## composition                                                               │
00:14:58 verbose #15374 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:58 verbose #15375 > >
00:14:58 verbose #15376 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:58 verbose #15377 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:58 verbose #15378 > > │ ### append                                                                   │
00:14:58 verbose #15379 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:58 verbose #15380 > >
00:14:58 verbose #15381 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:58 verbose #15382 > > prototype append t : t -> t -> t
00:14:58 verbose #15383 > 00:14:57   debug #888 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/11178265e9355209d0a61672fdb0e2d9461cf37053b379727c9fea32f5c12136/main.spi
00:14:58 verbose #15384 > >
00:14:58 verbose #15385 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:58 verbose #15386 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:58 verbose #15387 > > │ ### (++)                                                                     │
00:14:58 verbose #15388 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:58 verbose #15389 > >
00:14:58 verbose #15390 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:58 verbose #15391 > > inl (++) a b =
00:14:58 verbose #15392 > >     b |> append a
00:14:58 verbose #15393 > 00:14:57   debug #889 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8e5aa09ea5ce71ec0745d292809fe5ba095b7486e2959267be167994637ad75c/main.spi
00:14:58 verbose #15394 > >
00:14:58 verbose #15395 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:58 verbose #15396 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:58 verbose #15397 > > │ ## application                                                               │
00:14:58 verbose #15398 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:58 verbose #15399 > >
00:14:58 verbose #15400 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:58 verbose #15401 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:58 verbose #15402 > > │ ### (||>)                                                                    │
00:14:58 verbose #15403 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:58 verbose #15404 > >
00:14:58 verbose #15405 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:58 verbose #15406 > > inl (||>) (arg1, arg2) fn =
00:14:58 verbose #15407 > >     arg2 |> fn arg1
00:14:59 verbose #15408 > 00:14:58   debug #890 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/21f1c1160789e6a5be28165af3a46cdf36d3d8eeebfb566a27f048db9a52c872/main.spi
00:14:59 verbose #15409 > >
00:14:59 verbose #15410 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:59 verbose #15411 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:59 verbose #15412 > > │ ### fix_condition                                                            │
00:14:59 verbose #15413 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:59 verbose #15414 > >
00:14:59 verbose #15415 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:59 verbose #15416 > > inl fix_condition x a b =
00:14:59 verbose #15417 > >     if x ()
00:14:59 verbose #15418 > >     then a () |> fun x => $'(*' : ()
00:14:59 verbose #15419 > >     else
00:14:59 verbose #15420 > >         $'*) else' : ()
00:14:59 verbose #15421 > >         b () |> fun x => $'(*' : ()
00:14:59 verbose #15422 > >     |> fun x => $'*)' : ()
00:14:59 verbose #15423 > 00:14:58   debug #891 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/698f1c990db02f5e5454e6562384bd6da2ff08fbf9a3edadfb5ac7e172f29720/main.spi
00:14:59 verbose #15424 > >
00:14:59 verbose #15425 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:59 verbose #15426 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:59 verbose #15427 > > │ ## type                                                                      │
00:14:59 verbose #15428 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:59 verbose #15429 > >
00:14:59 verbose #15430 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:59 verbose #15431 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:59 verbose #15432 > > │ ### infer                                                                    │
00:14:59 verbose #15433 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:59 verbose #15434 > >
00:14:59 verbose #15435 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:59 verbose #15436 > > nominal infer = $'_'
00:14:59 verbose #15437 > 00:14:58   debug #892 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/74f87e3552183ff78550a8759dd7b09e7a2bdc1c8ce5e565f37e34a14603fa5a/main.spi
00:14:59 verbose #15438 > >
00:14:59 verbose #15439 > > ── markdown ────────────────────────────────────────────────────────────────────
00:14:59 verbose #15440 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:14:59 verbose #15441 > > │ ### any                                                                      │
00:14:59 verbose #15442 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:14:59 verbose #15443 > >
00:14:59 verbose #15444 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:14:59 verbose #15445 > > nominal any = $'obj'
00:15:00 verbose #15446 > 00:14:59   debug #893 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/97749482f5bea52b204db1472bc6f4406f375ed03b4db9cb37f76820eae3e67d/main.spi
00:15:00 verbose #15447 > >
00:15:00 verbose #15448 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:00 verbose #15449 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:00 verbose #15450 > > │ ### unit                                                                     │
00:15:00 verbose #15451 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:00 verbose #15452 > >
00:15:00 verbose #15453 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:00 verbose #15454 > > nominal unit = $'unit'
00:15:00 verbose #15455 > 00:14:59   debug #894 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/841de4c9c061c1a7bcac1fc68b4e3d2fa30364cb47a442a8a6ab23dba2fe8f34/main.spi
00:15:00 verbose #15456 > >
00:15:00 verbose #15457 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:00 verbose #15458 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:00 verbose #15459 > > │ ### null                                                                     │
00:15:00 verbose #15460 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:00 verbose #15461 > >
00:15:00 verbose #15462 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:00 verbose #15463 > > inl null forall t. () : t =
00:15:00 verbose #15464 > >     backend_switch {
00:15:00 verbose #15465 > >         Fsharp = fun () => $'null |> unbox<`t>' : t
00:15:00 verbose #15466 > >         Python = fun () => $'None' : t
00:15:00 verbose #15467 > >     }
00:15:00 verbose #15468 > 00:15:00   debug #895 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cdd3023d18d5bfd686ba9e53982369bbc877e99de2a263e382c12e9f8d7020d9/main.spi
00:15:01 verbose #15469 > >
00:15:01 verbose #15470 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:01 verbose #15471 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:01 verbose #15472 > > │ ### defaultof                                                                │
00:15:01 verbose #15473 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:01 verbose #15474 > >
00:15:01 verbose #15475 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:01 verbose #15476 > > inl defaultof forall t. () : t =
00:15:01 verbose #15477 > >     $'Unchecked.defaultof<`t>'
00:15:01 verbose #15478 > 00:15:00   debug #896 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f840cf05e4e6db327c07b8e51bd527153d786892ad1a7941640b975a7ecbd5ea/main.spi
00:15:01 verbose #15479 > >
00:15:01 verbose #15480 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:01 verbose #15481 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:01 verbose #15482 > > │ ### choice2'                                                                 │
00:15:01 verbose #15483 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:01 verbose #15484 > >
00:15:01 verbose #15485 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:01 verbose #15486 > > nominal choice2' a b = $'Choice<`a, `b>'
00:15:01 verbose #15487 > 00:15:00   debug #897 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ab6a255666e2a35303381079503d6d1097609dfad99f3342ecb5285c663c26e8/main.spi
00:15:01 verbose #15488 > >
00:15:01 verbose #15489 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:01 verbose #15490 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:01 verbose #15491 > > │ ### choice2_unbox                                                            │
00:15:01 verbose #15492 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:01 verbose #15493 > >
00:15:01 verbose #15494 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:01 verbose #15495 > > inl choice2_unbox forall t1 t2. (choice : choice2' t1 t2) : choice2 t1 t2 =
00:15:01 verbose #15496 > >     run_target function
00:15:01 verbose #15497 > >         | Fsharp (Native) => fun () =>
00:15:01 verbose #15498 > >             inl c1of2 (x : t1) : _ _ t2 = C1of2 x
00:15:01 verbose #15499 > >             inl c2of2 (x : t2) : _ t1 _ = C2of2 x
00:15:01 verbose #15500 > >             $'match !choice with Choice1Of2 x -> !c1of2 x | Choice2Of2 x ->
00:15:01 verbose #15501 > > !c2of2 x'
00:15:01 verbose #15502 > >         | _ => fun () => null ()
00:15:01 verbose #15503 > 00:15:01   debug #898 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/59ada10f237bbc6d70735ec416453655f8550e738a14edef8999d60b9e8bae4b/main.spi
00:15:02 verbose #15504 > >
00:15:02 verbose #15505 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:02 verbose #15506 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:02 verbose #15507 > > │ ## pair                                                                      │
00:15:02 verbose #15508 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:02 verbose #15509 > >
00:15:02 verbose #15510 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:02 verbose #15511 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:02 verbose #15512 > > │ ### pair                                                                     │
00:15:02 verbose #15513 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:02 verbose #15514 > >
00:15:02 verbose #15515 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:02 verbose #15516 > > nominal pair a b = $'(`a * `b)'
00:15:02 verbose #15517 > >
00:15:02 verbose #15518 > > inl pair x y =
00:15:02 verbose #15519 > >     x, y
00:15:02 verbose #15520 > 00:15:01   debug #899 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/76ae47e1954720cd6bd9ba24c922ff38fa4b58e72444a820ba45a671ec55566d/main.spi
00:15:02 verbose #15521 > >
00:15:02 verbose #15522 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:02 verbose #15523 > > //// test
00:15:02 verbose #15524 > > ///! fsharp
00:15:02 verbose #15525 > > ///! cuda
00:15:02 verbose #15526 > > ///! rust
00:15:02 verbose #15527 > > ///! typescript
00:15:02 verbose #15528 > > ///! python
00:15:02 verbose #15529 > >
00:15:02 verbose #15530 > > pair 1i32 2i32
00:15:02 verbose #15531 > > |> _assert_eq (1, 2)
00:15:02 verbose #15532 > 00:15:02   debug #900 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a2910aed703e0200118c326a6520cfb9d030cccd705a3960fd10f7d53aef98f2/main.spi
00:15:02 verbose #15533 > 00:15:02   debug #901 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ca8b483086d0b0ae7d110de6bfe7775f7aae329293c5a680437c7931de214d3d/main.spi
00:15:08 verbose #15534 > >
00:15:08 verbose #15535 > > ╭─[ 6.06s - return value ]─────────────────────────────────────────────────────╮
00:15:08 verbose #15536 > > │ .py output (Cuda):                                                           │
00:15:08 verbose #15537 > > │ assert_eq / actual: (1, 2) / expected: (1, 2)                                │
00:15:08 verbose #15538 > > │                                                                              │
00:15:08 verbose #15539 > > │ .rs output:                                                                  │
00:15:08 verbose #15540 > > │ assert_eq / actual: (1, 2) / expected: (1, 2)                                │
00:15:08 verbose #15541 > > │                                                                              │
00:15:08 verbose #15542 > > │ .ts output:                                                                  │
00:15:08 verbose #15543 > > │ assert_eq / actual: 1,2 / expected: 1,2                                      │
00:15:08 verbose #15544 > > │                                                                              │
00:15:08 verbose #15545 > > │ .py output:                                                                  │
00:15:08 verbose #15546 > > │ assert_eq / actual: (1, 2) / expected: (1, 2)                                │
00:15:08 verbose #15547 > > │                                                                              │
00:15:08 verbose #15548 > > │                                                                              │
00:15:08 verbose #15549 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:08 verbose #15550 > >
00:15:08 verbose #15551 > > ╭─[ 6.07s - stdout ]───────────────────────────────────────────────────────────╮
00:15:08 verbose #15552 > > │ .fsx output:                                                                 │
00:15:08 verbose #15553 > > │ assert_eq / actual: struct (1, 2) / expected: struct (1, 2)                  │
00:15:08 verbose #15554 > > │                                                                              │
00:15:08 verbose #15555 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:08 verbose #15556 > >
00:15:08 verbose #15557 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:08 verbose #15558 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:08 verbose #15559 > > │ ### new_pair                                                                 │
00:15:08 verbose #15560 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:08 verbose #15561 > >
00:15:08 verbose #15562 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:08 verbose #15563 > > inl new_pair forall a b. (a : a) (b : b) : pair a b =
00:15:08 verbose #15564 > >     $'!a, !b '
00:15:08 verbose #15565 > 00:15:08   debug #902 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c5ad2b60beed19e1f82efea32b9bae7226e9813c3da2a96fbcdc91679e6a50a5/main.spi
00:15:09 verbose #15566 > >
00:15:09 verbose #15567 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:09 verbose #15568 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:09 verbose #15569 > > │ ### from_pair                                                                │
00:15:09 verbose #15570 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:09 verbose #15571 > >
00:15:09 verbose #15572 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:09 verbose #15573 > > inl from_pair forall a b. (pair : pair a b) : a * b =
00:15:09 verbose #15574 > >     backend_switch {
00:15:09 verbose #15575 > >         Fsharp = fun () =>
00:15:09 verbose #15576 > >             $'let (a, b) = !pair '
00:15:09 verbose #15577 > >             ($'a' : a), ($'b' : b)
00:15:09 verbose #15578 > >         Python = fun () =>
00:15:09 verbose #15579 > >             $'a, b = !pair '
00:15:09 verbose #15580 > >             ($'a' : a), ($'b' : b)
00:15:09 verbose #15581 > >     }
00:15:09 verbose #15582 > 00:15:08   debug #903 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2db9d9e7476e1a48a9b8b23622d8b85008d6bd3940eafffb78e766696263b433/main.spi
00:15:09 verbose #15583 > >
00:15:09 verbose #15584 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:09 verbose #15585 > > //// test
00:15:09 verbose #15586 > > ///! fsharp
00:15:09 verbose #15587 > > ///! cuda
00:15:09 verbose #15588 > > ///! rust
00:15:09 verbose #15589 > > ///! typescript
00:15:09 verbose #15590 > > ///! python
00:15:09 verbose #15591 > >
00:15:09 verbose #15592 > > new_pair "a" (new_pair 1i32 "b")
00:15:09 verbose #15593 > > |> from_pair
00:15:09 verbose #15594 > > |> _assert_eq' ("a", (new_pair 1i32 "b"))
00:15:09 verbose #15595 > 00:15:08   debug #904 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/aa5c093d674c667d8c3500db3591c724f51e0b40d3cb4c0bd52141f77e41335d/main.spi
00:15:09 verbose #15596 > 00:15:08   debug #905 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/31bf2ee04046f01af9d49f1a62215a491118ac9448eb45c1ab334bb1b6a682ea/main.spi
00:15:15 verbose #15597 > >
00:15:15 verbose #15598 > > ╭─[ 6.02s - return value ]─────────────────────────────────────────────────────╮
00:15:15 verbose #15599 > > │ .py output (Cuda):                                                           │
00:15:15 verbose #15600 > > │ assert_eq' / actual: ('a', (1, 'b')) / expected: ('a', (1, 'b'))             │
00:15:15 verbose #15601 > > │                                                                              │
00:15:15 verbose #15602 > > │ .rs output:                                                                  │
00:15:15 verbose #15603 > > │ assert_eq' / actual: ("a", (1, "b")) / expected: ("a", (1, "b"))             │
00:15:15 verbose #15604 > > │                                                                              │
00:15:15 verbose #15605 > > │ .ts output:                                                                  │
00:15:15 verbose #15606 > > │ assert_eq' / actual: a,1,b / expected: a,1,b                                 │
00:15:15 verbose #15607 > > │                                                                              │
00:15:15 verbose #15608 > > │ .py output:                                                                  │
00:15:15 verbose #15609 > > │ assert_eq' / actual: ('a', (1, 'b')) / expected: ('a', (1, 'b'))             │
00:15:15 verbose #15610 > > │                                                                              │
00:15:15 verbose #15611 > > │                                                                              │
00:15:15 verbose #15612 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:15 verbose #15613 > >
00:15:15 verbose #15614 > > ╭─[ 6.02s - stdout ]───────────────────────────────────────────────────────────╮
00:15:15 verbose #15615 > > │ .fsx output:                                                                 │
00:15:15 verbose #15616 > > │ assert_eq' / actual: struct ("a", (1, "b")) / expected: struct ("a", (1,     │
00:15:15 verbose #15617 > > │ "b"))                                                                        │
00:15:15 verbose #15618 > > │                                                                              │
00:15:15 verbose #15619 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:15 verbose #15620 > >
00:15:15 verbose #15621 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:15 verbose #15622 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:15 verbose #15623 > > │ ## ref                                                                       │
00:15:15 verbose #15624 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:15 verbose #15625 > >
00:15:15 verbose #15626 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:15 verbose #15627 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:15 verbose #15628 > > │ ### ref                                                                      │
00:15:15 verbose #15629 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:15 verbose #15630 > >
00:15:15 verbose #15631 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:15 verbose #15632 > > nominal ref t = $'`t ref'
00:15:15 verbose #15633 > 00:15:14   debug #906 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/59a078b48f15e4ccde1dea0d836799c4bfbb7b082db687383ff46238721e3d2c/main.spi
00:15:15 verbose #15634 > >
00:15:15 verbose #15635 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:15 verbose #15636 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:15 verbose #15637 > > │ ### new_ref                                                                  │
00:15:15 verbose #15638 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:15 verbose #15639 > >
00:15:15 verbose #15640 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:15 verbose #15641 > > inl new_ref forall t. (x : t) : ref t =
00:15:15 verbose #15642 > >     $'ref !x '
00:15:16 verbose #15643 > 00:15:15   debug #907 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/52d625b7cd055f464080333964e5c5f9fadc6c5220e86739f50dcbe95f476836/main.spi
00:15:16 verbose #15644 > >
00:15:16 verbose #15645 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:16 verbose #15646 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:16 verbose #15647 > > │ ### ref_value                                                                │
00:15:16 verbose #15648 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:16 verbose #15649 > >
00:15:16 verbose #15650 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:16 verbose #15651 > > inl ref_value forall t. (x : ref t) : t =
00:15:16 verbose #15652 > >     $'!x.Value'
00:15:16 verbose #15653 > 00:15:15   debug #908 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a261a719b6d8e98a24de6f7c9d21fc2def282d2da2d088d1e958cfef4814f921/main.spi
00:15:16 verbose #15654 > >
00:15:16 verbose #15655 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:16 verbose #15656 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:16 verbose #15657 > > │ ### ref_set_value                                                            │
00:15:16 verbose #15658 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:16 verbose #15659 > >
00:15:16 verbose #15660 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:16 verbose #15661 > > inl ref_set_value forall t. (value : t) (ref : ref t) : ref t =
00:15:16 verbose #15662 > >     $'!ref.Value <- !value '
00:15:16 verbose #15663 > >     ref
00:15:16 verbose #15664 > 00:15:16   debug #909 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/94eb3172cad6293896da047a8aaf1553e0e7eb18328cc756c29adf66b2b8941f/main.spi
00:15:16 verbose #15665 > >
00:15:16 verbose #15666 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:16 verbose #15667 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:16 verbose #15668 > > │ ## convert                                                                   │
00:15:16 verbose #15669 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:16 verbose #15670 > >
00:15:16 verbose #15671 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:16 verbose #15672 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:16 verbose #15673 > > │ ### convert                                                                  │
00:15:16 verbose #15674 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:16 verbose #15675 > >
00:15:16 verbose #15676 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:16 verbose #15677 > > inl convert forall t u. (x : t) : u =
00:15:16 verbose #15678 > >     backend_switch {
00:15:16 verbose #15679 > >         Fsharp = fun () => $'!x |> `u ' : u
00:15:16 verbose #15680 > >         Python = fun () => $'!x ' : u
00:15:16 verbose #15681 > >     }
00:15:17 verbose #15682 > 00:15:16   debug #910 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ef1453a7c182adfe9237797ebc8f8f38673def064a0f634212619564425eedee/main.spi
00:15:17 verbose #15683 > >
00:15:17 verbose #15684 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:17 verbose #15685 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:17 verbose #15686 > > │ ### unbox                                                                    │
00:15:17 verbose #15687 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:17 verbose #15688 > >
00:15:17 verbose #15689 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:17 verbose #15690 > > inl unbox forall t u. (x : t) : u =
00:15:17 verbose #15691 > >     backend_switch {
00:15:17 verbose #15692 > >         Fsharp = fun () => $'!x |> unbox<`u>' : u
00:15:17 verbose #15693 > >         Python = fun () => $'!x ' : u
00:15:17 verbose #15694 > >     }
00:15:17 verbose #15695 > 00:15:16   debug #911 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bda95bbf64015f10b433bca4dfda841aa24c4f0e293d3ed1bf2e90a9a4a198d5/main.spi
00:15:17 verbose #15696 > >
00:15:17 verbose #15697 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:17 verbose #15698 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:17 verbose #15699 > > │ ### u8                                                                       │
00:15:17 verbose #15700 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:17 verbose #15701 > >
00:15:17 verbose #15702 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:17 verbose #15703 > > inl u8 forall t. (x : t) : u8 =
00:15:17 verbose #15704 > >     x |> $'uint8'
00:15:17 verbose #15705 > 00:15:17   debug #912 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ec8a0975894dbfbcd66c82c7f965668ec88ff98a7638ec4941c95c494f4291b8/main.spi
00:15:18 verbose #15706 > >
00:15:18 verbose #15707 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:18 verbose #15708 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:18 verbose #15709 > > │ ### u16                                                                      │
00:15:18 verbose #15710 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:18 verbose #15711 > >
00:15:18 verbose #15712 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:18 verbose #15713 > > inl u16 forall t. (x : t) : u16 =
00:15:18 verbose #15714 > >     x |> $'uint16'
00:15:18 verbose #15715 > 00:15:17   debug #913 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/12fb4fb529e8b48b5ba7ecf4a2f67ee19f99a2028df7625c49df90c6a4714b6c/main.spi
00:15:18 verbose #15716 > >
00:15:18 verbose #15717 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:18 verbose #15718 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:18 verbose #15719 > > │ ### u64                                                                      │
00:15:18 verbose #15720 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:18 verbose #15721 > >
00:15:18 verbose #15722 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:18 verbose #15723 > > inl u64 forall t. (x : t) : u64 =
00:15:18 verbose #15724 > >     x |> $'uint64'
00:15:18 verbose #15725 > 00:15:18   debug #914 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d5a10b54acdcc0e794a92e5d12429c48a26ae6fd2edaf295793e535bad641e6e/main.spi
00:15:19 verbose #15726 > >
00:15:19 verbose #15727 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:19 verbose #15728 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:19 verbose #15729 > > │ ### i32                                                                      │
00:15:19 verbose #15730 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:19 verbose #15731 > >
00:15:19 verbose #15732 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:19 verbose #15733 > > inl i32 forall t. (x : t) : i32 =
00:15:19 verbose #15734 > >     x |> $'int32'
00:15:19 verbose #15735 > 00:15:18   debug #915 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5bc9fe208b8c8dd373b2227e3edb1d2ee0c61a31401c18e938d27ab9b42b644f/main.spi
00:15:19 verbose #15736 > >
00:15:19 verbose #15737 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:19 verbose #15738 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:19 verbose #15739 > > │ ### i64                                                                      │
00:15:19 verbose #15740 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:19 verbose #15741 > >
00:15:19 verbose #15742 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:19 verbose #15743 > > inl i64 forall t. (x : t) : i64 =
00:15:19 verbose #15744 > >     x |> $'int64'
00:15:19 verbose #15745 > 00:15:18   debug #916 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8a5171648e9716e5e3de8589168faef51f5d74716fa53f3a8c1a457cda1295d5/main.spi
00:15:19 verbose #15746 > >
00:15:19 verbose #15747 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:19 verbose #15748 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:19 verbose #15749 > > │ ### f32                                                                      │
00:15:19 verbose #15750 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:19 verbose #15751 > >
00:15:19 verbose #15752 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:19 verbose #15753 > > inl f32 forall t. (x : t) : f32 =
00:15:19 verbose #15754 > >     x |> $'float32'
00:15:20 verbose #15755 > 00:15:19   debug #917 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b01fca0e6c86bacf39a4636e94bcb53ceb1f7fe712f21e990d6048f05992c012/main.spi
00:15:20 verbose #15756 > >
00:15:20 verbose #15757 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:20 verbose #15758 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:20 verbose #15759 > > │ ### f64                                                                      │
00:15:20 verbose #15760 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:20 verbose #15761 > >
00:15:20 verbose #15762 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:20 verbose #15763 > > inl f64 forall t. (x : t) : f64 =
00:15:20 verbose #15764 > >     x |> $'float'
00:15:20 verbose #15765 > 00:15:19   debug #918 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0658ca09c85351cadb16cca922f65f78968e72414bc2242de3e7ad1cd9055844/main.spi
00:15:20 verbose #15766 > >
00:15:20 verbose #15767 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:20 verbose #15768 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:20 verbose #15769 > > │ ### unativeint                                                               │
00:15:20 verbose #15770 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:20 verbose #15771 > >
00:15:20 verbose #15772 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:20 verbose #15773 > > nominal unativeint = $'unativeint'
00:15:20 verbose #15774 > 00:15:20   debug #919 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/52b009d5f3019fd7779afa90baea6ffe94ff840c5f07ade402c53fa37d74c8db/main.spi
00:15:20 verbose #15775 > >
00:15:20 verbose #15776 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:20 verbose #15777 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:20 verbose #15778 > > │ ### convert_i32                                                              │
00:15:20 verbose #15779 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:20 verbose #15780 > >
00:15:20 verbose #15781 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:20 verbose #15782 > > inl convert_i32 forall t. (x : t) : i32 =
00:15:20 verbose #15783 > >     x |> $'System.Convert.ToInt32'
00:15:21 verbose #15784 > 00:15:20   debug #920 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/15e07b6ef898b55f33fdf6ca15c98ff33df8eb72f3dab31ba19fe7572b565397/main.spi
00:15:21 verbose #15785 > >
00:15:21 verbose #15786 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:21 verbose #15787 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:21 verbose #15788 > > │ ### convert_i32_base                                                         │
00:15:21 verbose #15789 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:21 verbose #15790 > >
00:15:21 verbose #15791 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:21 verbose #15792 > > inl convert_i32_base forall t. (base : i32) (x : t) : i32 =
00:15:21 verbose #15793 > >     $'System.Convert.ToInt32 (!x, !base)'
00:15:21 verbose #15794 > 00:15:20   debug #921 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f05a25aff804478ed87bc5235c755ec481c9718412412ba1dd6273d13257279d/main.spi
00:15:21 verbose #15795 > >
00:15:21 verbose #15796 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:21 verbose #15797 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:21 verbose #15798 > > │ ## error                                                                     │
00:15:21 verbose #15799 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:21 verbose #15800 > >
00:15:21 verbose #15801 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:21 verbose #15802 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:21 verbose #15803 > > │ ### exn                                                                      │
00:15:21 verbose #15804 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:21 verbose #15805 > >
00:15:21 verbose #15806 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:21 verbose #15807 > > nominal exn = $"backend_switch `({ Fsharp : $'exn'; Python : $'BaseException'
00:15:21 verbose #15808 > > })"
00:15:21 verbose #15809 > >
00:15:21 verbose #15810 > > inl exn x =
00:15:21 verbose #15811 > >     x |> $'`exn '
00:15:21 verbose #15812 > 00:15:21   debug #922 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ae26f4b8153e4a50cf5f95b38577d51b9e515d8aa7e838df7b981e1916eb0989/main.spi
00:15:21 verbose #15813 > >
00:15:21 verbose #15814 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:21 verbose #15815 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:21 verbose #15816 > > │ ### try                                                                      │
00:15:21 verbose #15817 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:21 verbose #15818 > >
00:15:21 verbose #15819 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:21 verbose #15820 > > inl try forall t. (fn : () -> t) (ex_fn : exn -> option t) : option t =
00:15:21 verbose #15821 > >     backend_switch {
00:15:21 verbose #15822 > >         Fsharp = fun () =>
00:15:21 verbose #15823 > >             inl some x : option t = Some x
00:15:21 verbose #15824 > >             inl some = dyn some
00:15:21 verbose #15825 > >             inl fn = dyn fn
00:15:21 verbose #15826 > >             inl ex_fn = dyn ex_fn
00:15:21 verbose #15827 > >             $'let result = ref !(None : option t)'
00:15:21 verbose #15828 > >             $'try'
00:15:21 verbose #15829 > >             $'    result.Value <- !fn () |> !some '
00:15:21 verbose #15830 > >             $'with ex ->'
00:15:21 verbose #15831 > >             $'    result.Value <- !ex_fn ex '
00:15:21 verbose #15832 > >             $'result.Value' : option t
00:15:21 verbose #15833 > >         Python = fun () =>
00:15:21 verbose #15834 > >             $'result = !(None : option t)'
00:15:21 verbose #15835 > >             inl fn = dyn fn
00:15:21 verbose #15836 > >             inl ex_fn = dyn ex_fn
00:15:21 verbose #15837 > >             $'try:'
00:15:21 verbose #15838 > >             $'    result = !fn()\n        \'\'\''
00:15:21 verbose #15839 > >             $'\'\'\''
00:15:21 verbose #15840 > >             $'except Exception as e:'
00:15:21 verbose #15841 > >             $'    result = !ex_fn(e)'
00:15:21 verbose #15842 > >             $'result' : option t
00:15:21 verbose #15843 > >     }
00:15:22 verbose #15844 > 00:15:21   debug #923 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f6388a0b6f6b63b2d79daeb9e30e107babca294d2b14f0b9a38ee308f7ae0861/main.spi
00:15:22 verbose #15845 > >
00:15:22 verbose #15846 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:22 verbose #15847 > > //// test
00:15:22 verbose #15848 > > ///! fsharp
00:15:22 verbose #15849 > > ////! cuda // cudaErrorInsufficientDriver: CUDA driver version is insufficient
00:15:22 verbose #15850 > > for CUDA runtime version
00:15:22 verbose #15851 > > ///! rust
00:15:22 verbose #15852 > > ///! typescript
00:15:22 verbose #15853 > > ///! python
00:15:22 verbose #15854 > >
00:15:22 verbose #15855 > > try
00:15:22 verbose #15856 > >     fun () => a ;[[ 0i32 ]] |> am'.index 1i32 |> sm'.format
00:15:22 verbose #15857 > >     (fun ex => $'!ex ' |> sm'.format_exception |> Some)
00:15:22 verbose #15858 > > |> optionm.value
00:15:22 verbose #15859 > > |> _assert_eq (run_target function
00:15:22 verbose #15860 > >     | Fsharp => fun () => "System.IndexOutOfRangeException: Index was outside
00:15:22 verbose #15861 > > the bounds of the array."
00:15:22 verbose #15862 > >     | Cuda => fun () => "array index out of range"
00:15:22 verbose #15863 > >     | Rust => fun () => "Exception { message: \"index out of bounds: the len is
00:15:22 verbose #15864 > > 1 but the index is 1\" }"
00:15:22 verbose #15865 > >     | TypeScript => fun () => "Error: Index was outside the bounds of the
00:15:22 verbose #15866 > > array.\\nParameter name: index"
00:15:22 verbose #15867 > >     | Python => fun () => "array index out of range"
00:15:22 verbose #15868 > > )
00:15:22 verbose #15869 > 00:15:21   debug #924 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/844f33cbbaf941206ecc42e7cdff8cd94cf03e3fe39bf3b669d11e217c1ce1cb/main.spi
00:15:27 verbose #15870 > >
00:15:27 verbose #15871 > > ╭─[ 4.87s - return value ]─────────────────────────────────────────────────────╮
00:15:27 verbose #15872 > > │ .rs output:                                                                  │
00:15:27 verbose #15873 > > │ assert_eq / actual: "Exception { message: "index out of bounds: the len is 1 │
00:15:27 verbose #15874 > > │ but the index is 1" }" / expected: "Exception { message: "index out of       │
00:15:27 verbose #15875 > > │ bounds: the len is 1 but the index is 1" }"                                  │
00:15:27 verbose #15876 > > │                                                                              │
00:15:27 verbose #15877 > > │ .ts output:                                                                  │
00:15:27 verbose #15878 > > │ assert_eq / actual: Error: Index was outside the bounds of the               │
00:15:27 verbose #15879 > > │ array.\nParameter name: index / expected: Error: Index was outside the       │
00:15:27 verbose #15880 > > │ bounds of the array.\nParameter name: index                                  │
00:15:27 verbose #15881 > > │                                                                              │
00:15:27 verbose #15882 > > │ .py output:                                                                  │
00:15:27 verbose #15883 > > │ assert_eq / actual: array index out of range / expected: array index out of  │
00:15:27 verbose #15884 > > │ range                                                                        │
00:15:27 verbose #15885 > > │                                                                              │
00:15:27 verbose #15886 > > │                                                                              │
00:15:27 verbose #15887 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:27 verbose #15888 > >
00:15:27 verbose #15889 > > ╭─[ 4.87s - stdout ]───────────────────────────────────────────────────────────╮
00:15:27 verbose #15890 > > │ .fsx output:                                                                 │
00:15:27 verbose #15891 > > │ assert_eq / actual: "System.IndexOutOfRangeException: Index was outside the  │
00:15:27 verbose #15892 > > │ bounds of the array." / expected: "System.IndexOutOfRangeException: Index    │
00:15:27 verbose #15893 > > │ was outside the bounds of the array."                                        │
00:15:27 verbose #15894 > > │                                                                              │
00:15:27 verbose #15895 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:27 verbose #15896 > >
00:15:27 verbose #15897 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:27 verbose #15898 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:27 verbose #15899 > > │ ### try_unit                                                                 │
00:15:27 verbose #15900 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:27 verbose #15901 > >
00:15:27 verbose #15902 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:27 verbose #15903 > > inl try_unit forall t. (fn : () -> ()) (ex_fn : exn -> ()) : t =
00:15:27 verbose #15904 > >     $'try'
00:15:27 verbose #15905 > >     fn ()
00:15:27 verbose #15906 > >     |> ignore
00:15:27 verbose #15907 > >     $'with ex ->'
00:15:27 verbose #15908 > >     ex_fn $'ex'
00:15:27 verbose #15909 > >     |> ignore
00:15:27 verbose #15910 > >     $'(*'
00:15:27 verbose #15911 > >     $'*)'
00:15:27 verbose #15912 > 00:15:26   debug #925 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/428c72a97a67dee75fe6afb54340ac612514018e95c742919633d435f7cb2840/main.spi
00:15:27 verbose #15913 > >
00:15:27 verbose #15914 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:27 verbose #15915 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:27 verbose #15916 > > │ ### try_finally                                                              │
00:15:27 verbose #15917 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:27 verbose #15918 > >
00:15:27 verbose #15919 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:27 verbose #15920 > > inl try_finally forall t. (fn : () -> ()) (finally : () -> ()) : t =
00:15:27 verbose #15921 > >     $'try'
00:15:27 verbose #15922 > >     fn ()
00:15:27 verbose #15923 > >     |> ignore
00:15:27 verbose #15924 > >     $'finally'
00:15:27 verbose #15925 > >     finally ()
00:15:27 verbose #15926 > >     |> ignore
00:15:27 verbose #15927 > >     $'(*'
00:15:27 verbose #15928 > >     $'*)'
00:15:27 verbose #15929 > 00:15:27   debug #926 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/59edc2b4f50132a991092ac2cfa0601b1ce51e4ce802853da98461d107d3c774/main.spi
00:15:28 verbose #15930 > 00:01:40 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 56090 }
00:15:28 verbose #15931 > 00:01:40   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/base.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/base.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:15:31 verbose #15932 > 00:01:43 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/base.dib.ipynb to html
00:15:31 verbose #15933 > 00:01:43 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:15:31 verbose #15934 > 00:01:43 verbose #7 !   validate(nb)
00:15:33 verbose #15935 > 00:01:46 verbose #8 ! [NbConvertApp] Writing 402692 bytes to c:\home\git\polyglot\lib\spiral\base.dib.html
00:15:34 verbose #15936 > 00:01:46 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 639 }
00:15:34 verbose #15937 > 00:01:46   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 639 }
00:15:34 verbose #15938 > 00:01:46   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/base.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/base.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:15:35 verbose #15939 > 00:01:48 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:15:35 verbose #15940 > 00:01:48   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:15:36 verbose #15941 > 00:01:48   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 56788 }
00:15:36   debug #15942 runtime.execute_with_options_async / { exit_code = 0; output_length = 61605 }
00:15:36   debug #21 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path base.dib --retries 3
00:15:36   debug #15943 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path iter.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:15:36 verbose #15944 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "iter.dib", "--retries", "3"])) }
00:15:36 verbose #15945 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/iter.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/iter.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/iter.dib" --output-path "c:/home/git/polyglot/lib/spiral/iter.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:15:40 verbose #15946 > >
00:15:40 verbose #15947 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:40 verbose #15948 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:40 verbose #15949 > > │ # iter                                                                       │
00:15:40 verbose #15950 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:49 verbose #15951 > >
00:15:49 verbose #15952 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:49 verbose #15953 > > open rust_operators
00:15:52 verbose #15954 > 00:15:52   debug #927 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0d9bd8e5bb71a8e1d983506a46e54fb8c8e6cf2d0bd973135d4cdd580c5f6d39/main.spi
00:15:53 verbose #15955 > >
00:15:53 verbose #15956 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:53 verbose #15957 > > //// test
00:15:53 verbose #15958 > >
00:15:53 verbose #15959 > > open testing
00:15:53 verbose #15960 > 00:15:53   debug #928 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d06211d48c36e09624381aad71e69f817df1a545af31c21067514d4d391bdd05/main.spi
00:15:54 verbose #15961 > >
00:15:54 verbose #15962 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:54 verbose #15963 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:54 verbose #15964 > > │ ## types                                                                     │
00:15:54 verbose #15965 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:54 verbose #15966 > >
00:15:54 verbose #15967 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:54 verbose #15968 > > inl types () =
00:15:54 verbose #15969 > >     ()
00:15:54 verbose #15970 > 00:15:53   debug #929 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6b915db36f717519207a5062f276617aa2e4be6a0d84f84bbe23c18e473b69fb/main.spi
00:15:54 verbose #15971 > >
00:15:54 verbose #15972 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:54 verbose #15973 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:54 verbose #15974 > > │ ## rust                                                                      │
00:15:54 verbose #15975 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:54 verbose #15976 > >
00:15:54 verbose #15977 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:54 verbose #15978 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:54 verbose #15979 > > │ ### iter_enumerate                                                           │
00:15:54 verbose #15980 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:54 verbose #15981 > >
00:15:54 verbose #15982 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:54 verbose #15983 > > inl iter_enumerate forall t. (iter : into_iterator t) : into_iterator (pair
00:15:54 verbose #15984 > > unativeint t) =
00:15:54 verbose #15985 > >     !\($'"!iter.enumerate().map(std::sync::Arc::new)"')
00:15:54 verbose #15986 > 00:15:54   debug #930 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0ee2bf9863d5b54f6cbd637bd183875adbb3258586df2f72f7819384c2828722/main.spi
00:15:54 verbose #15987 > >
00:15:54 verbose #15988 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:54 verbose #15989 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:54 verbose #15990 > > │ ### into_iter                                                                │
00:15:54 verbose #15991 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:54 verbose #15992 > >
00:15:54 verbose #15993 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:54 verbose #15994 > > inl into_iter forall (t : * -> *) u. (x : t u) : into_iterator u =
00:15:54 verbose #15995 > >     !\($'"!x.into_iter()"')
00:15:55 verbose #15996 > 00:15:54   debug #931 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/efbef5e8a529bc8c7741439b30e77f417aab58e5596a0a4a2ec53b0582fc98ea/main.spi
00:15:55 verbose #15997 > >
00:15:55 verbose #15998 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:55 verbose #15999 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:55 verbose #16000 > > │ ### iter                                                                     │
00:15:55 verbose #16001 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:55 verbose #16002 > >
00:15:55 verbose #16003 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:55 verbose #16004 > > inl iter forall (t : * -> *) u. (x : t u) : into_iterator u =
00:15:55 verbose #16005 > >     !\($'"!x.iter()"')
00:15:55 verbose #16006 > 00:15:55   debug #932 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6a8d97bd67209a5f53f01808ea36e21dd62d7333d73fb7616059dba45e5445bc/main.spi
00:15:56 verbose #16007 > >
00:15:56 verbose #16008 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:56 verbose #16009 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:56 verbose #16010 > > │ ### iter_map                                                                 │
00:15:56 verbose #16011 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:56 verbose #16012 > >
00:15:56 verbose #16013 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:56 verbose #16014 > > inl iter_map forall t u. (fn : t -> u) (iter : into_iterator t) : into_iterator
00:15:56 verbose #16015 > > u =
00:15:56 verbose #16016 > >     !\\(fn, $'"!iter.map(|x| $0(x))"')
00:15:56 verbose #16017 > 00:15:56   debug #933 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7aca380623d6cff5d87bc584692f349b2145dc99d5b47f693312e30201fd103d/main.spi
00:15:57 verbose #16018 > >
00:15:57 verbose #16019 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:57 verbose #16020 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:57 verbose #16021 > > │ ### try_for_each                                                             │
00:15:57 verbose #16022 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:57 verbose #16023 > >
00:15:57 verbose #16024 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:57 verbose #16025 > > inl try_for_each forall t. (fn : t -> rust.try ()) x : resultm.result' () string
00:15:57 verbose #16026 > > =
00:15:57 verbose #16027 > >     (!\($'"true; let mut !x = !x; let _result = !x.try_for_each(|x| { //"') :
00:15:57 verbose #16028 > > bool) |> ignore
00:15:57 verbose #16029 > >     (!\\(fn !\($'"x"'), $'"true; $0 }); //"') : bool) |> ignore
00:15:57 verbose #16030 > >     !\($'"_result.map_err(|x| x.into())"')
00:15:57 verbose #16031 > 00:15:56   debug #934 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/94065d92fdf11b8bd1a4bf9e6f2600230f1e9087f795661a20144c69011e3058/main.spi
00:15:57 verbose #16032 > >
00:15:57 verbose #16033 > > ── markdown ────────────────────────────────────────────────────────────────────
00:15:57 verbose #16034 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:15:57 verbose #16035 > > │ ### enumerate                                                                │
00:15:57 verbose #16036 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:15:57 verbose #16037 > >
00:15:57 verbose #16038 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:57 verbose #16039 > > inl enumerate forall dim {int; number} t. (ar : a dim t) : a dim (unativeint *
00:15:57 verbose #16040 > > t) =
00:15:57 verbose #16041 > >     inl (a ar) = ar
00:15:57 verbose #16042 > >     ar
00:15:57 verbose #16043 > >     |> am'.to_vec
00:15:57 verbose #16044 > >     |> into_iter
00:15:57 verbose #16045 > >     |> iter_enumerate
00:15:57 verbose #16046 > >     |> iter_collect
00:15:57 verbose #16047 > >     |> am'.vec_map' from_pair
00:15:57 verbose #16048 > >     |> am'.from_vec
00:15:58 verbose #16049 > 00:15:57   debug #935 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/675a81109fbb5345eb6ea28a1686e2090b4ddc7f0c55eed8814a87be1289488b/main.spi
00:15:58 verbose #16050 > >
00:15:58 verbose #16051 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:15:58 verbose #16052 > > //// test
00:15:58 verbose #16053 > > ///! rust
00:15:58 verbose #16054 > >
00:15:58 verbose #16055 > > types ()
00:15:58 verbose #16056 > > am'.init_series 0i32 2 1
00:15:58 verbose #16057 > > |> fun x => a x : _ int _
00:15:58 verbose #16058 > > |> enumerate
00:15:58 verbose #16059 > > |> fun (a x : _ int _) => x
00:15:58 verbose #16060 > > |> _assert_eq' ;[[ convert 0i32, 0; convert 1i32, 1; convert 2i32, 2 ]]
00:15:58 verbose #16061 > 00:15:57   debug #936 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4863f4f13e8dc31ed698fd4645f056b7c71245fbd48416f7bb63a6ba244cd5df/main.spi
00:16:02 verbose #16062 > >
00:16:02 verbose #16063 > > ╭─[ 4.81s - return value ]─────────────────────────────────────────────────────╮
00:16:02 verbose #16064 > > │ assert_eq' / actual: Array(MutCell([(0, 0), (1, 1), (2, 2)])) / expected:    │
00:16:02 verbose #16065 > > │ Array(MutCell([(0, 0), (1, 1), (2, 2)]))                                     │
00:16:02 verbose #16066 > > │                                                                              │
00:16:02 verbose #16067 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:03 verbose #16068 > 00:00:26 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 5387 }
00:16:03 verbose #16069 > 00:00:26   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/iter.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/iter.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:16:05 verbose #16070 > 00:00:29 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/iter.dib.ipynb to html
00:16:05 verbose #16071 > 00:00:29 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:16:05 verbose #16072 > 00:00:29 verbose #7 !   validate(nb)
00:16:06 verbose #16073 > 00:00:30 verbose #8 ! [NbConvertApp] Writing 287516 bytes to c:\home\git\polyglot\lib\spiral\iter.dib.html
00:16:07 verbose #16074 > 00:00:30 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 639 }
00:16:07 verbose #16075 > 00:00:30   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 639 }
00:16:07 verbose #16076 > 00:00:30   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/iter.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/iter.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:16:08 verbose #16077 > 00:00:31 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:16:08 verbose #16078 > 00:00:31   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:16:08 verbose #16079 > 00:00:32   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 6085 }
00:16:08   debug #16080 runtime.execute_with_options_async / { exit_code = 0; output_length = 8906 }
00:16:08   debug #22 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path iter.dib --retries 3
00:16:08   debug #16081 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path util.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:16:08 verbose #16082 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "util.dib", "--retries", "3"])) }
00:16:08 verbose #16083 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/util.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/util.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/util.dib" --output-path "c:/home/git/polyglot/lib/spiral/util.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:16:11 verbose #16084 > >
00:16:11 verbose #16085 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:11 verbose #16086 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:11 verbose #16087 > > │ # util                                                                       │
00:16:11 verbose #16088 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:15 verbose #16089 > >
00:16:15 verbose #16090 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:15 verbose #16091 > > //// test
00:16:15 verbose #16092 > >
00:16:15 verbose #16093 > > open testing
00:16:16 verbose #16094 > 00:16:15   debug #937 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7845de436c12d0ca65282fe0cd65832468ca943e72feba50e6b1bb441e251a/main.spi
00:16:16 verbose #16095 > >
00:16:16 verbose #16096 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:16 verbose #16097 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:16 verbose #16098 > > │ ### ski                                                                      │
00:16:16 verbose #16099 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:16 verbose #16100 > >
00:16:16 verbose #16101 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:16 verbose #16102 > > union rec ski =
00:16:16 verbose #16103 > >     | I
00:16:16 verbose #16104 > >     | K
00:16:16 verbose #16105 > >     | S
00:16:16 verbose #16106 > >     | App : ski * ski
00:16:16 verbose #16107 > >
00:16:16 verbose #16108 > > inl rec eval ski =
00:16:16 verbose #16109 > >     match ski with
00:16:16 verbose #16110 > >     | App (App (K, x), y) => x |> eval
00:16:16 verbose #16111 > >     | App (App (App (S, x), y), z) => App (App (x, z), App (y, z)) |> eval
00:16:16 verbose #16112 > >     | App (I, x) => x |> eval
00:16:16 verbose #16113 > >     | App (K, x) => App (K, eval x)
00:16:16 verbose #16114 > >     | App (f, x) => App (eval f, x) |> eval
00:16:16 verbose #16115 > >     | _ => ski
00:16:17 verbose #16116 > 00:16:16   debug #938 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/55f68dd739e62774e446e048bfbc0da20505423faa7837ca275a45e00b7aa12a/main.spi
00:16:17 verbose #16117 > >
00:16:17 verbose #16118 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:17 verbose #16119 > > //// test
00:16:17 verbose #16120 > >
00:16:17 verbose #16121 > > eval I
00:16:17 verbose #16122 > > |> _assert_eq I
00:16:17 verbose #16123 > >
00:16:17 verbose #16124 > > App (I, I)
00:16:17 verbose #16125 > > |> eval
00:16:17 verbose #16126 > > |> _assert_eq I
00:16:17 verbose #16127 > >
00:16:17 verbose #16128 > > App (I, App (I, I))
00:16:17 verbose #16129 > > |> eval
00:16:17 verbose #16130 > > |> _assert_eq I
00:16:17 verbose #16131 > >
00:16:17 verbose #16132 > > App (App (I, I), I)
00:16:17 verbose #16133 > > |> eval
00:16:17 verbose #16134 > > |> _assert_eq I
00:16:17 verbose #16135 > >
00:16:17 verbose #16136 > > App (App (App (I, I), I), I)
00:16:17 verbose #16137 > > |> eval
00:16:17 verbose #16138 > > |> _assert_eq I
00:16:17 verbose #16139 > >
00:16:17 verbose #16140 > > eval K
00:16:17 verbose #16141 > > |> _assert_eq K
00:16:17 verbose #16142 > >
00:16:17 verbose #16143 > > App (K, I)
00:16:17 verbose #16144 > > |> eval
00:16:17 verbose #16145 > > |> _assert_eq (App (K, I))
00:16:17 verbose #16146 > >
00:16:17 verbose #16147 > > App (K, K)
00:16:17 verbose #16148 > > |> eval
00:16:17 verbose #16149 > > |> _assert_eq (App (K, K))
00:16:17 verbose #16150 > >
00:16:17 verbose #16151 > > App (App (K, I), K)
00:16:17 verbose #16152 > > |> eval
00:16:17 verbose #16153 > > |> _assert_eq I
00:16:17 verbose #16154 > >
00:16:17 verbose #16155 > > App (App (K, K), I)
00:16:17 verbose #16156 > > |> eval
00:16:17 verbose #16157 > > |> _assert_eq K
00:16:17 verbose #16158 > >
00:16:17 verbose #16159 > > App (App (App (App (K, K), I), S), K)
00:16:17 verbose #16160 > > |> eval
00:16:17 verbose #16161 > > |> _assert_eq S
00:16:17 verbose #16162 > >
00:16:17 verbose #16163 > > eval S
00:16:17 verbose #16164 > > |> _assert_eq S
00:16:17 verbose #16165 > >
00:16:17 verbose #16166 > > App (App (App (S, I), I), I)
00:16:17 verbose #16167 > > |> eval
00:16:17 verbose #16168 > > |> _assert_eq I
00:16:17 verbose #16169 > >
00:16:17 verbose #16170 > > App (App (App (S, K), K), I)
00:16:17 verbose #16171 > > |> eval
00:16:17 verbose #16172 > > |> _assert_eq I
00:16:17 verbose #16173 > >
00:16:17 verbose #16174 > > App (App (App (S, K), I), (App (App (K, I), S)))
00:16:17 verbose #16175 > > |> eval
00:16:17 verbose #16176 > > |> _assert_eq I
00:16:17 verbose #16177 > >
00:16:17 verbose #16178 > > App (App (K, S), App (I, App (App (App (S, K), S), I)))
00:16:17 verbose #16179 > > |> eval
00:16:17 verbose #16180 > > |> _assert_eq S
00:16:17 verbose #16181 > >
00:16:17 verbose #16182 > > App (App (App (S, K), I), K)
00:16:17 verbose #16183 > > |> eval
00:16:17 verbose #16184 > > |> _assert_eq K
00:16:17 verbose #16185 > 00:16:16   debug #939 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e6eefee28c7d2dded6638cfb752cc7777423c10b0b777a8ffdcf84642865b015/main.spi
00:16:18 verbose #16186 > >
00:16:18 verbose #16187 > > ╭─[ 1.56s - stdout ]───────────────────────────────────────────────────────────╮
00:16:18 verbose #16188 > > │ assert_eq / actual: UH0_0 / expected: UH0_0                                  │
00:16:18 verbose #16189 > > │ assert_eq / actual: UH0_0 / expected: UH0_0                                  │
00:16:18 verbose #16190 > > │ assert_eq / actual: UH0_0 / expected: UH0_0                                  │
00:16:18 verbose #16191 > > │ assert_eq / actual: UH0_0 / expected: UH0_0                                  │
00:16:18 verbose #16192 > > │ assert_eq / actual: UH0_0 / expected: UH0_0                                  │
00:16:18 verbose #16193 > > │ assert_eq / actual: UH0_1 / expected: UH0_1                                  │
00:16:18 verbose #16194 > > │ assert_eq / actual: UH0_3 (UH0_1, UH0_0) / expected: UH0_3 (UH0_1, UH0_0)    │
00:16:18 verbose #16195 > > │ assert_eq / actual: UH0_3 (UH0_1, UH0_1) / expected: UH0_3 (UH0_1, UH0_1)    │
00:16:18 verbose #16196 > > │ assert_eq / actual: UH0_0 / expected: UH0_0                                  │
00:16:18 verbose #16197 > > │ assert_eq / actual: UH0_1 / expected: UH0_1                                  │
00:16:18 verbose #16198 > > │ assert_eq / actual: UH0_2 / expected: UH0_2                                  │
00:16:18 verbose #16199 > > │ assert_eq / actual: UH0_2 / expected: UH0_2                                  │
00:16:18 verbose #16200 > > │ assert_eq / actual: UH0_0 / expected: UH0_0                                  │
00:16:18 verbose #16201 > > │ assert_eq / actual: UH0_0 / expected: UH0_0                                  │
00:16:18 verbose #16202 > > │ assert_eq / actual: UH0_0 / expected: UH0_0                                  │
00:16:18 verbose #16203 > > │ assert_eq / actual: UH0_2 / expected: UH0_2                                  │
00:16:18 verbose #16204 > > │ assert_eq / actual: UH0_1 / expected: UH0_1                                  │
00:16:18 verbose #16205 > > │                                                                              │
00:16:18 verbose #16206 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:19 verbose #16207 > 00:00:10 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 3706 }
00:16:19 verbose #16208 > 00:00:10   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/util.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/util.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:16:21 verbose #16209 > 00:00:12 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/util.dib.ipynb to html
00:16:21 verbose #16210 > 00:00:12 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:16:21 verbose #16211 > 00:00:12 verbose #7 !   validate(nb)
00:16:22 verbose #16212 > 00:00:13 verbose #8 ! [NbConvertApp] Writing 284313 bytes to c:\home\git\polyglot\lib\spiral\util.dib.html
00:16:22 verbose #16213 > 00:00:14 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 639 }
00:16:22 verbose #16214 > 00:00:14   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 639 }
00:16:22 verbose #16215 > 00:00:14   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/util.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/util.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:16:23 verbose #16216 > 00:00:15 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:16:23 verbose #16217 > 00:00:15   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:16:24 verbose #16218 > 00:00:15   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 4404 }
00:16:24   debug #16219 runtime.execute_with_options_async / { exit_code = 0; output_length = 7241 }
00:16:24   debug #23 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path util.dib --retries 3
00:16:24   debug #16220 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path platform.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:16:24 verbose #16221 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "platform.dib", "--retries", "3"])) }
00:16:24 verbose #16222 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/platform.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/platform.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/platform.dib" --output-path "c:/home/git/polyglot/lib/spiral/platform.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:16:26 verbose #16223 > >
00:16:26 verbose #16224 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:26 verbose #16225 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:26 verbose #16226 > > │ # platform                                                                   │
00:16:26 verbose #16227 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:31 verbose #16228 > >
00:16:31 verbose #16229 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:31 verbose #16230 > > open rust_operators
00:16:32 verbose #16231 > 00:16:31   debug #940 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0d9bd8e5bb71a8e1d983506a46e54fb8c8e6cf2d0bd973135d4cdd580c5f6d39/main.spi
00:16:33 verbose #16232 > >
00:16:33 verbose #16233 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:33 verbose #16234 > > //// test
00:16:33 verbose #16235 > >
00:16:33 verbose #16236 > > open testing
00:16:33 verbose #16237 > 00:16:32   debug #941 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d06211d48c36e09624381aad71e69f817df1a545af31c21067514d4d391bdd05/main.spi
00:16:33 verbose #16238 > >
00:16:33 verbose #16239 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:33 verbose #16240 > > inl types () =
00:16:33 verbose #16241 > >     ()
00:16:33 verbose #16242 > 00:16:32   debug #942 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6b915db36f717519207a5062f276617aa2e4be6a0d84f84bbe23c18e473b69fb/main.spi
00:16:33 verbose #16243 > >
00:16:33 verbose #16244 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:33 verbose #16245 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:33 verbose #16246 > > │ ## fsharp                                                                    │
00:16:33 verbose #16247 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:33 verbose #16248 > >
00:16:33 verbose #16249 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:33 verbose #16250 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:33 verbose #16251 > > │ ### os_platform                                                              │
00:16:33 verbose #16252 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:33 verbose #16253 > >
00:16:33 verbose #16254 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:33 verbose #16255 > > nominal os_platform' = $'System.Runtime.InteropServices.OSPlatform'
00:16:33 verbose #16256 > >
00:16:33 verbose #16257 > > union os_platform =
00:16:33 verbose #16258 > >     | FreeBSD
00:16:33 verbose #16259 > >     | Linux
00:16:33 verbose #16260 > >     | OSX
00:16:33 verbose #16261 > >     | Windows
00:16:33 verbose #16262 > >
00:16:33 verbose #16263 > > inl os_platform = function
00:16:33 verbose #16264 > >     | FreeBSD => $'`os_platform'.FreeBSD' : os_platform'
00:16:33 verbose #16265 > >     | Linux => $'`os_platform'.Linux' : os_platform'
00:16:33 verbose #16266 > >     | OSX => $'`os_platform'.OSX' : os_platform'
00:16:33 verbose #16267 > >     | Windows => $'`os_platform'.Windows' : os_platform'
00:16:33 verbose #16268 > 00:16:33   debug #943 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f5a87992c66c8dbe642907f8caebd64849cb754001ee9e3043624501d7077dc2/main.spi
00:16:34 verbose #16269 > >
00:16:34 verbose #16270 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:34 verbose #16271 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:34 verbose #16272 > > │ ### run_platform                                                             │
00:16:34 verbose #16273 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:34 verbose #16274 > >
00:16:34 verbose #16275 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:34 verbose #16276 > > inl run_platform forall t. (fn : os_platform -> (() -> t)) : t =
00:16:34 verbose #16277 > >     inl result = dyn true
00:16:34 verbose #16278 > >     $'let mutable _!result : `t option = None '
00:16:34 verbose #16279 > >     $'\n#if _FREEBSD'
00:16:34 verbose #16280 > >     fn FreeBSD () |> emit_unit
00:16:34 verbose #16281 > >     $'#endif\n#if _LINUX'
00:16:34 verbose #16282 > >     fn Linux () |> emit_unit
00:16:34 verbose #16283 > >     $'#endif\n#if _OSX'
00:16:34 verbose #16284 > >     fn OSX () |> emit_unit
00:16:34 verbose #16285 > >     $'#endif\n#if _WINDOWS'
00:16:34 verbose #16286 > >     fn Windows () |> emit_unit
00:16:34 verbose #16287 > >     $'#endif'
00:16:34 verbose #16288 > >     $'|> fun x -> _!result <- Some x'
00:16:34 verbose #16289 > >     $'match _!result with Some x -> x | None -> failwith "runtime.run_platform
00:16:34 verbose #16290 > > _!result=None"'
00:16:34 verbose #16291 > 00:16:33   debug #944 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/451d77dadc16600c5370cc33244387a2744bdef0de145114e70f71aba7e032a1/main.spi
00:16:34 verbose #16292 > >
00:16:34 verbose #16293 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:34 verbose #16294 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:34 verbose #16295 > > │ ### is_os_platform                                                           │
00:16:34 verbose #16296 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:34 verbose #16297 > >
00:16:34 verbose #16298 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:34 verbose #16299 > > inl is_os_platform (x : os_platform') : bool =
00:16:34 verbose #16300 > >     x |> $'System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform'
00:16:34 verbose #16301 > 00:16:33   debug #945 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/14688d8d0240066e3e488aaef2461907f2997adcfb986793aaafbcfaf4811ceb/main.spi
00:16:34 verbose #16302 > >
00:16:34 verbose #16303 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:34 verbose #16304 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:34 verbose #16305 > > │ ### is_windows'                                                              │
00:16:34 verbose #16306 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:34 verbose #16307 > >
00:16:34 verbose #16308 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:34 verbose #16309 > > inl is_windows' () : bool =
00:16:34 verbose #16310 > >     run_platform function
00:16:34 verbose #16311 > >         | Windows => fun () => true
00:16:34 verbose #16312 > >         | _ => fun () => false
00:16:35 verbose #16313 > 00:16:34   debug #946 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/50104079a58385fd180388e3ed2c660b1e4f92496c409ed07b28ec915c83f117/main.spi
00:16:35 verbose #16314 > >
00:16:35 verbose #16315 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:35 verbose #16316 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:35 verbose #16317 > > │ ## platform                                                                  │
00:16:35 verbose #16318 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:35 verbose #16319 > >
00:16:35 verbose #16320 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:35 verbose #16321 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:35 verbose #16322 > > │ ### is_windows                                                               │
00:16:35 verbose #16323 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:35 verbose #16324 > >
00:16:35 verbose #16325 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:35 verbose #16326 > > inl is_windows () : bool =
00:16:35 verbose #16327 > >     run_target function
00:16:35 verbose #16328 > >         | Rust _ => fun () =>
00:16:35 verbose #16329 > >             !\($'"cfg\!(windows)"')
00:16:35 verbose #16330 > >         | Fsharp _ => fun () =>
00:16:35 verbose #16331 > >             Windows |> os_platform |> is_os_platform
00:16:35 verbose #16332 > >         | target => fun () => failwith $'$"platform.is_windows / target:
00:16:35 verbose #16333 > > {!target}"'
00:16:35 verbose #16334 > 00:16:34   debug #947 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ed4505ff75f8a37375453ea15585e2813c9f632fd95c2dd4f2fad4466d9e2e50/main.spi
00:16:35 verbose #16335 > >
00:16:35 verbose #16336 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:35 verbose #16337 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:35 verbose #16338 > > │ ### get_executable_suffix                                                    │
00:16:35 verbose #16339 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:35 verbose #16340 > >
00:16:35 verbose #16341 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:35 verbose #16342 > > inl get_executable_suffix () =
00:16:35 verbose #16343 > >     if is_windows ()
00:16:35 verbose #16344 > >     then ".exe"
00:16:35 verbose #16345 > >     else ""
00:16:35 verbose #16346 > 00:16:35   debug #948 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fe1234a8ab4a0d9960345c37af411f31ec8ad32f100cc7977975ab5883db9dfe/main.spi
00:16:35 verbose #16347 > >
00:16:35 verbose #16348 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:35 verbose #16349 > > //// test
00:16:35 verbose #16350 > >
00:16:35 verbose #16351 > > get_executable_suffix ()
00:16:36 verbose #16352 > 00:16:35   debug #949 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/025d3fc2697a6537b8580c38a4fd7c704ad555d4ca8717382d74dbeefddaffb0/main.spi
00:16:37 verbose #16353 > >
00:16:37 verbose #16354 > > ╭─[ 1.57s - return value ]─────────────────────────────────────────────────────╮
00:16:37 verbose #16355 > > │ .exe                                                                         │
00:16:37 verbose #16356 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:37 verbose #16357 > >
00:16:37 verbose #16358 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:37 verbose #16359 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:37 verbose #16360 > > │ ## main                                                                      │
00:16:37 verbose #16361 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:37 verbose #16362 > >
00:16:37 verbose #16363 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:37 verbose #16364 > > inl main () =
00:16:37 verbose #16365 > >     types ()
00:16:37 verbose #16366 > >     $'let is_windows () = !is_windows ()' : ()
00:16:37 verbose #16367 > >     $'let get_executable_suffix () = !get_executable_suffix ()' : ()
00:16:37 verbose #16368 > 00:16:36   debug #950 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/00e8c8b882539448a4b98d68cc1a02c9c0a650ed487b609865573cb7f6836636/main.spi
00:16:38 verbose #16369 > 00:00:13 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 6140 }
00:16:38 verbose #16370 > 00:00:13   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/platform.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/platform.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:16:40 verbose #16371 > 00:00:15 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/platform.dib.ipynb to html
00:16:40 verbose #16372 > 00:00:15 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:16:40 verbose #16373 > 00:00:15 verbose #7 !   validate(nb)
00:16:41 verbose #16374 > 00:00:17 verbose #8 ! [NbConvertApp] Writing 288687 bytes to c:\home\git\polyglot\lib\spiral\platform.dib.html
00:16:41 verbose #16375 > 00:00:17 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 647 }
00:16:41 verbose #16376 > 00:00:17   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 647 }
00:16:41 verbose #16377 > 00:00:17   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/platform.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/platform.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:16:43 verbose #16378 > 00:00:18 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:16:43 verbose #16379 > 00:00:18   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:16:43 verbose #16380 > 00:00:19   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 6846 }
00:16:43   debug #16381 runtime.execute_with_options_async / { exit_code = 0; output_length = 9749 }
00:16:43   debug #24 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path platform.dib --retries 3
00:16:43   debug #16382 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path stream.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:16:43 verbose #16383 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "stream.dib", "--retries", "3"])) }
00:16:43 verbose #16384 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/stream.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/stream.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/stream.dib" --output-path "c:/home/git/polyglot/lib/spiral/stream.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:16:45 verbose #16385 > >
00:16:45 verbose #16386 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:45 verbose #16387 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:45 verbose #16388 > > │ # stream                                                                     │
00:16:45 verbose #16389 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:49 verbose #16390 > >
00:16:49 verbose #16391 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:49 verbose #16392 > > open rust_operators
00:16:50 verbose #16393 > 00:16:49   debug #951 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0d9bd8e5bb71a8e1d983506a46e54fb8c8e6cf2d0bd973135d4cdd580c5f6d39/main.spi
00:16:51 verbose #16394 > >
00:16:51 verbose #16395 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:51 verbose #16396 > > //// test
00:16:51 verbose #16397 > >
00:16:51 verbose #16398 > > open testing
00:16:51 verbose #16399 > 00:16:50   debug #952 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d06211d48c36e09624381aad71e69f817df1a545af31c21067514d4d391bdd05/main.spi
00:16:51 verbose #16400 > >
00:16:51 verbose #16401 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:51 verbose #16402 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:51 verbose #16403 > > │ ## types                                                                     │
00:16:51 verbose #16404 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:51 verbose #16405 > >
00:16:51 verbose #16406 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:51 verbose #16407 > > inl types () =
00:16:51 verbose #16408 > >     backend_switch {
00:16:51 verbose #16409 > >         Fsharp = fun () =>
00:16:51 verbose #16410 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:51 verbose #16411 > > Fable.Core.Emit(\"encoding_rs_io::DecodeReaderBytes<$0, $1>\")>]]\n#endif\ntype
00:16:51 verbose #16412 > > encoding_rs_io_DecodeReaderBytes<'T, 'U> = class end"
00:16:51 verbose #16413 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:51 verbose #16414 > > Fable.Core.Emit(\"std::io::BufReader<$0>\")>]]\n#endif\ntype
00:16:51 verbose #16415 > > std_io_BufReader<'T> = class end"
00:16:51 verbose #16416 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:51 verbose #16417 > > Fable.Core.Emit(\"std::io::Cursor<$0>\")>]]\n#endif\ntype std_io_Cursor<'T> =
00:16:51 verbose #16418 > > class end"
00:16:51 verbose #16419 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:51 verbose #16420 > > Fable.Core.Emit(\"std::io::Error\")>]]\n#endif\ntype std_io_Error = class end"
00:16:51 verbose #16421 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:51 verbose #16422 > > Fable.Core.Emit(\"std::io::Lines<$0>\")>]]\n#endif\ntype std_io_Lines<'T> =
00:16:51 verbose #16423 > > class end"
00:16:51 verbose #16424 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:16:51 verbose #16425 > > Fable.Core.Emit(\"tokio::io::BufReader<$0>\")>]]\n#endif\ntype
00:16:51 verbose #16426 > > tokio_io_BufReader<'T> = class end"
00:16:51 verbose #16427 > >         Python = fun () => ()
00:16:51 verbose #16428 > >     }
00:16:51 verbose #16429 > 00:16:51   debug #953 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6a477ed5549bae57fd4894167670dacb0e284716f27eac7ad8fd2b7f0796ffc7/main.spi
00:16:51 verbose #16430 > >
00:16:51 verbose #16431 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:51 verbose #16432 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:51 verbose #16433 > > │ ## stream                                                                    │
00:16:51 verbose #16434 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:51 verbose #16435 > >
00:16:51 verbose #16436 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:51 verbose #16437 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:51 verbose #16438 > > │ ### stream                                                                   │
00:16:51 verbose #16439 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:51 verbose #16440 > >
00:16:51 verbose #16441 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:51 verbose #16442 > > union rec stream t =
00:16:51 verbose #16443 > >     | StreamCons : t * (() -> stream t)
00:16:51 verbose #16444 > >     | StreamNil
00:16:52 verbose #16445 > 00:16:51   debug #954 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/74d216cf67fe9275df03f0d10ad61b236b8caac6911a4c99691764916bd12ea4/main.spi
00:16:52 verbose #16446 > >
00:16:52 verbose #16447 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:52 verbose #16448 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:52 verbose #16449 > > │ ### fold                                                                     │
00:16:52 verbose #16450 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:52 verbose #16451 > >
00:16:52 verbose #16452 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:52 verbose #16453 > > inl fold fn init s =
00:16:52 verbose #16454 > >     inl rec body acc = function
00:16:52 verbose #16455 > >         | StreamCons (st, fn') => loop (fn acc st) (fn' ())
00:16:52 verbose #16456 > >         | StreamNil => acc
00:16:52 verbose #16457 > >     and inl loop acc = join_body body acc
00:16:52 verbose #16458 > >     loop init s
00:16:52 verbose #16459 > 00:16:51   debug #955 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fed7716c23edc87d57f17ee5a79048c520f93f1e3db698846a2e243376ac1ceb/main.spi
00:16:52 verbose #16460 > >
00:16:52 verbose #16461 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:52 verbose #16462 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:52 verbose #16463 > > │ ### fold_back                                                                │
00:16:52 verbose #16464 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:52 verbose #16465 > >
00:16:52 verbose #16466 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:52 verbose #16467 > > inl fold_back fn s init =
00:16:52 verbose #16468 > >     inl rec body acc = function
00:16:52 verbose #16469 > >         | StreamCons (st, fn') => fn st (loop acc (fn' ()))
00:16:52 verbose #16470 > >         | StreamNil => acc
00:16:52 verbose #16471 > >     and inl loop acc = join_body body acc
00:16:52 verbose #16472 > >     loop init s
00:16:52 verbose #16473 > 00:16:52   debug #956 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/db7c51117713c0a6e5194a85dc6b20179472e5d460e33930715519681f08519a/main.spi
00:16:53 verbose #16474 > >
00:16:53 verbose #16475 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:53 verbose #16476 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:53 verbose #16477 > > │ ### to_list                                                                  │
00:16:53 verbose #16478 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:53 verbose #16479 > >
00:16:53 verbose #16480 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:53 verbose #16481 > > inl to_list s =
00:16:53 verbose #16482 > >     (s, [[]])
00:16:53 verbose #16483 > >     ||> fold_back fun x acc =>
00:16:53 verbose #16484 > >         x :: acc
00:16:53 verbose #16485 > 00:16:52   debug #957 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c4ab68d0d120d42d6171b9a68c5225f55e04d65d85618ba85b207da381ab0e5d/main.spi
00:16:53 verbose #16486 > >
00:16:53 verbose #16487 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:53 verbose #16488 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:53 verbose #16489 > > │ ### rev                                                                      │
00:16:53 verbose #16490 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:53 verbose #16491 > >
00:16:53 verbose #16492 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:53 verbose #16493 > > inl rev s =
00:16:53 verbose #16494 > >     (StreamNil, s)
00:16:53 verbose #16495 > >     ||> fold fun s x =>
00:16:53 verbose #16496 > >         StreamCons (x, fun () => s)
00:16:53 verbose #16497 > 00:16:52   debug #958 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/757e0ab33510127a5a729c3e0d7464db1fe16542e9efce1bba05692710fc72ea/main.spi
00:16:53 verbose #16498 > >
00:16:53 verbose #16499 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:53 verbose #16500 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:53 verbose #16501 > > │ ### from_list                                                                │
00:16:53 verbose #16502 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:53 verbose #16503 > >
00:16:53 verbose #16504 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:53 verbose #16505 > > inl from_list list =
00:16:53 verbose #16506 > >     (list, StreamNil)
00:16:53 verbose #16507 > >     ||> listm.foldBack fun x acc =>
00:16:53 verbose #16508 > >         StreamCons (x, fun () => acc)
00:16:53 verbose #16509 > 00:16:53   debug #959 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/19273c4e543e8214da43a5910ce9be60b8ae6b710f97d941322c42f26936df4b/main.spi
00:16:54 verbose #16510 > >
00:16:54 verbose #16511 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:54 verbose #16512 > > //// test
00:16:54 verbose #16513 > >
00:16:54 verbose #16514 > > listm.init 3i32 id
00:16:54 verbose #16515 > > |> from_list
00:16:54 verbose #16516 > > |> rev
00:16:54 verbose #16517 > > |> to_list
00:16:54 verbose #16518 > > |> _assert_eq [[ 2; 1; 0 ]]
00:16:54 verbose #16519 > 00:16:53   debug #960 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/99677b86ccb7fd772f696d69263ad080ea3b8aff5f6bce22ba49e671a96539dc/main.spi
00:16:55 verbose #16520 > >
00:16:55 verbose #16521 > > ╭─[ 1.29s - stdout ]───────────────────────────────────────────────────────────╮
00:16:55 verbose #16522 > > │ assert_eq / actual: UH0_1 (2, UH0_1 (1, UH0_1 (0, UH0_0))) / expected: UH0_1 │
00:16:55 verbose #16523 > > │ (2, UH0_1 (1, UH0_1 (0, UH0_0)))                                             │
00:16:55 verbose #16524 > > │                                                                              │
00:16:55 verbose #16525 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:55 verbose #16526 > >
00:16:55 verbose #16527 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:55 verbose #16528 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:55 verbose #16529 > > │ ### try_item                                                                 │
00:16:55 verbose #16530 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:55 verbose #16531 > >
00:16:55 verbose #16532 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:55 verbose #16533 > > inl try_item i s =
00:16:55 verbose #16534 > >     inl rec body i = function
00:16:55 verbose #16535 > >         | StreamCons (x, _) when i <= 0 => Some x
00:16:55 verbose #16536 > >         | StreamCons (_, fn) => loop (i - 1) (fn ())
00:16:55 verbose #16537 > >         | StreamNil => None
00:16:55 verbose #16538 > >     and inl loop acc s' =
00:16:55 verbose #16539 > >         match var_is acc, var_is s' with
00:16:55 verbose #16540 > >         | false, false => body acc s'
00:16:55 verbose #16541 > >         | _ =>
00:16:55 verbose #16542 > >             inl acc = dyn acc
00:16:55 verbose #16543 > >             inl s' = dyn s'
00:16:55 verbose #16544 > >             join body acc s'
00:16:55 verbose #16545 > >     loop i s
00:16:55 verbose #16546 > >
00:16:55 verbose #16547 > > inl item i =
00:16:55 verbose #16548 > >     try_item i >> optionm.value
00:16:55 verbose #16549 > 00:16:54   debug #961 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ceae4a5daa40b27c4d8e78888312c5b663148e64cd99d76dd6fc9d0e235f0bc5/main.spi
00:16:55 verbose #16550 > >
00:16:55 verbose #16551 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:55 verbose #16552 > > //// test
00:16:55 verbose #16553 > >
00:16:55 verbose #16554 > > listm.init 10i32 id
00:16:55 verbose #16555 > > |> from_list
00:16:55 verbose #16556 > > |> item 9i32
00:16:55 verbose #16557 > > |> _assert_eq 9
00:16:56 verbose #16558 > 00:16:55   debug #962 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5e93d78170b0c18ab255da922318ea33956332ec2a5352fbd94acee458e81c9c/main.spi
00:16:56 verbose #16559 > >
00:16:56 verbose #16560 > > ╭─[ 378.00ms - stdout ]────────────────────────────────────────────────────────╮
00:16:56 verbose #16561 > > │ assert_eq / actual: 9 / expected: 9                                          │
00:16:56 verbose #16562 > > │                                                                              │
00:16:56 verbose #16563 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:56 verbose #16564 > >
00:16:56 verbose #16565 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:56 verbose #16566 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:56 verbose #16567 > > │ ### new_infinite_stream                                                      │
00:16:56 verbose #16568 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:56 verbose #16569 > >
00:16:56 verbose #16570 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:56 verbose #16571 > > inl new_infinite_stream fn =
00:16:56 verbose #16572 > >     inl rec loop n =
00:16:56 verbose #16573 > >         StreamCons (fn n, fun () => loop (n + 1))
00:16:56 verbose #16574 > >     loop 0
00:16:56 verbose #16575 > >
00:16:56 verbose #16576 > > inl new_infinite_stream_ fn =
00:16:56 verbose #16577 > >     let rec loop n =
00:16:56 verbose #16578 > >         StreamCons (fn n, fun () => loop (n + 1))
00:16:56 verbose #16579 > >     loop 0
00:16:56 verbose #16580 > 00:16:55   debug #963 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0ef293c28bc7eda7dbc9f9d326652385991c413275fc3a21b46349225c130881/main.spi
00:16:56 verbose #16581 > >
00:16:56 verbose #16582 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:56 verbose #16583 > > //// test
00:16:56 verbose #16584 > >
00:16:56 verbose #16585 > > new_infinite_stream print_and_return
00:16:56 verbose #16586 > > |> item 4i32
00:16:56 verbose #16587 > > |> _assert_eq 4i32
00:16:56 verbose #16588 > 00:16:56   debug #964 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/474be230a0499650ceb57b6ff985a680e0e6ae6db3eab0ce364296f702329a88/main.spi
00:16:56 verbose #16589 > >
00:16:56 verbose #16590 > > ╭─[ 407.84ms - stdout ]────────────────────────────────────────────────────────╮
00:16:56 verbose #16591 > > │ print_and_return / x: 0                                                      │
00:16:56 verbose #16592 > > │ print_and_return / x: 1                                                      │
00:16:56 verbose #16593 > > │ print_and_return / x: 2                                                      │
00:16:56 verbose #16594 > > │ print_and_return / x: 3                                                      │
00:16:56 verbose #16595 > > │ print_and_return / x: 4                                                      │
00:16:56 verbose #16596 > > │ assert_eq / actual: 4 / expected: 4                                          │
00:16:56 verbose #16597 > > │                                                                              │
00:16:56 verbose #16598 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:56 verbose #16599 > >
00:16:56 verbose #16600 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:56 verbose #16601 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:56 verbose #16602 > > │ ### new_finite_stream                                                        │
00:16:56 verbose #16603 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:56 verbose #16604 > >
00:16:56 verbose #16605 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:56 verbose #16606 > > inl new_finite_stream fn max =
00:16:56 verbose #16607 > >     inl rec loop n =
00:16:56 verbose #16608 > >         if n >= max
00:16:56 verbose #16609 > >         then StreamNil
00:16:56 verbose #16610 > >         else StreamCons (fn n, fun () => loop (n + 1))
00:16:56 verbose #16611 > >     loop 0
00:16:57 verbose #16612 > 00:16:56   debug #965 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5a8fadd88faff80e7af5a78bfb0bc8a12075df87ed6d902ba0fec294521f39f6/main.spi
00:16:57 verbose #16613 > >
00:16:57 verbose #16614 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:57 verbose #16615 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:57 verbose #16616 > > │ ### memoize                                                                  │
00:16:57 verbose #16617 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:57 verbose #16618 > >
00:16:57 verbose #16619 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:57 verbose #16620 > > union memoized_stream t =
00:16:57 verbose #16621 > >     | NotComputed : () -> stream t
00:16:57 verbose #16622 > >     | Computed : stream t
00:16:57 verbose #16623 > >
00:16:57 verbose #16624 > > inl memoize s =
00:16:57 verbose #16625 > >     inl rec body s =
00:16:57 verbose #16626 > >         inl state = mut (NotComputed s)
00:16:57 verbose #16627 > >         fun () =>
00:16:57 verbose #16628 > >             match *state with
00:16:57 verbose #16629 > >             | Computed x => x
00:16:57 verbose #16630 > >             | NotComputed fn =>
00:16:57 verbose #16631 > >                 inl new_state =
00:16:57 verbose #16632 > >                     match fn () with
00:16:57 verbose #16633 > >                     | StreamNil => StreamNil
00:16:57 verbose #16634 > >                     | StreamCons (x, fn) => StreamCons (x, loop fn)
00:16:57 verbose #16635 > >                 state <- Computed new_state
00:16:57 verbose #16636 > >                 new_state
00:16:57 verbose #16637 > >     and inl loop s' = join_body_unit body s s'
00:16:57 verbose #16638 > >     loop (fun () => s)
00:16:57 verbose #16639 > 00:16:56   debug #966 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b5ce8edee5ceed0780241ba88397c078e92e985f5e81829f1e6f92120a2ae621/main.spi
00:16:57 verbose #16640 > >
00:16:57 verbose #16641 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:57 verbose #16642 > > //// test
00:16:57 verbose #16643 > >
00:16:57 verbose #16644 > > inl memo_stream = new_finite_stream print_and_return 10 |> memoize
00:16:57 verbose #16645 > >
00:16:57 verbose #16646 > > memo_stream ()
00:16:57 verbose #16647 > > |> item 3i32
00:16:57 verbose #16648 > > |> _assert_eq 3i32
00:16:57 verbose #16649 > >
00:16:57 verbose #16650 > > memo_stream ()
00:16:57 verbose #16651 > > |> item 5i32
00:16:57 verbose #16652 > > |> _assert_eq 5i32
00:16:57 verbose #16653 > 00:16:57   debug #967 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bd34ac1873e9a3c2c5e36d04b9f70f0ac951de1736b2947c4796bd2911759db9/main.spi
00:16:58 verbose #16654 > >
00:16:58 verbose #16655 > > ╭─[ 771.35ms - stdout ]────────────────────────────────────────────────────────╮
00:16:58 verbose #16656 > > │ print_and_return / x: 0                                                      │
00:16:58 verbose #16657 > > │ print_and_return / x: 1                                                      │
00:16:58 verbose #16658 > > │ print_and_return / x: 2                                                      │
00:16:58 verbose #16659 > > │ print_and_return / x: 3                                                      │
00:16:58 verbose #16660 > > │ assert_eq / actual: 3 / expected: 3                                          │
00:16:58 verbose #16661 > > │ print_and_return / x: 4                                                      │
00:16:58 verbose #16662 > > │ print_and_return / x: 5                                                      │
00:16:58 verbose #16663 > > │ assert_eq / actual: 5 / expected: 5                                          │
00:16:58 verbose #16664 > > │                                                                              │
00:16:58 verbose #16665 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:58 verbose #16666 > >
00:16:58 verbose #16667 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:58 verbose #16668 > > //// test
00:16:58 verbose #16669 > >
00:16:58 verbose #16670 > > inl memo_stream = new_infinite_stream_ print_and_return |> memoize
00:16:58 verbose #16671 > >
00:16:58 verbose #16672 > > memo_stream ()
00:16:58 verbose #16673 > > |> item 3i32
00:16:58 verbose #16674 > > |> _assert_eq 3i32
00:16:58 verbose #16675 > >
00:16:58 verbose #16676 > > memo_stream ()
00:16:58 verbose #16677 > > |> item 5i32
00:16:58 verbose #16678 > > |> _assert_eq 5i32
00:16:58 verbose #16679 > 00:16:57   debug #968 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/56998bcb546f14a95b9e124291c41f1a8914f2552f8395b9ad08a68569180acb/main.spi
00:16:58 verbose #16680 > >
00:16:58 verbose #16681 > > ╭─[ 428.65ms - stdout ]────────────────────────────────────────────────────────╮
00:16:58 verbose #16682 > > │ print_and_return / x: 0                                                      │
00:16:58 verbose #16683 > > │ print_and_return / x: 1                                                      │
00:16:58 verbose #16684 > > │ print_and_return / x: 2                                                      │
00:16:58 verbose #16685 > > │ print_and_return / x: 3                                                      │
00:16:58 verbose #16686 > > │ assert_eq / actual: 3 / expected: 3                                          │
00:16:58 verbose #16687 > > │ print_and_return / x: 4                                                      │
00:16:58 verbose #16688 > > │ print_and_return / x: 5                                                      │
00:16:58 verbose #16689 > > │ assert_eq / actual: 5 / expected: 5                                          │
00:16:58 verbose #16690 > > │                                                                              │
00:16:58 verbose #16691 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:58 verbose #16692 > >
00:16:58 verbose #16693 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:58 verbose #16694 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:58 verbose #16695 > > │ ### unfold                                                                   │
00:16:58 verbose #16696 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:58 verbose #16697 > >
00:16:58 verbose #16698 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:58 verbose #16699 > > inl unfold f x0 =
00:16:58 verbose #16700 > >     inl rec body x =
00:16:58 verbose #16701 > >         match f x with
00:16:58 verbose #16702 > >         | Some (x', y) => StreamCons (x', fun () => loop y)
00:16:58 verbose #16703 > >         | None => StreamNil
00:16:58 verbose #16704 > >     and inl loop x = join_body_unit body x0 x
00:16:58 verbose #16705 > >     loop x0
00:16:59 verbose #16706 > 00:16:58   debug #969 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0c415045ee3c1ff51be2a20e47b5c207bafe3d742d9e466e565aa7cc3049bc4a/main.spi
00:16:59 verbose #16707 > >
00:16:59 verbose #16708 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:59 verbose #16709 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:59 verbose #16710 > > │ ### iterate                                                                  │
00:16:59 verbose #16711 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:59 verbose #16712 > >
00:16:59 verbose #16713 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:59 verbose #16714 > > inl iterate f =
00:16:59 verbose #16715 > >     unfold (fun x => Some (x, f x))
00:16:59 verbose #16716 > 00:16:58   debug #970 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/92c1ad47d79786d05b2d33bc6ec1c7f0431bd78a7c553898b7c860484c4b3042/main.spi
00:16:59 verbose #16717 > >
00:16:59 verbose #16718 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:59 verbose #16719 > > //// test
00:16:59 verbose #16720 > >
00:16:59 verbose #16721 > > iterate ((*) 2) 1i32
00:16:59 verbose #16722 > > |> item 10i32
00:16:59 verbose #16723 > > |> _assert_eq 1024
00:16:59 verbose #16724 > 00:16:59   debug #971 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b5ac2bae159bcc2b11a824e6429d2c480b815bf206241cab22df094a77c4603a/main.spi
00:16:59 verbose #16725 > >
00:16:59 verbose #16726 > > ╭─[ 382.77ms - stdout ]────────────────────────────────────────────────────────╮
00:16:59 verbose #16727 > > │ assert_eq / actual: 1024 / expected: 1024                                    │
00:16:59 verbose #16728 > > │                                                                              │
00:16:59 verbose #16729 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:59 verbose #16730 > >
00:16:59 verbose #16731 > > ── markdown ────────────────────────────────────────────────────────────────────
00:16:59 verbose #16732 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:16:59 verbose #16733 > > │ ### take_while                                                               │
00:16:59 verbose #16734 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:16:59 verbose #16735 > >
00:16:59 verbose #16736 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:16:59 verbose #16737 > > inl take_while cond s =
00:16:59 verbose #16738 > >     inl rec body i = function
00:16:59 verbose #16739 > >         | StreamCons (st, fn) when cond st i => StreamCons (st, fun () => loop
00:16:59 verbose #16740 > > (i + 1) (fn ()))
00:16:59 verbose #16741 > >         | _ => StreamNil
00:16:59 verbose #16742 > >     and inl loop i = join_body body i
00:16:59 verbose #16743 > >     loop 0 s
00:17:00 verbose #16744 > 00:16:59   debug #972 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/64a5b7ea236ff2fa019aece93c40a528398019f8abb999ad33ecb2ec7849846b/main.spi
00:17:00 verbose #16745 > >
00:17:00 verbose #16746 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:00 verbose #16747 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:00 verbose #16748 > > │ ### sum                                                                      │
00:17:00 verbose #16749 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:00 verbose #16750 > >
00:17:00 verbose #16751 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:00 verbose #16752 > > inl sum seq =
00:17:00 verbose #16753 > >     seq |> fold (+) 0
00:17:00 verbose #16754 > 00:16:59   debug #973 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/00529f06bb391e086af13db6fc0826c6b9090e30b4b06c9aae3f0ff9e0b39ace/main.spi
00:17:00 verbose #16755 > >
00:17:00 verbose #16756 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:00 verbose #16757 > > //// test
00:17:00 verbose #16758 > >
00:17:00 verbose #16759 > > listm.init 10i32 id
00:17:00 verbose #16760 > > |> from_list
00:17:00 verbose #16761 > > |> sum
00:17:00 verbose #16762 > > |> _assert_eq 45
00:17:00 verbose #16763 > 00:17:00   debug #974 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f000a81c0a31a60877f4f6272f0ba610839d2d6a57fb2c2fd93a5be79db906ce/main.spi
00:17:01 verbose #16764 > >
00:17:01 verbose #16765 > > ╭─[ 432.07ms - stdout ]────────────────────────────────────────────────────────╮
00:17:01 verbose #16766 > > │ assert_eq / actual: 45 / expected: 45                                        │
00:17:01 verbose #16767 > > │                                                                              │
00:17:01 verbose #16768 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:01 verbose #16769 > >
00:17:01 verbose #16770 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:01 verbose #16771 > > //// test
00:17:01 verbose #16772 > >
00:17:01 verbose #16773 > > new_finite_stream print_and_return 10i32
00:17:01 verbose #16774 > > |> take_while (fun n (_ : i32) => n < 5)
00:17:01 verbose #16775 > > |> sum
00:17:01 verbose #16776 > > |> _assert_eq 10
00:17:01 verbose #16777 > 00:17:00   debug #975 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f74ee5ac902c9752f18ac3a87f3cc99e6eb912510124a72a9025aa65981a1a85/main.spi
00:17:01 verbose #16778 > >
00:17:01 verbose #16779 > > ╭─[ 382.31ms - stdout ]────────────────────────────────────────────────────────╮
00:17:01 verbose #16780 > > │ print_and_return / x: 0                                                      │
00:17:01 verbose #16781 > > │ print_and_return / x: 1                                                      │
00:17:01 verbose #16782 > > │ print_and_return / x: 2                                                      │
00:17:01 verbose #16783 > > │ print_and_return / x: 3                                                      │
00:17:01 verbose #16784 > > │ print_and_return / x: 4                                                      │
00:17:01 verbose #16785 > > │ print_and_return / x: 5                                                      │
00:17:01 verbose #16786 > > │ assert_eq / actual: 10 / expected: 10                                        │
00:17:01 verbose #16787 > > │                                                                              │
00:17:01 verbose #16788 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:01 verbose #16789 > >
00:17:01 verbose #16790 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:01 verbose #16791 > > //// test
00:17:01 verbose #16792 > >
00:17:01 verbose #16793 > > new_infinite_stream print_and_return
00:17:01 verbose #16794 > > |> take_while (fun n (_ : i32) => n < 5i32)
00:17:01 verbose #16795 > > |> sum
00:17:01 verbose #16796 > > |> _assert_eq 10
00:17:01 verbose #16797 > 00:17:00   debug #976 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6175d353962157b2f0284624c71699536e1252beb51fc1f88bfa6318c1a07a54/main.spi
00:17:01 verbose #16798 > >
00:17:01 verbose #16799 > > ╭─[ 388.48ms - stdout ]────────────────────────────────────────────────────────╮
00:17:01 verbose #16800 > > │ print_and_return / x: 0                                                      │
00:17:01 verbose #16801 > > │ print_and_return / x: 1                                                      │
00:17:01 verbose #16802 > > │ print_and_return / x: 2                                                      │
00:17:01 verbose #16803 > > │ print_and_return / x: 3                                                      │
00:17:01 verbose #16804 > > │ print_and_return / x: 4                                                      │
00:17:01 verbose #16805 > > │ print_and_return / x: 5                                                      │
00:17:01 verbose #16806 > > │ assert_eq / actual: 10 / expected: 10                                        │
00:17:01 verbose #16807 > > │                                                                              │
00:17:01 verbose #16808 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:01 verbose #16809 > >
00:17:01 verbose #16810 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:01 verbose #16811 > > //// test
00:17:01 verbose #16812 > >
00:17:01 verbose #16813 > > iterate ((*) 6) 1i32
00:17:01 verbose #16814 > > |> take_while (fun _ i => i <= 7i32)
00:17:01 verbose #16815 > > |> to_list
00:17:01 verbose #16816 > > |> _assert_eq [[ 1i32; 6; 36; 216; 1296; 7776; 46656; 279936 ]]
00:17:02 verbose #16817 > 00:17:01   debug #977 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/19b10f5ca4a8880f68bf080077397273b9a14ae64d5bc6c4e5d0fd1b6bf33b86/main.spi
00:17:02 verbose #16818 > >
00:17:02 verbose #16819 > > ╭─[ 413.40ms - stdout ]────────────────────────────────────────────────────────╮
00:17:02 verbose #16820 > > │ assert_eq / actual: UH0_1                                                    │
00:17:02 verbose #16821 > > │   (1,                                                                        │
00:17:02 verbose #16822 > > │    UH0_1                                                                     │
00:17:02 verbose #16823 > > │      (6,                                                                     │
00:17:02 verbose #16824 > > │       UH0_1                                                                  │
00:17:02 verbose #16825 > > │         (36,                                                                 │
00:17:02 verbose #16826 > > │          UH0_1                                                               │
00:17:02 verbose #16827 > > │            (216,                                                             │
00:17:02 verbose #16828 > > │             UH0_1 (1296, UH0_1 (7776, UH0_1 (46656, UH0_1 (279936,           │
00:17:02 verbose #16829 > > │ UH0_0)))))))) / expected: UH0_1                                              │
00:17:02 verbose #16830 > > │   (1,                                                                        │
00:17:02 verbose #16831 > > │    UH0_1                                                                     │
00:17:02 verbose #16832 > > │      (6,                                                                     │
00:17:02 verbose #16833 > > │       UH0_1                                                                  │
00:17:02 verbose #16834 > > │         (36,                                                                 │
00:17:02 verbose #16835 > > │          UH0_1                                                               │
00:17:02 verbose #16836 > > │            (216,                                                             │
00:17:02 verbose #16837 > > │             UH0_1 (1296, UH0_1 (7776, UH0_1 (46656, UH0_1 (279936,           │
00:17:02 verbose #16838 > > │ UH0_0))))))))                                                                │
00:17:02 verbose #16839 > > │                                                                              │
00:17:02 verbose #16840 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:02 verbose #16841 > >
00:17:02 verbose #16842 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:02 verbose #16843 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:02 verbose #16844 > > │ ### indexed                                                                  │
00:17:02 verbose #16845 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:02 verbose #16846 > >
00:17:02 verbose #16847 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:02 verbose #16848 > > inl indexed s =
00:17:02 verbose #16849 > >     ((StreamNil, 0), s)
00:17:02 verbose #16850 > >     ||> fold fun (acc, i) x =>
00:17:02 verbose #16851 > >         StreamCons ((i, x), fun () => acc), i + 1
00:17:02 verbose #16852 > >     |> fst
00:17:02 verbose #16853 > >     |> rev
00:17:02 verbose #16854 > 00:17:01   debug #978 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1684ce3b636c0f24c4b7d1cf50f2472860d65f6c1b600b261034baffd05c8b0b/main.spi
00:17:02 verbose #16855 > >
00:17:02 verbose #16856 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:02 verbose #16857 > > //// test
00:17:02 verbose #16858 > >
00:17:02 verbose #16859 > > listm.init 10i32 ((*) 2)
00:17:02 verbose #16860 > > |> from_list
00:17:02 verbose #16861 > > |> indexed
00:17:02 verbose #16862 > > |> item 5i32
00:17:02 verbose #16863 > > |> _assert_eq (5i32, 10i32)
00:17:02 verbose #16864 > 00:17:02   debug #979 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/47884609c111879790a18309e5bc92fa42a1e0ff2c15374491c30b021d502695/main.spi
00:17:03 verbose #16865 > >
00:17:03 verbose #16866 > > ╭─[ 410.72ms - stdout ]────────────────────────────────────────────────────────╮
00:17:03 verbose #16867 > > │ assert_eq / actual: struct (5, 10) / expected: struct (5, 10)                │
00:17:03 verbose #16868 > > │                                                                              │
00:17:03 verbose #16869 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:03 verbose #16870 > >
00:17:03 verbose #16871 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:03 verbose #16872 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:03 verbose #16873 > > │ ### map                                                                      │
00:17:03 verbose #16874 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:03 verbose #16875 > >
00:17:03 verbose #16876 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:03 verbose #16877 > > inl map fn s =
00:17:03 verbose #16878 > >     (s, StreamNil)
00:17:03 verbose #16879 > >     ||> fold_back fun x acc =>
00:17:03 verbose #16880 > >         StreamCons (fn x, fun () => acc)
00:17:03 verbose #16881 > 00:17:02   debug #980 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/49dc7145a15979a26f34d93b0218cbad9ddebedb6a8261e51d90ffb3376c7205/main.spi
00:17:03 verbose #16882 > >
00:17:03 verbose #16883 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:03 verbose #16884 > > //// test
00:17:03 verbose #16885 > >
00:17:03 verbose #16886 > > listm.init 10i32 id
00:17:03 verbose #16887 > > |> from_list
00:17:03 verbose #16888 > > |> map ((*) 2)
00:17:03 verbose #16889 > > |> item 5i32
00:17:03 verbose #16890 > > |> _assert_eq 10i32
00:17:03 verbose #16891 > 00:17:02   debug #981 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/312066089cb324c5c47cd93a4979125375c884cac5164c8c0e2f74182342f3d7/main.spi
00:17:03 verbose #16892 > >
00:17:03 verbose #16893 > > ╭─[ 455.59ms - stdout ]────────────────────────────────────────────────────────╮
00:17:03 verbose #16894 > > │ assert_eq / actual: 10 / expected: 10                                        │
00:17:03 verbose #16895 > > │                                                                              │
00:17:03 verbose #16896 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:03 verbose #16897 > >
00:17:03 verbose #16898 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:03 verbose #16899 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:03 verbose #16900 > > │ ### zip_with                                                                 │
00:17:03 verbose #16901 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:03 verbose #16902 > >
00:17:03 verbose #16903 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:03 verbose #16904 > > inl zip_with fn s1 s2 =
00:17:03 verbose #16905 > >     inl rec loop s1 s2 =
00:17:03 verbose #16906 > >         match s1, s2 with
00:17:03 verbose #16907 > >         | StreamCons (st1, fn1), StreamCons (st2, fn2) =>
00:17:03 verbose #16908 > >             StreamCons (fn st1 st2, fun () => loop (fn1 ()) (fn2 ()))
00:17:03 verbose #16909 > >         | StreamNil, _ | _, StreamNil => StreamNil
00:17:03 verbose #16910 > >     loop s1 s2
00:17:03 verbose #16911 > >
00:17:03 verbose #16912 > > inl zip_with_ fn s1 s2 =
00:17:03 verbose #16913 > >     let rec loop s1 s2 =
00:17:03 verbose #16914 > >         match s1, s2 with
00:17:03 verbose #16915 > >         | StreamCons (st1, fn1), StreamCons (st2, fn2) =>
00:17:03 verbose #16916 > >             StreamCons (fn st1 st2, fun () => loop (fn1 ()) (fn2 ()))
00:17:03 verbose #16917 > >         | StreamNil, _ | _, StreamNil => StreamNil
00:17:03 verbose #16918 > >     loop s1 s2
00:17:04 verbose #16919 > 00:17:03   debug #982 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/10bd3b84eec2904c638177d54eefbc0a5f2e3360ba7c163d68f42df2b06cd2b4/main.spi
00:17:04 verbose #16920 > >
00:17:04 verbose #16921 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:04 verbose #16922 > > //// test
00:17:04 verbose #16923 > >
00:17:04 verbose #16924 > > ((listm.init 10i32 id |> from_list), (listm.init 10i32 ((*) 2) |> from_list))
00:17:04 verbose #16925 > > ||> zip_with (+)
00:17:04 verbose #16926 > > |> item 2i32
00:17:04 verbose #16927 > > |> _assert_eq 6
00:17:04 verbose #16928 > 00:17:03   debug #983 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/88dd52d719d00ae12a36134390f69c8f5cfca9a0ff117048e473bdf01f32caa0/main.spi
00:17:04 verbose #16929 > >
00:17:04 verbose #16930 > > ╭─[ 349.16ms - stdout ]────────────────────────────────────────────────────────╮
00:17:04 verbose #16931 > > │ assert_eq / actual: 6 / expected: 6                                          │
00:17:04 verbose #16932 > > │                                                                              │
00:17:04 verbose #16933 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:04 verbose #16934 > >
00:17:04 verbose #16935 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:04 verbose #16936 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:04 verbose #16937 > > │ ### zip                                                                      │
00:17:04 verbose #16938 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:04 verbose #16939 > >
00:17:04 verbose #16940 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:04 verbose #16941 > > inl zip s1 s2 =
00:17:04 verbose #16942 > >     zip_with pair s1 s2
00:17:04 verbose #16943 > >
00:17:04 verbose #16944 > > inl zip_ s1 s2 =
00:17:04 verbose #16945 > >     zip_with_ pair s1 s2
00:17:04 verbose #16946 > 00:17:04   debug #984 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/064baf4fbb40639dfda316281371a6a86446b791e33ffc054fe0eab4f301cfc8/main.spi
00:17:04 verbose #16947 > >
00:17:04 verbose #16948 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:04 verbose #16949 > > //// test
00:17:04 verbose #16950 > >
00:17:04 verbose #16951 > > ((listm.init 10i32 id |> from_list), (listm.init 10i32 ((*) 2) |> from_list))
00:17:04 verbose #16952 > > ||> zip
00:17:04 verbose #16953 > > |> item 5i32
00:17:04 verbose #16954 > > |> _assert_eq (5, 10)
00:17:05 verbose #16955 > 00:17:04   debug #985 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9319360a6d9bc3fee05dc606e77e4db4aa41542de805685e3a08e198c7c55d3f/main.spi
00:17:05 verbose #16956 > >
00:17:05 verbose #16957 > > ╭─[ 400.94ms - stdout ]────────────────────────────────────────────────────────╮
00:17:05 verbose #16958 > > │ assert_eq / actual: struct (5, 10) / expected: struct (5, 10)                │
00:17:05 verbose #16959 > > │                                                                              │
00:17:05 verbose #16960 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:05 verbose #16961 > >
00:17:05 verbose #16962 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:05 verbose #16963 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:05 verbose #16964 > > │ ### unzip                                                                    │
00:17:05 verbose #16965 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:05 verbose #16966 > >
00:17:05 verbose #16967 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:05 verbose #16968 > > inl unzip s =
00:17:05 verbose #16969 > >     inl rec body s =
00:17:05 verbose #16970 > >         match s with
00:17:05 verbose #16971 > >         | StreamCons ((x, y), fn) =>
00:17:05 verbose #16972 > >             inl xs, ys = loop (fn ())
00:17:05 verbose #16973 > >             StreamCons (x, fun () => xs), StreamCons (y, fun () => ys)
00:17:05 verbose #16974 > >         | StreamNil => pair StreamNil StreamNil
00:17:05 verbose #16975 > >     and inl loop x =
00:17:05 verbose #16976 > >         if var_is x |> not
00:17:05 verbose #16977 > >         then body x
00:17:05 verbose #16978 > >         else
00:17:05 verbose #16979 > >             inl x = dyn x
00:17:05 verbose #16980 > >             join body x
00:17:05 verbose #16981 > >     loop s
00:17:05 verbose #16982 > 00:17:04   debug #986 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9d1b3a7525859619f2e656115fe054b03d63a1f9bbd6f34a209eb29f11d3c5ff/main.spi
00:17:05 verbose #16983 > >
00:17:05 verbose #16984 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:05 verbose #16985 > > //// test
00:17:05 verbose #16986 > >
00:17:05 verbose #16987 > > listm.init 10i32 id
00:17:05 verbose #16988 > > |> listm.map (fun x => x, x)
00:17:05 verbose #16989 > > |> from_list
00:17:05 verbose #16990 > > |> unzip
00:17:05 verbose #16991 > > |> fun x, y =>
00:17:05 verbose #16992 > >     x |> sum
00:17:05 verbose #16993 > >     |> _assert_eq 45
00:17:05 verbose #16994 > >
00:17:05 verbose #16995 > >     y |> sum
00:17:05 verbose #16996 > >     |> _assert_eq 45
00:17:05 verbose #16997 > 00:17:05   debug #987 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/19be7203604e16a535cef6f979d9f55ca5bc6dbf5110378e56a257395970d146/main.spi
00:17:06 verbose #16998 > >
00:17:06 verbose #16999 > > ╭─[ 451.75ms - stdout ]────────────────────────────────────────────────────────╮
00:17:06 verbose #17000 > > │ assert_eq / actual: 45 / expected: 45                                        │
00:17:06 verbose #17001 > > │ assert_eq / actual: 45 / expected: 45                                        │
00:17:06 verbose #17002 > > │                                                                              │
00:17:06 verbose #17003 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:06 verbose #17004 > >
00:17:06 verbose #17005 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:06 verbose #17006 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:06 verbose #17007 > > │ ## rust                                                                      │
00:17:06 verbose #17008 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:06 verbose #17009 > >
00:17:06 verbose #17010 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:06 verbose #17011 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:06 verbose #17012 > > │ ### io_error                                                                 │
00:17:06 verbose #17013 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:06 verbose #17014 > >
00:17:06 verbose #17015 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:06 verbose #17016 > > nominal io_error = $'std_io_Error'
00:17:06 verbose #17017 > 00:17:05   debug #988 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3a06b43d247497e299840f3d85af7dfed9c6d299a058399f03808291a27a85ad/main.spi
00:17:06 verbose #17018 > >
00:17:06 verbose #17019 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:06 verbose #17020 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:06 verbose #17021 > > │ ### buf_reader                                                               │
00:17:06 verbose #17022 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:06 verbose #17023 > >
00:17:06 verbose #17024 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:06 verbose #17025 > > nominal buf_reader t = $'std_io_BufReader<`t>'
00:17:06 verbose #17026 > 00:17:06   debug #989 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7c1565382d71c685dbd0d154cfa58af6cfd7b8acb1614b4255df113bde015546/main.spi
00:17:06 verbose #17027 > >
00:17:06 verbose #17028 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:06 verbose #17029 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:06 verbose #17030 > > │ ### cursor                                                                   │
00:17:06 verbose #17031 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:06 verbose #17032 > >
00:17:06 verbose #17033 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:06 verbose #17034 > > nominal cursor t = $'std_io_Cursor<`t>'
00:17:07 verbose #17035 > 00:17:06   debug #990 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/68c6095e45a48a716965a094052f5271cb7bd68af014006e7b66e700ec09cf08/main.spi
00:17:07 verbose #17036 > >
00:17:07 verbose #17037 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:07 verbose #17038 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:07 verbose #17039 > > │ ### async_buf_reader                                                         │
00:17:07 verbose #17040 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:07 verbose #17041 > >
00:17:07 verbose #17042 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:07 verbose #17043 > > nominal async_buf_reader t = $'tokio_io_BufReader<`t>'
00:17:07 verbose #17044 > 00:17:06   debug #991 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/51a79bb8b6c131be491f1348912b3949f1eb872f4f5faefb84eeb208f2817568/main.spi
00:17:07 verbose #17045 > >
00:17:07 verbose #17046 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:07 verbose #17047 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:07 verbose #17048 > > │ ### new_buf_reader                                                           │
00:17:07 verbose #17049 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:07 verbose #17050 > >
00:17:07 verbose #17051 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:07 verbose #17052 > > inl new_buf_reader forall t. (x : t) : buf_reader t =
00:17:07 verbose #17053 > >     !\($'"std::io::BufReader::new(!x)"')
00:17:07 verbose #17054 > 00:17:07   debug #992 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ec02621e3339388535c7aff99686a95e578c26a09cff178d34f332548007316c/main.spi
00:17:08 verbose #17055 > >
00:17:08 verbose #17056 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:08 verbose #17057 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:08 verbose #17058 > > │ ### new_cursor                                                               │
00:17:08 verbose #17059 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:08 verbose #17060 > >
00:17:08 verbose #17061 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:08 verbose #17062 > > inl new_cursor forall t. (x : t) : cursor t =
00:17:08 verbose #17063 > >     !\($'"std::io::Cursor::new(!x)"')
00:17:08 verbose #17064 > 00:17:07   debug #993 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/475257c9b6fbea2a18ae5fe10968aa1d493125eecb44a4b4660edbcf030fa876/main.spi
00:17:08 verbose #17065 > >
00:17:08 verbose #17066 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:08 verbose #17067 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:08 verbose #17068 > > │ ### lines                                                                    │
00:17:08 verbose #17069 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:08 verbose #17070 > >
00:17:08 verbose #17071 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:08 verbose #17072 > > nominal lines t = $'std_io_Lines<`t>'
00:17:08 verbose #17073 > 00:17:08   debug #994 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a4061e26c8d135e3997ae361ba4e391e2697e3f9e476cf1e704702e0f1abd6a8/main.spi
00:17:08 verbose #17074 > >
00:17:08 verbose #17075 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:08 verbose #17076 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:08 verbose #17077 > > │ ### buf_read_lines                                                           │
00:17:08 verbose #17078 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:08 verbose #17079 > >
00:17:08 verbose #17080 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:08 verbose #17081 > > inl buf_read_lines forall t. (buf_reader : buf_reader t) : lines (buf_reader t)
00:17:08 verbose #17082 > > =
00:17:08 verbose #17083 > >     !\($'"std::io::BufRead::lines(!buf_reader)"')
00:17:09 verbose #17084 > 00:17:08   debug #995 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9d33ab68b5bcf0961ec1ddb96880018e4de92ccff71778690b29a97c40591d9b/main.spi
00:17:09 verbose #17085 > >
00:17:09 verbose #17086 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:09 verbose #17087 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:09 verbose #17088 > > │ ### decode_reader_bytes                                                      │
00:17:09 verbose #17089 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:09 verbose #17090 > >
00:17:09 verbose #17091 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:09 verbose #17092 > > nominal decode_reader_bytes t u = $'encoding_rs_io_DecodeReaderBytes<`t, `u>'
00:17:09 verbose #17093 > 00:17:08   debug #996 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1e3e28c2bc7c53f12172366be31a4c71f4e2b56f5429d7ee4bb3f810dd7c5d2c/main.spi
00:17:09 verbose #17094 > >
00:17:09 verbose #17095 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:09 verbose #17096 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:09 verbose #17097 > > │ ### decode_reader_bytes_build                                                │
00:17:09 verbose #17098 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:09 verbose #17099 > >
00:17:09 verbose #17100 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:09 verbose #17101 > > inl decode_reader_bytes_build forall t. (x : t) : decode_reader_bytes t (am'.vec
00:17:09 verbose #17102 > > u8) =
00:17:09 verbose #17103 > >
00:17:09 verbose #17104 > > !\($'"encoding_rs_io::DecodeReaderBytesBuilder::new().encoding(Some(encoding_rs:
00:17:09 verbose #17105 > > :UTF_8)).build(!x)"')
00:17:09 verbose #17106 > >
00:17:09 verbose #17107 > > !\($'"encoding_rs_io::DecodeReaderBytesBuilder::new().encoding(Some(encoding_rs:
00:17:09 verbose #17108 > > :UTF_8)).utf8_passthru(true).build(!x)"')
00:17:09 verbose #17109 > >     !\\(x,
00:17:09 verbose #17110 > > $'"encoding_rs_io::DecodeReaderBytesBuilder::new().utf8_passthru(true).build($0)
00:17:09 verbose #17111 > > "')
00:17:09 verbose #17112 > >     // !\($'"encoding_rs_io::DecodeReaderBytes::new(!x)"')
00:17:09 verbose #17113 > 00:17:09   debug #997 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9b26e627ec1d3f66fb9880c415160a849f7b1237a9f4c08042765caa7fc09fa8/main.spi
00:17:10 verbose #17114 > >
00:17:10 verbose #17115 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:10 verbose #17116 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:10 verbose #17117 > > │ ### buf_reader_read                                                          │
00:17:10 verbose #17118 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:10 verbose #17119 > >
00:17:10 verbose #17120 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:10 verbose #17121 > > inl buf_reader_read forall el dim. (slice : am'.slice' el dim) (buf_reader :
00:17:10 verbose #17122 > > buf_reader el) : resultm.result' unativeint io_error =
00:17:10 verbose #17123 > >     (!\($'"true; let mut !slice = !slice"') : bool) |> ignore
00:17:10 verbose #17124 > >     !\($'"std::io::Read::read(&mut !buf_reader, &mut !slice)"')
00:17:10 verbose #17125 > 00:17:09   debug #998 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5b5bbf97c9fc6bc017056baa6fc1b2a9be53b316f11639cbdaa138a96a5b7d18/main.spi
00:17:10 verbose #17126 > >
00:17:10 verbose #17127 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:10 verbose #17128 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:10 verbose #17129 > > │ ### io_read_by_ref                                                           │
00:17:10 verbose #17130 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:10 verbose #17131 > >
00:17:10 verbose #17132 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:10 verbose #17133 > > inl io_read_by_ref forall t. (lines : lines t) : lines t =
00:17:10 verbose #17134 > >     !\\(lines, $'"std::io::Read::by_ref($0)"')
00:17:10 verbose #17135 > 00:17:09   debug #999 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5c46907cab43d4123358bf211037d5ff875327ddcdd5c5c59419219dec646572/main.spi
00:17:10 verbose #17136 > 00:00:27 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 32661 }
00:17:10 verbose #17137 > 00:00:27   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/stream.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/stream.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:17:13 verbose #17138 > 00:00:29 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/stream.dib.ipynb to html
00:17:13 verbose #17139 > 00:00:29 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:17:13 verbose #17140 > 00:00:29 verbose #7 !   validate(nb)
00:17:14 verbose #17141 > 00:00:31 verbose #8 ! [NbConvertApp] Writing 365817 bytes to c:\home\git\polyglot\lib\spiral\stream.dib.html
00:17:14 verbose #17142 > 00:00:31 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 643 }
00:17:14 verbose #17143 > 00:00:31   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 643 }
00:17:14 verbose #17144 > 00:00:31   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/stream.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/stream.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:17:15 verbose #17145 > 00:00:32 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:17:15 verbose #17146 > 00:00:32   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:17:16 verbose #17147 > 00:00:32   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 33363 }
00:17:16   debug #17148 runtime.execute_with_options_async / { exit_code = 0; output_length = 37384 }
00:17:16   debug #25 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path stream.dib --retries 3
00:17:16   debug #17149 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path parsing.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:17:16 verbose #17150 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "parsing.dib", "--retries", "3"])) }
00:17:16 verbose #17151 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/parsing.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/parsing.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/parsing.dib" --output-path "c:/home/git/polyglot/lib/spiral/parsing.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:17:18 verbose #17152 > >
00:17:18 verbose #17153 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:18 verbose #17154 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:18 verbose #17155 > > │ # parsing                                                                    │
00:17:18 verbose #17156 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:23 verbose #17157 > >
00:17:23 verbose #17158 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:23 verbose #17159 > > open rust_operators
00:17:23 verbose #17160 > > open sm'_operators
00:17:24 verbose #17161 > 00:17:23   debug #1000 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bf61618f8655d8e50dd31f6ed591bb82f1f3131ec57d5c0ea9955695867e89ad/main.spi
00:17:25 verbose #17162 > >
00:17:25 verbose #17163 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:25 verbose #17164 > > //// test
00:17:25 verbose #17165 > >
00:17:25 verbose #17166 > > open testing
00:17:25 verbose #17167 > 00:17:24   debug #1001 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2730b74780c23dd1c489c875b384f3d8721906375fcf264307b568f98aed681f/main.spi
00:17:25 verbose #17168 > >
00:17:25 verbose #17169 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:25 verbose #17170 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:25 verbose #17171 > > │ ## types                                                                     │
00:17:25 verbose #17172 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:25 verbose #17173 > >
00:17:25 verbose #17174 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:25 verbose #17175 > > inl types () =
00:17:25 verbose #17176 > >     ()
00:17:25 verbose #17177 > 00:17:25   debug #1002 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4bf5fad0325511f44cecc16695ebc806d687392d7df9df5f5b95940152c42e2a/main.spi
00:17:25 verbose #17178 > >
00:17:25 verbose #17179 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:25 verbose #17180 > > inl types () =
00:17:25 verbose #17181 > >     types ()
00:17:26 verbose #17182 > 00:17:25   debug #1003 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6647c337fd58a5422944c0e65603a7d902bdf4bb6e7d2d8929a3028899a5aef3/main.spi
00:17:26 verbose #17183 > >
00:17:26 verbose #17184 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:26 verbose #17185 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:26 verbose #17186 > > │ ## fparsec                                                                   │
00:17:26 verbose #17187 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:26 verbose #17188 > >
00:17:26 verbose #17189 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:26 verbose #17190 > > //// test
00:17:26 verbose #17191 > >
00:17:26 verbose #17192 > > #r "nuget:FParsec"
00:17:32 verbose #17193 > >
00:17:32 verbose #17194 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:32 verbose #17195 > > //// test
00:17:32 verbose #17196 > >
00:17:32 verbose #17197 > > nominal position_ = $'FParsec.Position'
00:17:32 verbose #17198 > > nominal parser_error_ = $'FParsec.Error.ParserError'
00:17:32 verbose #17199 > >
00:17:32 verbose #17200 > > nominal reply_ t = $'FParsec.Reply<`t>'
00:17:32 verbose #17201 > >
00:17:32 verbose #17202 > > nominal char_stream_ t = $'FParsec.CharStream<`t>'
00:17:32 verbose #17203 > >
00:17:32 verbose #17204 > > // nominal parser t u = char_stream u -> reply t
00:17:32 verbose #17205 > > nominal parser_ t u = $'FParsec.Primitives.Parser<`t, `u>'
00:17:32 verbose #17206 > >
00:17:32 verbose #17207 > > inl p_char_ forall t. (x : char) : parser_ char t =
00:17:32 verbose #17208 > >     x |> $'FParsec.CharParsers.pchar'
00:17:32 verbose #17209 > >
00:17:32 verbose #17210 > > inl p_string_ forall t. (x : string) : parser_ string t =
00:17:32 verbose #17211 > >     x |> $'FParsec.CharParsers.pstring'
00:17:32 verbose #17212 > >
00:17:32 verbose #17213 > > inl (>>.$) forall t u v. (a : parser_ t v) (b : parser_ u v) : parser_ u v =
00:17:32 verbose #17214 > >     b |> $'FParsec.Primitives.(>>.)' a
00:17:32 verbose #17215 > >
00:17:32 verbose #17216 > > inl (.>>$) forall t u v. (a : parser_ t v) (b : parser_ u v) : parser_ t v =
00:17:32 verbose #17217 > >     b |> $'FParsec.Primitives.(.>>)' a
00:17:32 verbose #17218 > >
00:17:32 verbose #17219 > > inl (.>>.$) forall t u v. (a : parser_ t v) (b : parser_ u v) : parser_ (pair t
00:17:32 verbose #17220 > > u) v =
00:17:32 verbose #17221 > >     b |> $'FParsec.Primitives.(.>>.)' a
00:17:32 verbose #17222 > >
00:17:32 verbose #17223 > > inl (>>%$) forall t u v. (a : parser_ t v) (b : u) : parser_ u v =
00:17:32 verbose #17224 > >     b |> $'FParsec.Primitives.(>>%)' a
00:17:32 verbose #17225 > >
00:17:32 verbose #17226 > > inl (>>=$) forall t u v. (a : parser_ t v) (b : t -> parser_ u v) : parser_ u v
00:17:32 verbose #17227 > > =
00:17:32 verbose #17228 > >     b |> $'FParsec.Primitives.(>>=)' a
00:17:32 verbose #17229 > >
00:17:32 verbose #17230 > > inl (|>>$) forall t u v. (a : parser_ t v) (b : t -> u) : parser_ u v =
00:17:32 verbose #17231 > >     inl b = fun x => x |> b
00:17:32 verbose #17232 > >     b |> $'FParsec.Primitives.(|>>)' a
00:17:32 verbose #17233 > >
00:17:32 verbose #17234 > > inl any_char_ () : parser_ char _ =
00:17:32 verbose #17235 > >     $'FParsec.CharParsers.anyChar'
00:17:32 verbose #17236 > >
00:17:32 verbose #17237 > > inl any_string_ () : parser_ string _ =
00:17:32 verbose #17238 > >     $'FParsec.CharParsers.anyString'
00:17:32 verbose #17239 > >
00:17:32 verbose #17240 > > inl any_string__ (n : i32) : parser_ string _ =
00:17:32 verbose #17241 > >     n |> $'FParsec.CharParsers.anyString'
00:17:32 verbose #17242 > >
00:17:32 verbose #17243 > > inl eof_ () : parser_ () _ =
00:17:32 verbose #17244 > >     $'FParsec.CharParsers.eof'
00:17:32 verbose #17245 > >
00:17:32 verbose #17246 > > inl spaces_ () : parser_ () () =
00:17:32 verbose #17247 > >     $'FParsec.CharParsers.spaces'
00:17:32 verbose #17248 > >
00:17:32 verbose #17249 > > inl spaces1_ () : parser_ () () =
00:17:32 verbose #17250 > >     $'FParsec.CharParsers.spaces1'
00:17:32 verbose #17251 > >
00:17:32 verbose #17252 > > inl (<|>$) forall t u. (a : parser_ t u) (b : parser_ t u) : parser_ t u =
00:17:32 verbose #17253 > >     b |> $'FParsec.Primitives.(<|>)' a
00:17:32 verbose #17254 > >
00:17:32 verbose #17255 > > inl many_satisfy_ forall t. (x : char -> bool) : parser_ string t =
00:17:32 verbose #17256 > >     x |> $'FParsec.CharParsers.manySatisfy'
00:17:32 verbose #17257 > >
00:17:32 verbose #17258 > > inl satisfy_ forall t. (x : char -> bool) : parser_ char t =
00:17:32 verbose #17259 > >     x |> $'FParsec.CharParsers.satisfy'
00:17:32 verbose #17260 > >
00:17:32 verbose #17261 > > inl none_of_ (x : list char) : parser_ char () =
00:17:32 verbose #17262 > >     x
00:17:32 verbose #17263 > >     |> listm'.box
00:17:32 verbose #17264 > >     |> listm'.to_array'
00:17:32 verbose #17265 > >     |> $'FParsec.CharParsers.noneOf'
00:17:32 verbose #17266 > >
00:17:32 verbose #17267 > > inl any_of_ (x : list char) : parser_ char () =
00:17:32 verbose #17268 > >     x
00:17:32 verbose #17269 > >     |> listm'.box
00:17:32 verbose #17270 > >     |> listm'.to_array'
00:17:32 verbose #17271 > >     |> $'FParsec.CharParsers.anyOf'
00:17:32 verbose #17272 > >
00:17:32 verbose #17273 > > inl skip_any_of_ (x : list char) : parser_ () () =
00:17:32 verbose #17274 > >     x
00:17:32 verbose #17275 > >     |> listm'.box
00:17:32 verbose #17276 > >     |> listm'.to_array'
00:17:32 verbose #17277 > >     |> $'FParsec.CharParsers.skipAnyOf'
00:17:32 verbose #17278 > >
00:17:32 verbose #17279 > > inl between_ forall t u v x. (a : parser_ t x) (b : parser_ u x) (c : parser_ v
00:17:32 verbose #17280 > > x) : parser_ v x =
00:17:32 verbose #17281 > >     c |> $'FParsec.Primitives.between' a b
00:17:32 verbose #17282 > >
00:17:32 verbose #17283 > > inl many_chars_ forall t. (x : parser_ char t) : parser_ string t =
00:17:32 verbose #17284 > >     x |> $'FParsec.CharParsers.manyChars'
00:17:32 verbose #17285 > >
00:17:32 verbose #17286 > > inl many1_chars_ forall t. (x : parser_ char t) : parser_ string t =
00:17:32 verbose #17287 > >     x |> $'FParsec.CharParsers.many1Chars'
00:17:32 verbose #17288 > >
00:17:32 verbose #17289 > > inl many_strings_ forall t. (x : parser_ string t) : parser_ string t =
00:17:32 verbose #17290 > >     x |> $'FParsec.CharParsers.manyStrings'
00:17:32 verbose #17291 > >
00:17:32 verbose #17292 > > inl skip_any_string_ forall t. (n : i32) : parser_ () t =
00:17:32 verbose #17293 > >     n |> $'FParsec.CharParsers.skipAnyString'
00:17:32 verbose #17294 > >
00:17:32 verbose #17295 > > inl many1_strings_ forall t. (x : parser_ string t) : parser_ string t =
00:17:32 verbose #17296 > >     x |> $'FParsec.CharParsers.many1Strings'
00:17:32 verbose #17297 > >
00:17:32 verbose #17298 > > inl opt_ forall t u. (a : parser_ t u) : parser_ (optionm'.option' t) u =
00:17:32 verbose #17299 > >     a |> $'FParsec.Primitives.opt'
00:17:32 verbose #17300 > >
00:17:32 verbose #17301 > > inl choice_ forall t u. (a : list (parser_ t u)) : parser_ t u =
00:17:32 verbose #17302 > >     a
00:17:32 verbose #17303 > >     |> listm'.box
00:17:32 verbose #17304 > >     |> seq.of_list'
00:17:32 verbose #17305 > >     |> $'FParsec.Primitives.choice'
00:17:32 verbose #17306 > >
00:17:32 verbose #17307 > > inl delay_ forall t u. (fn : () -> parser_ t u) : parser_ t u =
00:17:32 verbose #17308 > >     fn |> $'FParsec.Primitives.parse.Delay'
00:17:32 verbose #17309 > >
00:17:32 verbose #17310 > > inl peek_ forall t u. (a : parser_ t u) : parser_ char u =
00:17:32 verbose #17311 > >     $'!a.Peek ()'
00:17:32 verbose #17312 > >
00:17:32 verbose #17313 > > inl not_followed_by_ forall t u. (a : parser_ t u) : parser_ () u =
00:17:32 verbose #17314 > >     a |> $'FParsec.Primitives.notFollowedBy'
00:17:32 verbose #17315 > >
00:17:32 verbose #17316 > > inl sep_by_ forall t u v. (a : parser_ t v) (b : parser_ u v) : parser_
00:17:32 verbose #17317 > > (listm'.list' t) v =
00:17:32 verbose #17318 > >     b |> $'FParsec.Primitives.sepBy' a
00:17:32 verbose #17319 > >
00:17:32 verbose #17320 > > inl sep_by1_ forall t u v. (a : parser_ t v) (b : parser_ u v) : parser_
00:17:32 verbose #17321 > > (listm'.list' t) v =
00:17:32 verbose #17322 > >     b |> $'FParsec.Primitives.sepBy1' a
00:17:32 verbose #17323 > >
00:17:32 verbose #17324 > > inl sep_end_by_ forall t u v. (a : parser_ t v) (b : parser_ u v) : parser_
00:17:32 verbose #17325 > > (listm'.list' t) v =
00:17:32 verbose #17326 > >     b |> $'FParsec.Primitives.sepEndBy' a
00:17:32 verbose #17327 > >
00:17:32 verbose #17328 > > inl many_ forall t u. (a : parser_ t u) : parser_ (listm'.list' t) u =
00:17:32 verbose #17329 > >     a |> $'FParsec.Primitives.many'
00:17:32 verbose #17330 > >
00:17:32 verbose #17331 > > inl many1_ forall t u. (a : parser_ t u) : parser_ (listm'.list' t) u =
00:17:32 verbose #17332 > >     a |> $'FParsec.Primitives.many1'
00:17:32 verbose #17333 > >
00:17:32 verbose #17334 > > inl many1_satisfy_ forall t. (x : char -> bool) : parser_ string t =
00:17:32 verbose #17335 > >     x |> $'FParsec.CharParsers.many1Satisfy'
00:17:32 verbose #17336 > >
00:17:32 verbose #17337 > > nominal parser_result'_ t u = $'FParsec.CharParsers.ParserResult<`t, `u>'
00:17:32 verbose #17338 > >
00:17:32 verbose #17339 > > inl run_ forall t. (parser : parser_ t ()) (x : string) : parser_result'_ t () =
00:17:32 verbose #17340 > >     x |> $'FParsec.CharParsers.run' parser
00:17:32 verbose #17341 > >
00:17:32 verbose #17342 > > union parser_result_ t u =
00:17:32 verbose #17343 > >     | Success : t * u * position_
00:17:32 verbose #17344 > >     | Failure : string * parser_error_ * u
00:17:32 verbose #17345 > >
00:17:32 verbose #17346 > > inl parser_result_ forall t u. = function
00:17:32 verbose #17347 > >     | Success (a, b, c) => $'`(parser_result'_ t u).Success (!a, !b, !c)' :
00:17:32 verbose #17348 > > parser_result'_ t u
00:17:32 verbose #17349 > >     | Failure (a, b, c) => $'`(parser_result'_ t u).Failure (!a, !b, !c)' :
00:17:32 verbose #17350 > > parser_result'_ t u
00:17:32 verbose #17351 > >
00:17:32 verbose #17352 > > inl parser_result'_ forall t u. (x : parser_result'_ t u) : parser_result_ t u =
00:17:32 verbose #17353 > >     $'let mutable _!x = None '
00:17:32 verbose #17354 > >     $'match !x with'
00:17:32 verbose #17355 > >     $'| FParsec.CharParsers.Success (a, b, c) -> (' : ()
00:17:32 verbose #17356 > >     $'(fun () ->'
00:17:32 verbose #17357 > >     $'(fun () ->'
00:17:32 verbose #17358 > >     (Success ((dyn $'a'), dyn $'b', dyn $'c') : _ t u) |> emit_unit
00:17:32 verbose #17359 > >     $')'
00:17:32 verbose #17360 > >     $'|> fun x -> x ()'
00:17:32 verbose #17361 > >     $') () ) | FParsec.CharParsers.Failure (a, b, c) -> (' : ()
00:17:32 verbose #17362 > >     $'(fun () ->'
00:17:32 verbose #17363 > >     $'(fun () ->'
00:17:32 verbose #17364 > >     (Failure ((dyn $'a'), dyn $'b', dyn $'c') : _ t u) |> emit_unit
00:17:32 verbose #17365 > >     $')'
00:17:32 verbose #17366 > >     $'|> fun x -> x ()'
00:17:32 verbose #17367 > >     $') () )' : ()
00:17:32 verbose #17368 > >     $'|> fun x -> _!x <- Some x'
00:17:32 verbose #17369 > >     $'match _!x with Some x -> x | None -> failwith "??? / _!x=None"'
00:17:32 verbose #17370 > >
00:17:32 verbose #17371 > > inl parse_ parser input : result _ _ =
00:17:32 verbose #17372 > >     match input |> run_ parser |> parser_result'_ with
00:17:32 verbose #17373 > >     | Success (result, b, c) => Ok (result, c)
00:17:32 verbose #17374 > >     | Failure (error_msg, b, c) => Error (error_msg, b)
00:17:32 verbose #17375 > 00:17:31   debug #1004 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8c761ce188c3cdb43fc6d29064e01464331c7379041137b082576b7938296df7/main.spi
00:17:32 verbose #17376 > >
00:17:32 verbose #17377 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:32 verbose #17378 > > //// test
00:17:32 verbose #17379 > >
00:17:32 verbose #17380 > > inl split_args (args : string) : result (array_base (string * position_))
00:17:32 verbose #17381 > > (string * parser_error_) =
00:17:32 verbose #17382 > >     inl esc = [[ '\\'; '`' ]]
00:17:32 verbose #17383 > >     inl quotes = [[ '"' ]]
00:17:32 verbose #17384 > >     inl special = esc ++ quotes
00:17:32 verbose #17385 > >     inl p_esc_char c =
00:17:32 verbose #17386 > >         p_char_ c >>.$ any_char_ () |>>$ fun c' => $'$"{!c}{!c'}"'
00:17:32 verbose #17387 > >     inl p_word = special |> none_of_ |>>$ sm'.obj_to_string
00:17:32 verbose #17388 > >     inl p_plain = special ++ [[ ' ' ]] |> none_of_ |> many1_chars_
00:17:32 verbose #17389 > >     inl p_text = p_word |> many1_strings_
00:17:32 verbose #17390 > >     inl p_esc = esc |> listm.map p_esc_char |> choice_
00:17:32 verbose #17391 > >     inl p_quoted = (p_word <|>$ p_esc) |> many_ |>>$ (seq.of_list' >> sm'.concat
00:17:32 verbose #17392 > > "")
00:17:32 verbose #17393 > >     inl p_quoted_all = p_quoted |> between_ (p_char_ '"') (p_char_ '"')
00:17:32 verbose #17394 > >     inl p_esc_root = p_esc |>>$ (fun _ => "") >>.$ (p_word |> many_) |>>$
00:17:32 verbose #17395 > > (seq.of_list' >> sm'.concat "")
00:17:32 verbose #17396 > >     inl p_content = p_plain <|>$ p_quoted_all <|>$ p_esc_root
00:17:32 verbose #17397 > >     inl p_args = spaces1_ () |> sep_by_ p_content
00:17:32 verbose #17398 > >     args
00:17:32 verbose #17399 > >     |> parse_ p_args
00:17:32 verbose #17400 > >     |> resultm.map fun (a', b') =>
00:17:32 verbose #17401 > >         (
00:17:32 verbose #17402 > >             (
00:17:32 verbose #17403 > >                 a'
00:17:32 verbose #17404 > >                 |> listm'.to_array'
00:17:32 verbose #17405 > >                 |> a
00:17:32 verbose #17406 > >                 |> am.map fun x => x, b'
00:17:32 verbose #17407 > >                 |> fun (a x : _ i32 _) => x
00:17:32 verbose #17408 > >             )
00:17:32 verbose #17409 > >         )
00:17:32 verbose #17410 > >
00:17:32 verbose #17411 > > [[
00:17:32 verbose #17412 > >     "a b c",
00:17:32 verbose #17413 > >     ;[[ "a"; "b"; "c" ]]
00:17:32 verbose #17414 > >
00:17:32 verbose #17415 > >     "e f \"g h\" i",
00:17:32 verbose #17416 > >     ;[[ "e"; "f"; "g h"; "i" ]]
00:17:32 verbose #17417 > >
00:17:32 verbose #17418 > >     "\"j k\" \"l\" \"m\"",
00:17:32 verbose #17419 > >     ;[[ "j k"; "l"; "m" ]]
00:17:32 verbose #17420 > >
00:17:32 verbose #17421 > >     "s -t \"u \`\"v\`\" w\"",
00:17:32 verbose #17422 > >     ;[[ "s"; "-t"; "u \`\"v\`\" w" ]]
00:17:32 verbose #17423 > >
00:17:32 verbose #17424 > >     "n -o \"p \\\"q\\\" r\"",
00:17:32 verbose #17425 > >     ;[[ "n"; "-o"; "p \\\"q\\\" r" ]]
00:17:32 verbose #17426 > >
00:17:32 verbose #17427 > >     "r -s \"t \\\"u\\\"\"",
00:17:32 verbose #17428 > >     ;[[ "r"; "-s"; "t \\\"u\\\"" ]]
00:17:32 verbose #17429 > >
00:17:32 verbose #17430 > >     $'$"x -y \\\"$z -a \'(b=\\\\\\"c-id=)[[a-fA-F0-9]]{{8}}\', {{ \`$_[[1]] +
00:17:32 verbose #17431 > > \`$d++ }}\\\""',
00:17:32 verbose #17432 > >     ;[[ "x"; "-y"; "$z -a '(b=\\\"c-id=)[[a-fA-F0-9]]{8}', { `$_[[1]] + `$d++ }"
00:17:32 verbose #17433 > > ]]
00:17:32 verbose #17434 > >
00:17:32 verbose #17435 > >     "e -f \"$g -h '(i=`\"j-id=)[[a-fA-F0-9]]{8}', { `$_[[1]] + `$k++ }\"",
00:17:32 verbose #17436 > >     ;[[ "e"; "-f"; "$g -h '(i=`\"j-id=)[[a-fA-F0-9]]{8}', { `$_[[1]] + `$k++ }"
00:17:32 verbose #17437 > > ]]
00:17:32 verbose #17438 > >
00:17:32 verbose #17439 > >     $'$"--l \\\\\\"\'\'\' m \'\'\'\\\\\\" "',
00:17:32 verbose #17440 > >     ;[[ "--l"; "''' m '''" ]]
00:17:32 verbose #17441 > >
00:17:32 verbose #17442 > >     $'$"n --o --p q --r \\\"s:/t u/v.w\\\" --x \\\"y:/z.a\\\" --b c.d
00:17:32 verbose #17443 > > \\\"\\\\e{{f-g}}\\\" h.i \\\"j (k)\\\""',
00:17:32 verbose #17444 > >     ;[[ "n"; "--o"; "--p"; "q"; "--r"; "s:/t u/v.w"; "--x"; "y:/z.a"; "--b";
00:17:32 verbose #17445 > > "c.d"; "\\e{f-g}"; "h.i"; "j (k)" ]]
00:17:32 verbose #17446 > >
00:17:32 verbose #17447 > >     $'\@$"l ""m n:\\o.p"""',
00:17:32 verbose #17448 > >     ;[[ "l"; "m n:\\o.p" ]]
00:17:32 verbose #17449 > > ]]
00:17:32 verbose #17450 > > |> listm.rev
00:17:32 verbose #17451 > > |> listm.map fun input, expected =>
00:17:32 verbose #17452 > >     input
00:17:32 verbose #17453 > >     |> split_args
00:17:32 verbose #17454 > >     |> fun x =>
00:17:32 verbose #17455 > >         try
00:17:32 verbose #17456 > >             fun () =>
00:17:32 verbose #17457 > >                 ($'$"\ninput: {!input}"' : string)
00:17:32 verbose #17458 > >                 |> console.write_line
00:17:32 verbose #17459 > >                 x
00:17:32 verbose #17460 > >                 |> resultm.get
00:17:32 verbose #17461 > >                 |> am'.map_base fst
00:17:32 verbose #17462 > >                 |> _assert_eq' expected
00:17:32 verbose #17463 > >                 false
00:17:32 verbose #17464 > >             fun ex =>
00:17:32 verbose #17465 > >                 ($'$"error / expected: %A{!expected} / ex: %A{!ex}"' : string)
00:17:32 verbose #17466 > >                 |> console.write_line
00:17:32 verbose #17467 > >                 Some true
00:17:32 verbose #17468 > >         |> optionm.value
00:17:32 verbose #17469 > > |> listm'.filter id
00:17:32 verbose #17470 > > |> function
00:17:32 verbose #17471 > >     | [[]] => ()
00:17:32 verbose #17472 > >     | x => failwith $'$"{!x}"'
00:17:32 verbose #17473 > 00:17:32   debug #1005 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dcca7bf47e121dfaba22b7677030d782b63e3a13bb922d9a64348cac8b68c607/main.spi
00:17:37 verbose #17474 > >
00:17:37 verbose #17475 > > ╭─[ 4.92s - stdout ]───────────────────────────────────────────────────────────╮
00:17:37 verbose #17476 > > │                                                                              │
00:17:37 verbose #17477 > > │ input: a b c                                                                 │
00:17:37 verbose #17478 > > │ assert_eq' / actual: [|"a"; "b"; "c"|] / expected: [|"a"; "b"; "c"|]         │
00:17:37 verbose #17479 > > │                                                                              │
00:17:37 verbose #17480 > > │ input: e f "g h" i                                                           │
00:17:37 verbose #17481 > > │ assert_eq' / actual: [|"e"; "f"; "g h"; "i"|] / expected: [|"e"; "f"; "g h"; │
00:17:37 verbose #17482 > > │ "i"|]                                                                        │
00:17:37 verbose #17483 > > │                                                                              │
00:17:37 verbose #17484 > > │ input: "j k" "l" "m"                                                         │
00:17:37 verbose #17485 > > │ assert_eq' / actual: [|"j k"; "l"; "m"|] / expected: [|"j k"; "l"; "m"|]     │
00:17:37 verbose #17486 > > │                                                                              │
00:17:37 verbose #17487 > > │ input: s -t "u `"v`" w"                                                      │
00:17:37 verbose #17488 > > │ assert_eq' / actual: [|"s"; "-t"; "u `"v`" w"|] / expected: [|"s"; "-t"; "u  │
00:17:37 verbose #17489 > > │ `"v`" w"|]                                                                   │
00:17:37 verbose #17490 > > │                                                                              │
00:17:37 verbose #17491 > > │ input: n -o "p \"q\" r"                                                      │
00:17:37 verbose #17492 > > │ assert_eq' / actual: [|"n"; "-o"; "p \"q\" r"|] / expected: [|"n"; "-o"; "p  │
00:17:37 verbose #17493 > > │ \"q\" r"|]                                                                   │
00:17:37 verbose #17494 > > │                                                                              │
00:17:37 verbose #17495 > > │ input: r -s "t \"u\""                                                        │
00:17:37 verbose #17496 > > │ assert_eq' / actual: [|"r"; "-s"; "t \"u\""|] / expected: [|"r"; "-s"; "t    │
00:17:37 verbose #17497 > > │ \"u\""|]                                                                     │
00:17:37 verbose #17498 > > │                                                                              │
00:17:37 verbose #17499 > > │ input: x -y "$z -a '(b=\"c-id=)[a-fA-F0-9]{8}', { `$_[1] + `$d++ }"          │
00:17:37 verbose #17500 > > │ assert_eq' / actual: [|"x"; "-y"; "$z -a '(b=\"c-id=)[a-fA-F0-9]{8}', { `$_[ │
00:17:37 verbose #17501 > > │ 1] + `$d++ }"|] / expected: [|"x"; "-y"; "$z -a '(b=\"c-id=)[a-fA-F0-9]{8}', │
00:17:37 verbose #17502 > > │ { `$_[1] + `$d++ }"|]                                                        │
00:17:37 verbose #17503 > > │                                                                              │
00:17:37 verbose #17504 > > │ input: e -f "$g -h '(i=`"j-id=)[a-fA-F0-9]{8}', { `$_[1] + `$k++ }"          │
00:17:37 verbose #17505 > > │ assert_eq' / actual: [|"e"; "-f"; "$g -h '(i=`"j-id=)[a-fA-F0-9]{8}', { `$_[ │
00:17:37 verbose #17506 > > │ 1] + `$k++ }"|] / expected: [|"e"; "-f"; "$g -h '(i=`"j-id=)[a-fA-F0-9]{8}', │
00:17:37 verbose #17507 > > │ { `$_[1] + `$k++ }"|]                                                        │
00:17:37 verbose #17508 > > │                                                                              │
00:17:37 verbose #17509 > > │ input: --l \"''' m '''\"                                                     │
00:17:37 verbose #17510 > > │ assert_eq' / actual: [|"--l"; "''' m '''"|] / expected: [|"--l"; "''' m      │
00:17:37 verbose #17511 > > │ '''"|]                                                                       │
00:17:37 verbose #17512 > > │                                                                              │
00:17:37 verbose #17513 > > │ input: n --o --p q --r "s:/t u/v.w" --x "y:/z.a" --b c.d "\e{f-g}" h.i "j    │
00:17:37 verbose #17514 > > │ (k)"                                                                         │
00:17:37 verbose #17515 > > │ assert_eq' / actual: [|"n"; "--o"; "--p"; "q"; "--r"; "s:/t u/v.w"; "--x";   │
00:17:37 verbose #17516 > > │ "y:/z.a"; "--b"; "c.d";                                                      │
00:17:37 verbose #17517 > > │   "\e{f-g}"; "h.i"; "j (k)"|] / expected: [|"n"; "--o"; "--p"; "q"; "--r";   │
00:17:37 verbose #17518 > > │ "s:/t u/v.w"; "--x"; "y:/z.a"; "--b"; "c.d";                                 │
00:17:37 verbose #17519 > > │   "\e{f-g}"; "h.i"; "j (k)"|]                                                │
00:17:37 verbose #17520 > > │                                                                              │
00:17:37 verbose #17521 > > │ input: l "m n:\o.p"                                                          │
00:17:37 verbose #17522 > > │ assert_eq' / actual: [|"l"; "m n:\o.p"|] / expected: [|"l"; "m n:\o.p"|]     │
00:17:37 verbose #17523 > > │                                                                              │
00:17:37 verbose #17524 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:37 verbose #17525 > >
00:17:37 verbose #17526 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:37 verbose #17527 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:37 verbose #17528 > > │ ## parsing                                                                   │
00:17:37 verbose #17529 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:37 verbose #17530 > >
00:17:37 verbose #17531 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:37 verbose #17532 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:37 verbose #17533 > > │ ### range                                                                    │
00:17:37 verbose #17534 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:37 verbose #17535 > >
00:17:37 verbose #17536 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:37 verbose #17537 > > type range =
00:17:37 verbose #17538 > >     {
00:17:37 verbose #17539 > >         from : int
00:17:37 verbose #17540 > >         to : int
00:17:37 verbose #17541 > >     }
00:17:37 verbose #17542 > 00:17:37   debug #1006 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/be6a5f23024f585ea2583d52ca3e61c9c810efe25d4a9e08c6bdb25c14783cfa/main.spi
00:17:37 verbose #17543 > >
00:17:37 verbose #17544 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:37 verbose #17545 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:37 verbose #17546 > > │ ### position                                                                 │
00:17:37 verbose #17547 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:37 verbose #17548 > >
00:17:37 verbose #17549 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:37 verbose #17550 > > type position =
00:17:37 verbose #17551 > >     {
00:17:37 verbose #17552 > >         line : int
00:17:37 verbose #17553 > >         col : int
00:17:37 verbose #17554 > >     }
00:17:38 verbose #17555 > 00:17:37   debug #1007 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/058ab33d1c65107ec7d015793f95ce84a5342cc3b3b3daf3d565fd4fcb793b67/main.spi
00:17:38 verbose #17556 > >
00:17:38 verbose #17557 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:38 verbose #17558 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:38 verbose #17559 > > │ ### parser_state                                                             │
00:17:38 verbose #17560 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:38 verbose #17561 > >
00:17:38 verbose #17562 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:38 verbose #17563 > > nominal parser_state =
00:17:38 verbose #17564 > >     {
00:17:38 verbose #17565 > >         line_text : sm'.string_builder
00:17:38 verbose #17566 > >         position : position
00:17:38 verbose #17567 > >     }
00:17:38 verbose #17568 > 00:17:37   debug #1008 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6db62c3bf54c05d5d17da674c34beb3ef6f27a3d254901f0566da50f19f5ce79/main.spi
00:17:38 verbose #17569 > >
00:17:38 verbose #17570 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:38 verbose #17571 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:38 verbose #17572 > > │ ### parser                                                                   │
00:17:38 verbose #17573 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:38 verbose #17574 > >
00:17:38 verbose #17575 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:38 verbose #17576 > > type parser t = string * parser_state -> result (t * string * parser_state)
00:17:38 verbose #17577 > > string
00:17:38 verbose #17578 > 00:17:38   debug #1009 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b3f351dcb226c7c288a255fb17be718b75f762d277beefbbb2ce69d440663ec8/main.spi
00:17:39 verbose #17579 > >
00:17:39 verbose #17580 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:39 verbose #17581 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:39 verbose #17582 > > │ ### parse                                                                    │
00:17:39 verbose #17583 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:39 verbose #17584 > >
00:17:39 verbose #17585 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:39 verbose #17586 > > inl parse forall t. (p : parser t) (input : string) : result (t * string *
00:17:39 verbose #17587 > > parser_state) string =
00:17:39 verbose #17588 > >     inl input =
00:17:39 verbose #17589 > >         input
00:17:39 verbose #17590 > >         |> optionm'.of_obj
00:17:39 verbose #17591 > >         |> optionm'.default_value' ""
00:17:39 verbose #17592 > >     p (input, { line_text = "" |> sm'.string_builder; position = { line = 1; col
00:17:39 verbose #17593 > > = 1 } } |> parser_state)
00:17:39 verbose #17594 > 00:17:38   debug #1010 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/821e737eef3285e15c4459d8abcfcd778eca135a55491835341ac16ff9cb1661/main.spi
00:17:39 verbose #17595 > >
00:17:39 verbose #17596 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:39 verbose #17597 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:39 verbose #17598 > > │ ### inc                                                                      │
00:17:39 verbose #17599 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:39 verbose #17600 > >
00:17:39 verbose #17601 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:39 verbose #17602 > > inl inc c (parser_state s) =
00:17:39 verbose #17603 > >     match c with
00:17:39 verbose #17604 > >     | '\n' => { line = s.position.line + 1; col = 1 }
00:17:39 verbose #17605 > >     | _ => { s.position with col = s.position.col + 1 }.position
00:17:39 verbose #17606 > 00:17:38   debug #1011 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/761f256f24a9f4da47e4d97bb7c4a409fe532421b1c1a24b661b652192d33569/main.spi
00:17:39 verbose #17607 > >
00:17:39 verbose #17608 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:39 verbose #17609 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:39 verbose #17610 > > │ ### update                                                                   │
00:17:39 verbose #17611 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:39 verbose #17612 > >
00:17:39 verbose #17613 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:39 verbose #17614 > > inl update result s =
00:17:39 verbose #17615 > >     (s, result |> sm'.to_char_array |> a |> (fun x => x : _ int _) |>
00:17:39 verbose #17616 > > am'.to_list' |> listm'.unbox)
00:17:39 verbose #17617 > >     ||> listm.fold fun (parser_state s) c =>
00:17:39 verbose #17618 > >         { s with
00:17:39 verbose #17619 > >             position = s |> parser_state |> inc c
00:17:39 verbose #17620 > >             line_text =
00:17:39 verbose #17621 > >                 match c with
00:17:39 verbose #17622 > >                 | '\n' => s.line_text |> sm'.builder_clear
00:17:39 verbose #17623 > >                 | c => s.line_text |> sm'.builder_append (sm'.obj_to_string c)
00:17:39 verbose #17624 > >         } |> parser_state
00:17:40 verbose #17625 > 00:17:39   debug #1012 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7d8d4245ac4f1b355a247657c13fb337988b30b60ce09677b89fad2858c57141/main.spi
00:17:40 verbose #17626 > >
00:17:40 verbose #17627 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:40 verbose #17628 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:40 verbose #17629 > > │ ### any_char                                                                 │
00:17:40 verbose #17630 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:40 verbose #17631 > >
00:17:40 verbose #17632 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:40 verbose #17633 > > inl any_char () : parser char = function
00:17:40 verbose #17634 > >     | "", s => Error $'$"parsing.any_char / unexpected end of input / s:
00:17:40 verbose #17635 > > %A{!s}"'
00:17:40 verbose #17636 > >     | x, s =>
00:17:40 verbose #17637 > >         inl first_char = x |> sm'.index 0i32
00:17:40 verbose #17638 > >         inl rest = x |> sm'.range (am'.Start 1i32) (am'.End id)
00:17:40 verbose #17639 > >         in Ok (first_char, rest, s |> update (sm'.obj_to_string first_char))
00:17:40 verbose #17640 > 00:17:39   debug #1013 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a3d443f409b488bb33b6dd62a1359d1a60fb7dc9f92f5fb16cfa1a56d4fdaf8d/main.spi
00:17:40 verbose #17641 > >
00:17:40 verbose #17642 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:40 verbose #17643 > > //// test
00:17:40 verbose #17644 > >
00:17:40 verbose #17645 > > "abc"
00:17:40 verbose #17646 > > |> parse (any_char ())
00:17:40 verbose #17647 > > |> resultm.get
00:17:40 verbose #17648 > > |> sm'.format_debug
00:17:40 verbose #17649 > > |> _assert_eq (
00:17:40 verbose #17650 > >     ('a', "bc", { line_text = "a" |> sm'.string_builder; position = { line =
00:17:40 verbose #17651 > > 1i32; col = 2i32 } })
00:17:40 verbose #17652 > >     |> sm'.format_debug
00:17:40 verbose #17653 > > )
00:17:40 verbose #17654 > 00:17:40   debug #1014 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/14ecadfd9cfbb6ff61b4580cfbfed0ea93c745f6d6f8d968cc72f7a68ebf65b7/main.spi
00:17:41 verbose #17655 > >
00:17:41 verbose #17656 > > ╭─[ 565.59ms - stdout ]────────────────────────────────────────────────────────╮
00:17:41 verbose #17657 > > │ assert_eq / actual: "struct ('a', "bc", a, 1, 2)" / expected: "struct ('a',  │
00:17:41 verbose #17658 > > │ "bc", a, 1, 2)"                                                              │
00:17:41 verbose #17659 > > │                                                                              │
00:17:41 verbose #17660 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:41 verbose #17661 > >
00:17:41 verbose #17662 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:41 verbose #17663 > > //// test
00:17:41 verbose #17664 > >
00:17:41 verbose #17665 > > "abc"
00:17:41 verbose #17666 > > |> parse_ (any_char_ ())
00:17:41 verbose #17667 > > |> resultm.get
00:17:41 verbose #17668 > > |> sm'.format_debug
00:17:41 verbose #17669 > > |> _assert_eq' (('a', ($'FParsec.Position (null, 0, 1, 2)' : position_)) |>
00:17:41 verbose #17670 > > sm'.format_debug)
00:17:41 verbose #17671 > 00:17:40   debug #1015 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c307e1abe4d1544a0ed57688ad91473ed0b32384139b6bcc673b9c216704c316/main.spi
00:17:41 verbose #17672 > >
00:17:41 verbose #17673 > > ╭─[ 523.54ms - stdout ]────────────────────────────────────────────────────────╮
00:17:41 verbose #17674 > > │ assert_eq' / actual: "struct ('a', (Ln: 1, Col: 2))" / expected: "struct     │
00:17:41 verbose #17675 > > │ ('a', (Ln: 1, Col: 2))"                                                      │
00:17:41 verbose #17676 > > │                                                                              │
00:17:41 verbose #17677 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:41 verbose #17678 > >
00:17:41 verbose #17679 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:41 verbose #17680 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:41 verbose #17681 > > │ ### p_char                                                                   │
00:17:41 verbose #17682 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:41 verbose #17683 > >
00:17:41 verbose #17684 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:41 verbose #17685 > > inl p_char (c : char) : parser char = function
00:17:41 verbose #17686 > >     | "", s => Error $'$"parsing.p_char / unexpected end of input / s: %A{!s}"'
00:17:41 verbose #17687 > >     | input, parser_state ({ line_text position = { line col } } as s) =>
00:17:41 verbose #17688 > >         inl first_char = input |> sm'.index 0i32
00:17:41 verbose #17689 > >         if first_char = c
00:17:41 verbose #17690 > >         then Ok (
00:17:41 verbose #17691 > >             first_char,
00:17:41 verbose #17692 > >             input |> sm'.range (am'.Start 1i32) (am'.End id),
00:17:41 verbose #17693 > >             s |> parser_state |> update (sm'.obj_to_string first_char)
00:17:41 verbose #17694 > >         )
00:17:41 verbose #17695 > >         else
00:17:41 verbose #17696 > >             inl message : string =
00:17:41 verbose #17697 > >                 inl rest =
00:17:41 verbose #17698 > >                     input
00:17:41 verbose #17699 > >                     |> sm'.range
00:17:41 verbose #17700 > >                         (am'.Start 0i32)
00:17:41 verbose #17701 > >                         (am'.End fun l =>
00:17:41 verbose #17702 > >                             match (input |> sm'.index_of "\n") - 1 with
00:17:41 verbose #17703 > >                             | -2 => l
00:17:41 verbose #17704 > >                             | l => l
00:17:41 verbose #17705 > >                         )
00:17:41 verbose #17706 > >                 $'$"parsing.p_char / expected: \'{!c}\' / line: {!line} / col:
00:17:41 verbose #17707 > > {!col}\n{!line_text}{!rest}"'
00:17:41 verbose #17708 > >             inl pointer_line = (sm'.replicate (col - 1) " ") +. "^"
00:17:41 verbose #17709 > >             $'$"{!message}\n{!pointer_line}\n"' |> Error
00:17:41 verbose #17710 > 00:17:41   debug #1016 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5df95478269042999dca2a71b36d677b65d155a6c9a119d03c095d9cc0d7050b/main.spi
00:17:42 verbose #17711 > >
00:17:42 verbose #17712 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:42 verbose #17713 > > //// test
00:17:42 verbose #17714 > >
00:17:42 verbose #17715 > > "abc"
00:17:42 verbose #17716 > > |> parse (p_char 'a')
00:17:42 verbose #17717 > > |> resultm.get
00:17:42 verbose #17718 > > |> sm'.format_debug
00:17:42 verbose #17719 > > |> _assert_eq (
00:17:42 verbose #17720 > >     ('a', "bc", { line_text = "a" |> sm'.string_builder; position = { line =
00:17:42 verbose #17721 > > 1i32; col = 2i32 } })
00:17:42 verbose #17722 > >     |> sm'.format_debug
00:17:42 verbose #17723 > > )
00:17:42 verbose #17724 > 00:17:41   debug #1017 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b65a5c8e8e37689c6b1bf7f5575cb73bad0e18c8f0a04451fb377fa6f9c44442/main.spi
00:17:42 verbose #17725 > >
00:17:42 verbose #17726 > > ╭─[ 533.90ms - stdout ]────────────────────────────────────────────────────────╮
00:17:42 verbose #17727 > > │ assert_eq / actual: "struct ('a', "bc", a, 1, 2)" / expected: "struct ('a',  │
00:17:42 verbose #17728 > > │ "bc", a, 1, 2)"                                                              │
00:17:42 verbose #17729 > > │                                                                              │
00:17:42 verbose #17730 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:42 verbose #17731 > >
00:17:42 verbose #17732 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:42 verbose #17733 > > //// test
00:17:42 verbose #17734 > >
00:17:42 verbose #17735 > > "abc"
00:17:42 verbose #17736 > > |> parse_ (p_char_ 'a')
00:17:42 verbose #17737 > > |> resultm.get
00:17:42 verbose #17738 > > |> sm'.format_debug
00:17:42 verbose #17739 > > |> _assert_eq' (('a', ($'FParsec.Position (null, 0, 1, 2)' : position_)) |>
00:17:42 verbose #17740 > > sm'.format_debug)
00:17:42 verbose #17741 > 00:17:42   debug #1018 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2b221f2018d922bcd96f82ffc22af0f2e2830474c572130f49518fe2798bb58a/main.spi
00:17:43 verbose #17742 > >
00:17:43 verbose #17743 > > ╭─[ 464.50ms - stdout ]────────────────────────────────────────────────────────╮
00:17:43 verbose #17744 > > │ assert_eq' / actual: "struct ('a', (Ln: 1, Col: 2))" / expected: "struct     │
00:17:43 verbose #17745 > > │ ('a', (Ln: 1, Col: 2))"                                                      │
00:17:43 verbose #17746 > > │                                                                              │
00:17:43 verbose #17747 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:43 verbose #17748 > >
00:17:43 verbose #17749 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:43 verbose #17750 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:43 verbose #17751 > > │ ### any_string                                                               │
00:17:43 verbose #17752 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:43 verbose #17753 > >
00:17:43 verbose #17754 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:43 verbose #17755 > > inl any_string length : parser string = fun input, s =>
00:17:43 verbose #17756 > >     if sm'.length input < length
00:17:43 verbose #17757 > >     then Error $'$"parsing.any_string / unexpected end of input / s: %A{!s}"'
00:17:43 verbose #17758 > >     else
00:17:43 verbose #17759 > >         inl result = input |> sm'.range (am'.Start 0i32) (am'.End fun _ =>
00:17:43 verbose #17760 > > length - 1)
00:17:43 verbose #17761 > >         inl rest = input |> sm'.range (am'.Start length) (am'.End id)
00:17:43 verbose #17762 > >         Ok (result, rest, s |> update result)
00:17:43 verbose #17763 > 00:17:42   debug #1019 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6aed1c5365f15068337fb6856b9bf02e35c99d127c2477b9673a54332238e468/main.spi
00:17:43 verbose #17764 > >
00:17:43 verbose #17765 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:43 verbose #17766 > > //// test
00:17:43 verbose #17767 > >
00:17:43 verbose #17768 > > "abcdef"
00:17:43 verbose #17769 > > |> parse (any_string 3i32)
00:17:43 verbose #17770 > > |> resultm.get
00:17:43 verbose #17771 > > |> sm'.format_debug
00:17:43 verbose #17772 > > |> _assert_eq (
00:17:43 verbose #17773 > >     ("abc", "def", { line_text = "abc" |> sm'.string_builder; position = { line
00:17:43 verbose #17774 > > = 1i32; col = 4i32 } })
00:17:43 verbose #17775 > >     |> sm'.format_debug
00:17:43 verbose #17776 > > )
00:17:43 verbose #17777 > 00:17:42   debug #1020 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e1cd95f08f7a929a014049bec66c491cfc7567e121d2977b897b310a059e19c0/main.spi
00:17:43 verbose #17778 > >
00:17:44 verbose #17779 > > ╭─[ 580.95ms - stdout ]────────────────────────────────────────────────────────╮
00:17:44 verbose #17780 > > │ assert_eq / actual: "struct ("abc", "def", abc, 1, 4)" / expected: "struct   │
00:17:44 verbose #17781 > > │ ("abc", "def", abc, 1, 4)"                                                   │
00:17:44 verbose #17782 > > │                                                                              │
00:17:44 verbose #17783 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:44 verbose #17784 > >
00:17:44 verbose #17785 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:44 verbose #17786 > > //// test
00:17:44 verbose #17787 > >
00:17:44 verbose #17788 > > "abcdef"
00:17:44 verbose #17789 > > |> parse_ (any_string__ 3)
00:17:44 verbose #17790 > > |> resultm.get
00:17:44 verbose #17791 > > |> sm'.obj_to_string
00:17:44 verbose #17792 > > |> _assert_eq' (("abc", ($'FParsec.Position (null, 0, 1, 4)' : position_)) |>
00:17:44 verbose #17793 > > sm'.obj_to_string)
00:17:44 verbose #17794 > 00:17:43   debug #1021 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6c28c25b942d00e283acd5c8ba20cfe5f41adeeeb8624154679aee3137d56bc0/main.spi
00:17:44 verbose #17795 > >
00:17:44 verbose #17796 > > ╭─[ 514.47ms - stdout ]────────────────────────────────────────────────────────╮
00:17:44 verbose #17797 > > │ assert_eq' / actual: "(abc, (Ln: 1, Col: 4))" / expected: "(abc, (Ln: 1,     │
00:17:44 verbose #17798 > > │ Col: 4))"                                                                    │
00:17:44 verbose #17799 > > │                                                                              │
00:17:44 verbose #17800 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:44 verbose #17801 > >
00:17:44 verbose #17802 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:44 verbose #17803 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:44 verbose #17804 > > │ ### skip_any_string                                                          │
00:17:44 verbose #17805 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:44 verbose #17806 > >
00:17:44 verbose #17807 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:44 verbose #17808 > > inl skip_any_string length : parser () = fun input, s =>
00:17:44 verbose #17809 > >     if sm'.length input < length
00:17:44 verbose #17810 > >     then Error $'$"parsing.skip_any_string / unexpected end of input / s:
00:17:44 verbose #17811 > > %A{!s}"'
00:17:44 verbose #17812 > >     else Ok (
00:17:44 verbose #17813 > >         (),
00:17:44 verbose #17814 > >         input |> sm'.range (am'.Start length) (am'.End id),
00:17:44 verbose #17815 > >         s |> update (input |> sm'.range (am'.Start 0i32) (am'.End fun _ =>
00:17:44 verbose #17816 > > length - 1))
00:17:44 verbose #17817 > >     )
00:17:44 verbose #17818 > 00:17:44   debug #1022 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/89abf1adbd5a312a862d2222cdd55c4859bed7912735737049236aef433a7624/main.spi
00:17:44 verbose #17819 > >
00:17:44 verbose #17820 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:44 verbose #17821 > > //// test
00:17:44 verbose #17822 > >
00:17:44 verbose #17823 > > "abcdef"
00:17:44 verbose #17824 > > |> parse (skip_any_string 3i32)
00:17:44 verbose #17825 > > |> resultm.get
00:17:44 verbose #17826 > > |> sm'.format_debug
00:17:44 verbose #17827 > > |> _assert_eq (
00:17:44 verbose #17828 > >     ((), "def", { line_text = "abc" |> sm'.string_builder; position = { line =
00:17:44 verbose #17829 > > 1i32; col = 4i32 } })
00:17:44 verbose #17830 > >     |> sm'.format_debug
00:17:44 verbose #17831 > > )
00:17:45 verbose #17832 > 00:17:44   debug #1023 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/05c788de33e952ab7b261b15154c6184bf080e4567c77491eb1c74410da0fa3e/main.spi
00:17:45 verbose #17833 > >
00:17:45 verbose #17834 > > ╭─[ 519.94ms - stdout ]────────────────────────────────────────────────────────╮
00:17:45 verbose #17835 > > │ assert_eq / actual: "struct ("def", abc, 1, 4)" / expected: "struct ("def",  │
00:17:45 verbose #17836 > > │ abc, 1, 4)"                                                                  │
00:17:45 verbose #17837 > > │                                                                              │
00:17:45 verbose #17838 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:45 verbose #17839 > >
00:17:45 verbose #17840 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:45 verbose #17841 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:45 verbose #17842 > > │ ### (>>.)                                                                    │
00:17:45 verbose #17843 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:45 verbose #17844 > >
00:17:45 verbose #17845 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:45 verbose #17846 > > inl (>>.) forall t u. (a : parser t) (b : parser u) : parser u = fun input, s =>
00:17:45 verbose #17847 > >     match a (input, s) with
00:17:45 verbose #17848 > >     | Ok (_, rest, s) => b (rest, s)
00:17:45 verbose #17849 > >     | Error e => Error e
00:17:45 verbose #17850 > 00:17:44   debug #1024 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/181df90e09002b433fde9abce3da79a9de9d43034510239c9c7ab0caaac83d36/main.spi
00:17:45 verbose #17851 > >
00:17:45 verbose #17852 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:45 verbose #17853 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:45 verbose #17854 > > │ ### (>>.)                                                                    │
00:17:45 verbose #17855 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:45 verbose #17856 > >
00:17:45 verbose #17857 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:45 verbose #17858 > > inl (.>>) forall t u. (a : parser t) (b : parser u) : parser t = fun input, s =>
00:17:45 verbose #17859 > >     match a (input, s) with
00:17:45 verbose #17860 > >     | Ok (result, rest, s) =>
00:17:45 verbose #17861 > >         match b (rest, s) with
00:17:45 verbose #17862 > >         | Ok (_, rest, s) => Ok (result, rest, s)
00:17:45 verbose #17863 > >         | Error e => Error e
00:17:45 verbose #17864 > >     | Error e => Error e
00:17:46 verbose #17865 > 00:17:45   debug #1025 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/89242051ea4ca3149cf5ec7ba4add549387b23791cab32ff7db5cfeaef321b3a/main.spi
00:17:46 verbose #17866 > >
00:17:46 verbose #17867 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:46 verbose #17868 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:46 verbose #17869 > > │ ### (.>>.)                                                                   │
00:17:46 verbose #17870 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:46 verbose #17871 > >
00:17:46 verbose #17872 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:46 verbose #17873 > > inl (.>>.) forall t u. (a : parser t) (b : parser u) : parser (t * u) = fun
00:17:46 verbose #17874 > > input, s =>
00:17:46 verbose #17875 > >     match a (input, s) with
00:17:46 verbose #17876 > >     | Ok (result_a, rest, s) =>
00:17:46 verbose #17877 > >         match b (rest, s) with
00:17:46 verbose #17878 > >         | Ok (result_b, rest, s) => Ok ((result_a, result_b), rest, s)
00:17:46 verbose #17879 > >         | Error e => Error e
00:17:46 verbose #17880 > >     | Error e => Error e
00:17:46 verbose #17881 > 00:17:45   debug #1026 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1fc15fd34adf526286f9e6359ac36917b050e92394a7eb9b87d2032c854e4408/main.spi
00:17:46 verbose #17882 > >
00:17:46 verbose #17883 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:46 verbose #17884 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:46 verbose #17885 > > │ ### (>>%)                                                                    │
00:17:46 verbose #17886 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:46 verbose #17887 > >
00:17:46 verbose #17888 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:46 verbose #17889 > > inl (>>%) forall t u. (a : parser t) (b : u) : parser u = fun input, s =>
00:17:46 verbose #17890 > >     match a (input, s) with
00:17:46 verbose #17891 > >     | Ok (_, rest, s) => Ok (b, rest, s)
00:17:46 verbose #17892 > >     | Error e => Error e
00:17:46 verbose #17893 > 00:17:46   debug #1027 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/359be8f720ed6a3f733a74d1648aa5d8db371cfd82cbc93ca3eace90a111a7fd/main.spi
00:17:47 verbose #17894 > >
00:17:47 verbose #17895 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:47 verbose #17896 > > //// test
00:17:47 verbose #17897 > >
00:17:47 verbose #17898 > > "abc"
00:17:47 verbose #17899 > > |> parse (p_char 'a' >>. p_char 'b')
00:17:47 verbose #17900 > > |> resultm.get
00:17:47 verbose #17901 > > |> sm'.format_debug
00:17:47 verbose #17902 > > |> _assert_eq (
00:17:47 verbose #17903 > >     ('b', "c", { line_text = "ab" |> sm'.string_builder; position = { line =
00:17:47 verbose #17904 > > 1i32; col = 3i32 } })
00:17:47 verbose #17905 > >     |> sm'.format_debug
00:17:47 verbose #17906 > > )
00:17:47 verbose #17907 > >
00:17:47 verbose #17908 > > "abc\ndef\nghi"
00:17:47 verbose #17909 > > |> parse (skip_any_string 5i32 >>. p_char 'a')
00:17:47 verbose #17910 > > |> _assert_eq (Error "parsing.p_char / expected: 'a' / line: 2 / col: 2\ndef\n
00:17:47 verbose #17911 > > ^\n")
00:17:47 verbose #17912 > 00:17:46   debug #1028 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/65e863ecfec6ff6eb59b1caf33e07148a910b1d6d37fd3d806faac6e10036b54/main.spi
00:17:47 verbose #17913 > >
00:17:47 verbose #17914 > > ╭─[ 663.63ms - stdout ]────────────────────────────────────────────────────────╮
00:17:47 verbose #17915 > > │ assert_eq / actual: "struct ('b', "c", ab, 1, 3)" / expected: "struct ('b',  │
00:17:47 verbose #17916 > > │ "c", ab, 1, 3)"                                                              │
00:17:47 verbose #17917 > > │ assert_eq / actual: US0_1 "parsing.p_char / expected: 'a' / line: 2 / col: 2 │
00:17:47 verbose #17918 > > │ def                                                                          │
00:17:47 verbose #17919 > > │  ^                                                                           │
00:17:47 verbose #17920 > > │ " / expected: US0_1 "parsing.p_char / expected: 'a' / line: 2 / col: 2       │
00:17:47 verbose #17921 > > │ def                                                                          │
00:17:47 verbose #17922 > > │  ^                                                                           │
00:17:47 verbose #17923 > > │ "                                                                            │
00:17:47 verbose #17924 > > │                                                                              │
00:17:47 verbose #17925 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:47 verbose #17926 > >
00:17:47 verbose #17927 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:47 verbose #17928 > > //// test
00:17:47 verbose #17929 > >
00:17:47 verbose #17930 > > "abc"
00:17:47 verbose #17931 > > |> parse_ (p_char_ 'a' >>.$ p_char_ 'b')
00:17:47 verbose #17932 > > |> resultm.get
00:17:47 verbose #17933 > > |> sm'.obj_to_string
00:17:47 verbose #17934 > > |> _assert_eq' (('b', ($'FParsec.Position (null, 0, 1, 3)' : position_)) |>
00:17:47 verbose #17935 > > sm'.obj_to_string)
00:17:47 verbose #17936 > 00:17:47   debug #1029 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ee121783f2d03a1ffc74ff135428273d24eb7c6e3d0999518e5c23512900c121/main.spi
00:17:48 verbose #17937 > >
00:17:48 verbose #17938 > > ╭─[ 517.22ms - stdout ]────────────────────────────────────────────────────────╮
00:17:48 verbose #17939 > > │ assert_eq' / actual: "(b, (Ln: 1, Col: 3))" / expected: "(b, (Ln: 1, Col:    │
00:17:48 verbose #17940 > > │ 3))"                                                                         │
00:17:48 verbose #17941 > > │                                                                              │
00:17:48 verbose #17942 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:48 verbose #17943 > >
00:17:48 verbose #17944 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:48 verbose #17945 > > //// test
00:17:48 verbose #17946 > >
00:17:48 verbose #17947 > > "abc\ndef\nghi"
00:17:48 verbose #17948 > > |> parse_ (skip_any_string_ 5 >>.$ p_char_ 'a')
00:17:48 verbose #17949 > > |> resultm.unwrap_err
00:17:48 verbose #17950 > > |> sm'.obj_to_string
00:17:48 verbose #17951 > > |> sm'.replace "\r\n" "\n"
00:17:48 verbose #17952 > > |> _assert_eq "(Error in Ln: 2 Col: 2\ndef\n ^\nExpecting: 'a'\n, Error in Ln: 2
00:17:48 verbose #17953 > > Col: 2\nExpecting: 'a'\n)"
00:17:48 verbose #17954 > 00:17:47   debug #1030 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c35095c485ef1950274ebed5377c4734f7b6ae89e3861b5f647d5cefe9bd9512/main.spi
00:17:48 verbose #17955 > >
00:17:48 verbose #17956 > > ╭─[ 501.58ms - stdout ]────────────────────────────────────────────────────────╮
00:17:48 verbose #17957 > > │ assert_eq / actual: "(Error in Ln: 2 Col: 2                                  │
00:17:48 verbose #17958 > > │ def                                                                          │
00:17:48 verbose #17959 > > │  ^                                                                           │
00:17:48 verbose #17960 > > │ Expecting: 'a'                                                               │
00:17:48 verbose #17961 > > │ , Error in Ln: 2 Col: 2                                                      │
00:17:48 verbose #17962 > > │ Expecting: 'a'                                                               │
00:17:48 verbose #17963 > > │ )" / expected: "(Error in Ln: 2 Col: 2                                       │
00:17:48 verbose #17964 > > │ def                                                                          │
00:17:48 verbose #17965 > > │  ^                                                                           │
00:17:48 verbose #17966 > > │ Expecting: 'a'                                                               │
00:17:48 verbose #17967 > > │ , Error in Ln: 2 Col: 2                                                      │
00:17:48 verbose #17968 > > │ Expecting: 'a'                                                               │
00:17:48 verbose #17969 > > │ )"                                                                           │
00:17:48 verbose #17970 > > │                                                                              │
00:17:48 verbose #17971 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:48 verbose #17972 > >
00:17:48 verbose #17973 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:48 verbose #17974 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:48 verbose #17975 > > │ ### none_of                                                                  │
00:17:48 verbose #17976 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:48 verbose #17977 > >
00:17:48 verbose #17978 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:48 verbose #17979 > > inl none_of (chars : list char) : parser char = function
00:17:48 verbose #17980 > >     | "", s =>
00:17:48 verbose #17981 > >         inl chars = chars |> listm'.box |> listm'.to_array'
00:17:48 verbose #17982 > >         Error $'$"parsing.none_of / unexpected end of input / chars: %A{!chars}
00:17:48 verbose #17983 > > / s: %A{!s}"'
00:17:48 verbose #17984 > >     | x, s =>
00:17:48 verbose #17985 > >         inl first_char = x |> sm'.index 0i32
00:17:48 verbose #17986 > >         inl rest = x |> sm'.range (am'.Start 1i32) (am'.End id)
00:17:48 verbose #17987 > >         if chars |> listm'.exists' ((=) first_char) |> not
00:17:48 verbose #17988 > >         then Ok (first_char, rest, s |> update (sm'.obj_to_string first_char))
00:17:48 verbose #17989 > >         else
00:17:48 verbose #17990 > >             inl chars = chars |> listm'.box |> listm'.to_array'
00:17:48 verbose #17991 > >             Error $'$"parsing.none_of / unexpected char: \'{!first_char}\'
00:17:48 verbose #17992 > > chars: %A{!chars} / s: %A{!s}"'
00:17:48 verbose #17993 > 00:17:48   debug #1031 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/75d9c09c08d6bf77b48c65e2cff0f62c789c44661d0a57c4f69e796e0ceab097/main.spi
00:17:49 verbose #17994 > >
00:17:49 verbose #17995 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:49 verbose #17996 > > //// test
00:17:49 verbose #17997 > >
00:17:49 verbose #17998 > > "abc"
00:17:49 verbose #17999 > > |> parse (none_of [['a'; 'b'; 'c']])
00:17:49 verbose #18000 > > |> _assert_eq (Error "parsing.none_of / unexpected char: \'a\' / chars: [[|'a';
00:17:49 verbose #18001 > > 'b'; 'c'|]] / s: struct (, 1, 1)")
00:17:49 verbose #18002 > >
00:17:49 verbose #18003 > > "def"
00:17:49 verbose #18004 > > |> parse (none_of [['a'; 'b'; 'c']])
00:17:49 verbose #18005 > > |> resultm.get
00:17:49 verbose #18006 > > |> sm'.format_debug
00:17:49 verbose #18007 > > |> _assert_eq (
00:17:49 verbose #18008 > >     ('d', "ef", { line_text = "d" |> sm'.string_builder; position = { line =
00:17:49 verbose #18009 > > 1i32; col = 2i32 } })
00:17:49 verbose #18010 > >     |> sm'.format_debug
00:17:49 verbose #18011 > > )
00:17:49 verbose #18012 > 00:17:48   debug #1032 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7748e02768947c53af94fc7239372bd90caa7b04022549f9921ebc2387844560/main.spi
00:17:49 verbose #18013 > >
00:17:49 verbose #18014 > > ╭─[ 636.70ms - stdout ]────────────────────────────────────────────────────────╮
00:17:49 verbose #18015 > > │ assert_eq / actual: US0_1                                                    │
00:17:49 verbose #18016 > > │   "parsing.none_of / unexpected char: 'a' / chars: [|'a'; 'b'; 'c'|] / s:    │
00:17:49 verbose #18017 > > │ struct (, 1, 1)" / expected: US0_1                                           │
00:17:49 verbose #18018 > > │   "parsing.none_of / unexpected char: 'a' / chars: [|'a'; 'b'; 'c'|] / s:    │
00:17:49 verbose #18019 > > │ struct (, 1, 1)"                                                             │
00:17:49 verbose #18020 > > │ assert_eq / actual: "struct ('d', "ef", d, 1, 2)" / expected: "struct ('d',  │
00:17:49 verbose #18021 > > │ "ef", d, 1, 2)"                                                              │
00:17:49 verbose #18022 > > │                                                                              │
00:17:49 verbose #18023 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:49 verbose #18024 > >
00:17:49 verbose #18025 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:49 verbose #18026 > > //// test
00:17:49 verbose #18027 > >
00:17:49 verbose #18028 > > "abc"
00:17:49 verbose #18029 > > |> parse_ (none_of_ [['a'; 'b'; 'c']])
00:17:49 verbose #18030 > > |> resultm.unwrap_err
00:17:49 verbose #18031 > > |> sm'.obj_to_string
00:17:49 verbose #18032 > > |> sm'.replace "\r\n" "\n"
00:17:49 verbose #18033 > > |> _assert_eq ($'"(Error in Ln: 1 Col: 1\nabc\n^\nExpecting: any char not in
00:17:49 verbose #18034 > > ‘abc’\n, Error in Ln: 1 Col: 1\nExpecting: any char not in ‘abc’\n)"')
00:17:49 verbose #18035 > >
00:17:49 verbose #18036 > > "def"
00:17:49 verbose #18037 > > |> parse_ (none_of_ [['a'; 'b'; 'c']])
00:17:49 verbose #18038 > > |> resultm.get
00:17:49 verbose #18039 > > |> sm'.obj_to_string
00:17:49 verbose #18040 > > |> _assert_eq' (('d', ($'FParsec.Position (null, 0, 1, 2)' : position_)) |>
00:17:49 verbose #18041 > > sm'.obj_to_string)
00:17:49 verbose #18042 > 00:17:49   debug #1033 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6fa98c4af8dae74bec44c02cc564dc5a9967b5b9aef408890646d629494431c8/main.spi
00:17:50 verbose #18043 > >
00:17:50 verbose #18044 > > ╭─[ 510.78ms - stdout ]────────────────────────────────────────────────────────╮
00:17:50 verbose #18045 > > │ assert_eq / actual: "(Error in Ln: 1 Col: 1                                  │
00:17:50 verbose #18046 > > │ abc                                                                          │
00:17:50 verbose #18047 > > │ ^                                                                            │
00:17:50 verbose #18048 > > │ Expecting: any char not in ‘abc’                                             │
00:17:50 verbose #18049 > > │ , Error in Ln: 1 Col: 1                                                      │
00:17:50 verbose #18050 > > │ Expecting: any char not in ‘abc’                                             │
00:17:50 verbose #18051 > > │ )" / expected: "(Error in Ln: 1 Col: 1                                       │
00:17:50 verbose #18052 > > │ abc                                                                          │
00:17:50 verbose #18053 > > │ ^                                                                            │
00:17:50 verbose #18054 > > │ Expecting: any char not in ‘abc’                                             │
00:17:50 verbose #18055 > > │ , Error in Ln: 1 Col: 1                                                      │
00:17:50 verbose #18056 > > │ Expecting: any char not in ‘abc’                                             │
00:17:50 verbose #18057 > > │ )"                                                                           │
00:17:50 verbose #18058 > > │ assert_eq' / actual: "(d, (Ln: 1, Col: 2))" / expected: "(d, (Ln: 1, Col:    │
00:17:50 verbose #18059 > > │ 2))"                                                                         │
00:17:50 verbose #18060 > > │                                                                              │
00:17:50 verbose #18061 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:50 verbose #18062 > >
00:17:50 verbose #18063 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:50 verbose #18064 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:50 verbose #18065 > > │ ### (<|>)                                                                    │
00:17:50 verbose #18066 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:50 verbose #18067 > >
00:17:50 verbose #18068 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:50 verbose #18069 > > inl (<|>) forall t. (a : parser t) (b : parser t) : parser t = fun input, s =>
00:17:50 verbose #18070 > >     match a (input, s) with
00:17:50 verbose #18071 > >     | Ok _ as result => result
00:17:50 verbose #18072 > >     | Error _ => b (input, s)
00:17:50 verbose #18073 > 00:17:49   debug #1034 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7542624f6091e6f8b4e7860fbf8d047dfc733b00e9af9262205e996faecd403e/main.spi
00:17:50 verbose #18074 > >
00:17:50 verbose #18075 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:50 verbose #18076 > > //// test
00:17:50 verbose #18077 > >
00:17:50 verbose #18078 > > "abc"
00:17:50 verbose #18079 > > |> parse (p_char 'a' <|> p_char 'b')
00:17:50 verbose #18080 > > |> resultm.get
00:17:50 verbose #18081 > > |> sm'.format_debug
00:17:50 verbose #18082 > > |> _assert_eq (
00:17:50 verbose #18083 > >     ('a', "bc", { line_text = "a" |> sm'.string_builder; position = { line =
00:17:50 verbose #18084 > > 1i32; col = 2i32 } })
00:17:50 verbose #18085 > >     |> sm'.format_debug
00:17:50 verbose #18086 > > )
00:17:50 verbose #18087 > >
00:17:50 verbose #18088 > > "cba"
00:17:50 verbose #18089 > > |> parse (p_char 'a' <|> p_char 'b')
00:17:50 verbose #18090 > > |> _assert_eq (Error "parsing.p_char / expected: 'b' / line: 1 / col:
00:17:50 verbose #18091 > > 1\ncba\n^\n")
00:17:50 verbose #18092 > 00:17:50   debug #1035 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4592a0a568033e054ee84bc907f7f5ec4d999145951fa11a2bfa752e68a991a2/main.spi
00:17:51 verbose #18093 > >
00:17:51 verbose #18094 > > ╭─[ 656.64ms - stdout ]────────────────────────────────────────────────────────╮
00:17:51 verbose #18095 > > │ assert_eq / actual: "struct ('a', "bc", a, 1, 2)" / expected: "struct ('a',  │
00:17:51 verbose #18096 > > │ "bc", a, 1, 2)"                                                              │
00:17:51 verbose #18097 > > │ assert_eq / actual: US0_1 "parsing.p_char / expected: 'b' / line: 1 / col: 1 │
00:17:51 verbose #18098 > > │ cba                                                                          │
00:17:51 verbose #18099 > > │ ^                                                                            │
00:17:51 verbose #18100 > > │ " / expected: US0_1 "parsing.p_char / expected: 'b' / line: 1 / col: 1       │
00:17:51 verbose #18101 > > │ cba                                                                          │
00:17:51 verbose #18102 > > │ ^                                                                            │
00:17:51 verbose #18103 > > │ "                                                                            │
00:17:51 verbose #18104 > > │                                                                              │
00:17:51 verbose #18105 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:51 verbose #18106 > >
00:17:51 verbose #18107 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:51 verbose #18108 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:51 verbose #18109 > > │ ### (|>>)                                                                    │
00:17:51 verbose #18110 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:51 verbose #18111 > >
00:17:51 verbose #18112 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:51 verbose #18113 > > inl (|>>) p f : parser _ = fun input =>
00:17:51 verbose #18114 > >     match p input with
00:17:51 verbose #18115 > >     | Ok (result, rest) => Ok (f result, rest)
00:17:51 verbose #18116 > >     | Error e => Error e
00:17:51 verbose #18117 > 00:17:50   debug #1036 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4708d6a2fe97d4e835435a06762d520bf9cf0380c654598ce9723d38da70f153/main.spi
00:17:51 verbose #18118 > >
00:17:51 verbose #18119 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:51 verbose #18120 > > //// test
00:17:51 verbose #18121 > >
00:17:51 verbose #18122 > > "abc"
00:17:51 verbose #18123 > > |> parse (p_char 'a' |>> sm'.char_to_upper)
00:17:51 verbose #18124 > > |> resultm.get
00:17:51 verbose #18125 > > |> sm'.format_debug
00:17:51 verbose #18126 > > |> _assert_eq (
00:17:51 verbose #18127 > >     ('A', "bc", { line_text = "a" |> sm'.string_builder; position = { line =
00:17:51 verbose #18128 > > 1i32; col = 2i32 } })
00:17:51 verbose #18129 > >     |> sm'.format_debug
00:17:51 verbose #18130 > > )
00:17:51 verbose #18131 > 00:17:51   debug #1037 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ec457fa59abe9fef5ab4a4d0274f1d99537a2abcd90a557ba09bdf66c7adc3ec/main.spi
00:17:52 verbose #18132 > >
00:17:52 verbose #18133 > > ╭─[ 532.95ms - stdout ]────────────────────────────────────────────────────────╮
00:17:52 verbose #18134 > > │ assert_eq / actual: "struct ('A', "bc", a, 1, 2)" / expected: "struct ('A',  │
00:17:52 verbose #18135 > > │ "bc", a, 1, 2)"                                                              │
00:17:52 verbose #18136 > > │                                                                              │
00:17:52 verbose #18137 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:52 verbose #18138 > >
00:17:52 verbose #18139 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:52 verbose #18140 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:52 verbose #18141 > > │ ### many                                                                     │
00:17:52 verbose #18142 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:52 verbose #18143 > >
00:17:52 verbose #18144 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:52 verbose #18145 > > inl many p : parser (list _) = fun input =>
00:17:52 verbose #18146 > >     let rec loop acc input =
00:17:52 verbose #18147 > >         match p input with
00:17:52 verbose #18148 > >         | Ok (result, rest) => loop (result :: acc) rest
00:17:52 verbose #18149 > >         | Error _ => Ok (listm.rev acc, input)
00:17:52 verbose #18150 > >     loop [[]] input
00:17:52 verbose #18151 > 00:17:51   debug #1038 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/db7b5db9a106883347a01aa1333d911214b6f53bdb5d7162c166b8586999bb11/main.spi
00:17:52 verbose #18152 > >
00:17:52 verbose #18153 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:52 verbose #18154 > > //// test
00:17:52 verbose #18155 > >
00:17:52 verbose #18156 > > "aaabbc"
00:17:52 verbose #18157 > > |> parse (many (p_char 'a' <|> p_char 'b'))
00:17:52 verbose #18158 > > |> resultm.get
00:17:52 verbose #18159 > > |> sm'.format_debug
00:17:52 verbose #18160 > > |> _assert_eq (
00:17:52 verbose #18161 > >     ([['a'; 'a'; 'a'; 'b'; 'b']], "c", { line_text = "aaabb" |>
00:17:52 verbose #18162 > > sm'.string_builder; position = { line = 1i32; col = 6i32 } })
00:17:52 verbose #18163 > >     |> sm'.format_debug
00:17:52 verbose #18164 > > )
00:17:52 verbose #18165 > 00:17:52   debug #1039 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b65b90a268a57afaf062c6dfbd99150fdce1cf52c2f318fb27586109ffa2ec7c/main.spi
00:17:53 verbose #18166 > >
00:17:53 verbose #18167 > > ╭─[ 611.83ms - stdout ]────────────────────────────────────────────────────────╮
00:17:53 verbose #18168 > > │ assert_eq / actual: "struct (UH0_1 ('a', UH0_1 ('a', UH0_1 ('a', UH0_1 ('b', │
00:17:53 verbose #18169 > > │ UH0_1 ('b', UH0_0))))),                                                      │
00:17:53 verbose #18170 > > │         "c", aaabb, 1, 6)" / expected: "struct (UH0_1 ('a', UH0_1 ('a',      │
00:17:53 verbose #18171 > > │ UH0_1 ('a', UH0_1 ('b', UH0_1 ('b', UH0_0))))),                              │
00:17:53 verbose #18172 > > │         "c", aaabb, 1, 6)"                                                   │
00:17:53 verbose #18173 > > │                                                                              │
00:17:53 verbose #18174 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:53 verbose #18175 > >
00:17:53 verbose #18176 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:53 verbose #18177 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:53 verbose #18178 > > │ ### many1_chars                                                              │
00:17:53 verbose #18179 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:53 verbose #18180 > >
00:17:53 verbose #18181 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:53 verbose #18182 > > inl many1_chars p : parser string = fun input =>
00:17:53 verbose #18183 > >     match p input with
00:17:53 verbose #18184 > >     | Error e => Error e
00:17:53 verbose #18185 > >     | Ok (first_result, rest) =>
00:17:53 verbose #18186 > >         let rec loop acc input =
00:17:53 verbose #18187 > >             match p input with
00:17:53 verbose #18188 > >             | Ok (result, rest) => loop (acc +. sm'.obj_to_string result) rest
00:17:53 verbose #18189 > >             | Error _ => Ok (acc, input)
00:17:53 verbose #18190 > >         loop (sm'.obj_to_string first_result) rest
00:17:53 verbose #18191 > 00:17:52   debug #1040 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2f386538d14105ce01776d0a8473de51d318b9d9ceabe32e2b1bad3ed3a3537d/main.spi
00:17:53 verbose #18192 > >
00:17:53 verbose #18193 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:53 verbose #18194 > > //// test
00:17:53 verbose #18195 > >
00:17:53 verbose #18196 > > "aaabbc"
00:17:53 verbose #18197 > > |> parse (many1_chars (p_char 'a' <|> p_char 'b'))
00:17:53 verbose #18198 > > |> resultm.get
00:17:53 verbose #18199 > > |> sm'.format_debug
00:17:53 verbose #18200 > > |> _assert_eq (
00:17:53 verbose #18201 > >     ("aaabb", "c", { line_text = "aaabb" |> sm'.string_builder; position = {
00:17:53 verbose #18202 > > line = 1i32; col = 6i32 } })
00:17:53 verbose #18203 > >     |> sm'.format_debug
00:17:53 verbose #18204 > > )
00:17:53 verbose #18205 > 00:17:53   debug #1041 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9d6071e0ff3f7338c4bc4336ada125dc86cc47f0cd3cc6ebe526a9d2620c07b6/main.spi
00:17:54 verbose #18206 > >
00:17:54 verbose #18207 > > ╭─[ 672.83ms - stdout ]────────────────────────────────────────────────────────╮
00:17:54 verbose #18208 > > │ assert_eq / actual: "struct ("aaabb", "c", aaabb, 1, 6)" / expected: "struct │
00:17:54 verbose #18209 > > │ ("aaabb", "c", aaabb, 1, 6)"                                                 │
00:17:54 verbose #18210 > > │                                                                              │
00:17:54 verbose #18211 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:54 verbose #18212 > >
00:17:54 verbose #18213 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:54 verbose #18214 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:54 verbose #18215 > > │ ### many_chars                                                               │
00:17:54 verbose #18216 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:54 verbose #18217 > >
00:17:54 verbose #18218 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:54 verbose #18219 > > inl many_chars p : parser string = fun input =>
00:17:54 verbose #18220 > >     match many1_chars p input with
00:17:54 verbose #18221 > >     | Ok (result, rest) => Ok (result, rest)
00:17:54 verbose #18222 > >     | Error e => Ok ("", input)
00:17:54 verbose #18223 > 00:17:53   debug #1042 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a9396d504b1d7fa3a2e3728a6f03960b1ee9cb9fb79aacec4a84867cd492f7f4/main.spi
00:17:54 verbose #18224 > >
00:17:54 verbose #18225 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:54 verbose #18226 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:54 verbose #18227 > > │ ### many_chars_till                                                          │
00:17:54 verbose #18228 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:54 verbose #18229 > >
00:17:54 verbose #18230 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:54 verbose #18231 > > inl many_chars_till p end_p : parser string = fun input =>
00:17:54 verbose #18232 > >     match end_p input with
00:17:54 verbose #18233 > >     | Ok _ => Ok ("", input)
00:17:54 verbose #18234 > >     | Error _ =>
00:17:54 verbose #18235 > >         match many_chars p input with
00:17:54 verbose #18236 > >         | Ok (result, rest) => Ok (result, rest)
00:17:54 verbose #18237 > >         | Error e => Error e
00:17:54 verbose #18238 > 00:17:54   debug #1043 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3fe999fcc5cdef3e2b7be7778a32cd36417c9ec51f1035370b8a21f0262981a4/main.spi
00:17:55 verbose #18239 > >
00:17:55 verbose #18240 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:55 verbose #18241 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:55 verbose #18242 > > │ ### many1                                                                    │
00:17:55 verbose #18243 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:55 verbose #18244 > >
00:17:55 verbose #18245 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:55 verbose #18246 > > inl many1 p : parser (list _) = fun input =>
00:17:55 verbose #18247 > >     match p input with
00:17:55 verbose #18248 > >     | Error e => Error e
00:17:55 verbose #18249 > >     | Ok (first_result, rest) =>
00:17:55 verbose #18250 > >         let rec loop acc input =
00:17:55 verbose #18251 > >             match p input with
00:17:55 verbose #18252 > >             | Ok (result, rest) => loop (result :: acc) rest
00:17:55 verbose #18253 > >             | Error _ => Ok (listm.rev acc, input)
00:17:55 verbose #18254 > >         loop [[ first_result ]] rest
00:17:55 verbose #18255 > 00:17:54   debug #1044 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3b09491a665266d375cfb4afa5dac6aa2971ba6e3ea4a305a5b1a33c85bd8a9b/main.spi
00:17:55 verbose #18256 > >
00:17:55 verbose #18257 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:55 verbose #18258 > > //// test
00:17:55 verbose #18259 > >
00:17:55 verbose #18260 > > "aaabbc"
00:17:55 verbose #18261 > > |> parse (many1 (p_char 'a' <|> p_char 'b'))
00:17:55 verbose #18262 > > |> resultm.get
00:17:55 verbose #18263 > > |> sm'.format_debug
00:17:55 verbose #18264 > > |> _assert_eq (
00:17:55 verbose #18265 > >     ([['a'; 'a'; 'a'; 'b'; 'b']], "c", { line_text = "aaabb" |>
00:17:55 verbose #18266 > > sm'.string_builder; position = { line = 1i32; col = 6i32 } })
00:17:55 verbose #18267 > >     |> sm'.format_debug
00:17:55 verbose #18268 > > )
00:17:55 verbose #18269 > >
00:17:55 verbose #18270 > > "bcc"
00:17:55 verbose #18271 > > |> parse (many1 (p_char 'a' <|> p_char 'b'))
00:17:55 verbose #18272 > > |> resultm.get
00:17:55 verbose #18273 > > |> sm'.format_debug
00:17:55 verbose #18274 > > |> _assert_eq (
00:17:55 verbose #18275 > >     ([['b']], "cc", { line_text = "b" |> sm'.string_builder; position = { line =
00:17:55 verbose #18276 > > 1i32; col = 2i32 } })
00:17:55 verbose #18277 > >     |> sm'.format_debug
00:17:55 verbose #18278 > > )
00:17:55 verbose #18279 > >
00:17:55 verbose #18280 > > "cba"
00:17:55 verbose #18281 > > |> parse (many1 (p_char 'a' <|> p_char 'b'))
00:17:55 verbose #18282 > > |> _assert_eq (Error "parsing.p_char / expected: 'b' / line: 1 / col:
00:17:55 verbose #18283 > > 1\ncba\n^\n")
00:17:55 verbose #18284 > 00:17:55   debug #1045 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a9e9b3936bcefa233f69ad39ca6a3edafaa9d0c2ba428e65614b0c482c75edd0/main.spi
00:17:56 verbose #18285 > >
00:17:56 verbose #18286 > > ╭─[ 898.61ms - stdout ]────────────────────────────────────────────────────────╮
00:17:56 verbose #18287 > > │ assert_eq / actual: "struct (UH0_1 ('a', UH0_1 ('a', UH0_1 ('a', UH0_1 ('b', │
00:17:56 verbose #18288 > > │ UH0_1 ('b', UH0_0))))),                                                      │
00:17:56 verbose #18289 > > │         "c", aaabb, 1, 6)" / expected: "struct (UH0_1 ('a', UH0_1 ('a',      │
00:17:56 verbose #18290 > > │ UH0_1 ('a', UH0_1 ('b', UH0_1 ('b', UH0_0))))),                              │
00:17:56 verbose #18291 > > │         "c", aaabb, 1, 6)"                                                   │
00:17:56 verbose #18292 > > │ assert_eq / actual: "struct (UH0_1 ('b', UH0_0), "cc", b, 1, 2)" / expected: │
00:17:56 verbose #18293 > > │ "struct (UH0_1 ('b', UH0_0), "cc", b, 1, 2)"                                 │
00:17:56 verbose #18294 > > │ assert_eq / actual: US1_1 "parsing.p_char / expected: 'b' / line: 1 / col: 1 │
00:17:56 verbose #18295 > > │ cba                                                                          │
00:17:56 verbose #18296 > > │ ^                                                                            │
00:17:56 verbose #18297 > > │ " / expected: US1_1 "parsing.p_char / expected: 'b' / line: 1 / col: 1       │
00:17:56 verbose #18298 > > │ cba                                                                          │
00:17:56 verbose #18299 > > │ ^                                                                            │
00:17:56 verbose #18300 > > │ "                                                                            │
00:17:56 verbose #18301 > > │                                                                              │
00:17:56 verbose #18302 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:56 verbose #18303 > >
00:17:56 verbose #18304 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:56 verbose #18305 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:56 verbose #18306 > > │ ### many1_strings                                                            │
00:17:56 verbose #18307 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:56 verbose #18308 > >
00:17:56 verbose #18309 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:56 verbose #18310 > > inl many1_strings p : parser string = fun input =>
00:17:56 verbose #18311 > >     match many1 p input with
00:17:56 verbose #18312 > >     | Ok (results, rest) =>
00:17:56 verbose #18313 > >         Ok (results |> listm.map sm'.obj_to_string |> listm'.box |> seq.of_list'
00:17:56 verbose #18314 > > |> sm'.concat "", rest)
00:17:56 verbose #18315 > >     | Error e => Error e
00:17:56 verbose #18316 > 00:17:55   debug #1046 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c36ce4e892fe51a1ee739e7f9c7e431182769c6cd424661acd49b9ddafc5b1ac/main.spi
00:17:56 verbose #18317 > >
00:17:56 verbose #18318 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:56 verbose #18319 > > //// test
00:17:56 verbose #18320 > >
00:17:56 verbose #18321 > > "aaabbc"
00:17:56 verbose #18322 > > |> parse (many1_strings (p_char 'a' <|> p_char 'b'))
00:17:56 verbose #18323 > > |> resultm.get
00:17:56 verbose #18324 > > |> sm'.format_debug
00:17:56 verbose #18325 > > |> _assert_eq (
00:17:56 verbose #18326 > >     ("aaabb", "c", { line_text = "aaabb" |> sm'.string_builder; position = {
00:17:56 verbose #18327 > > line = 1i32; col = 6i32 } })
00:17:56 verbose #18328 > >     |> sm'.format_debug
00:17:56 verbose #18329 > > )
00:17:57 verbose #18330 > 00:17:56   debug #1047 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a54c8b80212d2dbadaaa012ca048afcd3c6f48ee62d3fd42ebb9a9a003e8f031/main.spi
00:17:57 verbose #18331 > >
00:17:57 verbose #18332 > > ╭─[ 727.81ms - stdout ]────────────────────────────────────────────────────────╮
00:17:57 verbose #18333 > > │ assert_eq / actual: "struct ("aaabb", "c", aaabb, 1, 6)" / expected: "struct │
00:17:57 verbose #18334 > > │ ("aaabb", "c", aaabb, 1, 6)"                                                 │
00:17:57 verbose #18335 > > │                                                                              │
00:17:57 verbose #18336 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:57 verbose #18337 > >
00:17:57 verbose #18338 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:57 verbose #18339 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:57 verbose #18340 > > │ ### many_strings                                                             │
00:17:57 verbose #18341 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:57 verbose #18342 > >
00:17:57 verbose #18343 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:57 verbose #18344 > > inl many_strings p : parser string = fun input =>
00:17:57 verbose #18345 > >     match many p input with
00:17:57 verbose #18346 > >     | Ok (results, rest) =>
00:17:57 verbose #18347 > >         Ok (results |> listm.map sm'.obj_to_string |> listm'.box |> seq.of_list'
00:17:57 verbose #18348 > > |> sm'.concat "", rest)
00:17:57 verbose #18349 > >     | Error e => Ok ("", input)
00:17:57 verbose #18350 > 00:17:57   debug #1048 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8150b5b59036bc156083bf9d9253bc58416d618b90a2d35a4dfb4b13a4c0f204/main.spi
00:17:58 verbose #18351 > >
00:17:58 verbose #18352 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:58 verbose #18353 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:58 verbose #18354 > > │ ### choice                                                                   │
00:17:58 verbose #18355 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:58 verbose #18356 > >
00:17:58 verbose #18357 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:58 verbose #18358 > > inl choice parsers : parser _ = fun input =>
00:17:58 verbose #18359 > >     let rec loop = function
00:17:58 verbose #18360 > >         | [[]] => Error "choice / no parsers succeeded"
00:17:58 verbose #18361 > >         | p :: ps =>
00:17:58 verbose #18362 > >             match p input with
00:17:58 verbose #18363 > >             | Ok _ as result => result
00:17:58 verbose #18364 > >             | Error _ => loop ps
00:17:58 verbose #18365 > >     loop parsers
00:17:58 verbose #18366 > 00:17:57   debug #1049 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f773cc5be78ad57cabdf031c1c8d069ad55a285857036c9be035aa106b87cd5b/main.spi
00:17:58 verbose #18367 > >
00:17:58 verbose #18368 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:58 verbose #18369 > > //// test
00:17:58 verbose #18370 > >
00:17:58 verbose #18371 > > "bca"
00:17:58 verbose #18372 > > |> parse (choice [[p_char 'a'; p_char 'b'; p_char 'c']])
00:17:58 verbose #18373 > > |> resultm.get
00:17:58 verbose #18374 > > |> sm'.format_debug
00:17:58 verbose #18375 > > |> _assert_eq (
00:17:58 verbose #18376 > >     ('b', "ca", { line_text = "b" |> sm'.string_builder; position = { line =
00:17:58 verbose #18377 > > 1i32; col = 2i32 } })
00:17:58 verbose #18378 > >     |> sm'.format_debug
00:17:58 verbose #18379 > > )
00:17:58 verbose #18380 > >
00:17:58 verbose #18381 > > "cba"
00:17:58 verbose #18382 > > |> parse (choice [[p_char 'a'; p_char 'b'; p_char 'c']])
00:17:58 verbose #18383 > > |> resultm.get
00:17:58 verbose #18384 > > |> sm'.format_debug
00:17:58 verbose #18385 > > |> _assert_eq (
00:17:58 verbose #18386 > >     ('c', "ba", { line_text = "c" |> sm'.string_builder; position = { line =
00:17:58 verbose #18387 > > 1i32; col = 2i32 } })
00:17:58 verbose #18388 > >     |> sm'.format_debug
00:17:58 verbose #18389 > > )
00:17:58 verbose #18390 > 00:17:58   debug #1050 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/471de601ca92e04dbf97bd3b99bdf99b7db72e167d30545feb06e3cc3e52f303/main.spi
00:17:59 verbose #18391 > >
00:17:59 verbose #18392 > > ╭─[ 658.45ms - stdout ]────────────────────────────────────────────────────────╮
00:17:59 verbose #18393 > > │ assert_eq / actual: "struct ('b', "ca", b, 1, 2)" / expected: "struct ('b',  │
00:17:59 verbose #18394 > > │ "ca", b, 1, 2)"                                                              │
00:17:59 verbose #18395 > > │ assert_eq / actual: "struct ('c', "ba", c, 1, 2)" / expected: "struct ('c',  │
00:17:59 verbose #18396 > > │ "ba", c, 1, 2)"                                                              │
00:17:59 verbose #18397 > > │                                                                              │
00:17:59 verbose #18398 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:59 verbose #18399 > >
00:17:59 verbose #18400 > > ── markdown ────────────────────────────────────────────────────────────────────
00:17:59 verbose #18401 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:17:59 verbose #18402 > > │ ### between                                                                  │
00:17:59 verbose #18403 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:17:59 verbose #18404 > >
00:17:59 verbose #18405 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:59 verbose #18406 > > inl between p_open p_close p_content : parser _ = fun input =>
00:17:59 verbose #18407 > >     match p_open input with
00:17:59 verbose #18408 > >     | Ok (_, rest1) =>
00:17:59 verbose #18409 > >         match p_content rest1 with
00:17:59 verbose #18410 > >         | Ok (result, rest2) =>
00:17:59 verbose #18411 > >             match p_close rest2 with
00:17:59 verbose #18412 > >             | Ok (_, rest3) => Ok (result, rest3)
00:17:59 verbose #18413 > >             | Error e => Error $'$"between / expected closing delimiter / e:
00:17:59 verbose #18414 > > %A{!e} / input: %A{!input} / rest1: %A{!rest1} / rest2: %A{!rest2}"'
00:17:59 verbose #18415 > >         | Error _ => Error "between / expected content"
00:17:59 verbose #18416 > >     | Error e => Error e
00:17:59 verbose #18417 > 00:17:58   debug #1051 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/87f8152385eb9a1fe3ab577fede48c4cd5f362f16db6d5393669847e52da7ebf/main.spi
00:17:59 verbose #18418 > >
00:17:59 verbose #18419 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:17:59 verbose #18420 > > //// test
00:17:59 verbose #18421 > >
00:17:59 verbose #18422 > > "[[aaabb]]"
00:17:59 verbose #18423 > > |> parse (between (p_char '[[') (p_char ']]') (many1_chars (p_char 'a' <|>
00:17:59 verbose #18424 > > p_char 'b')))
00:17:59 verbose #18425 > > |> resultm.get
00:17:59 verbose #18426 > > |> sm'.format_debug
00:17:59 verbose #18427 > > |> _assert_eq (
00:17:59 verbose #18428 > >     ("aaabb", "", { line_text = "[[aaabb]]" |> sm'.string_builder; position = {
00:17:59 verbose #18429 > > line = 1i32; col = 8i32 } })
00:17:59 verbose #18430 > >     |> sm'.format_debug
00:17:59 verbose #18431 > > )
00:17:59 verbose #18432 > >
00:17:59 verbose #18433 > > "[[aaabb"
00:17:59 verbose #18434 > > |> parse (between (p_char '[[') (p_char ']]') (many1_chars (p_char 'a' <|>
00:17:59 verbose #18435 > > p_char 'b')))
00:17:59 verbose #18436 > > |> resultm.unwrap_err
00:17:59 verbose #18437 > > |> sm'.format_debug
00:17:59 verbose #18438 > > |> _assert_eq "\"between / expected closing delimiter / e: \"parsing.p_char
00:17:59 verbose #18439 > > unexpected end of input / s: struct ([[aaabb, 1, 7)\" / input: struct
00:17:59 verbose #18440 > > (\"[[aaabb\", [[aaabb, 1, 1) / rest1: struct (\"aaabb\", [[aaabb, 1, 2) / rest2:
00:17:59 verbose #18441 > > struct (\"\", [[aaabb, 1, 7)\""
00:17:59 verbose #18442 > 00:17:59   debug #1052 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4b5dee1c5831df7d6672575c0ddd7e596fa07838948d341aa8ee9aef6972c2b6/main.spi
00:18:00 verbose #18443 > >
00:18:00 verbose #18444 > > ╭─[ 973.04ms - stdout ]────────────────────────────────────────────────────────╮
00:18:00 verbose #18445 > > │ assert_eq / actual: "struct ("aaabb", "", [aaabb], 1, 8)" / expected:        │
00:18:00 verbose #18446 > > │ "struct ("aaabb", "", [aaabb], 1, 8)"                                        │
00:18:00 verbose #18447 > > │ assert_eq / actual: ""between / expected closing delimiter / e:              │
00:18:00 verbose #18448 > > │ "parsing.p_char / unexpected end of input / s: struct ([aaabb, 1, 7)" /      │
00:18:00 verbose #18449 > > │ input: struct ("[aaabb", [aaabb, 1, 1) / rest1: struct ("aaabb", [aaabb, 1,  │
00:18:00 verbose #18450 > > │ 2) / rest2: struct ("", [aaabb, 1, 7)"" / expected: ""between / expected     │
00:18:00 verbose #18451 > > │ closing delimiter / e: "parsing.p_char / unexpected end of input / s: struct │
00:18:00 verbose #18452 > > │ ([aaabb, 1, 7)" / input: struct ("[aaabb", [aaabb, 1, 1) / rest1: struct     │
00:18:00 verbose #18453 > > │ ("aaabb", [aaabb, 1, 2) / rest2: struct ("", [aaabb, 1, 7)""                 │
00:18:00 verbose #18454 > > │                                                                              │
00:18:00 verbose #18455 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:00 verbose #18456 > >
00:18:00 verbose #18457 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:00 verbose #18458 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:00 verbose #18459 > > │ ### sep_by                                                                   │
00:18:00 verbose #18460 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:00 verbose #18461 > >
00:18:00 verbose #18462 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:00 verbose #18463 > > inl sep_by p sep : parser (list _) = fun input, s =>
00:18:00 verbose #18464 > >     let rec loop acc input s =
00:18:00 verbose #18465 > >         match p (input, s) with
00:18:00 verbose #18466 > >         | Error _ => Ok (acc |> listm.rev, input, s)
00:18:00 verbose #18467 > >         | Ok (result, rest, s) =>
00:18:00 verbose #18468 > >             match sep (rest, s) with
00:18:00 verbose #18469 > >             | Error _ => Ok ((result :: acc) |> listm.rev, rest, s)
00:18:00 verbose #18470 > >             | Ok (_, rest, s) => loop (result :: acc) rest s
00:18:00 verbose #18471 > >     loop [[]] input s
00:18:00 verbose #18472 > 00:18:00   debug #1053 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/42206a35b4a4a81eaace9cfd953679373a5e7c562a6fa53eab8d0185b20880ca/main.spi
00:18:00 verbose #18473 > >
00:18:00 verbose #18474 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:00 verbose #18475 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:00 verbose #18476 > > │ ### span                                                                     │
00:18:00 verbose #18477 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:00 verbose #18478 > >
00:18:00 verbose #18479 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:00 verbose #18480 > > inl span pred str =
00:18:00 verbose #18481 > >     let rec loop i =
00:18:00 verbose #18482 > >         if i >= sm'.length str
00:18:00 verbose #18483 > >         then i
00:18:00 verbose #18484 > >         elif pred (str |> sm'.index i)
00:18:00 verbose #18485 > >         then loop (i + 1)
00:18:00 verbose #18486 > >         else i
00:18:00 verbose #18487 > >     loop 0
00:18:01 verbose #18488 > 00:18:00   debug #1054 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3585b0f2f070e6dddf4157a17f5e4b69710dea9fa1bb4a42bc026dd68440dd06/main.spi
00:18:01 verbose #18489 > >
00:18:01 verbose #18490 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:01 verbose #18491 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:01 verbose #18492 > > │ ### spaces1                                                                  │
00:18:01 verbose #18493 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:01 verbose #18494 > >
00:18:01 verbose #18495 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:01 verbose #18496 > > inl spaces1 () : parser () = fun input, s =>
00:18:01 verbose #18497 > >     match input |> span fun c => c = ' ' with
00:18:01 verbose #18498 > >     | 0i32 => Error "spaces1 / expected at least one space"
00:18:01 verbose #18499 > >     | n => Ok ((), input |> sm'.range (am'.Start n) (am'.End id), s)
00:18:01 verbose #18500 > 00:18:00   debug #1055 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b6a93f6b5d726e466295b9b2cd900d73a1a4566d19f9a2a97691cb5db6bef523/main.spi
00:18:01 verbose #18501 > >
00:18:01 verbose #18502 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:01 verbose #18503 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:01 verbose #18504 > > │ ### spaces                                                                   │
00:18:01 verbose #18505 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:01 verbose #18506 > >
00:18:01 verbose #18507 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:01 verbose #18508 > > inl spaces () : parser () = fun input, s =>
00:18:01 verbose #18509 > >     input
00:18:01 verbose #18510 > >     |> span fun c => c = ' '
00:18:01 verbose #18511 > >     |> fun (n : i32) => Ok ((), input |> sm'.range (am'.Start n) (am'.End id),
00:18:01 verbose #18512 > > s)
00:18:02 verbose #18513 > 00:18:01   debug #1056 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/66b2c8a1cca122f83d4ee262d497df8887a3df6647cbdf46f269bbcedac782ef/main.spi
00:18:02 verbose #18514 > >
00:18:02 verbose #18515 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:02 verbose #18516 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:02 verbose #18517 > > │ ### p_digit                                                                  │
00:18:02 verbose #18518 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:02 verbose #18519 > >
00:18:02 verbose #18520 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:02 verbose #18521 > > inl p_digit () : parser char = fun input, s =>
00:18:02 verbose #18522 > >     match input |> sm'.index 0i32 with
00:18:02 verbose #18523 > >     | ('0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9') as c =>
00:18:02 verbose #18524 > >         Ok (c, input |> sm'.range (am'.Start 1i32) (am'.End id), s)
00:18:02 verbose #18525 > >     | c => Error $'$"p_digit / unexpected char: {!c}"'
00:18:02 verbose #18526 > 00:18:01   debug #1057 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9b6f12c215491697a6e74f09f52d5de2b603131f9ba34a9a38e9e2f911916350/main.spi
00:18:02 verbose #18527 > >
00:18:02 verbose #18528 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:02 verbose #18529 > > //// test
00:18:02 verbose #18530 > >
00:18:02 verbose #18531 > > "1 2 3"
00:18:02 verbose #18532 > > |> parse (sep_by (p_digit ()) (spaces1 ()))
00:18:02 verbose #18533 > > |> resultm.get
00:18:02 verbose #18534 > > |> sm'.format_debug
00:18:02 verbose #18535 > > |> _assert_eq (
00:18:02 verbose #18536 > >     ([['1'; '2'; '3']], "", { line_text = "" |> sm'.string_builder; position = {
00:18:02 verbose #18537 > > col = 1i32; line = 1i32 } })
00:18:02 verbose #18538 > >     |> sm'.format_debug
00:18:02 verbose #18539 > > )
00:18:02 verbose #18540 > 00:18:02   debug #1058 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b2433ef53cf39a99f6896a52448ebc04dc98a554e025516aceccedb16b96508c/main.spi
00:18:03 verbose #18541 > >
00:18:03 verbose #18542 > > ╭─[ 557.18ms - stdout ]────────────────────────────────────────────────────────╮
00:18:03 verbose #18543 > > │ assert_eq / actual: "struct (UH0_1 ('1', UH0_1 ('2', UH0_1 ('3', UH0_0))),   │
00:18:03 verbose #18544 > > │ "", , 1, 1)" / expected: "struct (UH0_1 ('1', UH0_1 ('2', UH0_1 ('3',        │
00:18:03 verbose #18545 > > │ UH0_0))), "", , 1, 1)"                                                       │
00:18:03 verbose #18546 > > │                                                                              │
00:18:03 verbose #18547 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:03 verbose #18548 > >
00:18:03 verbose #18549 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:03 verbose #18550 > > //// test
00:18:03 verbose #18551 > >
00:18:03 verbose #18552 > > "1 a 2"
00:18:03 verbose #18553 > > |> parse (sep_by (p_digit ()) (spaces1 ()))
00:18:03 verbose #18554 > > |> resultm.get
00:18:03 verbose #18555 > > |> sm'.format_debug
00:18:03 verbose #18556 > > |> _assert_eq (
00:18:03 verbose #18557 > >     ([['1']], "a 2", { line_text = "" |> sm'.string_builder; position = { col =
00:18:03 verbose #18558 > > 1i32; line = 1i32 } })
00:18:03 verbose #18559 > >     |> sm'.format_debug
00:18:03 verbose #18560 > > )
00:18:03 verbose #18561 > 00:18:02   debug #1059 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bf425521c620e7b9221433202e4002aedfefce810e78e413ffd3be6867c61ed1/main.spi
00:18:03 verbose #18562 > >
00:18:03 verbose #18563 > > ╭─[ 574.93ms - stdout ]────────────────────────────────────────────────────────╮
00:18:03 verbose #18564 > > │ assert_eq / actual: "struct (UH0_1 ('1', UH0_0), "a 2", , 1, 1)" / expected: │
00:18:03 verbose #18565 > > │ "struct (UH0_1 ('1', UH0_0), "a 2", , 1, 1)"                                 │
00:18:03 verbose #18566 > > │                                                                              │
00:18:03 verbose #18567 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:03 verbose #18568 > >
00:18:03 verbose #18569 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:03 verbose #18570 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:03 verbose #18571 > > │ ### opt                                                                      │
00:18:03 verbose #18572 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:03 verbose #18573 > >
00:18:03 verbose #18574 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:03 verbose #18575 > > inl opt p : parser (option _) = fun input, s =>
00:18:03 verbose #18576 > >     match p (input, s) with
00:18:03 verbose #18577 > >     | Ok (result, rest, s) => Ok (Some result, rest, s)
00:18:03 verbose #18578 > >     | Error _ => Ok (None, input, s)
00:18:04 verbose #18579 > 00:18:03   debug #1060 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/64ff22daaa2d9413666ba0643c20126d1c1c4bfccff732c0b195ed47b3057b2d/main.spi
00:18:04 verbose #18580 > >
00:18:04 verbose #18581 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:04 verbose #18582 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:04 verbose #18583 > > │ ### rest_of_line                                                             │
00:18:04 verbose #18584 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:04 verbose #18585 > >
00:18:04 verbose #18586 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:04 verbose #18587 > > inl rest_of_line () : parser string = fun input, s =>
00:18:04 verbose #18588 > >     inl i : i32 = input |> span ((<>) '\n')
00:18:04 verbose #18589 > >     Ok (input |> sm'.range (am'.Start i) (am'.End id), input |> sm'.range
00:18:04 verbose #18590 > > (am'.Start i) (am'.End id), s)
00:18:04 verbose #18591 > 00:18:03   debug #1061 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f27f7984eea28d8cf78c983463f708ebdadc2e302fab455ab4ff440a94f1576d/main.spi
00:18:04 verbose #18592 > >
00:18:04 verbose #18593 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:04 verbose #18594 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:04 verbose #18595 > > │ ### eof                                                                      │
00:18:04 verbose #18596 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:04 verbose #18597 > >
00:18:04 verbose #18598 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:04 verbose #18599 > > inl eof () : parser () = fun input, s =>
00:18:04 verbose #18600 > >     if sm'.length input = 0i32
00:18:04 verbose #18601 > >     then Ok ((), input, s)
00:18:04 verbose #18602 > >     else Error $'$"parsing.eof / expected end of input / input: %A{!input}"'
00:18:04 verbose #18603 > 00:18:04   debug #1062 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/74fa8547dadacccf3b6cb89f0f5486f90d485a36ffb7c42fada963a8164c3b93/main.spi
00:18:05 verbose #18604 > 00:00:48 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 61658 }
00:18:05 verbose #18605 > 00:00:48   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/parsing.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/parsing.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:18:07 verbose #18606 > 00:00:51 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/parsing.dib.ipynb to html
00:18:07 verbose #18607 > 00:00:51 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:18:07 verbose #18608 > 00:00:51 verbose #7 !   validate(nb)
00:18:09 verbose #18609 > 00:00:53 verbose #8 ! [NbConvertApp] Writing 478877 bytes to c:\home\git\polyglot\lib\spiral\parsing.dib.html
00:18:10 verbose #18610 > 00:00:53 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 645 }
00:18:10 verbose #18611 > 00:00:53   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 645 }
00:18:10 verbose #18612 > 00:00:53   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/parsing.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/parsing.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:18:11 verbose #18613 > 00:00:54 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:18:11 verbose #18614 > 00:00:54   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:18:11 verbose #18615 > 00:00:55   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 62362 }
00:18:11   debug #18616 runtime.execute_with_options_async / { exit_code = 0; output_length = 67766 }
00:18:11   debug #26 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path parsing.dib --retries 3
00:18:11   debug #18617 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path threading.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:18:11 verbose #18618 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "threading.dib", "--retries", "3"])) }
00:18:11 verbose #18619 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/threading.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/threading.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/threading.dib" --output-path "c:/home/git/polyglot/lib/spiral/threading.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:18:13 verbose #18620 > >
00:18:13 verbose #18621 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:13 verbose #18622 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:13 verbose #18623 > > │ # threading                                                                  │
00:18:13 verbose #18624 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:17 verbose #18625 > >
00:18:17 verbose #18626 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:17 verbose #18627 > > open rust_operators
00:18:18 verbose #18628 > 00:18:17   debug #1063 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0d9bd8e5bb71a8e1d983506a46e54fb8c8e6cf2d0bd973135d4cdd580c5f6d39/main.spi
00:18:19 verbose #18629 > >
00:18:19 verbose #18630 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:19 verbose #18631 > > //// test
00:18:19 verbose #18632 > >
00:18:19 verbose #18633 > > open testing
00:18:19 verbose #18634 > 00:18:18   debug #1064 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d06211d48c36e09624381aad71e69f817df1a545af31c21067514d4d391bdd05/main.spi
00:18:19 verbose #18635 > >
00:18:19 verbose #18636 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:19 verbose #18637 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:19 verbose #18638 > > │ ## types                                                                     │
00:18:19 verbose #18639 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:19 verbose #18640 > >
00:18:19 verbose #18641 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:19 verbose #18642 > > inl types () =
00:18:19 verbose #18643 > >     backend_switch {
00:18:19 verbose #18644 > >         Fsharp = fun () =>
00:18:19 verbose #18645 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:18:19 verbose #18646 > > Fable.Core.Emit(\"std::thread::JoinHandle<$0>\")>]]\n#endif\ntype
00:18:19 verbose #18647 > > std_thread_JoinHandle<'T> = class end"
00:18:19 verbose #18648 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:18:19 verbose #18649 > > Fable.Core.Emit(\"std::sync::Arc<$0>\")>]]\n#endif\ntype std_sync_Arc<'T> =
00:18:19 verbose #18650 > > class end"
00:18:19 verbose #18651 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:18:19 verbose #18652 > > Fable.Core.Emit(\"std::sync::Mutex<$0>\")>]]\n#endif\ntype std_sync_Mutex<'T> =
00:18:19 verbose #18653 > > class end"
00:18:19 verbose #18654 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:18:19 verbose #18655 > > Fable.Core.Emit(\"std::sync::MutexGuard<$0>\")>]]\n#endif\ntype
00:18:19 verbose #18656 > > std_sync_MutexGuard<'T> = class end"
00:18:19 verbose #18657 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:18:19 verbose #18658 > > Fable.Core.Emit(\"std::sync::PoisonError<$0>\")>]]\n#endif\ntype
00:18:19 verbose #18659 > > std_sync_PoisonError<'T> = class end"
00:18:19 verbose #18660 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:18:19 verbose #18661 > > Fable.Core.Emit(\"std::sync::mpsc::Receiver<$0>\")>]]\n#endif\ntype
00:18:19 verbose #18662 > > std_sync_mpsc_Receiver<'T> = class end"
00:18:19 verbose #18663 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:18:19 verbose #18664 > > Fable.Core.Emit(\"std::sync::mpsc::SendError<$0>\")>]]\n#endif\ntype
00:18:19 verbose #18665 > > std_sync_mpsc_SendError<'T> = class end"
00:18:19 verbose #18666 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:18:19 verbose #18667 > > Fable.Core.Emit(\"std::sync::mpsc::Sender<$0>\")>]]\n#endif\ntype
00:18:19 verbose #18668 > > std_sync_mpsc_Sender<'T> = class end"
00:18:19 verbose #18669 > >         Python = fun () => ()
00:18:19 verbose #18670 > >     }
00:18:19 verbose #18671 > 00:18:19   debug #1065 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ad311b57bf28cde6c6617d1dc1e1c9e29788b5c2eae57bb565ed9cd4b5a7cb4a/main.spi
00:18:19 verbose #18672 > >
00:18:19 verbose #18673 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:19 verbose #18674 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:19 verbose #18675 > > │ ## rust                                                                      │
00:18:19 verbose #18676 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:19 verbose #18677 > >
00:18:19 verbose #18678 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:19 verbose #18679 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:19 verbose #18680 > > │ ### sleep                                                                    │
00:18:19 verbose #18681 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:19 verbose #18682 > >
00:18:19 verbose #18683 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:19 verbose #18684 > > inl sleep (duration : date_time.duration) : () =
00:18:19 verbose #18685 > >     inl duration = join duration
00:18:19 verbose #18686 > >     !\($'"std::thread::sleep(!duration)"')
00:18:20 verbose #18687 > 00:18:19   debug #1066 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2daa10dff4c978d14342adce013115cfde10c14e8f0bec0703b89c280d0b5567/main.spi
00:18:20 verbose #18688 > >
00:18:20 verbose #18689 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:20 verbose #18690 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:20 verbose #18691 > > │ ### join_handle                                                              │
00:18:20 verbose #18692 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:20 verbose #18693 > >
00:18:20 verbose #18694 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:20 verbose #18695 > > nominal join_handle t = $'std_thread_JoinHandle<`t>'
00:18:20 verbose #18696 > 00:18:19   debug #1067 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f2f7c3acd5b1df7d35aeb15726f9320f458b4d6ca6b3feb963907833b85f62c6/main.spi
00:18:20 verbose #18697 > >
00:18:20 verbose #18698 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:20 verbose #18699 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:20 verbose #18700 > > │ ### spawn                                                                    │
00:18:20 verbose #18701 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:20 verbose #18702 > >
00:18:20 verbose #18703 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:20 verbose #18704 > > inl spawn forall t. depth flag (x : () -> t) : join_handle t =
00:18:20 verbose #18705 > >     if flag = 1u8
00:18:20 verbose #18706 > >     then (!\($'"true; let __result = std::thread::spawn(move || { //"') : bool)
00:18:20 verbose #18707 > > |> ignore
00:18:20 verbose #18708 > >     else (!\($'"true; let __result = std::thread::spawn(|| { //"') : bool) |>
00:18:20 verbose #18709 > > ignore
00:18:20 verbose #18710 > >
00:18:20 verbose #18711 > >     let x' = x ()
00:18:20 verbose #18712 > >     inl x' = join x'
00:18:20 verbose #18713 > >
00:18:20 verbose #18714 > >     x' |> rust.fix_closure depth
00:18:20 verbose #18715 > >
00:18:20 verbose #18716 > >     !\($'"__result"')
00:18:20 verbose #18717 > 00:18:20   debug #1068 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/801936aa0ffc524cc1f5355a636f86d3c32c9bd33788ec4c2c45d52b2bb87c6c/main.spi
00:18:21 verbose #18718 > >
00:18:21 verbose #18719 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:21 verbose #18720 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:21 verbose #18721 > > │ ### join'                                                                    │
00:18:21 verbose #18722 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:21 verbose #18723 > >
00:18:21 verbose #18724 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:21 verbose #18725 > > inl join' forall t.
00:18:21 verbose #18726 > >     (x : join_handle t)
00:18:21 verbose #18727 > >     : resultm.result'
00:18:21 verbose #18728 > >         t
00:18:21 verbose #18729 > >         (
00:18:21 verbose #18730 > >             rust.box (
00:18:21 verbose #18731 > >                 rust.lifetime_join'
00:18:21 verbose #18732 > >                     rust.dyn'
00:18:21 verbose #18733 > >                     (
00:18:21 verbose #18734 > >                         rust.lifetime_join
00:18:21 verbose #18735 > >                             rust.any
00:18:21 verbose #18736 > >                             (
00:18:21 verbose #18737 > >                                 rust.lifetime_join'
00:18:21 verbose #18738 > >                                     rust.send
00:18:21 verbose #18739 > >                                     rust.static_lifetime
00:18:21 verbose #18740 > >                             )
00:18:21 verbose #18741 > >                     )
00:18:21 verbose #18742 > >             )
00:18:21 verbose #18743 > >         ) =
00:18:21 verbose #18744 > >     !\\(x, $'"std::thread::JoinHandle::join($0)"')
00:18:21 verbose #18745 > 00:18:20   debug #1069 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fe973c6182088a7388dc053d20747b72f000aa1b90d18c14946ae35a984c1dea/main.spi
00:18:21 verbose #18746 > >
00:18:21 verbose #18747 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:21 verbose #18748 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:21 verbose #18749 > > │ ### arc                                                                      │
00:18:21 verbose #18750 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:21 verbose #18751 > >
00:18:21 verbose #18752 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:21 verbose #18753 > > nominal arc t = $'std_sync_Arc<`t>'
00:18:21 verbose #18754 > 00:18:20   debug #1070 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/418cc7edad939d840ee0a4127919b08066756a0cad38e7b2c1b2c09e77f7789e/main.spi
00:18:21 verbose #18755 > >
00:18:21 verbose #18756 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:21 verbose #18757 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:21 verbose #18758 > > │ ### new_arc                                                                  │
00:18:21 verbose #18759 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:21 verbose #18760 > >
00:18:21 verbose #18761 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:21 verbose #18762 > > inl new_arc forall t. (x : t) : arc t =
00:18:21 verbose #18763 > >     !\\(x, $'"std::sync::Arc::new($0)"')
00:18:21 verbose #18764 > 00:18:21   debug #1071 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/16b5c375600308e9bb0607243dbde2f5faf77cdbe3f41c000e6794a5438c4df4/main.spi
00:18:22 verbose #18765 > >
00:18:22 verbose #18766 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:22 verbose #18767 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:22 verbose #18768 > > │ ### mutex                                                                    │
00:18:22 verbose #18769 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:22 verbose #18770 > >
00:18:22 verbose #18771 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:22 verbose #18772 > > nominal mutex t = $'std_sync_Mutex<`t>'
00:18:22 verbose #18773 > 00:18:21   debug #1072 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2babe2feecc33f73eff27bf07e65b92c302bc6ea18092b3cc0ce112588502b23/main.spi
00:18:22 verbose #18774 > >
00:18:22 verbose #18775 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:22 verbose #18776 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:22 verbose #18777 > > │ ### new_mutex                                                                │
00:18:22 verbose #18778 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:22 verbose #18779 > >
00:18:22 verbose #18780 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:22 verbose #18781 > > inl new_mutex forall t. (x : t) : mutex t =
00:18:22 verbose #18782 > >     !\\(x, $'"std::sync::Mutex::new($0)"')
00:18:22 verbose #18783 > 00:18:21   debug #1073 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e3cf46c23e47ed0357dacb9e5a1d1d66204648b8038d4dd53ceb9f68e5e38ae0/main.spi
00:18:22 verbose #18784 > >
00:18:22 verbose #18785 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:22 verbose #18786 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:22 verbose #18787 > > │ ### new_arc_mutex                                                            │
00:18:22 verbose #18788 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:22 verbose #18789 > >
00:18:22 verbose #18790 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:22 verbose #18791 > > inl new_arc_mutex forall t. (x : t) : arc (mutex t) =
00:18:22 verbose #18792 > >     x |> new_mutex |> new_arc
00:18:23 verbose #18793 > 00:18:22   debug #1074 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/99ac92320d64da1bffa6a5c99854d435a7f493e86a70cf18d7659a0e056c5402/main.spi
00:18:23 verbose #18794 > >
00:18:23 verbose #18795 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:23 verbose #18796 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:23 verbose #18797 > > │ ### arc_clone                                                                │
00:18:23 verbose #18798 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:23 verbose #18799 > >
00:18:23 verbose #18800 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:23 verbose #18801 > > inl arc_clone forall t. (x : arc t) : arc t =
00:18:23 verbose #18802 > >     inl x = join x
00:18:23 verbose #18803 > >     !\($'"std::sync::Arc::clone(&!x)"')
00:18:23 verbose #18804 > 00:18:22   debug #1075 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/122c8c2c6989758881ec77455e395278912b10398fc9152075598de7d613446d/main.spi
00:18:23 verbose #18805 > >
00:18:23 verbose #18806 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:23 verbose #18807 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:23 verbose #18808 > > │ ### mutex_guard                                                              │
00:18:23 verbose #18809 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:23 verbose #18810 > >
00:18:23 verbose #18811 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:23 verbose #18812 > > nominal mutex_guard t = $'std_sync_MutexGuard<`t>'
00:18:23 verbose #18813 > 00:18:23   debug #1076 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9f41bfaaf68aa7dfe72da063c477c0b7894da20822b9a5f0895986037e2654b0/main.spi
00:18:23 verbose #18814 > >
00:18:23 verbose #18815 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:23 verbose #18816 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:23 verbose #18817 > > │ ### poison_error                                                             │
00:18:23 verbose #18818 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:23 verbose #18819 > >
00:18:23 verbose #18820 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:23 verbose #18821 > > nominal poison_error t = $'std_sync_PoisonError<`t>'
00:18:24 verbose #18822 > 00:18:23   debug #1077 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/356b580c759228ebaeeac88610ad0de18f54810fd3a6847ec22c9a47339e804c/main.spi
00:18:24 verbose #18823 > >
00:18:24 verbose #18824 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:24 verbose #18825 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:24 verbose #18826 > > │ ### arc_mutex_lock                                                           │
00:18:24 verbose #18827 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:24 verbose #18828 > >
00:18:24 verbose #18829 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:24 verbose #18830 > > inl arc_mutex_lock forall t. (x : arc (mutex t)) : resultm.result' (mutex_guard
00:18:24 verbose #18831 > > t) (poison_error (mutex_guard t)) =
00:18:24 verbose #18832 > >     inl x = join x
00:18:24 verbose #18833 > >     !\($'"!x.lock()"')
00:18:24 verbose #18834 > 00:18:23   debug #1078 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2b963b3147728ee7ece93b962dbf62bbea542d0fb0daed3d10068ecdbba2cd28/main.spi
00:18:24 verbose #18835 > >
00:18:24 verbose #18836 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:24 verbose #18837 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:24 verbose #18838 > > │ ### mutex_guard_ref                                                          │
00:18:24 verbose #18839 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:24 verbose #18840 > >
00:18:24 verbose #18841 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:24 verbose #18842 > > inl mutex_guard_ref forall t. (x : mutex_guard t) : rust.ref' t =
00:18:24 verbose #18843 > >     !\\(x, $'"&$0"')
00:18:24 verbose #18844 > 00:18:24   debug #1079 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e1606995b38659f8a6b3e57d418e959e473c5b62b9ce3a3d0db2a4b96ea4125a/main.spi
00:18:25 verbose #18845 > >
00:18:25 verbose #18846 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:25 verbose #18847 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:25 verbose #18848 > > │ ### mutex_guard_ref_mut                                                      │
00:18:25 verbose #18849 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:25 verbose #18850 > >
00:18:25 verbose #18851 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:25 verbose #18852 > > inl mutex_guard_ref_mut forall t. (x : mutex_guard t) : rust.ref' (rust.mut' t)
00:18:25 verbose #18853 > > =
00:18:25 verbose #18854 > >     (!\($'"true; let mut !x = !x"') : bool) |> ignore
00:18:25 verbose #18855 > >     !\\(x, $'"&mut $0"')
00:18:25 verbose #18856 > 00:18:24   debug #1080 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2bc929337a705610bb3f006b088ef6ed08f8ddc6b0b3467fd37340682a4caece/main.spi
00:18:25 verbose #18857 > >
00:18:25 verbose #18858 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:25 verbose #18859 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:25 verbose #18860 > > │ ### mutex_guard_as_mut                                                       │
00:18:25 verbose #18861 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:25 verbose #18862 > >
00:18:25 verbose #18863 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:25 verbose #18864 > > inl mutex_guard_as_mut forall (t : * -> *) u. (x : mutex_guard (t u)) : t
00:18:25 verbose #18865 > > (rust.ref' (rust.mut' u)) =
00:18:25 verbose #18866 > >     (!\($'"true; let mut !x = !x"') : bool) |> ignore
00:18:25 verbose #18867 > >     !\\(x, $'"$0.as_mut()"')
00:18:25 verbose #18868 > 00:18:24   debug #1081 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/30bc759591a6461ce5e71ab1291df2466437c8a2a2b04ec83b8033bb81e53f96/main.spi
00:18:25 verbose #18869 > >
00:18:25 verbose #18870 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:25 verbose #18871 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:25 verbose #18872 > > │ ### channel_receiver                                                         │
00:18:25 verbose #18873 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:25 verbose #18874 > >
00:18:25 verbose #18875 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:25 verbose #18876 > > nominal channel_receiver t = $'std_sync_mpsc_Receiver<`t>'
00:18:25 verbose #18877 > 00:18:25   debug #1082 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/73edc06121130dd432727dac3cd56f33dacc2a2cbe7c4d6046ee9c1019750263/main.spi
00:18:26 verbose #18878 > >
00:18:26 verbose #18879 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:26 verbose #18880 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:26 verbose #18881 > > │ ### channel_sender                                                           │
00:18:26 verbose #18882 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:26 verbose #18883 > >
00:18:26 verbose #18884 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:26 verbose #18885 > > nominal channel_sender t = $'std_sync_mpsc_Sender<`t>'
00:18:26 verbose #18886 > 00:18:25   debug #1083 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8d96e0bc80ba73bbbe021afc56ed4cd95bd09c1232cf9314c565191943f8238c/main.spi
00:18:26 verbose #18887 > >
00:18:26 verbose #18888 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:26 verbose #18889 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:26 verbose #18890 > > │ ### new_channel                                                              │
00:18:26 verbose #18891 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:26 verbose #18892 > >
00:18:26 verbose #18893 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:26 verbose #18894 > > inl new_channel () : channel_sender sm'.std_string * arc (channel_receiver
00:18:26 verbose #18895 > > sm'.std_string) =
00:18:26 verbose #18896 > >     !\($'"{ let (sender, receiver) = std::sync::mpsc::channel(); (sender,
00:18:26 verbose #18897 > > std::sync::Arc::new(receiver)) }"')
00:18:26 verbose #18898 > 00:18:26   debug #1084 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6394cf35dbbb1fbbed31a5c783a151c11561e1cee94ea69c03d411ba25ba0c11/main.spi
00:18:26 verbose #18899 > >
00:18:26 verbose #18900 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:26 verbose #18901 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:26 verbose #18902 > > │ ### send_error                                                               │
00:18:26 verbose #18903 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:26 verbose #18904 > >
00:18:26 verbose #18905 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:26 verbose #18906 > > nominal send_error t = $'std_sync_mpsc_SendError<`t>'
00:18:27 verbose #18907 > 00:18:26   debug #1085 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f676efb0ae2acec088022b87601c4b2f97f210fa3a362126fce6aa4488318e73/main.spi
00:18:27 verbose #18908 > >
00:18:27 verbose #18909 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:27 verbose #18910 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:27 verbose #18911 > > │ ### channel_send                                                             │
00:18:27 verbose #18912 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:27 verbose #18913 > >
00:18:27 verbose #18914 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:27 verbose #18915 > > inl channel_send forall t. (line : t) (sender : rust.ref' (channel_sender t)) :
00:18:27 verbose #18916 > > resultm.result' () (send_error sm'.std_string) =
00:18:27 verbose #18917 > >     !\\((sender, line), $'"$0.send($1)"')
00:18:27 verbose #18918 > 00:18:26   debug #1086 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3695538f07e74df6ce75cea27b9fbc980760b8dad68fe0a32e50caeaf3308210/main.spi
00:18:27 verbose #18919 > >
00:18:27 verbose #18920 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:27 verbose #18921 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:27 verbose #18922 > > │ ## fsharp                                                                    │
00:18:27 verbose #18923 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:27 verbose #18924 > >
00:18:27 verbose #18925 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:27 verbose #18926 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:27 verbose #18927 > > │ ### sleep'                                                                   │
00:18:27 verbose #18928 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:27 verbose #18929 > >
00:18:27 verbose #18930 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:27 verbose #18931 > > inl sleep' (n : i32) : () =
00:18:27 verbose #18932 > >     run_target function
00:18:27 verbose #18933 > >         | Fsharp (Native) => fun () => $'System.Threading.Thread.Sleep' n
00:18:27 verbose #18934 > >         | _ => fun () => ()
00:18:27 verbose #18935 > 00:18:27   debug #1087 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/173a872fb5c462b1d93b0d813cd5b6ffbaf3ecc836c121ce8cf5abc6730a5737/main.spi
00:18:28 verbose #18936 > >
00:18:28 verbose #18937 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:28 verbose #18938 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:28 verbose #18939 > > │ ### thread                                                                   │
00:18:28 verbose #18940 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:28 verbose #18941 > >
00:18:28 verbose #18942 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:28 verbose #18943 > > nominal thread = $'System.Threading.Thread'
00:18:28 verbose #18944 > 00:18:27   debug #1088 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bbc20e91e04d368910091b344aad3991f34834062c6a2e3dd8d8e0e8041cc14c/main.spi
00:18:28 verbose #18945 > >
00:18:28 verbose #18946 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:28 verbose #18947 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:28 verbose #18948 > > │ ### cancellation_token                                                       │
00:18:28 verbose #18949 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:28 verbose #18950 > >
00:18:28 verbose #18951 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:28 verbose #18952 > > nominal cancellation_token = $'System.Threading.CancellationToken'
00:18:28 verbose #18953 > 00:18:27   debug #1089 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7e0f5989359e53e0cd510648ea4d70e8ae4eea0ffe45a73b61161e2386f6f452/main.spi
00:18:28 verbose #18954 > >
00:18:28 verbose #18955 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:28 verbose #18956 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:28 verbose #18957 > > │ ### cancellation_token_source                                                │
00:18:28 verbose #18958 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:28 verbose #18959 > >
00:18:28 verbose #18960 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:28 verbose #18961 > > nominal cancellation_token_source = $'System.Threading.CancellationTokenSource'
00:18:29 verbose #18962 > 00:18:28   debug #1090 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/983ebb3dd43a9f91fd7b1ce6b4257964415f0471c4199592f6755dbecaa505d3/main.spi
00:18:29 verbose #18963 > >
00:18:29 verbose #18964 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:29 verbose #18965 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:29 verbose #18966 > > │ ### cancellation_token_registration                                          │
00:18:29 verbose #18967 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:29 verbose #18968 > >
00:18:29 verbose #18969 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:29 verbose #18970 > > nominal cancellation_token_registration =
00:18:29 verbose #18971 > > $'System.Threading.CancellationTokenRegistration'
00:18:29 verbose #18972 > 00:18:28   debug #1091 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/98466e0b54234229ecd06f21a868750c3fef74bc5a2072195eae65f81f366207/main.spi
00:18:29 verbose #18973 > >
00:18:29 verbose #18974 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:29 verbose #18975 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:29 verbose #18976 > > │ ### cancellation_source_token                                                │
00:18:29 verbose #18977 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:29 verbose #18978 > >
00:18:29 verbose #18979 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:29 verbose #18980 > > inl cancellation_source_token (x : cancellation_token_source) :
00:18:29 verbose #18981 > > cancellation_token =
00:18:29 verbose #18982 > >     $'!x.Token'
00:18:29 verbose #18983 > 00:18:29   debug #1092 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3d58fe827df2d04784cb843be292d461adf28b33c4e7966c0b3f66ff5d3ec1f3/main.spi
00:18:29 verbose #18984 > >
00:18:29 verbose #18985 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:29 verbose #18986 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:29 verbose #18987 > > │ ### cancellation_source_cancel                                               │
00:18:29 verbose #18988 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:29 verbose #18989 > >
00:18:29 verbose #18990 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:29 verbose #18991 > > inl cancellation_source_cancel (x : cancellation_token_source) : () =
00:18:29 verbose #18992 > >     run_target function
00:18:29 verbose #18993 > >         | Fsharp (Native) => fun () =>
00:18:29 verbose #18994 > >             $'!x.Cancel' ()
00:18:29 verbose #18995 > >         | _ => fun () => null ()
00:18:30 verbose #18996 > 00:18:29   debug #1093 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b1e0189a129da70778ad1e4ba8cb6f73b03c1fc61d625c008c86a6c8a1db10e9/main.spi
00:18:30 verbose #18997 > >
00:18:30 verbose #18998 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:30 verbose #18999 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:30 verbose #19000 > > │ ### create_linked_token_source                                               │
00:18:30 verbose #19001 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:30 verbose #19002 > >
00:18:30 verbose #19003 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:30 verbose #19004 > > inl create_linked_token_source (x : array_base cancellation_token) :
00:18:30 verbose #19005 > > cancellation_token_source =
00:18:30 verbose #19006 > >     x |> $'System.Threading.CancellationTokenSource.CreateLinkedTokenSource'
00:18:30 verbose #19007 > 00:18:29   debug #1094 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/357747e035718db38585f3d1e975236bc688353eb4485128095a1a7e3ef3097a/main.spi
00:18:30 verbose #19008 > >
00:18:30 verbose #19009 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:30 verbose #19010 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:30 verbose #19011 > > │ ### concurrent_stack                                                         │
00:18:30 verbose #19012 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:30 verbose #19013 > >
00:18:30 verbose #19014 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:30 verbose #19015 > > nominal concurrent_stack t =
00:18:30 verbose #19016 > > $'System.Collections.Concurrent.ConcurrentStack<`t>'
00:18:30 verbose #19017 > 00:18:30   debug #1095 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b3f7d9c19b74b9728f467900661ff437a7805d95a2672f31c9c1cef99289de52/main.spi
00:18:30 verbose #19018 > >
00:18:30 verbose #19019 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:30 verbose #19020 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:30 verbose #19021 > > │ ### concurrent_stack_push                                                    │
00:18:30 verbose #19022 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:30 verbose #19023 > >
00:18:30 verbose #19024 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:30 verbose #19025 > > inl concurrent_stack_push forall t. (item : t) (stack : concurrent_stack t) : ()
00:18:30 verbose #19026 > > =
00:18:30 verbose #19027 > >     $'!stack.Push' item
00:18:31 verbose #19028 > 00:18:30   debug #1096 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/871ad3c48b2c75d05e4018a2e05431db7f6675c44efb2507407965f3bc14e769/main.spi
00:18:31 verbose #19029 > >
00:18:31 verbose #19030 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:31 verbose #19031 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:31 verbose #19032 > > │ ### token_none                                                               │
00:18:31 verbose #19033 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:31 verbose #19034 > >
00:18:31 verbose #19035 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:31 verbose #19036 > > inl token_none () : cancellation_token =
00:18:31 verbose #19037 > >     $'`cancellation_token.None'
00:18:31 verbose #19038 > 00:18:30   debug #1097 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ed09e22918b55cbd650066c78e73930542d8744b7da30b861088c8d1c0e447f7/main.spi
00:18:31 verbose #19039 > >
00:18:31 verbose #19040 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:31 verbose #19041 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:31 verbose #19042 > > │ ### new_concurrent_stack                                                     │
00:18:31 verbose #19043 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:31 verbose #19044 > >
00:18:31 verbose #19045 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:31 verbose #19046 > > inl new_concurrent_stack forall t. () : concurrent_stack t =
00:18:31 verbose #19047 > >     $'System.Collections.Concurrent.ConcurrentStack<`t>' ()
00:18:31 verbose #19048 > 00:18:31   debug #1098 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/88bb85d090a6019ff1cb89c3e076fe8e0d2c955152b2a23c88eed27bf71f0b66/main.spi
00:18:32 verbose #19049 > >
00:18:32 verbose #19050 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:32 verbose #19051 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:32 verbose #19052 > > │ ### token_register                                                           │
00:18:32 verbose #19053 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:32 verbose #19054 > >
00:18:32 verbose #19055 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:32 verbose #19056 > > inl token_register (fn : () -> ()) (ct : cancellation_token) :
00:18:32 verbose #19057 > > cancellation_token_registration =
00:18:32 verbose #19058 > >     fn |> $'!ct.Register'
00:18:32 verbose #19059 > 00:18:31   debug #1099 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/27508b3ef7f908de176f7039a63fdc5ee74e80b5b64b30c3591144dfb4f2f6bc/main.spi
00:18:32 verbose #19060 > >
00:18:32 verbose #19061 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:32 verbose #19062 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:32 verbose #19063 > > │ ### new_cancellation_token_source                                            │
00:18:32 verbose #19064 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:32 verbose #19065 > >
00:18:32 verbose #19066 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:32 verbose #19067 > > inl new_cancellation_token_source () : cancellation_token_source =
00:18:32 verbose #19068 > >     $'new `cancellation_token_source ()'
00:18:32 verbose #19069 > 00:18:31   debug #1100 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cf26e542b8a9e6fa4c2dfcdaff7d6cee19df90147daf8538602117ffbac4c49c/main.spi
00:18:32 verbose #19070 > >
00:18:32 verbose #19071 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:32 verbose #19072 > > inl token_cancellation_requested (ct : cancellation_token) : bool =
00:18:32 verbose #19073 > >     $'!ct.IsCancellationRequested'
00:18:32 verbose #19074 > 00:18:32   debug #1101 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/59d6bd6e73250ee213f76d69031e6182bcc9372b68b21ac77bd83acb9c813432/main.spi
00:18:33 verbose #19075 > >
00:18:33 verbose #19076 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:33 verbose #19077 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:33 verbose #19078 > > │ ### new_disposable_token                                                     │
00:18:33 verbose #19079 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:33 verbose #19080 > >
00:18:33 verbose #19081 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:33 verbose #19082 > > inl new_disposable_token (merge_token : optionm'.option' cancellation_token) =
00:18:33 verbose #19083 > >     run_target function
00:18:33 verbose #19084 > >         | Fsharp (Native) => fun () =>
00:18:33 verbose #19085 > >             inl cts = new_cancellation_token_source ()
00:18:33 verbose #19086 > >             inl cts =
00:18:33 verbose #19087 > >                 match merge_token |> optionm'.unbox with
00:18:33 verbose #19088 > >                 | None => cts
00:18:33 verbose #19089 > >                 | Some merge_token =>
00:18:33 verbose #19090 > >                     create_linked_token_source ;[[ cts |>
00:18:33 verbose #19091 > > cancellation_source_token; merge_token ]]
00:18:33 verbose #19092 > >             inl disposable : _ () = new_disposable fun () =>
00:18:33 verbose #19093 > >                 cts |> cancellation_source_cancel
00:18:33 verbose #19094 > >             cts |> cancellation_source_token, disposable
00:18:33 verbose #19095 > >         | _ => fun () => null ()
00:18:33 verbose #19096 > 00:18:32   debug #1102 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7eaa26f2e17362b831919f538629f9ed59dbd96c963281b74d39da3b89ceaf8d/main.spi
00:18:33 verbose #19097 > >
00:18:33 verbose #19098 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:33 verbose #19099 > > //// test
00:18:33 verbose #19100 > >
00:18:33 verbose #19101 > > inl run fn =
00:18:33 verbose #19102 > >     inl token, disposable = new_disposable_token (None |> optionm'.box)
00:18:33 verbose #19103 > >     disposable |> use |> ignore
00:18:33 verbose #19104 > >     fn token
00:18:33 verbose #19105 > >     fun () =>
00:18:33 verbose #19106 > >         fn token
00:18:33 verbose #19107 > >     |> async.new_async
00:18:33 verbose #19108 > >     |> async.start
00:18:33 verbose #19109 > >
00:18:33 verbose #19110 > > fun () =>
00:18:33 verbose #19111 > >     inl counter = mut 0i32
00:18:33 verbose #19112 > >
00:18:33 verbose #19113 > >     inl fn (token : cancellation_token) =
00:18:33 verbose #19114 > >         counter <- *counter + (if token |> token_cancellation_requested then 10
00:18:33 verbose #19115 > > else 1)
00:18:33 verbose #19116 > >
00:18:33 verbose #19117 > >     join run fn
00:18:33 verbose #19118 > >     async.sleep 10 |> async.do
00:18:33 verbose #19119 > >     return *counter
00:18:33 verbose #19120 > > |> async.new_async_unit
00:18:33 verbose #19121 > > |> async.run_synchronously
00:18:33 verbose #19122 > > |> _assert_eq 11i32
00:18:33 verbose #19123 > 00:18:33   debug #1103 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9807d79deefcffe8a518a509950ffe7dafa01cacebbe9031a537b06105fa8925/main.spi
00:18:35 verbose #19124 > >
00:18:35 verbose #19125 > > ╭─[ 1.93s - stdout ]───────────────────────────────────────────────────────────╮
00:18:35 verbose #19126 > > │ assert_eq / actual: 11 / expected: 11                                        │
00:18:35 verbose #19127 > > │                                                                              │
00:18:35 verbose #19128 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:35 verbose #19129 > >
00:18:35 verbose #19130 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:35 verbose #19131 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:35 verbose #19132 > > │ ## main                                                                      │
00:18:35 verbose #19133 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:35 verbose #19134 > >
00:18:35 verbose #19135 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:35 verbose #19136 > > inl main () =
00:18:35 verbose #19137 > >     types ()
00:18:35 verbose #19138 > >     $'let new_disposable_token x = !new_disposable_token x' : ()
00:18:35 verbose #19139 > 00:18:34   debug #1104 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ba1d5a0abe481031d2f3c60dbd690db2ab32a4dd34400642f7107f912d733eba/main.spi
00:18:35 verbose #19140 > 00:00:24 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 24238 }
00:18:35 verbose #19141 > 00:00:24   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/threading.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/threading.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:18:37 verbose #19142 > 00:00:26 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/threading.dib.ipynb to html
00:18:37 verbose #19143 > 00:00:26 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:18:37 verbose #19144 > 00:00:26 verbose #7 !   validate(nb)
00:18:39 verbose #19145 > 00:00:27 verbose #8 ! [NbConvertApp] Writing 343852 bytes to c:\home\git\polyglot\lib\spiral\threading.dib.html
00:18:39 verbose #19146 > 00:00:28 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 649 }
00:18:39 verbose #19147 > 00:00:28   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 649 }
00:18:39 verbose #19148 > 00:00:28   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/threading.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/threading.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:18:40 verbose #19149 > 00:00:29 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:18:40 verbose #19150 > 00:00:29   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:18:41 verbose #19151 > 00:00:29   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 24946 }
00:18:41   debug #19152 runtime.execute_with_options_async / { exit_code = 0; output_length = 28546 }
00:18:41   debug #27 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path threading.dib --retries 3
00:18:41   debug #19153 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path benchmark.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:18:41 verbose #19154 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "benchmark.dib", "--retries", "3"])) }
00:18:41 verbose #19155 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/benchmark.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/benchmark.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/benchmark.dib" --output-path "c:/home/git/polyglot/lib/spiral/benchmark.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:18:43 verbose #19156 > >
00:18:43 verbose #19157 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:43 verbose #19158 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:43 verbose #19159 > > │ ## benchmark                                                                 │
00:18:43 verbose #19160 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:47 verbose #19161 > >
00:18:47 verbose #19162 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:47 verbose #19163 > > //// test
00:18:47 verbose #19164 > >
00:18:47 verbose #19165 > > open testing
00:18:48 verbose #19166 > 00:18:47   debug #1105 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7845de436c12d0ca65282fe0cd65832468ca943e72feba50e6b1bb441e251a/main.spi
00:18:48 verbose #19167 > >
00:18:48 verbose #19168 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:48 verbose #19169 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:48 verbose #19170 > > │ ## fsharp                                                                    │
00:18:48 verbose #19171 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:48 verbose #19172 > >
00:18:48 verbose #19173 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:48 verbose #19174 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:48 verbose #19175 > > │ ### test_case_result                                                         │
00:18:48 verbose #19176 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:48 verbose #19177 > >
00:18:48 verbose #19178 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:48 verbose #19179 > > type test_case_result =
00:18:48 verbose #19180 > >     {
00:18:48 verbose #19181 > >         input : string
00:18:48 verbose #19182 > >         expected : string
00:18:48 verbose #19183 > >         result : string
00:18:48 verbose #19184 > >         time_list : array_base i64
00:18:48 verbose #19185 > >     }
00:18:49 verbose #19186 > 00:18:48   debug #1106 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/15d929cf08c028299e48d797581c0a711100163c268b9ffb95fc65527ed60c03/main.spi
00:18:49 verbose #19187 > >
00:18:49 verbose #19188 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:49 verbose #19189 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:49 verbose #19190 > > │ ### invoke                                                                   │
00:18:49 verbose #19191 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:49 verbose #19192 > >
00:18:49 verbose #19193 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:49 verbose #19194 > > inl invoke forall t. count (fn : () -> t) =
00:18:49 verbose #19195 > >     runtime.gc_collect ()
00:18:49 verbose #19196 > >     inl stopwatch = date_time.stopwatch ()
00:18:49 verbose #19197 > >     stopwatch |> date_time.stopwatch_start
00:18:49 verbose #19198 > >     inl time1 = stopwatch |> date_time.stopwatch_elapsed_milliseconds
00:18:49 verbose #19199 > >     inl result : t =
00:18:49 verbose #19200 > >         am'.init_series 0 count 1i32
00:18:49 verbose #19201 > >         |> fun x => a x : _ int _
00:18:49 verbose #19202 > >         |> am'.parallel_map fun _n => fn ()
00:18:49 verbose #19203 > >         |> am'.last
00:18:49 verbose #19204 > >     inl time2 = (stopwatch |> date_time.stopwatch_elapsed_milliseconds) - time1
00:18:49 verbose #19205 > >     result, time2
00:18:49 verbose #19206 > 00:18:48   debug #1107 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/712c2d68277aab0d37869991c25bac3a3ef50db8d1a1a6771f389950716dadd5/main.spi
00:18:49 verbose #19207 > >
00:18:49 verbose #19208 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:49 verbose #19209 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:49 verbose #19210 > > │ ### run                                                                      │
00:18:49 verbose #19211 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:49 verbose #19212 > >
00:18:49 verbose #19213 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:49 verbose #19214 > > inl run forall input expected.
00:18:49 verbose #19215 > >     count
00:18:49 verbose #19216 > >     (solutions : list (string * (input -> expected)))
00:18:49 verbose #19217 > >     ((input, expected) : (input * expected))
00:18:49 verbose #19218 > >     : test_case_result
00:18:49 verbose #19219 > >     =
00:18:49 verbose #19220 > >     inl input_str = input |> sm'.format_debug
00:18:49 verbose #19221 > >
00:18:49 verbose #19222 > >     console.write_line ""
00:18:49 verbose #19223 > >     trace Verbose
00:18:49 verbose #19224 > >         fun () => $'$"benchmark.run"'
00:18:49 verbose #19225 > >         fun () => { input_str = input_str |> sm'.ellipsis_end 40 }
00:18:49 verbose #19226 > >
00:18:49 verbose #19227 > >     inl results_with_time : array_base _ =
00:18:49 verbose #19228 > >         solutions
00:18:49 verbose #19229 > >         |> listm'.indexed
00:18:49 verbose #19230 > >         |> listm'.box
00:18:49 verbose #19231 > >         |> listm'.to_array'
00:18:49 verbose #19232 > >         |> am'.map_base fun ((i : int), (test_name, solution)) =>
00:18:49 verbose #19233 > >             inl result, time =
00:18:49 verbose #19234 > >                 fun () => solution input
00:18:49 verbose #19235 > >                 |> invoke count
00:18:49 verbose #19236 > >             trace Verbose
00:18:49 verbose #19237 > >                 fun () => $'$"benchmark.run / solutions.map"'
00:18:49 verbose #19238 > >                 fun () => { i = i + 1; test_name time }
00:18:49 verbose #19239 > >             result, time
00:18:49 verbose #19240 > >
00:18:49 verbose #19241 > >     match results_with_time |> am'.map_base fst with
00:18:49 verbose #19242 > >     | array when (array |> (fun x => a x : _ int _) |> am'.length) <= 1 => ()
00:18:49 verbose #19243 > >     | array when array |> (fun x => a x : _ int _) |> am.forall' ((=) (array |>
00:18:49 verbose #19244 > > (fun x => a x : _ int _) |> am'.index 0)) => ()
00:18:49 verbose #19245 > >     | results => failwith ($'$"benchmark.run / error / results: {!results}"' :
00:18:49 verbose #19246 > > string)
00:18:49 verbose #19247 > >
00:18:49 verbose #19248 > >     {
00:18:49 verbose #19249 > >         input = input_str
00:18:49 verbose #19250 > >         expected = expected |> sm'.format_debug
00:18:49 verbose #19251 > >         result = results_with_time |> am'.map_base fst |> (fun x => a x : _ int
00:18:49 verbose #19252 > > _) |> am'.index 0 |> sm'.format_debug
00:18:49 verbose #19253 > >         time_list = results_with_time |> am'.map_base snd
00:18:49 verbose #19254 > >     }
00:18:49 verbose #19255 > 00:18:49   debug #1108 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a58d85ac241e292350c694f056d3396d8090089e951cd8567adff0553d396e3b/main.spi
00:18:49 verbose #19256 > >
00:18:49 verbose #19257 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:49 verbose #19258 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:49 verbose #19259 > > │ ### run_all                                                                  │
00:18:49 verbose #19260 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:49 verbose #19261 > >
00:18:49 verbose #19262 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:49 verbose #19263 > > inl run_all forall input expected.
00:18:49 verbose #19264 > >     test_name
00:18:49 verbose #19265 > >     count
00:18:49 verbose #19266 > >     (solutions : list (string * (input -> expected)))
00:18:49 verbose #19267 > >     test_cases
00:18:49 verbose #19268 > >     =
00:18:49 verbose #19269 > >     console.write_line ""
00:18:49 verbose #19270 > >     console.write_line "```"
00:18:49 verbose #19271 > >     trace Verbose
00:18:49 verbose #19272 > >         fun () => $'$"benchmark.run_all"'
00:18:49 verbose #19273 > >         fun () => { test_name count }
00:18:49 verbose #19274 > >     test_cases
00:18:49 verbose #19275 > >     |> listm'.box
00:18:49 verbose #19276 > >     |> listm'.to_array'
00:18:49 verbose #19277 > >     |> am'.map_base (run count solutions)
00:18:50 verbose #19278 > 00:18:49   debug #1109 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/76308705ec2a82227c9e0f4f3cf3114c2531985fad51c8cc4058f4f3f3fe823a/main.spi
00:18:50 verbose #19279 > >
00:18:50 verbose #19280 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:50 verbose #19281 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:50 verbose #19282 > > │ ### sort_result_list                                                         │
00:18:50 verbose #19283 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:50 verbose #19284 > >
00:18:50 verbose #19285 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:50 verbose #19286 > > inl sort_result_list results =
00:18:50 verbose #19287 > >     inl table =
00:18:50 verbose #19288 > >         inl rows =
00:18:50 verbose #19289 > >             results
00:18:50 verbose #19290 > >             |> am'.map_base fun (result : test_case_result) =>
00:18:50 verbose #19291 > >                 inl best =
00:18:50 verbose #19292 > >                     result.time_list
00:18:50 verbose #19293 > >                     |> am'.indexed
00:18:50 verbose #19294 > >                     |> am'.map_base fun (i, time) =>
00:18:50 verbose #19295 > >                         i + 1i32, time
00:18:50 verbose #19296 > >                     |> fun x => a x : _ int _
00:18:50 verbose #19297 > >                     |> am'.sort_by snd
00:18:50 verbose #19298 > >                     |> am'.index 0i32
00:18:50 verbose #19299 > >                     |> sm'.format
00:18:50 verbose #19300 > >                 inl row =
00:18:50 verbose #19301 > >                     [[
00:18:50 verbose #19302 > >                         result.input |> sm'.ellipsis_end 40 |> sm'.replace "|"
00:18:50 verbose #19303 > > ""
00:18:50 verbose #19304 > >                         result.expected
00:18:50 verbose #19305 > >                         result.result
00:18:50 verbose #19306 > >                         best
00:18:50 verbose #19307 > >                     ]]
00:18:50 verbose #19308 > >                 inl color : option console.console_color =
00:18:50 verbose #19309 > >                     open console
00:18:50 verbose #19310 > >                     match result.expected = result.result with
00:18:50 verbose #19311 > >                     | true => Some $'`console_color.DarkGreen'
00:18:50 verbose #19312 > >                     | false => Some $'`console_color.DarkRed'
00:18:50 verbose #19313 > >                 row, color
00:18:50 verbose #19314 > >
00:18:50 verbose #19315 > >         inl header =
00:18:50 verbose #19316 > >             [[
00:18:50 verbose #19317 > >                 [[
00:18:50 verbose #19318 > >                     "input"
00:18:50 verbose #19319 > >                     "expected"
00:18:50 verbose #19320 > >                     "result"
00:18:50 verbose #19321 > >                     "best"
00:18:50 verbose #19322 > >                 ]]
00:18:50 verbose #19323 > >                 [[
00:18:50 verbose #19324 > >                     "---"
00:18:50 verbose #19325 > >                     "---"
00:18:50 verbose #19326 > >                     "---"
00:18:50 verbose #19327 > >                     "---"
00:18:50 verbose #19328 > >                 ]]
00:18:50 verbose #19329 > >             ]]
00:18:50 verbose #19330 > >             |> listm.map fun row => row, None
00:18:50 verbose #19331 > >             |> listm'.box
00:18:50 verbose #19332 > >             |> listm'.to_array'
00:18:50 verbose #19333 > >             |> fun x => a x : _ int _
00:18:50 verbose #19334 > >         a rows
00:18:50 verbose #19335 > >         |> am.append header
00:18:50 verbose #19336 > >         |> fun (a x) => x
00:18:50 verbose #19337 > >
00:18:50 verbose #19338 > >     inl formatted_table =
00:18:50 verbose #19339 > >         inl length_map : mapm.map i32 i64 =
00:18:50 verbose #19340 > >             table
00:18:50 verbose #19341 > >             |> am'.map_base (fst >> listm'.box >> listm'.to_array')
00:18:50 verbose #19342 > >             |> am'.transpose
00:18:50 verbose #19343 > >             |> am'.map_base fun column =>
00:18:50 verbose #19344 > >                 column
00:18:50 verbose #19345 > >                 |> am'.map_base sm.length
00:18:50 verbose #19346 > >                 |> fun x => a x : _ int _
00:18:50 verbose #19347 > >                 |> am'.sort_descending
00:18:50 verbose #19348 > >                 |> am'.try_item 0i32
00:18:50 verbose #19349 > >                 |> optionm'.default_value 0i64
00:18:50 verbose #19350 > >             |> am'.indexed
00:18:50 verbose #19351 > >             |> fun x => a x : _ int _
00:18:50 verbose #19352 > >             |> mapm.of_array
00:18:50 verbose #19353 > >         table
00:18:50 verbose #19354 > >         |> am'.map_base fun (row, color) =>
00:18:50 verbose #19355 > >             inl new_row =
00:18:50 verbose #19356 > >                 row
00:18:50 verbose #19357 > >                 |> listm'.indexed
00:18:50 verbose #19358 > >                 |> listm.map fun (i, cell) =>
00:18:50 verbose #19359 > >                     cell |> sm'.pad_right (length_map |> mapm.item i |> conv) '
00:18:50 verbose #19360 > > '
00:18:50 verbose #19361 > >                 |> listm'.box
00:18:50 verbose #19362 > >                 |> listm'.to_array'
00:18:50 verbose #19363 > >             new_row, color
00:18:50 verbose #19364 > >
00:18:50 verbose #19365 > >     console.write_line "```"
00:18:50 verbose #19366 > >     formatted_table
00:18:50 verbose #19367 > >     |> fun x => a x : _ int _
00:18:50 verbose #19368 > >     |> am'.to_list'
00:18:50 verbose #19369 > >     |> listm'.unbox
00:18:50 verbose #19370 > >     |> listm.iter fun (row, color) =>
00:18:50 verbose #19371 > >         match color with
00:18:50 verbose #19372 > >         | Some color => color |> console.set_foreground_color
00:18:50 verbose #19373 > >         | None => console.reset_color ()
00:18:50 verbose #19374 > >
00:18:50 verbose #19375 > >         a row |> sm'.join' "\t| " |> console.write_line
00:18:50 verbose #19376 > >
00:18:50 verbose #19377 > >         console.reset_color ()
00:18:50 verbose #19378 > >
00:18:50 verbose #19379 > >     inl averages =
00:18:50 verbose #19380 > >         results
00:18:50 verbose #19381 > >         |> am'.map_base fun result =>
00:18:50 verbose #19382 > >             result.time_list
00:18:50 verbose #19383 > >             |> am'.map_base ($'float' : i64 -> f64)
00:18:50 verbose #19384 > >         |> am'.transpose
00:18:50 verbose #19385 > >         |> am'.map_base ((fun x => a x : _ int _) >> am'.average)
00:18:50 verbose #19386 > >         |> am'.map_base ($'int64' : f64 -> i64)
00:18:50 verbose #19387 > >         |> am'.indexed
00:18:50 verbose #19388 > >         |> fun x => a x : _ u64 _
00:18:50 verbose #19389 > >
00:18:50 verbose #19390 > >     console.write_line "```"
00:18:50 verbose #19391 > >     averages
00:18:50 verbose #19392 > >     |> am'.sort_by snd
00:18:50 verbose #19393 > >     |> am'.to_list'
00:18:50 verbose #19394 > >     |> listm'.unbox
00:18:50 verbose #19395 > >     |> listm.iter fun ((i : i32), avg) =>
00:18:50 verbose #19396 > >         trace Verbose
00:18:50 verbose #19397 > >             fun () => $'$"benchmark.sort_result_list / averages.iter"'
00:18:50 verbose #19398 > >             fun () => { i = i + 1; avg }
00:18:50 verbose #19399 > >     console.write_line "```"
00:18:50 verbose #19400 > 00:18:49   debug #1110 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/913d029af6f4d88ef331628f0142cceef774ceceaae5c0bd31a7192ed49afca3/main.spi
00:18:50 verbose #19401 > >
00:18:50 verbose #19402 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:50 verbose #19403 > > //// test
00:18:50 verbose #19404 > >
00:18:50 verbose #19405 > > inl is_fast () =
00:18:50 verbose #19406 > >     false
00:18:50 verbose #19407 > 00:18:50   debug #1111 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cbdbb70747f799eb260ebfa6040ad17c949ee4084ba824aa65ab2d9a77d2c726/main.spi
00:18:51 verbose #19408 > >
00:18:51 verbose #19409 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:51 verbose #19410 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:51 verbose #19411 > > │ ### empty2Tests                                                              │
00:18:51 verbose #19412 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:51 verbose #19413 > >
00:18:51 verbose #19414 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:51 verbose #19415 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:51 verbose #19416 > > │ Test: Empty2                                                                 │
00:18:51 verbose #19417 > > │                                                                              │
00:18:51 verbose #19418 > > │ Solution: (a, a)                                                             │
00:18:51 verbose #19419 > > │ Test case 1. A. Time: 59L                                                    │
00:18:51 verbose #19420 > > │                                                                              │
00:18:51 verbose #19421 > > │ Solution: (a, a)                                                             │
00:18:51 verbose #19422 > > │ Test case 1. A. Time: 53L                                                    │
00:18:51 verbose #19423 > > │                                                                              │
00:18:51 verbose #19424 > > │ Input   | Expected        | Result  | Best                                   │
00:18:51 verbose #19425 > > │ ---     | ---             | ---     | ---                                    │
00:18:51 verbose #19426 > > │ (a, a)  | a               | a       | (1, 59)                                │
00:18:51 verbose #19427 > > │ (a, a)  | a               | a       | (1, 53)                                │
00:18:51 verbose #19428 > > │                                                                              │
00:18:51 verbose #19429 > > │ Averages                                                                     │
00:18:51 verbose #19430 > > │ Test case 1. Average Time: 56L                                               │
00:18:51 verbose #19431 > > │                                                                              │
00:18:51 verbose #19432 > > │ Ranking                                                                      │
00:18:51 verbose #19433 > > │ Test case 1. Average Time: 56L                                               │
00:18:51 verbose #19434 > > │                                                                              │
00:18:51 verbose #19435 > > │ ---                                                                          │
00:18:51 verbose #19436 > > │                                                                              │
00:18:51 verbose #19437 > > │                                                                              │
00:18:51 verbose #19438 > > │ ```                                                                          │
00:18:51 verbose #19439 > > │ 01:12:03 verbose #1 benchmark.run_all / {count = 2000000; test_name =   │
00:18:51 verbose #19440 > > │ empty_2_tests}                                                               │
00:18:51 verbose #19441 > > │ 01:12:03 verbose #2 benchmark.run / {count = 2000000; expected = a;     │
00:18:51 verbose #19442 > > │ input = a, a; input_str = struct ("a", "a")}                                 │
00:18:51 verbose #19443 > > │ 01:12:03 verbose #3 benchmark.run / solutions.map / {count = 2000000;   │
00:18:51 verbose #19444 > > │ expected = a; i = 0; input = a, a; input_str = struct ("a", "a"); test_name  │
00:18:51 verbose #19445 > > │ = A; time = 119}                                                             │
00:18:51 verbose #19446 > > │ 01:12:04 verbose #4 benchmark.run / solutions.map / {count = 2000000;   │
00:18:51 verbose #19447 > > │ expected = a; i = 1; input = a, a; input_str = struct ("a", "a"); test_name  │
00:18:51 verbose #19448 > > │ = B; time = 122}                                                             │
00:18:51 verbose #19449 > > │ 01:12:04 verbose #5 benchmark.run / {count = 2000000; expected = b;     │
00:18:51 verbose #19450 > > │ input = b, b; input_str = struct ("b", "b")}                                 │
00:18:51 verbose #19451 > > │ 01:12:04 verbose #6 benchmark.run / solutions.map / {count = 2000000;   │
00:18:51 verbose #19452 > > │ expected = b; i = 0; input = b, b; input_str = struct ("b", "b"); test_name  │
00:18:51 verbose #19453 > > │ = A; time = 110}                                                             │
00:18:51 verbose #19454 > > │ 01:12:04 verbose #7 benchmark.run / solutions.map / {count = 2000000;   │
00:18:51 verbose #19455 > > │ expected = b; i = 1; input = b, b; input_str = struct ("b", "b"); test_name  │
00:18:51 verbose #19456 > > │ = B; time = 120}                                                             │
00:18:51 verbose #19457 > > │ ```                                                                          │
00:18:51 verbose #19458 > > │ Input            	| Expected	| Result	| Best                                       │
00:18:51 verbose #19459 > > │ ---              	| ---     	| ---   	| ---                                        │
00:18:51 verbose #19460 > > │ struct ("a", "a")	| "a"     	| "a"   	| struct (1L, 119L)                          │
00:18:51 verbose #19461 > > │ struct ("b", "b")	| "b"     	| "b"   	| struct (1L, 110L)                          │
00:18:51 verbose #19462 > > │ ```                                                                          │
00:18:51 verbose #19463 > > │ 01:12:04 verbose #8 benchmark.sort_result_list / averages.iter / {avg = │
00:18:51 verbose #19464 > > │ 114; i = 0}                                                                  │
00:18:51 verbose #19465 > > │ 01:12:04 verbose #9 benchmark.sort_result_list / averages.iter / {avg = │
00:18:51 verbose #19466 > > │ 121; i = 1}                                                                  │
00:18:51 verbose #19467 > > │ ```                                                                          │
00:18:51 verbose #19468 > > │ `                                                                            │
00:18:51 verbose #19469 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:51 verbose #19470 > >
00:18:51 verbose #19471 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:51 verbose #19472 > > //// test
00:18:51 verbose #19473 > >
00:18:51 verbose #19474 > > inl get_solutions () =
00:18:51 verbose #19475 > >     [[
00:18:51 verbose #19476 > >         "A",
00:18:51 verbose #19477 > >         fun (a, _b) =>
00:18:51 verbose #19478 > >             a
00:18:51 verbose #19479 > >
00:18:51 verbose #19480 > >         "B",
00:18:51 verbose #19481 > >         fun (_a, b) =>
00:18:51 verbose #19482 > >             b
00:18:51 verbose #19483 > >     ]]
00:18:51 verbose #19484 > >
00:18:51 verbose #19485 > > inl rec empty_2_tests () =
00:18:51 verbose #19486 > >     inl test_cases = [[
00:18:51 verbose #19487 > >         ("a", "a"), "a"
00:18:51 verbose #19488 > >         ("b", "b"), "b"
00:18:51 verbose #19489 > >     ]]
00:18:51 verbose #19490 > >
00:18:51 verbose #19491 > >     inl solutions = get_solutions ()
00:18:51 verbose #19492 > >
00:18:51 verbose #19493 > >     // inl is_fast () = true
00:18:51 verbose #19494 > >
00:18:51 verbose #19495 > >     inl count =
00:18:51 verbose #19496 > >         if is_fast ()
00:18:51 verbose #19497 > >         then 1000i32
00:18:51 verbose #19498 > >         else 2000000i32
00:18:51 verbose #19499 > >
00:18:51 verbose #19500 > >     run_all (reflection.nameof { empty_2_tests }) count solutions test_cases
00:18:51 verbose #19501 > >     |> sort_result_list
00:18:51 verbose #19502 > >
00:18:51 verbose #19503 > > empty_2_tests ()
00:18:51 verbose #19504 > 00:18:50   debug #1112 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5ad3762f3cc66fd0f2aec076f1d78ec99849752e580ba05ed9bba352313a8d98/main.spi
00:18:55 verbose #19505 > >
00:18:55 verbose #19506 > > ╭─[ 4.82s - stdout ]───────────────────────────────────────────────────────────╮
00:18:55 verbose #19507 > > │                                                                              │
00:18:55 verbose #19508 > > │ ```                                                                          │
00:18:55 verbose #19509 > > │ 00:00:00 verbose #1 benchmark.run_all / { test_name = empty_2_tests;    │
00:18:55 verbose #19510 > > │ count = 2000000 }                                                            │
00:18:55 verbose #19511 > > │                                                                              │
00:18:55 verbose #19512 > > │ 00:00:00 verbose #2 benchmark.run / { input_str = struct ("a", "a") }   │
00:18:55 verbose #19513 > > │ 00:00:00 verbose #3 benchmark.run / solutions.map / { i = 1; test_name  │
00:18:55 verbose #19514 > > │ = A; time = 112 }                                                            │
00:18:55 verbose #19515 > > │ 00:00:00 verbose #4 benchmark.run / solutions.map / { i = 2; test_name  │
00:18:55 verbose #19516 > > │ = B; time = 106 }                                                            │
00:18:55 verbose #19517 > > │                                                                              │
00:18:55 verbose #19518 > > │ 00:00:00 verbose #5 benchmark.run / { input_str = struct ("b", "b") }   │
00:18:55 verbose #19519 > > │ 00:00:00 verbose #6 benchmark.run / solutions.map / { i = 1; test_name  │
00:18:55 verbose #19520 > > │ = A; time = 149 }                                                            │
00:18:55 verbose #19521 > > │ 00:00:01 verbose #7 benchmark.run / solutions.map / { i = 2; test_name  │
00:18:55 verbose #19522 > > │ = B; time = 131 }                                                            │
00:18:55 verbose #19523 > > │ ```                                                                          │
00:18:55 verbose #19524 > > │ input            	| expected	| result	| best                                       │
00:18:55 verbose #19525 > > │ ---              	| ---     	| ---   	| ---                                        │
00:18:55 verbose #19526 > > │ struct ("a", "a")	| "a"     	| "a"   	| 2, 106                                     │
00:18:55 verbose #19527 > > │ struct ("b", "b")	| "b"     	| "b"   	| 2, 131                                     │
00:18:55 verbose #19528 > > │ ```                                                                          │
00:18:55 verbose #19529 > > │ 00:00:01 verbose #8 benchmark.sort_result_list / averages.iter / { i =  │
00:18:55 verbose #19530 > > │ 2; avg = 118 }                                                               │
00:18:55 verbose #19531 > > │ 00:00:01 verbose #9 benchmark.sort_result_list / averages.iter / { i =  │
00:18:55 verbose #19532 > > │ 1; avg = 130 }                                                               │
00:18:55 verbose #19533 > > │ ```                                                                          │
00:18:55 verbose #19534 > > │                                                                              │
00:18:55 verbose #19535 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:55 verbose #19536 > >
00:18:55 verbose #19537 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:55 verbose #19538 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:55 verbose #19539 > > │ ### emptyTests                                                               │
00:18:55 verbose #19540 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:55 verbose #19541 > >
00:18:55 verbose #19542 > > ── markdown ────────────────────────────────────────────────────────────────────
00:18:55 verbose #19543 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:18:55 verbose #19544 > > │ Test: Empty                                                                  │
00:18:55 verbose #19545 > > │                                                                              │
00:18:55 verbose #19546 > > │ Solution: 0                                                                  │
00:18:55 verbose #19547 > > │ Test case 1. A. Time: 61L                                                    │
00:18:55 verbose #19548 > > │                                                                              │
00:18:55 verbose #19549 > > │ Solution: 2                                                                  │
00:18:55 verbose #19550 > > │ Test case 1. A. Time: 62L                                                    │
00:18:55 verbose #19551 > > │                                                                              │
00:18:55 verbose #19552 > > │ Solution: 5                                                                  │
00:18:55 verbose #19553 > > │ Test case 1. A. Time: 70L                                                    │
00:18:55 verbose #19554 > > │                                                                              │
00:18:55 verbose #19555 > > │ Input   | Expected        | Result  | Best                                   │
00:18:55 verbose #19556 > > │ ---     | ---             | ---     | ---                                    │
00:18:55 verbose #19557 > > │ 0       | 0               | 0       | (1, 61)                                │
00:18:55 verbose #19558 > > │ 2       | 2               | 2       | (1, 62)                                │
00:18:55 verbose #19559 > > │ 5       | 5               | 5       | (1, 70)                                │
00:18:55 verbose #19560 > > │                                                                              │
00:18:55 verbose #19561 > > │ Averages                                                                     │
00:18:55 verbose #19562 > > │ Test case 1. Average Time: 64L                                               │
00:18:55 verbose #19563 > > │                                                                              │
00:18:55 verbose #19564 > > │ Ranking                                                                      │
00:18:55 verbose #19565 > > │ Test case 1. Average Time: 64L                                               │
00:18:55 verbose #19566 > > │                                                                              │
00:18:55 verbose #19567 > > │ ---                                                                          │
00:18:55 verbose #19568 > > │                                                                              │
00:18:55 verbose #19569 > > │ ```                                                                          │
00:18:55 verbose #19570 > > │ 01:21:25 verbose #1 benchmark.run_all / {count = 2000000; test_name =   │
00:18:55 verbose #19571 > > │ empty_1_tests}                                                               │
00:18:55 verbose #19572 > > │ 01:21:25 verbose #2 benchmark.run / {count = 2000000; expected =        │
00:18:55 verbose #19573 > > │ +1.000000; input = +0.000000; input_str = 0.0}                               │
00:18:55 verbose #19574 > > │ 01:21:25 verbose #3 benchmark.run / solutions.map / {count = 2000000;   │
00:18:55 verbose #19575 > > │ expected = +1.000000; i = 0; input = +0.000000; input_str = 0.0; test_name = │
00:18:55 verbose #19576 > > │ A; time = 36}                                                                │
00:18:55 verbose #19577 > > │ 01:21:25 verbose #4 benchmark.run / {count = 2000000; expected =        │
00:18:55 verbose #19578 > > │ +3.000000; input = +2.000000; input_str = 2.0}                               │
00:18:55 verbose #19579 > > │ 01:21:25 verbose #5 benchmark.run / solutions.map / {count = 2000000;   │
00:18:55 verbose #19580 > > │ expected = +3.000000; i = 0; input = +2.000000; input_str = 2.0; test_name = │
00:18:55 verbose #19581 > > │ A; time = 20}                                                                │
00:18:55 verbose #19582 > > │ 01:21:25 verbose #6 benchmark.run / {count = 2000000; expected =        │
00:18:55 verbose #19583 > > │ +6.000000; input = +5.000000; input_str = 5.0}                               │
00:18:55 verbose #19584 > > │ 01:21:25 verbose #7 benchmark.run / solutions.map / {count = 2000000;   │
00:18:55 verbose #19585 > > │ expected = +6.000000; i = 0; input = +5.000000; input_str = 5.0; test_name = │
00:18:55 verbose #19586 > > │ A; time = 22}                                                                │
00:18:55 verbose #19587 > > │ ```                                                                          │
00:18:55 verbose #19588 > > │ Input	| Expected	| Result	| Best                                                   │
00:18:55 verbose #19589 > > │ ---  	| ---     	| ---   	| ---                                                    │
00:18:55 verbose #19590 > > │ 0.0  	| 1.0     	| 1.0   	| struct (1L, 36L)                                       │
00:18:55 verbose #19591 > > │ 2.0  	| 3.0     	| 3.0   	| struct (1L, 20L)                                       │
00:18:55 verbose #19592 > > │ 5.0  	| 6.0     	| 6.0   	| struct (1L, 22L)                                       │
00:18:55 verbose #19593 > > │ ```                                                                          │
00:18:55 verbose #19594 > > │ 01:21:25 verbose #8 benchmark.sort_result_list / averages.iter / {avg = │
00:18:55 verbose #19595 > > │ 26; i = 0}                                                                   │
00:18:55 verbose #19596 > > │ ```                                                                          │
00:18:55 verbose #19597 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:55 verbose #19598 > >
00:18:55 verbose #19599 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:18:55 verbose #19600 > > //// test
00:18:55 verbose #19601 > >
00:18:55 verbose #19602 > > inl get_solutions () =
00:18:55 verbose #19603 > >     [[
00:18:55 verbose #19604 > >         "A",
00:18:55 verbose #19605 > >         fun n =>
00:18:55 verbose #19606 > >             n + 1f64
00:18:55 verbose #19607 > >     ]]
00:18:55 verbose #19608 > >
00:18:55 verbose #19609 > > inl rec empty_1_tests () =
00:18:55 verbose #19610 > >     inl test_cases = [[
00:18:55 verbose #19611 > >         0, 1
00:18:55 verbose #19612 > >         2, 3
00:18:55 verbose #19613 > >         5, 6
00:18:55 verbose #19614 > >     ]]
00:18:55 verbose #19615 > >
00:18:55 verbose #19616 > >     inl solutions = get_solutions ()
00:18:55 verbose #19617 > >
00:18:55 verbose #19618 > >     // inl is_fast () = true
00:18:55 verbose #19619 > >
00:18:55 verbose #19620 > >     inl count =
00:18:55 verbose #19621 > >         if is_fast ()
00:18:55 verbose #19622 > >         then 1000i32
00:18:55 verbose #19623 > >         else 2000000i32
00:18:55 verbose #19624 > >
00:18:55 verbose #19625 > >     run_all (reflection.nameof { empty_1_tests }) count solutions test_cases
00:18:55 verbose #19626 > >     |> sort_result_list
00:18:55 verbose #19627 > >
00:18:55 verbose #19628 > > empty_1_tests ()
00:18:56 verbose #19629 > 00:18:55   debug #1113 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/42aba3e2b1b601b222b60b057e8550a2bfe1c46c8fa80af09eeee634db28aaab/main.spi
00:18:58 verbose #19630 > >
00:18:58 verbose #19631 > > ╭─[ 2.83s - stdout ]───────────────────────────────────────────────────────────╮
00:18:58 verbose #19632 > > │                                                                              │
00:18:58 verbose #19633 > > │ ```                                                                          │
00:18:58 verbose #19634 > > │ 00:00:00 verbose #1 benchmark.run_all / { test_name = empty_1_tests;    │
00:18:58 verbose #19635 > > │ count = 2000000 }                                                            │
00:18:58 verbose #19636 > > │                                                                              │
00:18:58 verbose #19637 > > │ 00:00:00 verbose #2 benchmark.run / { input_str = 0.0 }                 │
00:18:58 verbose #19638 > > │ 00:00:00 verbose #3 benchmark.run / solutions.map / { i = 1; test_name  │
00:18:58 verbose #19639 > > │ = A; time = 25 }                                                             │
00:18:58 verbose #19640 > > │                                                                              │
00:18:58 verbose #19641 > > │ 00:00:00 verbose #4 benchmark.run / { input_str = 2.0 }                 │
00:18:58 verbose #19642 > > │ 00:00:00 verbose #5 benchmark.run / solutions.map / { i = 1; test_name  │
00:18:58 verbose #19643 > > │ = A; time = 16 }                                                             │
00:18:58 verbose #19644 > > │                                                                              │
00:18:58 verbose #19645 > > │ 00:00:00 verbose #6 benchmark.run / { input_str = 5.0 }                 │
00:18:58 verbose #19646 > > │ 00:00:00 verbose #7 benchmark.run / solutions.map / { i = 1; test_name  │
00:18:58 verbose #19647 > > │ = A; time = 14 }                                                             │
00:18:58 verbose #19648 > > │ ```                                                                          │
00:18:58 verbose #19649 > > │ input	| expected	| result	| best                                                   │
00:18:58 verbose #19650 > > │ ---  	| ---     	| ---   	| ---                                                    │
00:18:58 verbose #19651 > > │ 0.0  	| 1.0     	| 1.0   	| 1, 25                                                  │
00:18:58 verbose #19652 > > │ 2.0  	| 3.0     	| 3.0   	| 1, 16                                                  │
00:18:58 verbose #19653 > > │ 5.0  	| 6.0     	| 6.0   	| 1, 14                                                  │
00:18:58 verbose #19654 > > │ ```                                                                          │
00:18:58 verbose #19655 > > │ 00:00:00 verbose #8 benchmark.sort_result_list / averages.iter / { i =  │
00:18:58 verbose #19656 > > │ 1; avg = 18 }                                                                │
00:18:58 verbose #19657 > > │ ```                                                                          │
00:18:58 verbose #19658 > > │                                                                              │
00:18:58 verbose #19659 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:18:58 verbose #19660 > 00:00:17 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 24858 }
00:18:58 verbose #19661 > 00:00:17   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/benchmark.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/benchmark.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:19:01 verbose #19662 > 00:00:19 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/benchmark.dib.ipynb to html
00:19:01 verbose #19663 > 00:00:19 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:19:01 verbose #19664 > 00:00:19 verbose #7 !   validate(nb)
00:19:02 verbose #19665 > 00:00:21 verbose #8 ! [NbConvertApp] Writing 317015 bytes to c:\home\git\polyglot\lib\spiral\benchmark.dib.html
00:19:02 verbose #19666 > 00:00:21 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 649 }
00:19:02 verbose #19667 > 00:00:21   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 649 }
00:19:02 verbose #19668 > 00:00:21   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/benchmark.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/benchmark.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:19:03 verbose #19669 > 00:00:22 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:19:03 verbose #19670 > 00:00:22   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:19:04 verbose #19671 > 00:00:23   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 25566 }
00:19:04   debug #19672 runtime.execute_with_options_async / { exit_code = 0; output_length = 29200 }
00:19:04   debug #28 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path benchmark.dib --retries 3
00:19:04   debug #19673 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path physics.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:19:04 verbose #19674 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "physics.dib", "--retries", "3"])) }
00:19:04 verbose #19675 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/physics.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/physics.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/physics.dib" --output-path "c:/home/git/polyglot/lib/spiral/physics.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:19:06 verbose #19676 > >
00:19:06 verbose #19677 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:06 verbose #19678 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:06 verbose #19679 > > │ # physics                                                                    │
00:19:06 verbose #19680 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:28 verbose #19681 > >
00:19:28 verbose #19682 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:28 verbose #19683 > > //// test
00:19:28 verbose #19684 > >
00:19:28 verbose #19685 > > open testing
00:19:28 verbose #19686 > 00:19:27   debug #1114 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7845de436c12d0ca65282fe0cd65832468ca943e72feba50e6b1bb441e251a/main.spi
00:19:28 verbose #19687 > >
00:19:28 verbose #19688 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:28 verbose #19689 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:28 verbose #19690 > > │ ### init_series                                                              │
00:19:28 verbose #19691 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:28 verbose #19692 > >
00:19:28 verbose #19693 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:28 verbose #19694 > > //// test
00:19:28 verbose #19695 > >
00:19:28 verbose #19696 > > inl x = am'.init_series -3f64 3 0.01
00:19:28 verbose #19697 > > inl y = x |> am'.map_base math.square
00:19:28 verbose #19698 > > "square", "x", "y", ;[[ "square", x, y ]]
00:19:29 verbose #19699 > 00:19:28   debug #1115 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1a7ad985805fb6991339e38a1741fe40fa03196f8017dcafcb6a3a6ccd6d666f/main.spi
00:19:29 verbose #19700 > >
00:19:29 verbose #19701 > > ╭─[ 430.42ms - return value ]──────────────────────────────────────────────────╮
00:19:29 verbose #19702 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:19:29 verbose #19703 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:19:29 verbose #19704 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:19:29 verbose #19705 > > │ stroke="none"/>                                                              │
00:19:29 verbose #19706 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:19:29 verbose #19707 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:19:29 verbose #19708 > > │ fill="#FFFFFF">                                                              │
00:19:29 verbose #19709 > > │ square                                                                       │
00:19:29 verbose #19710 > > │ </text>                                                                      │
00:19:29 verbose #19711 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="61" y1="424" x2="61" │
00:19:29 verbose #19712 > > │ y2="75"/>                                                                    │
00:19:29 verbose #19713 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:19:29 verbose #19714 > > │ y2="75"/>                                                                    │
00:19:29 verbose #19715 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="78" y1="424" x2="78" │
00:19:29 verbose #19716 > > │ y2="75"/>                                                                    │
00:19:29 verbose #19717 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="86" y1="424" x2="86" │
00:19:29 verbose #19718 > > │ y2="75"/>                                                                    │
00:19:29 verbose #19719 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="94" y1="424" x2="94" │
00:19:29 verbose #19720 > > │ y2="75"/>                                                                    │
00:19:29 verbose #19721 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="103" y1="424"        │
00:19:29 verbose #19722 > > │ x2="103" y2="75"/>                                                           │
00:19:29 verbose #19723 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="111" y1="424"        │
00:19:29 verbose #19724 > > │ x2="111" y2="75"/>                                                           │
00:19:29 verbose #19725 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:19:29 verbose #19726 > > │ x2="119" y2="75"/>                                                           │
00:19:29 verbose #19727 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="128" y1="424"        │
00:19:29 verbose #19728 > > │ x2="128" y2="75"/>                                                           │
00:19:29 verbose #19729 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="136" y1="424"        │
00:19:29 verbose #19730 > > │ x2="136" y2="75"/>                                                           │
00:19:29 verbose #19731 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="144" y1="424"        │
00:19:29 verbose #19732 > > │ x2="144" y2="75"/>                                                           │
00:19:29 verbose #19733 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="153" y1="424"        │
00:19:29 verbose #19734 > > │ x2="153" y2="75"/>                                                           │
00:19:29 verbose #19735 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="161" y1="424"        │
00:19:29 verbose #19736 > > │ x2="161" y2="75"/>                                                           │
00:19:29 verbose #19737 > > │ <line opacity="1" stroke="#... 449,326 450,324 450,323 451,322 452,321       │
00:19:29 verbose #19738 > > │ 453,320 454,319 455,317 455,316 456,315 457,314 458,313 459,311 460,310      │
00:19:29 verbose #19739 > > │ 460,309 461,308 462,306 463,305 464,304 465,303 465,301 466,300 467,299      │
00:19:29 verbose #19740 > > │ 468,297 469,296 470,295 470,293 471,292 472,291 473,289 474,288 475,287      │
00:19:29 verbose #19741 > > │ 475,285 476,284 477,283 478,281 479,280 480,278 480,277 481,276 482,274      │
00:19:29 verbose #19742 > > │ 483,273 484,271 485,270 485,268 486,267 487,265 488,264 489,262 490,261      │
00:19:29 verbose #19743 > > │ 490,259 491,258 492,256 493,255 494,253 495,252 495,250 496,249 497,247      │
00:19:29 verbose #19744 > > │ 498,246 499,244 499,242 500,241 501,239 502,238 503,236 504,234 504,233      │
00:19:29 verbose #19745 > > │ 505,231 506,229 507,228 508,226 509,224 509,223 510,221 511,219 512,218      │
00:19:29 verbose #19746 > > │ 513,216 514,214 514,213 515,211 516,209 517,207 518,206 519,204 519,202      │
00:19:29 verbose #19747 > > │ 520,200 521,199 522,197 523,195 524,193 524,191 525,190 526,188 527,186      │
00:19:29 verbose #19748 > > │ 528,184 529,182 529,180 530,179 531,177 532,175 533,173 534,171 534,169      │
00:19:29 verbose #19749 > > │ 535,167 536,165 537,164 538,162 539,160 539,158 540,156 541,154 542,152      │
00:19:29 verbose #19750 > > │ 543,150 544,148 544,146 545,144 546,142 547,140 548,138 549,136 549,134      │
00:19:29 verbose #19751 > > │ 550,132 551,130 552,128 553,126 554,124 554,122 555,120 556,117 557,115      │
00:19:29 verbose #19752 > > │ 558,113 559,111 559,109 560,107 561,105 562,103 563,101 564,98 564,96 565,94 │
00:19:29 verbose #19753 > > │ 566,92 567,90 568,88 569,85 "/>                                              │
00:19:29 verbose #19754 > > │ <rect x="497" y="235" width="83" height="30" opacity="1" fill="none"         │
00:19:29 verbose #19755 > > │ stroke="#FFFFFF"/>                                                           │
00:19:29 verbose #19756 > > │ <text x="537" y="245" dy="0.76em" text-anchor="start"                        │
00:19:29 verbose #19757 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:19:29 verbose #19758 > > │ fill="#FFFFFF">                                                              │
00:19:29 verbose #19759 > > │ square                                                                       │
00:19:29 verbose #19760 > > │ </text>                                                                      │
00:19:29 verbose #19761 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:19:29 verbose #19762 > > │ points="507,250 527,250 "/>                                                  │
00:19:29 verbose #19763 > > │ </svg>                                                                       │
00:19:29 verbose #19764 > > │                                                                              │
00:19:29 verbose #19765 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:29 verbose #19766 > >
00:19:29 verbose #19767 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:29 verbose #19768 > > //// test
00:19:29 verbose #19769 > >
00:19:29 verbose #19770 > > inl x = am'.init_series -10f64 10 0.1
00:19:29 verbose #19771 > > inl y_sin = x |> am'.map_base sin
00:19:29 verbose #19772 > > inl y_cos = x |> am'.map_base cos
00:19:29 verbose #19773 > > "sin cos", "x", "y", ;[[ "sin", x, y_sin; "cos", x, y_cos ]]
00:19:29 verbose #19774 > 00:19:28   debug #1116 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/810b585c3b9f35674862bc78476fbff1b676964e99081f1b6297792e7fb0c079/main.spi
00:19:29 verbose #19775 > >
00:19:29 verbose #19776 > > ╭─[ 391.82ms - return value ]──────────────────────────────────────────────────╮
00:19:29 verbose #19777 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:19:29 verbose #19778 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:19:29 verbose #19779 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:19:29 verbose #19780 > > │ stroke="none"/>                                                              │
00:19:29 verbose #19781 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:19:29 verbose #19782 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:19:29 verbose #19783 > > │ fill="#FFFFFF">                                                              │
00:19:29 verbose #19784 > > │ sin cos                                                                      │
00:19:29 verbose #19785 > > │ </text>                                                                      │
00:19:29 verbose #19786 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="57" y1="424" x2="57" │
00:19:29 verbose #19787 > > │ y2="75"/>                                                                    │
00:19:29 verbose #19788 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:19:29 verbose #19789 > > │ y2="75"/>                                                                    │
00:19:29 verbose #19790 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="82" y1="424" x2="82" │
00:19:29 verbose #19791 > > │ y2="75"/>                                                                    │
00:19:29 verbose #19792 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="94" y1="424" x2="94" │
00:19:29 verbose #19793 > > │ y2="75"/>                                                                    │
00:19:29 verbose #19794 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="107" y1="424"        │
00:19:29 verbose #19795 > > │ x2="107" y2="75"/>                                                           │
00:19:29 verbose #19796 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:19:29 verbose #19797 > > │ x2="119" y2="75"/>                                                           │
00:19:29 verbose #19798 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="132" y1="424"        │
00:19:29 verbose #19799 > > │ x2="132" y2="75"/>                                                           │
00:19:29 verbose #19800 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="144" y1="424"        │
00:19:29 verbose #19801 > > │ x2="144" y2="75"/>                                                           │
00:19:29 verbose #19802 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="157" y1="424"        │
00:19:29 verbose #19803 > > │ x2="157" y2="75"/>                                                           │
00:19:29 verbose #19804 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="169" y1="424"        │
00:19:29 verbose #19805 > > │ x2="169" y2="75"/>                                                           │
00:19:29 verbose #19806 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="182" y1="424"        │
00:19:29 verbose #19807 > > │ x2="182" y2="75"/>                                                           │
00:19:29 verbose #19808 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="194" y1="424"        │
00:19:29 verbose #19809 > > │ x2="194" y2="75"/>                                                           │
00:19:29 verbose #19810 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="207" y1="424"        │
00:19:29 verbose #19811 > > │ x2="207" y2="75"/>                                                           │
00:19:29 verbose #19812 > > │ <line opacity="1" stroke...55 282,238 284,222 287,206 289,190 292,175        │
00:19:29 verbose #19813 > > │ 294,161 297,148 299,135 302,124 304,114 307,106 309,98 312,93 314,89 317,86  │
00:19:29 verbose #19814 > > │ 319,85 321,86 324,89 326,93 329,98 331,106 334,114 336,124 339,135 341,148   │
00:19:29 verbose #19815 > > │ 344,161 346,175 349,190 351,206 354,222 356,238 359,255 361,271 364,287      │
00:19:29 verbose #19816 > > │ 366,303 369,319 371,333 374,347 376,360 379,371 381,382 384,391 386,399      │
00:19:29 verbose #19817 > > │ 389,405 391,410 394,413 396,414 399,414 401,413 404,409 406,404 409,398      │
00:19:29 verbose #19818 > > │ 411,390 414,380 416,370 419,358 421,345 424,331 426,316 429,301 431,285      │
00:19:29 verbose #19819 > > │ 434,268 436,252 439,236 441,219 444,203 446,188 449,173 451,159 454,146      │
00:19:29 verbose #19820 > > │ 456,133 459,122 461,113 464,104 466,97 469,92 471,88 474,86 476,85 479,86    │
00:19:29 verbose #19821 > > │ 481,89 484,94 486,99 489,107 491,116 494,126 496,137 499,150 501,163 504,178 │
00:19:29 verbose #19822 > > │ 506,193 509,209 511,225 514,241 516,258 519,274 521,290 524,306 526,321      │
00:19:29 verbose #19823 > > │ 529,335 531,349 534,362 536,373 539,384 541,392 544,400 546,406 549,410      │
00:19:29 verbose #19824 > > │ 551,413 554,415 556,414 559,412 561,408 564,403 566,396 569,388 "/>          │
00:19:29 verbose #19825 > > │ <rect x="514" y="227" width="66" height="45" opacity="1" fill="none"         │
00:19:29 verbose #19826 > > │ stroke="#FFFFFF"/>                                                           │
00:19:29 verbose #19827 > > │ <text x="554" y="237" dy="0.76em" text-anchor="start"                        │
00:19:29 verbose #19828 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:19:29 verbose #19829 > > │ fill="#FFFFFF">                                                              │
00:19:29 verbose #19830 > > │ sin                                                                          │
00:19:29 verbose #19831 > > │ </text>                                                                      │
00:19:29 verbose #19832 > > │ <text x="554" y="252" dy="0.76em" text-anchor="start"                        │
00:19:29 verbose #19833 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:19:29 verbose #19834 > > │ fill="#FFFFFF">                                                              │
00:19:29 verbose #19835 > > │ cos                                                                          │
00:19:29 verbose #19836 > > │ </text>                                                                      │
00:19:29 verbose #19837 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:19:29 verbose #19838 > > │ points="524,242 544,242 "/>                                                  │
00:19:29 verbose #19839 > > │ <polyline fill="none" opacity="1" stroke="#0000FF" stroke-width="1"          │
00:19:29 verbose #19840 > > │ points="524,257 544,257 "/>                                                  │
00:19:29 verbose #19841 > > │ </svg>                                                                       │
00:19:29 verbose #19842 > > │                                                                              │
00:19:29 verbose #19843 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:29 verbose #19844 > >
00:19:29 verbose #19845 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:29 verbose #19846 > > //// test
00:19:29 verbose #19847 > >
00:19:29 verbose #19848 > > inl y_pos y0 vy0 ay t =
00:19:29 verbose #19849 > >     y0 + vy0 * t + ay * (t |> math.square) / 2
00:19:29 verbose #19850 > >
00:19:29 verbose #19851 > > inl x = am'.init_series 0f64 5 0.01
00:19:29 verbose #19852 > > inl y = x |> am'.map_base (y_pos 0 20 -9.8)
00:19:29 verbose #19853 > > "projectile motion", "time (s)", "", ;[[ "height of projectile (m)", x, y ]]
00:19:29 verbose #19854 > 00:19:29   debug #1117 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/288a212fee50dfad7344c70905581751e7325cba0d50c8c991d8ae508fd94a2f/main.spi
00:19:30 verbose #19855 > >
00:19:30 verbose #19856 > > ╭─[ 411.36ms - return value ]──────────────────────────────────────────────────╮
00:19:30 verbose #19857 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:19:30 verbose #19858 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:19:30 verbose #19859 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:19:30 verbose #19860 > > │ stroke="none"/>                                                              │
00:19:30 verbose #19861 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:19:30 verbose #19862 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:19:30 verbose #19863 > > │ fill="#FFFFFF">                                                              │
00:19:30 verbose #19864 > > │ projectile motion                                                            │
00:19:30 verbose #19865 > > │ </text>                                                                      │
00:19:30 verbose #19866 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │
00:19:30 verbose #19867 > > │ y2="75"/>                                                                    │
00:19:30 verbose #19868 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:19:30 verbose #19869 > > │ y2="75"/>                                                                    │
00:19:30 verbose #19870 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │
00:19:30 verbose #19871 > > │ y2="75"/>                                                                    │
00:19:30 verbose #19872 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │
00:19:30 verbose #19873 > > │ y2="75"/>                                                                    │
00:19:30 verbose #19874 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="99" y1="424" x2="99" │
00:19:30 verbose #19875 > > │ y2="75"/>                                                                    │
00:19:30 verbose #19876 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="109" y1="424"        │
00:19:30 verbose #19877 > > │ x2="109" y2="75"/>                                                           │
00:19:30 verbose #19878 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:19:30 verbose #19879 > > │ x2="119" y2="75"/>                                                           │
00:19:30 verbose #19880 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="129" y1="424"        │
00:19:30 verbose #19881 > > │ x2="129" y2="75"/>                                                           │
00:19:30 verbose #19882 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="139" y1="424"        │
00:19:30 verbose #19883 > > │ x2="139" y2="75"/>                                                           │
00:19:30 verbose #19884 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="149" y1="424"        │
00:19:30 verbose #19885 > > │ x2="149" y2="75"/>                                                           │
00:19:30 verbose #19886 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="159" y1="424"        │
00:19:30 verbose #19887 > > │ x2="159" y2="75"/>                                                           │
00:19:30 verbose #19888 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="169" y1="424"        │
00:19:30 verbose #19889 > > │ x2="169" y2="75"/>                                                           │
00:19:30 verbose #19890 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="179" y1="424"        │
00:19:30 verbose #19891 > > │ x2="179" y2="75"/>                                                           │
00:19:30 verbose #19892 > > │ <line opacity="1...28,176 429,177 430,178 431,179 432,180 433,182 434,183    │
00:19:30 verbose #19893 > > │ 435,184 436,185 437,186 438,188 439,189 440,190 441,191 442,193 443,194      │
00:19:30 verbose #19894 > > │ 444,195 445,197 446,198 447,199 448,200 449,202 450,203 451,204 452,206      │
00:19:30 verbose #19895 > > │ 453,207 454,208 455,210 456,211 457,213 458,214 459,215 460,217 461,218      │
00:19:30 verbose #19896 > > │ 462,220 463,221 464,222 465,224 466,225 467,227 468,228 469,230 470,231      │
00:19:30 verbose #19897 > > │ 471,233 472,234 473,236 474,237 475,239 476,240 477,242 478,243 479,245      │
00:19:30 verbose #19898 > > │ 480,246 481,248 482,249 483,251 484,253 485,254 486,256 487,257 488,259      │
00:19:30 verbose #19899 > > │ 489,261 490,262 491,264 492,266 493,267 494,269 495,271 496,272 497,274      │
00:19:30 verbose #19900 > > │ 498,276 499,277 500,279 501,281 502,282 503,284 504,286 505,288 506,289      │
00:19:30 verbose #19901 > > │ 507,291 508,293 509,295 510,296 511,298 512,300 513,302 514,304 515,305      │
00:19:30 verbose #19902 > > │ 516,307 517,309 518,311 519,313 520,315 521,316 522,318 523,320 524,322      │
00:19:30 verbose #19903 > > │ 525,324 526,326 527,328 528,330 529,332 530,334 531,335 532,337 533,339      │
00:19:30 verbose #19904 > > │ 534,341 535,343 536,345 537,347 538,349 539,351 540,353 541,355 542,357      │
00:19:30 verbose #19905 > > │ 543,359 544,361 545,363 546,365 547,367 548,370 549,372 550,374 551,376      │
00:19:30 verbose #19906 > > │ 552,378 553,380 554,382 555,384 556,386 557,388 558,391 559,393 560,395      │
00:19:30 verbose #19907 > > │ 561,397 562,399 563,401 564,404 565,406 566,408 567,410 568,412 569,415 "/>  │
00:19:30 verbose #19908 > > │ <rect x="399" y="235" width="181" height="30" opacity="1" fill="none"        │
00:19:30 verbose #19909 > > │ stroke="#FFFFFF"/>                                                           │
00:19:30 verbose #19910 > > │ <text x="439" y="245" dy="0.76em" text-anchor="start"                        │
00:19:30 verbose #19911 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:19:30 verbose #19912 > > │ fill="#FFFFFF">                                                              │
00:19:30 verbose #19913 > > │ height of projectile (m)                                                     │
00:19:30 verbose #19914 > > │ </text>                                                                      │
00:19:30 verbose #19915 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:19:30 verbose #19916 > > │ points="409,250 429,250 "/>                                                  │
00:19:30 verbose #19917 > > │ </svg>                                                                       │
00:19:30 verbose #19918 > > │                                                                              │
00:19:30 verbose #19919 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:30 verbose #19920 > >
00:19:30 verbose #19921 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:30 verbose #19922 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:30 verbose #19923 > > │ ### velocity_cf                                                              │
00:19:30 verbose #19924 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:30 verbose #19925 > >
00:19:30 verbose #19926 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:30 verbose #19927 > > type mass = f64
00:19:30 verbose #19928 > > type time = f64
00:19:30 verbose #19929 > > type position = f64
00:19:30 verbose #19930 > > type velocity = f64
00:19:30 verbose #19931 > > type force = f64
00:19:30 verbose #19932 > >
00:19:30 verbose #19933 > > type velocity_cf = mass -> velocity -> list force -> (time -> velocity)
00:19:30 verbose #19934 > >
00:19:30 verbose #19935 > > inl velocity_cf m v0 fs =
00:19:30 verbose #19936 > >     inl f_net = fs |> listm'.sum
00:19:30 verbose #19937 > >     inl a0 = f_net / m
00:19:30 verbose #19938 > >     inl v t = v0 + a0 * t
00:19:30 verbose #19939 > >     v
00:19:30 verbose #19940 > 00:19:29   debug #1118 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/313e4aa9581625299dff75773fb55c6630e9d836ce37307c6698d46513e882c3/main.spi
00:19:30 verbose #19941 > >
00:19:30 verbose #19942 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:30 verbose #19943 > > //// test
00:19:30 verbose #19944 > >
00:19:30 verbose #19945 > > velocity_cf 0.1f64 0.6 [[ 0.04; -0.08 ]] 0
00:19:30 verbose #19946 > > |> _assert_eq 0.6
00:19:30 verbose #19947 > >
00:19:30 verbose #19948 > > velocity_cf 0.1f64 0.6 [[ 0.04; -0.08 ]] 1
00:19:30 verbose #19949 > > |> _assert_eq 0.2
00:19:30 verbose #19950 > 00:19:30   debug #1119 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b69f07cd5cbe3602d135eb4804e16819046c15a1d304bc80652c08373bebc2f4/main.spi
00:19:30 verbose #19951 > >
00:19:30 verbose #19952 > > ╭─[ 389.90ms - stdout ]────────────────────────────────────────────────────────╮
00:19:30 verbose #19953 > > │ assert_eq / actual: 0.6 / expected: 0.6                                      │
00:19:30 verbose #19954 > > │ assert_eq / actual: 0.2 / expected: 0.2                                      │
00:19:30 verbose #19955 > > │                                                                              │
00:19:30 verbose #19956 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:30 verbose #19957 > >
00:19:30 verbose #19958 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:30 verbose #19959 > > //// test
00:19:30 verbose #19960 > >
00:19:30 verbose #19961 > > inl x = am'.init_series 0f64 4 0.1
00:19:30 verbose #19962 > > inl y = x |> am'.map_base (velocity_cf 0.1f64 0.6 [[ 0.04; -0.08 ]])
00:19:30 verbose #19963 > > "car on an air track", "time (s)", "", ;[[ "velocity of car (m/s)", x, y ]]
00:19:31 verbose #19964 > 00:19:30   debug #1120 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4ee895a8c40325362074de083c9b61d797af55f40efe265c277931e43c6ad593/main.spi
00:19:31 verbose #19965 > >
00:19:31 verbose #19966 > > ╭─[ 420.05ms - return value ]──────────────────────────────────────────────────╮
00:19:31 verbose #19967 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:19:31 verbose #19968 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:19:31 verbose #19969 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:19:31 verbose #19970 > > │ stroke="none"/>                                                              │
00:19:31 verbose #19971 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:19:31 verbose #19972 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:19:31 verbose #19973 > > │ fill="#FFFFFF">                                                              │
00:19:31 verbose #19974 > > │ car on an air track                                                          │
00:19:31 verbose #19975 > > │ </text>                                                                      │
00:19:31 verbose #19976 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="57" y1="424" x2="57" │
00:19:31 verbose #19977 > > │ y2="75"/>                                                                    │
00:19:31 verbose #19978 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:19:31 verbose #19979 > > │ y2="75"/>                                                                    │
00:19:31 verbose #19980 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="82" y1="424" x2="82" │
00:19:31 verbose #19981 > > │ y2="75"/>                                                                    │
00:19:31 verbose #19982 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="94" y1="424" x2="94" │
00:19:31 verbose #19983 > > │ y2="75"/>                                                                    │
00:19:31 verbose #19984 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="107" y1="424"        │
00:19:31 verbose #19985 > > │ x2="107" y2="75"/>                                                           │
00:19:31 verbose #19986 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:19:31 verbose #19987 > > │ x2="119" y2="75"/>                                                           │
00:19:31 verbose #19988 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="132" y1="424"        │
00:19:31 verbose #19989 > > │ x2="132" y2="75"/>                                                           │
00:19:31 verbose #19990 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="144" y1="424"        │
00:19:31 verbose #19991 > > │ x2="144" y2="75"/>                                                           │
00:19:31 verbose #19992 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="157" y1="424"        │
00:19:31 verbose #19993 > > │ x2="157" y2="75"/>                                                           │
00:19:31 verbose #19994 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="169" y1="424"        │
00:19:31 verbose #19995 > > │ x2="169" y2="75"/>                                                           │
00:19:31 verbose #19996 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="182" y1="424"        │
00:19:31 verbose #19997 > > │ x2="182" y2="75"/>                                                           │
00:19:31 verbose #19998 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="194" y1="424"        │
00:19:31 verbose #19999 > > │ x2="194" y2="75"/>                                                           │
00:19:31 verbose #20000 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="207" y1="424"        │
00:19:31 verbose #20001 > > │ x2="207" y2="75"/>                                                           │
00:19:31 verbose #20002 > > │ <line opacit...85,209 590,209 "/>                                            │
00:19:31 verbose #20003 > > │ <text x="617" y="168" dy="0.5ex" text-anchor="end" font-family="sans-serif"  │
00:19:31 verbose #20004 > > │ font-size="9.67741935483871" opacity="1" fill="#FFFFFF">                     │
00:19:31 verbose #20005 > > │ 0.2                                                                          │
00:19:31 verbose #20006 > > │ </text>                                                                      │
00:19:31 verbose #20007 > > │ <polyline fill="none" opacity="1" stroke="#FFFFFF" stroke-width="1"          │
00:19:31 verbose #20008 > > │ points="585,168 590,168 "/>                                                  │
00:19:31 verbose #20009 > > │ <text x="617" y="127" dy="0.5ex" text-anchor="end" font-family="sans-serif"  │
00:19:31 verbose #20010 > > │ font-size="9.67741935483871" opacity="1" fill="#FFFFFF">                     │
00:19:31 verbose #20011 > > │ 0.4                                                                          │
00:19:31 verbose #20012 > > │ </text>                                                                      │
00:19:31 verbose #20013 > > │ <polyline fill="none" opacity="1" stroke="#FFFFFF" stroke-width="1"          │
00:19:31 verbose #20014 > > │ points="585,127 590,127 "/>                                                  │
00:19:31 verbose #20015 > > │ <text x="617" y="85" dy="0.5ex" text-anchor="end" font-family="sans-serif"   │
00:19:31 verbose #20016 > > │ font-size="9.67741935483871" opacity="1" fill="#FFFFFF">                     │
00:19:31 verbose #20017 > > │ 0.6                                                                          │
00:19:31 verbose #20018 > > │ </text>                                                                      │
00:19:31 verbose #20019 > > │ <polyline fill="none" opacity="1" stroke="#FFFFFF" stroke-width="1"          │
00:19:31 verbose #20020 > > │ points="585,85 590,85 "/>                                                    │
00:19:31 verbose #20021 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:19:31 verbose #20022 > > │ points="69,85 82,94 94,102 107,110 119,118 132,127 144,135 157,143 169,151   │
00:19:31 verbose #20023 > > │ 182,159 194,168 207,176 219,184 232,192 244,201 257,209 269,217 282,225      │
00:19:31 verbose #20024 > > │ 294,234 307,242 319,250 331,258 344,266 356,275 369,283 381,291 394,299      │
00:19:31 verbose #20025 > > │ 406,308 419,316 431,324 444,332 456,341 469,349 481,357 494,365 506,373      │
00:19:31 verbose #20026 > > │ 519,382 531,390 544,398 556,406 569,415 "/>                                  │
00:19:31 verbose #20027 > > │ <rect x="415" y="235" width="165" height="30" opacity="1" fill="none"        │
00:19:31 verbose #20028 > > │ stroke="#FFFFFF"/>                                                           │
00:19:31 verbose #20029 > > │ <text x="455" y="245" dy="0.76em" text-anchor="start"                        │
00:19:31 verbose #20030 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:19:31 verbose #20031 > > │ fill="#FFFFFF">                                                              │
00:19:31 verbose #20032 > > │ velocity of car (m/s)                                                        │
00:19:31 verbose #20033 > > │ </text>                                                                      │
00:19:31 verbose #20034 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:19:31 verbose #20035 > > │ points="425,250 445,250 "/>                                                  │
00:19:31 verbose #20036 > > │ </svg>                                                                       │
00:19:31 verbose #20037 > > │                                                                              │
00:19:31 verbose #20038 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:31 verbose #20039 > >
00:19:31 verbose #20040 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:31 verbose #20041 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:31 verbose #20042 > > │ ### derivative                                                               │
00:19:31 verbose #20043 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:31 verbose #20044 > >
00:19:31 verbose #20045 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:31 verbose #20046 > > type derivative = (f64 -> f64) -> f64 -> f64
00:19:31 verbose #20047 > >
00:19:31 verbose #20048 > > inl derivative dt : derivative =
00:19:31 verbose #20049 > >     fun x t =>
00:19:31 verbose #20050 > >         (x (t + dt / 2) - x (t - dt / 2)) / dt
00:19:31 verbose #20051 > 00:19:30   debug #1121 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8f860e1f3d0990020e70e2c28807ba63a8da055d56e1afb66cbc6abc219fbbef/main.spi
00:19:31 verbose #20052 > >
00:19:31 verbose #20053 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:31 verbose #20054 > > //// test
00:19:31 verbose #20055 > >
00:19:31 verbose #20056 > > derivative 1 (fun x => x ** 4 / 4) 1 - 1
00:19:31 verbose #20057 > > |> _assert_approx_eq None 0.25
00:19:31 verbose #20058 > >
00:19:31 verbose #20059 > > derivative 0.001 (fun x => x ** 4 / 4) 1 - 1
00:19:31 verbose #20060 > > |> _assert_approx_eq None 0.0000002499998827953931
00:19:31 verbose #20061 > >
00:19:31 verbose #20062 > > derivative 0.000001 (fun x => x ** 4 / 4) 1 - 1
00:19:31 verbose #20063 > > |> _assert_approx_eq None 0.000000000001000088900582341
00:19:31 verbose #20064 > >
00:19:31 verbose #20065 > > derivative 0.000000001 (fun x => x ** 4 / 4) 1 - 1
00:19:31 verbose #20066 > > |> _assert_approx_eq None 0.00000008274037099909037
00:19:31 verbose #20067 > >
00:19:31 verbose #20068 > > derivative 0.000000000001 (fun x => x ** 4 / 4) 1 - 1
00:19:31 verbose #20069 > > |> _assert_approx_eq None 0.00008890058234101161
00:19:31 verbose #20070 > >
00:19:31 verbose #20071 > > derivative 0.000000000000001 (fun x => x ** 4 / 4) 1 - 1
00:19:31 verbose #20072 > > |> _assert_approx_eq None -0.0007992778373592246
00:19:31 verbose #20073 > >
00:19:31 verbose #20074 > > derivative 0.000000000000000001 (fun x => x ** 4 / 4) 1 - 1
00:19:31 verbose #20075 > > |> _assert_approx_eq None -1
00:19:31 verbose #20076 > 00:19:31   debug #1122 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7628cf77d47c9e60c40b69653cec51d8eacf6028f0530fb6a8d9f7b39523ca38/main.spi
00:19:32 verbose #20077 > >
00:19:32 verbose #20078 > > ╭─[ 367.82ms - stdout ]────────────────────────────────────────────────────────╮
00:19:32 verbose #20079 > > │ assert_approx_eq / actual: 0.25 / expected: 0.25                             │
00:19:32 verbose #20080 > > │ assert_approx_eq / actual: 2.499998828e-07 / expected: 2.499998828e-07       │
00:19:32 verbose #20081 > > │ assert_approx_eq / actual: 1.000088901e-12 / expected: 1.000088901e-12       │
00:19:32 verbose #20082 > > │ assert_approx_eq / actual: 8.2740371e-08 / expected: 8.2740371e-08           │
00:19:32 verbose #20083 > > │ assert_approx_eq / actual: 8.890058234e-05 / expected: 8.890058234e-05       │
00:19:32 verbose #20084 > > │ assert_approx_eq / actual: -0.0007992778374 / expected: -0.0007992778374     │
00:19:32 verbose #20085 > > │ assert_approx_eq / actual: -1.0 / expected: -1.0                             │
00:19:32 verbose #20086 > > │                                                                              │
00:19:32 verbose #20087 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:32 verbose #20088 > >
00:19:32 verbose #20089 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:32 verbose #20090 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:32 verbose #20091 > > │ ### integration                                                              │
00:19:32 verbose #20092 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:32 verbose #20093 > >
00:19:32 verbose #20094 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:32 verbose #20095 > > type integration = (f64 -> f64) -> f64 -> f64 -> f64
00:19:32 verbose #20096 > >
00:19:32 verbose #20097 > > inl integral dt : integration =
00:19:32 verbose #20098 > >     fun f a b =>
00:19:32 verbose #20099 > >         inl rec loop t y =
00:19:32 verbose #20100 > >             if t < b
00:19:32 verbose #20101 > >             then loop (t + dt) (y + f t * dt)
00:19:32 verbose #20102 > >             else t, y
00:19:32 verbose #20103 > >         loop (a + dt / 2) 0
00:19:32 verbose #20104 > >         |> snd
00:19:32 verbose #20105 > 00:19:31   debug #1123 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/be1f0345fa4d30548c696dcca0a6aabc7e45579a50b72db44e14189fd4675b17/main.spi
00:19:32 verbose #20106 > >
00:19:32 verbose #20107 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:32 verbose #20108 > > //// test
00:19:32 verbose #20109 > >
00:19:32 verbose #20110 > > integral 0.01 math.square 0 1
00:19:32 verbose #20111 > > |> _assert_approx_eq None 0.33332500000000004
00:19:32 verbose #20112 > 00:19:32   debug #1124 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8e1c1d73fce6d392577082ccf529fe2b9ec437d7f8dd9c9a19376dba9a5f99d5/main.spi
00:19:32 verbose #20113 > >
00:19:32 verbose #20114 > > ╭─[ 384.90ms - stdout ]────────────────────────────────────────────────────────╮
00:19:32 verbose #20115 > > │ assert_approx_eq / actual: 0.333325 / expected: 0.333325                     │
00:19:32 verbose #20116 > > │                                                                              │
00:19:32 verbose #20117 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:32 verbose #20118 > >
00:19:32 verbose #20119 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:32 verbose #20120 > > inl integral' dt : integration =
00:19:32 verbose #20121 > >     fun f a b =>
00:19:32 verbose #20122 > >         listm'.init_series (a + dt / 2) (b - dt / 2) dt
00:19:32 verbose #20123 > >         |> listm.map (f >> (*) dt)
00:19:32 verbose #20124 > >         |> listm'.sum
00:19:33 verbose #20125 > 00:19:32   debug #1125 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/657ea893f7fdca273a4f1ff12463b00c632ee5f27d912cf612ad9ff0de31bce2/main.spi
00:19:33 verbose #20126 > >
00:19:33 verbose #20127 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:33 verbose #20128 > > //// test
00:19:33 verbose #20129 > >
00:19:33 verbose #20130 > > integral' 0.1 math.square 0 1
00:19:33 verbose #20131 > > |> _assert_approx_eq None (integral 0.1 math.square 0 1)
00:19:33 verbose #20132 > 00:19:32   debug #1126 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9a570ba76aa5b78b3f3a5732dc305814c5323232d6b25e3893b12cf02aca818d/main.spi
00:19:33 verbose #20133 > >
00:19:33 verbose #20134 > > ╭─[ 336.55ms - stdout ]────────────────────────────────────────────────────────╮
00:19:33 verbose #20135 > > │ assert_approx_eq / actual: 0.3325 / expected: 0.3325                         │
00:19:33 verbose #20136 > > │                                                                              │
00:19:33 verbose #20137 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:33 verbose #20138 > >
00:19:33 verbose #20139 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:33 verbose #20140 > > inl integral'' dt : integration =
00:19:33 verbose #20141 > >     fun f x y =>
00:19:33 verbose #20142 > >         am'.init_series (x + dt / 2) (y - dt / 2) dt
00:19:33 verbose #20143 > >         |> fun x => a x : _ int _
00:19:33 verbose #20144 > >         |> am.map (f >> (*) dt)
00:19:33 verbose #20145 > >         |> am'.sum
00:19:33 verbose #20146 > 00:19:33   debug #1127 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8352259675c39c397c7fd22720b22c952458e0f72b826d18a1166a83c3b483d9/main.spi
00:19:33 verbose #20147 > >
00:19:33 verbose #20148 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:33 verbose #20149 > > //// test
00:19:33 verbose #20150 > >
00:19:33 verbose #20151 > > integral'' 0.01 math.square 0 1
00:19:33 verbose #20152 > > |> _assert_approx_eq None (integral 0.01 math.square 0 1)
00:19:34 verbose #20153 > 00:19:33   debug #1128 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/227e67a37874d1ca72b39a4e78078d07e66375e70c7c67975b35a4fa43c2090c/main.spi
00:19:34 verbose #20154 > >
00:19:34 verbose #20155 > > ╭─[ 426.37ms - stdout ]────────────────────────────────────────────────────────╮
00:19:34 verbose #20156 > > │ assert_approx_eq / actual: 0.333325 / expected: 0.333325                     │
00:19:34 verbose #20157 > > │                                                                              │
00:19:34 verbose #20158 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:34 verbose #20159 > >
00:19:34 verbose #20160 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:34 verbose #20161 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:34 verbose #20162 > > │ ### anti_derivative                                                          │
00:19:34 verbose #20163 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:34 verbose #20164 > >
00:19:34 verbose #20165 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:34 verbose #20166 > > inl anti_derivative dt v0 a t =
00:19:34 verbose #20167 > >     v0 + integral' dt a 0 t
00:19:34 verbose #20168 > 00:19:33   debug #1129 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c6b26a8138c573a03699cf5c5c41045846ca4dbe4cda15eec2d546f1a8855693/main.spi
00:19:34 verbose #20169 > >
00:19:34 verbose #20170 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:34 verbose #20171 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:34 verbose #20172 > > │ ### velocity_ft                                                              │
00:19:34 verbose #20173 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:34 verbose #20174 > >
00:19:34 verbose #20175 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:34 verbose #20176 > > type velocity_ft = mass -> velocity -> list (time -> force) -> (time ->
00:19:34 verbose #20177 > > velocity)
00:19:34 verbose #20178 > >
00:19:34 verbose #20179 > > inl velocity_ft dt : velocity_ft =
00:19:34 verbose #20180 > >     fun m v0 fs =>
00:19:34 verbose #20181 > >         inl f_net t = fs |> listm.map (fun f => f t) |> listm'.sum
00:19:34 verbose #20182 > >         inl a t = f_net t / m
00:19:34 verbose #20183 > >         anti_derivative dt v0 a
00:19:34 verbose #20184 > 00:19:34   debug #1130 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/94e3edccb37643f1977335f24f98ccc7f0d2b0855b6eae6670fbba3fdff2e1a9/main.spi
00:19:35 verbose #20185 > >
00:19:35 verbose #20186 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:35 verbose #20187 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:35 verbose #20188 > > │ ### position_ft                                                              │
00:19:35 verbose #20189 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:35 verbose #20190 > >
00:19:35 verbose #20191 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:35 verbose #20192 > > type position_ft = mass -> position -> velocity -> list (time -> force) -> (time
00:19:35 verbose #20193 > > -> position)
00:19:35 verbose #20194 > >
00:19:35 verbose #20195 > > inl position_ft dt : position_ft =
00:19:35 verbose #20196 > >     fun m x0 v0 fs =>
00:19:35 verbose #20197 > >         velocity_ft dt m v0 fs
00:19:35 verbose #20198 > >         |> anti_derivative dt x0
00:19:35 verbose #20199 > 00:19:34   debug #1131 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1fae363dd912673194dfd1412730c57d95a128b7c8c28c38ea626ea93fd81eb9/main.spi
00:19:35 verbose #20200 > >
00:19:35 verbose #20201 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:35 verbose #20202 > > //// test
00:19:35 verbose #20203 > >
00:19:35 verbose #20204 > > inl pedal_coast (t : time) : force =
00:19:35 verbose #20205 > >     inl t_cycle = 20
00:19:35 verbose #20206 > >     inl n_complete : i32 = t / t_cycle |> conv
00:19:35 verbose #20207 > >     inl remainder = t - conv n_complete * t_cycle
00:19:35 verbose #20208 > >     if remainder > 0 && remainder < 10
00:19:35 verbose #20209 > >     then 10
00:19:35 verbose #20210 > >     else 0
00:19:35 verbose #20211 > >
00:19:35 verbose #20212 > > inl x = am'.init_series -5f64 45 0.1
00:19:35 verbose #20213 > > inl y = x |> am'.map_base pedal_coast
00:19:35 verbose #20214 > > "child pedaling then coasting", "time (s)", "", ;[[ "force on bike (N)", x, y ]]
00:19:35 verbose #20215 > 00:19:34   debug #1132 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/009d321e96d917ef744ce3f13a6420cc3879eac327ca3a9a8292f391e893a6d4/main.spi
00:19:35 verbose #20216 > >
00:19:35 verbose #20217 > > ╭─[ 418.54ms - return value ]──────────────────────────────────────────────────╮
00:19:35 verbose #20218 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:19:35 verbose #20219 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:19:35 verbose #20220 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:19:35 verbose #20221 > > │ stroke="none"/>                                                              │
00:19:35 verbose #20222 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:19:35 verbose #20223 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:19:35 verbose #20224 > > │ fill="#FFFFFF">                                                              │
00:19:35 verbose #20225 > > │ child pedaling then coasting                                                 │
00:19:35 verbose #20226 > > │ </text>                                                                      │
00:19:35 verbose #20227 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │
00:19:35 verbose #20228 > > │ y2="75"/>                                                                    │
00:19:35 verbose #20229 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:19:35 verbose #20230 > > │ y2="75"/>                                                                    │
00:19:35 verbose #20231 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │
00:19:35 verbose #20232 > > │ y2="75"/>                                                                    │
00:19:35 verbose #20233 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │
00:19:35 verbose #20234 > > │ y2="75"/>                                                                    │
00:19:35 verbose #20235 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="99" y1="424" x2="99" │
00:19:35 verbose #20236 > > │ y2="75"/>                                                                    │
00:19:35 verbose #20237 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="109" y1="424"        │
00:19:35 verbose #20238 > > │ x2="109" y2="75"/>                                                           │
00:19:35 verbose #20239 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:19:35 verbose #20240 > > │ x2="119" y2="75"/>                                                           │
00:19:35 verbose #20241 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="129" y1="424"        │
00:19:35 verbose #20242 > > │ x2="129" y2="75"/>                                                           │
00:19:35 verbose #20243 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="139" y1="424"        │
00:19:35 verbose #20244 > > │ x2="139" y2="75"/>                                                           │
00:19:35 verbose #20245 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="149" y1="424"        │
00:19:35 verbose #20246 > > │ x2="149" y2="75"/>                                                           │
00:19:35 verbose #20247 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="159" y1="424"        │
00:19:35 verbose #20248 > > │ x2="159" y2="75"/>                                                           │
00:19:35 verbose #20249 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="169" y1="424"        │
00:19:35 verbose #20250 > > │ x2="169" y2="75"/>                                                           │
00:19:35 verbose #20251 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="179" y1="424"        │
00:19:35 verbose #20252 > > │ x2="179" y2="75"/>                                                           │
00:19:35 verbose #20253 > > │ <line...421,415 422,415 423,415 424,415 425,415 426,415 427,415 428,415      │
00:19:35 verbose #20254 > > │ 429,415 430,415 431,415 432,415 433,415 434,415 435,415 436,415 437,415      │
00:19:35 verbose #20255 > > │ 438,415 439,415 440,415 441,415 442,415 443,415 444,415 445,415 446,415      │
00:19:35 verbose #20256 > > │ 447,415 448,415 449,415 450,415 451,415 452,415 453,415 454,415 455,415      │
00:19:35 verbose #20257 > > │ 456,415 457,415 458,415 459,415 460,415 461,415 462,415 463,415 464,415      │
00:19:35 verbose #20258 > > │ 465,415 466,415 467,415 468,415 469,415 470,415 471,415 472,415 473,415      │
00:19:35 verbose #20259 > > │ 474,415 475,415 476,415 477,415 478,415 479,415 480,415 481,415 482,415      │
00:19:35 verbose #20260 > > │ 483,415 484,415 485,415 486,415 487,415 488,415 489,415 490,415 491,415      │
00:19:35 verbose #20261 > > │ 492,415 493,415 494,415 495,415 496,415 497,415 498,415 499,415 500,415      │
00:19:35 verbose #20262 > > │ 501,415 502,415 503,415 504,415 505,415 506,415 507,415 508,415 509,415      │
00:19:35 verbose #20263 > > │ 510,415 511,415 512,415 513,415 514,415 515,415 516,415 517,415 518,415      │
00:19:35 verbose #20264 > > │ 519,415 520,85 521,85 522,85 523,85 524,85 525,85 526,85 527,85 528,85       │
00:19:35 verbose #20265 > > │ 529,85 530,85 531,85 532,85 533,85 534,85 535,85 536,85 537,85 538,85 539,85 │
00:19:35 verbose #20266 > > │ 540,85 541,85 542,85 543,85 544,85 545,85 546,85 547,85 548,85 549,85 550,85 │
00:19:35 verbose #20267 > > │ 551,85 552,85 553,85 554,85 555,85 556,85 557,85 558,85 559,85 560,85 561,85 │
00:19:35 verbose #20268 > > │ 562,85 563,85 564,85 565,85 566,85 567,85 568,85 569,85 "/>                  │
00:19:35 verbose #20269 > > │ <rect x="437" y="235" width="143" height="30" opacity="1" fill="none"        │
00:19:35 verbose #20270 > > │ stroke="#FFFFFF"/>                                                           │
00:19:35 verbose #20271 > > │ <text x="477" y="245" dy="0.76em" text-anchor="start"                        │
00:19:35 verbose #20272 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:19:35 verbose #20273 > > │ fill="#FFFFFF">                                                              │
00:19:35 verbose #20274 > > │ force on bike (N)                                                            │
00:19:35 verbose #20275 > > │ </text>                                                                      │
00:19:35 verbose #20276 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:19:35 verbose #20277 > > │ points="447,250 467,250 "/>                                                  │
00:19:35 verbose #20278 > > │ </svg>                                                                       │
00:19:35 verbose #20279 > > │                                                                              │
00:19:35 verbose #20280 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:35 verbose #20281 > >
00:19:35 verbose #20282 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:35 verbose #20283 > > //// test
00:19:35 verbose #20284 > >
00:19:35 verbose #20285 > > inl x = am'.init_series -5 45 1
00:19:35 verbose #20286 > > inl y = x |> am'.map_base (position_ft 0.1f64 20 0 0 [[ pedal_coast ]])
00:19:35 verbose #20287 > > "child pedaling then coasting", "time (s)", "", ;[[ "position of bike (m)", x, y
00:19:35 verbose #20288 > > ]]
00:19:36 verbose #20289 > 00:19:35   debug #1133 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2c7d1270324106a1cacc8aecd846cfdb5078621408d7dc37845c85febb0af287/main.spi
00:19:36 verbose #20290 > >
00:19:36 verbose #20291 > > ╭─[ 636.22ms - return value ]──────────────────────────────────────────────────╮
00:19:36 verbose #20292 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:19:36 verbose #20293 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:19:36 verbose #20294 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:19:36 verbose #20295 > > │ stroke="none"/>                                                              │
00:19:36 verbose #20296 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:19:36 verbose #20297 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:19:36 verbose #20298 > > │ fill="#FFFFFF">                                                              │
00:19:36 verbose #20299 > > │ child pedaling then coasting                                                 │
00:19:36 verbose #20300 > > │ </text>                                                                      │
00:19:36 verbose #20301 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │
00:19:36 verbose #20302 > > │ y2="75"/>                                                                    │
00:19:36 verbose #20303 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:19:36 verbose #20304 > > │ y2="75"/>                                                                    │
00:19:36 verbose #20305 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │
00:19:36 verbose #20306 > > │ y2="75"/>                                                                    │
00:19:36 verbose #20307 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │
00:19:36 verbose #20308 > > │ y2="75"/>                                                                    │
00:19:36 verbose #20309 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="99" y1="424" x2="99" │
00:19:36 verbose #20310 > > │ y2="75"/>                                                                    │
00:19:36 verbose #20311 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="109" y1="424"        │
00:19:36 verbose #20312 > > │ x2="109" y2="75"/>                                                           │
00:19:36 verbose #20313 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:19:36 verbose #20314 > > │ x2="119" y2="75"/>                                                           │
00:19:36 verbose #20315 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="129" y1="424"        │
00:19:36 verbose #20316 > > │ x2="129" y2="75"/>                                                           │
00:19:36 verbose #20317 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="139" y1="424"        │
00:19:36 verbose #20318 > > │ x2="139" y2="75"/>                                                           │
00:19:36 verbose #20319 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="149" y1="424"        │
00:19:36 verbose #20320 > > │ x2="149" y2="75"/>                                                           │
00:19:36 verbose #20321 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="159" y1="424"        │
00:19:36 verbose #20322 > > │ x2="159" y2="75"/>                                                           │
00:19:36 verbose #20323 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="169" y1="424"        │
00:19:36 verbose #20324 > > │ x2="169" y2="75"/>                                                           │
00:19:36 verbose #20325 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="179" y1="424"        │
00:19:36 verbose #20326 > > │ x2="179" y2="75"/>                                                           │
00:19:36 verbose #20327 > > │ <line...serif" font-size="9.67741935483871" opacity="1" fill="#FFFFFF">      │
00:19:36 verbose #20328 > > │ 200.0                                                                        │
00:19:36 verbose #20329 > > │ </text>                                                                      │
00:19:36 verbose #20330 > > │ <polyline fill="none" opacity="1" stroke="#FFFFFF" stroke-width="1"          │
00:19:36 verbose #20331 > > │ points="585,201 590,201 "/>                                                  │
00:19:36 verbose #20332 > > │ <text x="595" y="147" dy="0.5ex" text-anchor="start"                         │
00:19:36 verbose #20333 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:19:36 verbose #20334 > > │ fill="#FFFFFF">                                                              │
00:19:36 verbose #20335 > > │ 250.0                                                                        │
00:19:36 verbose #20336 > > │ </text>                                                                      │
00:19:36 verbose #20337 > > │ <polyline fill="none" opacity="1" stroke="#FFFFFF" stroke-width="1"          │
00:19:36 verbose #20338 > > │ points="585,147 590,147 "/>                                                  │
00:19:36 verbose #20339 > > │ <text x="595" y="94" dy="0.5ex" text-anchor="start" font-family="sans-serif" │
00:19:36 verbose #20340 > > │ font-size="9.67741935483871" opacity="1" fill="#FFFFFF">                     │
00:19:36 verbose #20341 > > │ 300.0                                                                        │
00:19:36 verbose #20342 > > │ </text>                                                                      │
00:19:36 verbose #20343 > > │ <polyline fill="none" opacity="1" stroke="#FFFFFF" stroke-width="1"          │
00:19:36 verbose #20344 > > │ points="585,94 590,94 "/>                                                    │
00:19:36 verbose #20345 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:19:36 verbose #20346 > > │ points="69,415 79,415 89,415 99,415 109,415 119,415 129,414 139,413 149,412  │
00:19:36 verbose #20347 > > │ 159,410 169,408 179,405 189,401 199,397 209,393 219,388 229,382 239,377      │
00:19:36 verbose #20348 > > │ 249,372 259,366 269,361 279,356 289,350 299,345 309,340 319,334 329,329      │
00:19:36 verbose #20349 > > │ 339,322 349,316 359,308 369,301 379,292 389,284 399,274 409,264 419,254      │
00:19:36 verbose #20350 > > │ 429,243 439,232 449,221 459,210 469,199 479,189 489,178 499,167 509,157      │
00:19:36 verbose #20351 > > │ 519,146 529,135 539,123 549,111 559,99 569,85 "/>                            │
00:19:36 verbose #20352 > > │ <rect x="421" y="235" width="159" height="30" opacity="1" fill="none"        │
00:19:36 verbose #20353 > > │ stroke="#FFFFFF"/>                                                           │
00:19:36 verbose #20354 > > │ <text x="461" y="245" dy="0.76em" text-anchor="start"                        │
00:19:36 verbose #20355 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:19:36 verbose #20356 > > │ fill="#FFFFFF">                                                              │
00:19:36 verbose #20357 > > │ position of bike (m)                                                         │
00:19:36 verbose #20358 > > │ </text>                                                                      │
00:19:36 verbose #20359 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:19:36 verbose #20360 > > │ points="431,250 451,250 "/>                                                  │
00:19:36 verbose #20361 > > │ </svg>                                                                       │
00:19:36 verbose #20362 > > │                                                                              │
00:19:36 verbose #20363 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:36 verbose #20364 > >
00:19:36 verbose #20365 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:36 verbose #20366 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:36 verbose #20367 > > │ ### velocity_fv                                                              │
00:19:36 verbose #20368 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:36 verbose #20369 > >
00:19:36 verbose #20370 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:36 verbose #20371 > > inl newton_second_v m fs v0 =
00:19:36 verbose #20372 > >     fs |> listm.map (fun f => f v0) |> listm'.sum |> fun x => x / m
00:19:36 verbose #20373 > >
00:19:36 verbose #20374 > > inl update_velocity dt m fs v0 =
00:19:36 verbose #20375 > >     v0 + newton_second_v m fs v0 * dt
00:19:36 verbose #20376 > >
00:19:36 verbose #20377 > > inl velocity_fv dt m v0 fs t =
00:19:36 verbose #20378 > >     stream.iterate (update_velocity dt m fs) v0
00:19:36 verbose #20379 > >     |> stream.try_item (t / dt |> math.round |> abs)
00:19:36 verbose #20380 > >     |> optionm'.default_value 0
00:19:36 verbose #20381 > 00:19:36   debug #1134 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/23eb02e4436a1723863c20ba010497cf8423e4fcc6fb822b55cfca750f19f379/main.spi
00:19:36 verbose #20382 > >
00:19:36 verbose #20383 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:36 verbose #20384 > > inl f_air drag rho area v =
00:19:36 verbose #20385 > >     -drag * rho * area * abs v * v / 2
00:19:37 verbose #20386 > 00:19:36   debug #1135 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ecc4d6aff5f0952778ba37f1401d76e69cf791fd8fddd202bac43aa5df6c417a/main.spi
00:19:37 verbose #20387 > >
00:19:37 verbose #20388 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:37 verbose #20389 > > //// test
00:19:37 verbose #20390 > >
00:19:37 verbose #20391 > > inl x = am'.init_series 0 60 0.5
00:19:37 verbose #20392 > > inl y = x |> am'.map_base (velocity_fv 1 70 0f64 [[ fun _ => 100; f_air 2 1.225
00:19:37 verbose #20393 > > 0.6 ]])
00:19:37 verbose #20394 > > "bike velocity", "time (s)", "", ;[[ "velocity of bike (m/s)", x, y ]]
00:19:37 verbose #20395 > 00:19:36   debug #1136 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7f9fc005af62c9b4842af3fdc7fce4ad946e621a3e1d9229bf4a01150d8f6a1a/main.spi
00:19:37 verbose #20396 > >
00:19:37 verbose #20397 > > ╭─[ 688.68ms - return value ]──────────────────────────────────────────────────╮
00:19:37 verbose #20398 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:19:37 verbose #20399 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:19:37 verbose #20400 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:19:37 verbose #20401 > > │ stroke="none"/>                                                              │
00:19:37 verbose #20402 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:19:37 verbose #20403 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:19:37 verbose #20404 > > │ fill="#FFFFFF">                                                              │
00:19:37 verbose #20405 > > │ bike velocity                                                                │
00:19:37 verbose #20406 > > │ </text>                                                                      │
00:19:37 verbose #20407 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="61" y1="424" x2="61" │
00:19:37 verbose #20408 > > │ y2="75"/>                                                                    │
00:19:37 verbose #20409 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:19:37 verbose #20410 > > │ y2="75"/>                                                                    │
00:19:37 verbose #20411 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="78" y1="424" x2="78" │
00:19:37 verbose #20412 > > │ y2="75"/>                                                                    │
00:19:37 verbose #20413 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="86" y1="424" x2="86" │
00:19:37 verbose #20414 > > │ y2="75"/>                                                                    │
00:19:37 verbose #20415 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="94" y1="424" x2="94" │
00:19:37 verbose #20416 > > │ y2="75"/>                                                                    │
00:19:37 verbose #20417 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="103" y1="424"        │
00:19:37 verbose #20418 > > │ x2="103" y2="75"/>                                                           │
00:19:37 verbose #20419 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="111" y1="424"        │
00:19:37 verbose #20420 > > │ x2="111" y2="75"/>                                                           │
00:19:37 verbose #20421 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:19:37 verbose #20422 > > │ x2="119" y2="75"/>                                                           │
00:19:37 verbose #20423 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="128" y1="424"        │
00:19:37 verbose #20424 > > │ x2="128" y2="75"/>                                                           │
00:19:37 verbose #20425 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="136" y1="424"        │
00:19:37 verbose #20426 > > │ x2="136" y2="75"/>                                                           │
00:19:37 verbose #20427 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="144" y1="424"        │
00:19:37 verbose #20428 > > │ x2="144" y2="75"/>                                                           │
00:19:37 verbose #20429 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="153" y1="424"        │
00:19:37 verbose #20430 > > │ x2="153" y2="75"/>                                                           │
00:19:37 verbose #20431 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="161" y1="424"        │
00:19:37 verbose #20432 > > │ x2="161" y2="75"/>                                                           │
00:19:37 verbose #20433 > > │ <line opacity="1" st...t" font-family="sans-serif"                           │
00:19:37 verbose #20434 > > │ font-size="9.67741935483871" opacity="1" fill="#FFFFFF">                     │
00:19:37 verbose #20435 > > │ 12.0                                                                         │
00:19:37 verbose #20436 > > │ </text>                                                                      │
00:19:37 verbose #20437 > > │ <polyline fill="none" opacity="1" stroke="#FFFFFF" stroke-width="1"          │
00:19:37 verbose #20438 > > │ points="585,76 590,76 "/>                                                    │
00:19:37 verbose #20439 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:19:37 verbose #20440 > > │ points="69,415 74,415 78,374 82,335 86,335 90,335 94,297 99,261 103,261      │
00:19:37 verbose #20441 > > │ 107,261 111,230 115,202 119,202 124,202 128,179 132,159 136,159 140,159      │
00:19:37 verbose #20442 > > │ 144,143 148,130 153,130 157,130 161,120 165,112 169,112 173,112 178,106      │
00:19:37 verbose #20443 > > │ 182,101 186,101 190,101 194,97 198,94 203,94 207,94 211,92 215,91 219,91     │
00:19:37 verbose #20444 > > │ 223,91 228,89 232,88 236,88 240,88 244,88 248,87 252,87 257,87 261,87 265,86 │
00:19:37 verbose #20445 > > │ 269,86 273,86 277,86 282,86 286,86 290,86 294,86 298,86 302,86 307,86 311,86 │
00:19:37 verbose #20446 > > │ 315,86 319,86 323,86 327,86 331,85 336,85 340,85 344,85 348,85 352,85 356,85 │
00:19:37 verbose #20447 > > │ 361,85 365,85 369,85 373,85 377,85 381,85 386,85 390,85 394,85 398,85 402,85 │
00:19:37 verbose #20448 > > │ 406,85 410,85 415,85 419,85 423,85 427,85 431,85 435,85 440,85 444,85 448,85 │
00:19:37 verbose #20449 > > │ 452,85 456,85 460,85 465,85 469,85 473,85 477,85 481,85 485,85 490,85 494,85 │
00:19:37 verbose #20450 > > │ 498,85 502,85 506,85 510,85 514,85 519,85 523,85 527,85 531,85 535,85 539,85 │
00:19:37 verbose #20451 > > │ 544,85 548,85 552,85 556,85 560,85 564,85 569,85 "/>                         │
00:19:37 verbose #20452 > > │ <rect x="410" y="235" width="170" height="30" opacity="1" fill="none"        │
00:19:37 verbose #20453 > > │ stroke="#FFFFFF"/>                                                           │
00:19:37 verbose #20454 > > │ <text x="450" y="245" dy="0.76em" text-anchor="start"                        │
00:19:37 verbose #20455 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:19:37 verbose #20456 > > │ fill="#FFFFFF">                                                              │
00:19:37 verbose #20457 > > │ velocity of bike (m/s)                                                       │
00:19:37 verbose #20458 > > │ </text>                                                                      │
00:19:37 verbose #20459 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:19:37 verbose #20460 > > │ points="420,250 440,250 "/>                                                  │
00:19:37 verbose #20461 > > │ </svg>                                                                       │
00:19:37 verbose #20462 > > │                                                                              │
00:19:37 verbose #20463 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:37 verbose #20464 > >
00:19:37 verbose #20465 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:37 verbose #20466 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:37 verbose #20467 > > │ ### velocity_ftv                                                             │
00:19:37 verbose #20468 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:37 verbose #20469 > >
00:19:37 verbose #20470 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:37 verbose #20471 > > inl newton_second_tv m fs (t, v0) =
00:19:37 verbose #20472 > >     inl f_net = fs |> listm.map (fun f => f (t, v0)) |> listm'.sum
00:19:37 verbose #20473 > >     inl acc = f_net / m
00:19:37 verbose #20474 > >     1, acc
00:19:37 verbose #20475 > >
00:19:37 verbose #20476 > > inl update_tv dt m fs (t, v0) =
00:19:37 verbose #20477 > >     inl dtdt, dvdt = newton_second_tv m fs (t, v0)
00:19:37 verbose #20478 > >     t + dtdt * dt, v0 + dvdt * dt
00:19:37 verbose #20479 > >
00:19:37 verbose #20480 > > inl velocity_ftv dt m tv0 fs t =
00:19:37 verbose #20481 > >     stream.iterate (join update_tv dt m fs) tv0
00:19:37 verbose #20482 > >     |> stream.try_item (t / dt |> math.round |> abs)
00:19:37 verbose #20483 > >     |> optionm.map snd
00:19:37 verbose #20484 > >     |> optionm'.default_value 0
00:19:38 verbose #20485 > 00:19:37   debug #1137 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fb330b1c26ba7cccf749e5ac9ab861b60028abae2bc4a2f60c3103158127d4b2/main.spi
00:19:38 verbose #20486 > >
00:19:38 verbose #20487 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:38 verbose #20488 > > //// test
00:19:38 verbose #20489 > >
00:19:38 verbose #20490 > > inl x = am'.init_series 0 100 0.1
00:19:38 verbose #20491 > > inl y =
00:19:38 verbose #20492 > >     x
00:19:38 verbose #20493 > >     |> am'.map_base (
00:19:38 verbose #20494 > >         velocity_ftv 0.1 20 (dyn (0, 0)) [[ fun (t, _) => pedal_coast t; fun (_,
00:19:38 verbose #20495 > > v) => f_air 2 1.225 0.5 v ]]
00:19:38 verbose #20496 > >     )
00:19:38 verbose #20497 > > "pedaling and coasting with air", "time (s)", "", ;[[ "velocity of bike (m/s)",
00:19:38 verbose #20498 > > x, y ]]
00:19:38 verbose #20499 > 00:19:37   debug #1138 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5237935cef7c8c2cd9b66da7603fef6d8d0433a19547d3ec203aa90db317ce01/main.spi
00:19:38 verbose #20500 > >
00:19:38 verbose #20501 > > ╭─[ 601.05ms - return value ]──────────────────────────────────────────────────╮
00:19:38 verbose #20502 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:19:38 verbose #20503 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:19:38 verbose #20504 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:19:38 verbose #20505 > > │ stroke="none"/>                                                              │
00:19:38 verbose #20506 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:19:38 verbose #20507 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:19:38 verbose #20508 > > │ fill="#FFFFFF">                                                              │
00:19:38 verbose #20509 > > │ pedaling and coasting with air                                               │
00:19:38 verbose #20510 > > │ </text>                                                                      │
00:19:38 verbose #20511 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │
00:19:38 verbose #20512 > > │ y2="75"/>                                                                    │
00:19:38 verbose #20513 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:19:38 verbose #20514 > > │ y2="75"/>                                                                    │
00:19:38 verbose #20515 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │
00:19:38 verbose #20516 > > │ y2="75"/>                                                                    │
00:19:38 verbose #20517 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │
00:19:38 verbose #20518 > > │ y2="75"/>                                                                    │
00:19:38 verbose #20519 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="99" y1="424" x2="99" │
00:19:38 verbose #20520 > > │ y2="75"/>                                                                    │
00:19:38 verbose #20521 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="109" y1="424"        │
00:19:38 verbose #20522 > > │ x2="109" y2="75"/>                                                           │
00:19:38 verbose #20523 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:19:38 verbose #20524 > > │ x2="119" y2="75"/>                                                           │
00:19:38 verbose #20525 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="129" y1="424"        │
00:19:38 verbose #20526 > > │ x2="129" y2="75"/>                                                           │
00:19:38 verbose #20527 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="139" y1="424"        │
00:19:38 verbose #20528 > > │ x2="139" y2="75"/>                                                           │
00:19:38 verbose #20529 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="149" y1="424"        │
00:19:38 verbose #20530 > > │ x2="149" y2="75"/>                                                           │
00:19:38 verbose #20531 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="159" y1="424"        │
00:19:38 verbose #20532 > > │ x2="159" y2="75"/>                                                           │
00:19:38 verbose #20533 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="169" y1="424"        │
00:19:38 verbose #20534 > > │ x2="169" y2="75"/>                                                           │
00:19:38 verbose #20535 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="179" y1="424"        │
00:19:38 verbose #20536 > > │ x2="179" y2="75"/>                                                           │
00:19:38 verbose #20537 > > │ <li... 497,128 497,126 498,125 498,123 499,122 499,121 500,119 500,118       │
00:19:38 verbose #20538 > > │ 501,117 501,116 502,114 502,113 503,112 503,111 504,110 504,109 505,108      │
00:19:38 verbose #20539 > > │ 505,107 506,106 506,105 507,104 507,103 508,102 508,101 509,100 509,99       │
00:19:38 verbose #20540 > > │ 510,98 510,98 511,97 511,96 512,95 512,94 513,94 513,93 514,92 514,92 515,91 │
00:19:38 verbose #20541 > > │ 515,90 516,90 516,89 517,88 517,88 518,87 518,87 519,86 519,85 520,89 520,93 │
00:19:38 verbose #20542 > > │ 521,97 521,100 522,104 522,107 523,110 523,114 524,117 524,120 525,123       │
00:19:38 verbose #20543 > > │ 525,126 526,129 526,132 527,135 527,137 528,140 528,143 529,145 529,148      │
00:19:38 verbose #20544 > > │ 530,150 530,153 531,155 531,158 532,160 532,162 533,165 533,167 534,169      │
00:19:38 verbose #20545 > > │ 534,171 535,173 535,175 536,177 536,179 537,181 537,183 538,185 538,187      │
00:19:38 verbose #20546 > > │ 539,189 539,190 540,192 540,194 541,196 541,197 542,199 542,201 543,202      │
00:19:38 verbose #20547 > > │ 543,204 544,205 544,207 545,208 545,210 546,211 546,213 547,214 547,216      │
00:19:38 verbose #20548 > > │ 548,217 548,219 549,220 549,221 550,223 550,224 551,225 551,226 552,228      │
00:19:38 verbose #20549 > > │ 552,229 553,230 553,231 554,232 554,234 555,235 555,236 556,237 556,238      │
00:19:38 verbose #20550 > > │ 557,239 557,240 558,241 558,242 559,243 559,245 560,246 560,247 561,248      │
00:19:38 verbose #20551 > > │ 561,249 562,249 562,250 563,251 563,252 564,253 564,254 565,255 565,256      │
00:19:38 verbose #20552 > > │ 566,257 566,258 567,259 567,259 568,260 568,261 569,262 "/>                  │
00:19:38 verbose #20553 > > │ <rect x="410" y="235" width="170" height="30" opacity="1" fill="none"        │
00:19:38 verbose #20554 > > │ stroke="#FFFFFF"/>                                                           │
00:19:38 verbose #20555 > > │ <text x="450" y="245" dy="0.76em" text-anchor="start"                        │
00:19:38 verbose #20556 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:19:38 verbose #20557 > > │ fill="#FFFFFF">                                                              │
00:19:38 verbose #20558 > > │ velocity of bike (m/s)                                                       │
00:19:38 verbose #20559 > > │ </text>                                                                      │
00:19:38 verbose #20560 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:19:38 verbose #20561 > > │ points="420,250 440,250 "/>                                                  │
00:19:38 verbose #20562 > > │ </svg>                                                                       │
00:19:38 verbose #20563 > > │                                                                              │
00:19:38 verbose #20564 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:38 verbose #20565 > >
00:19:38 verbose #20566 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:38 verbose #20567 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:38 verbose #20568 > > │ ### velocity_ftxv                                                            │
00:19:38 verbose #20569 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:38 verbose #20570 > >
00:19:38 verbose #20571 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:38 verbose #20572 > > nominal state_1d = time * position * velocity
00:19:38 verbose #20573 > > nominal rrr = f64 * f64 * f64
00:19:38 verbose #20574 > >
00:19:38 verbose #20575 > > inl newton_second_1d m fs (state_1d (t, x0, v0)) =
00:19:38 verbose #20576 > >     inl f_net = fs |> listm.map (fun f => f (state_1d (t, x0, v0))) |>
00:19:38 verbose #20577 > > listm'.sum
00:19:38 verbose #20578 > >     inl acc = f_net / m
00:19:38 verbose #20579 > >     rrr (1f64, v0, acc)
00:19:38 verbose #20580 > >
00:19:38 verbose #20581 > > inl euler_1d dt deriv (state_1d (t0, x0, v0) as t) =
00:19:38 verbose #20582 > >     inl (rrr (_, _, dvdt)) = deriv t
00:19:38 verbose #20583 > >     inl t1 = t0 + dt
00:19:38 verbose #20584 > >     inl x1 = x0 + v0 * dt
00:19:38 verbose #20585 > >     inl v1 = v0 + dvdt * dt
00:19:38 verbose #20586 > >     state_1d (t1, x1, v1)
00:19:38 verbose #20587 > >
00:19:38 verbose #20588 > > inl update_txv dt m fs =
00:19:38 verbose #20589 > >     newton_second_1d m fs |> euler_1d dt
00:19:38 verbose #20590 > >
00:19:38 verbose #20591 > > inl states_txv dt m txv0 fs =
00:19:38 verbose #20592 > >     seq.iterate_ (update_txv dt m fs) txv0
00:19:38 verbose #20593 > >
00:19:38 verbose #20594 > > inl velocity_1d sts t =
00:19:38 verbose #20595 > >     inl (state_1d (t0, _, _)) = sts 0
00:19:38 verbose #20596 > >     inl (state_1d (t1, _, _)) = sts 1
00:19:38 verbose #20597 > >     inl dt = t1 - t0
00:19:38 verbose #20598 > >     inl num_steps = t / dt |> math.round |> abs
00:19:38 verbose #20599 > >     inl (state_1d (_, _, v0)) = sts num_steps
00:19:38 verbose #20600 > >     v0
00:19:38 verbose #20601 > >
00:19:38 verbose #20602 > > inl velocity_ftxv dt m txv0 fs =
00:19:38 verbose #20603 > >     states_txv dt m txv0 fs |> velocity_1d
00:19:38 verbose #20604 > >
00:19:38 verbose #20605 > > inl position_1d sts t =
00:19:38 verbose #20606 > >     inl (state_1d (t0, _, _)) = sts 0
00:19:38 verbose #20607 > >     inl (state_1d (t1, _, _)) = sts 1
00:19:38 verbose #20608 > >     inl dt = t1 - t0
00:19:38 verbose #20609 > >     inl num_steps = t / dt |> math.round |> abs
00:19:38 verbose #20610 > >     inl (state_1d (_, x0, _)) = sts num_steps
00:19:38 verbose #20611 > >     x0
00:19:38 verbose #20612 > >
00:19:38 verbose #20613 > > inl position_ftxv dt m txv0 fs =
00:19:38 verbose #20614 > >     states_txv dt m txv0 fs |> position_1d
00:19:38 verbose #20615 > >
00:19:38 verbose #20616 > > inl spring_force k (state_1d (_, x0, _)) =
00:19:38 verbose #20617 > >     -k * x0
00:19:39 verbose #20618 > 00:19:38   debug #1139 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5b26059111ed60409ab4be3e3d578c9f88f0ed4e2ab0827652530723a1471c39/main.spi
00:19:39 verbose #20619 > >
00:19:39 verbose #20620 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:39 verbose #20621 > > //// test
00:19:39 verbose #20622 > >
00:19:39 verbose #20623 > > inl damped_ho_forces () =
00:19:39 verbose #20624 > >     [[
00:19:39 verbose #20625 > >         spring_force 0.8
00:19:39 verbose #20626 > >         fun (state_1d (_, _, v0)) => f_air 2 1.225 (pi * math.square 0.02) v0
00:19:39 verbose #20627 > >         fun _ => -0.0027 * 9.80665
00:19:39 verbose #20628 > >     ]]
00:19:39 verbose #20629 > >
00:19:39 verbose #20630 > > inl damped_ho_states () =
00:19:39 verbose #20631 > >     states_txv 0.001 0.0027 (state_1d (0, 0.1, 0)) (damped_ho_forces ())
00:19:39 verbose #20632 > >
00:19:39 verbose #20633 > > inl pingpong_position t =
00:19:39 verbose #20634 > >     position_ftxv 0.001 0.0027 (state_1d (0, 0.1, 0)) (damped_ho_forces ()) t
00:19:39 verbose #20635 > >
00:19:39 verbose #20636 > > inl x = am'.init_series 0 3 0.01
00:19:39 verbose #20637 > > inl y = x |> am'.map_base pingpong_position
00:19:39 verbose #20638 > > "ping pong ball on a slinky", "time (s)", "", ;[[ "position (m)", x, y ]]
00:19:39 verbose #20639 > 00:19:38   debug #1140 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e39341c86ea083ff2e6a49a337d7d1932da50be56a679b9194d19c3fb2effd11/main.spi
00:19:39 verbose #20640 > >
00:19:39 verbose #20641 > > ╭─[ 437.78ms - return value ]──────────────────────────────────────────────────╮
00:19:39 verbose #20642 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:19:39 verbose #20643 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:19:39 verbose #20644 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:19:39 verbose #20645 > > │ stroke="none"/>                                                              │
00:19:39 verbose #20646 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:19:39 verbose #20647 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:19:39 verbose #20648 > > │ fill="#FFFFFF">                                                              │
00:19:39 verbose #20649 > > │ ping pong ball on a slinky                                                   │
00:19:39 verbose #20650 > > │ </text>                                                                      │
00:19:39 verbose #20651 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="61" y1="424" x2="61" │
00:19:39 verbose #20652 > > │ y2="75"/>                                                                    │
00:19:39 verbose #20653 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:19:39 verbose #20654 > > │ y2="75"/>                                                                    │
00:19:39 verbose #20655 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="78" y1="424" x2="78" │
00:19:39 verbose #20656 > > │ y2="75"/>                                                                    │
00:19:39 verbose #20657 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="86" y1="424" x2="86" │
00:19:39 verbose #20658 > > │ y2="75"/>                                                                    │
00:19:39 verbose #20659 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="94" y1="424" x2="94" │
00:19:39 verbose #20660 > > │ y2="75"/>                                                                    │
00:19:39 verbose #20661 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="103" y1="424"        │
00:19:39 verbose #20662 > > │ x2="103" y2="75"/>                                                           │
00:19:39 verbose #20663 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="111" y1="424"        │
00:19:39 verbose #20664 > > │ x2="111" y2="75"/>                                                           │
00:19:39 verbose #20665 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:19:39 verbose #20666 > > │ x2="119" y2="75"/>                                                           │
00:19:39 verbose #20667 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="128" y1="424"        │
00:19:39 verbose #20668 > > │ x2="128" y2="75"/>                                                           │
00:19:39 verbose #20669 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="136" y1="424"        │
00:19:39 verbose #20670 > > │ x2="136" y2="75"/>                                                           │
00:19:39 verbose #20671 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="144" y1="424"        │
00:19:39 verbose #20672 > > │ x2="144" y2="75"/>                                                           │
00:19:39 verbose #20673 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="153" y1="424"        │
00:19:39 verbose #20674 > > │ x2="153" y2="75"/>                                                           │
00:19:39 verbose #20675 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="161" y1="424"        │
00:19:39 verbose #20676 > > │ x2="161" y2="75"/>                                                           │
00:19:39 verbose #20677 > > │ <line o...88 332,305 334,321 336,334 337,346 339,354 341,360 342,363 344,362 │
00:19:39 verbose #20678 > > │ 346,359 347,352 349,342 351,330 352,316 354,300 356,283 357,265 359,247      │
00:19:39 verbose #20679 > > │ 361,229 362,212 364,197 366,183 367,172 369,163 371,156 372,153 374,153      │
00:19:39 verbose #20680 > > │ 376,156 377,161 379,170 381,181 382,194 384,209 386,226 387,243 389,260      │
00:19:39 verbose #20681 > > │ 391,277 392,294 394,309 396,323 397,335 399,344 401,351 402,355 404,356      │
00:19:39 verbose #20682 > > │ 406,354 407,349 409,341 410,331 412,319 414,305 415,289 417,273 419,256      │
00:19:39 verbose #20683 > > │ 420,239 422,223 424,208 425,194 427,182 429,172 430,165 432,161 434,159      │
00:19:39 verbose #20684 > > │ 435,160 437,164 439,171 440,180 442,192 444,205 445,220 447,235 449,252      │
00:19:39 verbose #20685 > > │ 450,268 452,284 454,299 455,313 457,325 459,335 460,342 462,347 464,350      │
00:19:39 verbose #20686 > > │ 465,349 467,346 469,340 470,332 472,321 474,309 475,295 477,280 479,264      │
00:19:39 verbose #20687 > > │ 480,248 482,232 484,217 485,204 487,192 489,181 490,173 492,168 494,165      │
00:19:39 verbose #20688 > > │ 495,165 497,167 499,172 500,180 502,189 504,201 505,215 507,229 509,244      │
00:19:39 verbose #20689 > > │ 510,260 512,275 514,290 515,303 517,316 519,326 520,335 522,341 524,344      │
00:19:39 verbose #20690 > > │ 525,345 527,343 529,339 530,332 532,323 534,312 535,300 537,286 539,271      │
00:19:39 verbose #20691 > > │ 540,256 542,241 544,226 545,213 547,200 549,190 550,181 552,175 554,171      │
00:19:39 verbose #20692 > > │ 555,169 557,170 559,174 560,180 562,188 564,198 565,210 567,223 569,238 "/>  │
00:19:39 verbose #20693 > > │ <rect x="464" y="235" width="116" height="30" opacity="1" fill="none"        │
00:19:39 verbose #20694 > > │ stroke="#FFFFFF"/>                                                           │
00:19:39 verbose #20695 > > │ <text x="504" y="245" dy="0.76em" text-anchor="start"                        │
00:19:39 verbose #20696 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:19:39 verbose #20697 > > │ fill="#FFFFFF">                                                              │
00:19:39 verbose #20698 > > │ position (m)                                                                 │
00:19:39 verbose #20699 > > │ </text>                                                                      │
00:19:39 verbose #20700 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:19:39 verbose #20701 > > │ points="474,250 494,250 "/>                                                  │
00:19:39 verbose #20702 > > │ </svg>                                                                       │
00:19:39 verbose #20703 > > │                                                                              │
00:19:39 verbose #20704 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:39 verbose #20705 > >
00:19:39 verbose #20706 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:39 verbose #20707 > > //// test
00:19:39 verbose #20708 > >
00:19:39 verbose #20709 > > inl pingpong_velocity t =
00:19:39 verbose #20710 > >     velocity_ftxv 0.001 0.0027 (state_1d (0, 0.1, 0)) (damped_ho_forces ()) t
00:19:39 verbose #20711 > >
00:19:39 verbose #20712 > > inl x = am'.init_series 0 3 0.01
00:19:39 verbose #20713 > > inl y = x |> am'.map_base pingpong_velocity
00:19:39 verbose #20714 > > "ping pong ball on a slinky", "time (s)", "", ;[[ "velocity (m/s)", x, y ]]
00:19:39 verbose #20715 > 00:19:39   debug #1141 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a8625e45963294b0e9f3aadbbb4a23b64014e8b401ced3383b278024e8b6e221/main.spi
00:19:40 verbose #20716 > >
00:19:40 verbose #20717 > > ╭─[ 427.67ms - return value ]──────────────────────────────────────────────────╮
00:19:40 verbose #20718 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:19:40 verbose #20719 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:19:40 verbose #20720 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:19:40 verbose #20721 > > │ stroke="none"/>                                                              │
00:19:40 verbose #20722 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:19:40 verbose #20723 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:19:40 verbose #20724 > > │ fill="#FFFFFF">                                                              │
00:19:40 verbose #20725 > > │ ping pong ball on a slinky                                                   │
00:19:40 verbose #20726 > > │ </text>                                                                      │
00:19:40 verbose #20727 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="61" y1="424" x2="61" │
00:19:40 verbose #20728 > > │ y2="75"/>                                                                    │
00:19:40 verbose #20729 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:19:40 verbose #20730 > > │ y2="75"/>                                                                    │
00:19:40 verbose #20731 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="78" y1="424" x2="78" │
00:19:40 verbose #20732 > > │ y2="75"/>                                                                    │
00:19:40 verbose #20733 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="86" y1="424" x2="86" │
00:19:40 verbose #20734 > > │ y2="75"/>                                                                    │
00:19:40 verbose #20735 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="94" y1="424" x2="94" │
00:19:40 verbose #20736 > > │ y2="75"/>                                                                    │
00:19:40 verbose #20737 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="103" y1="424"        │
00:19:40 verbose #20738 > > │ x2="103" y2="75"/>                                                           │
00:19:40 verbose #20739 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="111" y1="424"        │
00:19:40 verbose #20740 > > │ x2="111" y2="75"/>                                                           │
00:19:40 verbose #20741 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:19:40 verbose #20742 > > │ x2="119" y2="75"/>                                                           │
00:19:40 verbose #20743 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="128" y1="424"        │
00:19:40 verbose #20744 > > │ x2="128" y2="75"/>                                                           │
00:19:40 verbose #20745 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="136" y1="424"        │
00:19:40 verbose #20746 > > │ x2="136" y2="75"/>                                                           │
00:19:40 verbose #20747 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="144" y1="424"        │
00:19:40 verbose #20748 > > │ x2="144" y2="75"/>                                                           │
00:19:40 verbose #20749 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="153" y1="424"        │
00:19:40 verbose #20750 > > │ x2="153" y2="75"/>                                                           │
00:19:40 verbose #20751 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="161" y1="424"        │
00:19:40 verbose #20752 > > │ x2="161" y2="75"/>                                                           │
00:19:40 verbose #20753 > > │ <line o... 332,343 334,332 336,319 337,304 339,287 341,269 342,250 344,231   │
00:19:40 verbose #20754 > > │ 346,212 347,195 349,178 351,164 352,153 354,144 356,138 357,136 359,136      │
00:19:40 verbose #20755 > > │ 361,140 362,147 364,157 366,169 367,183 369,199 371,216 372,234 374,253      │
00:19:40 verbose #20756 > > │ 376,271 377,288 379,304 381,318 382,330 384,339 386,346 387,349 389,349      │
00:19:40 verbose #20757 > > │ 391,346 392,340 394,332 396,321 397,307 399,292 401,276 402,258 404,241      │
00:19:40 verbose #20758 > > │ 406,223 407,206 409,190 410,176 412,164 414,154 415,148 417,144 419,143      │
00:19:40 verbose #20759 > > │ 420,145 422,150 424,158 425,168 427,180 429,194 430,210 432,227 434,244      │
00:19:40 verbose #20760 > > │ 435,261 437,278 439,293 440,307 442,320 444,330 445,337 447,341 449,343      │
00:19:40 verbose #20761 > > │ 450,342 452,338 454,331 455,322 457,310 459,297 460,282 462,266 464,249      │
00:19:40 verbose #20762 > > │ 465,233 467,216 469,201 470,187 472,174 474,164 475,156 477,151 479,149      │
00:19:40 verbose #20763 > > │ 480,149 482,153 484,159 485,167 487,178 489,190 490,204 492,220 494,236      │
00:19:40 verbose #20764 > > │ 495,252 497,268 499,283 500,297 502,310 504,320 505,329 507,334 509,337      │
00:19:40 verbose #20765 > > │ 510,337 512,335 514,330 515,322 517,312 519,300 520,287 522,272 524,257      │
00:19:40 verbose #20766 > > │ 525,241 527,226 529,210 530,196 532,184 534,173 535,164 537,158 539,154      │
00:19:40 verbose #20767 > > │ 540,154 542,155 544,160 545,167 547,176 549,187 550,199 552,213 554,228      │
00:19:40 verbose #20768 > > │ 555,244 557,259 559,274 560,288 562,301 564,312 565,321 567,327 569,332 "/>  │
00:19:40 verbose #20769 > > │ <rect x="454" y="235" width="126" height="30" opacity="1" fill="none"        │
00:19:40 verbose #20770 > > │ stroke="#FFFFFF"/>                                                           │
00:19:40 verbose #20771 > > │ <text x="494" y="245" dy="0.76em" text-anchor="start"                        │
00:19:40 verbose #20772 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:19:40 verbose #20773 > > │ fill="#FFFFFF">                                                              │
00:19:40 verbose #20774 > > │ velocity (m/s)                                                               │
00:19:40 verbose #20775 > > │ </text>                                                                      │
00:19:40 verbose #20776 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:19:40 verbose #20777 > > │ points="464,250 484,250 "/>                                                  │
00:19:40 verbose #20778 > > │ </svg>                                                                       │
00:19:40 verbose #20779 > > │                                                                              │
00:19:40 verbose #20780 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:40 verbose #20781 > >
00:19:40 verbose #20782 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:40 verbose #20783 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:40 verbose #20784 > > │ ### shift                                                                    │
00:19:40 verbose #20785 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:40 verbose #20786 > >
00:19:40 verbose #20787 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:40 verbose #20788 > > type update_function s = s -> s
00:19:40 verbose #20789 > >
00:19:40 verbose #20790 > > type differential_equation s ds = s -> ds
00:19:40 verbose #20791 > >
00:19:40 verbose #20792 > > type numerical_method s ds = differential_equation s ds -> update_function s
00:19:40 verbose #20793 > >
00:19:40 verbose #20794 > >
00:19:40 verbose #20795 > > inl solver method =
00:19:40 verbose #20796 > >     method >> seq.iterate
00:19:40 verbose #20797 > > inl solver' method =
00:19:40 verbose #20798 > >     method >> seq.iterate'
00:19:40 verbose #20799 > > inl solver_ method =
00:19:40 verbose #20800 > >     method >> seq.iterate_
00:19:40 verbose #20801 > >
00:19:40 verbose #20802 > >
00:19:40 verbose #20803 > > inl euler_cromer_1d dt deriv (state_1d (t0, x0, v0) as t) =
00:19:40 verbose #20804 > >     inl (rrr (_, _, dvdt)) = deriv t
00:19:40 verbose #20805 > >     inl t1 = t0 + dt
00:19:40 verbose #20806 > >     inl v1 = v0 + dvdt * dt
00:19:40 verbose #20807 > >     inl x1 = x0 + v1 * dt
00:19:40 verbose #20808 > >     state_1d (t1, x1, v1)
00:19:40 verbose #20809 > >
00:19:40 verbose #20810 > > inl update_txv_ec dt m fs =
00:19:40 verbose #20811 > >     euler_cromer_1d dt (newton_second_1d m fs)
00:19:40 verbose #20812 > >
00:19:40 verbose #20813 > > prototype (+++) ds : ds -> ds -> ds
00:19:40 verbose #20814 > > prototype scale ds : f64 -> ds -> ds
00:19:40 verbose #20815 > >
00:19:40 verbose #20816 > > instance (+++) rrr = fun (rrr (dtdt0, dxdt0, dvdt0)) (rrr (dtdt1, dxdt1, dvdt1))
00:19:40 verbose #20817 > > =>
00:19:40 verbose #20818 > >     rrr (dtdt0 + dtdt1, dxdt0 + dxdt1, dvdt0 + dvdt1)
00:19:40 verbose #20819 > >
00:19:40 verbose #20820 > > instance scale rrr = fun w (rrr (dtdt0, dxdt0, dvdt0)) =>
00:19:40 verbose #20821 > >     rrr (w * dtdt0, w * dxdt0, w * dvdt0)
00:19:40 verbose #20822 > >
00:19:40 verbose #20823 > > prototype shift s : forall ds. f64 -> ds -> s -> s
00:19:40 verbose #20824 > >
00:19:40 verbose #20825 > > instance shift state_1d = fun dt ds (state_1d (t, x, v)) =>
00:19:40 verbose #20826 > >     inl dtdt, dxdt, dvdt =
00:19:40 verbose #20827 > >         real
00:19:40 verbose #20828 > >             match ds with
00:19:40 verbose #20829 > >             | rrr x => x
00:19:40 verbose #20830 > >             | state_1d x => x
00:19:40 verbose #20831 > >     state_1d (t + dtdt * dt, x + dxdt * dt, v + dvdt * dt)
00:19:40 verbose #20832 > >
00:19:40 verbose #20833 > > inl euler dt deriv st0 =
00:19:40 verbose #20834 > >     shift dt (deriv st0) st0
00:19:40 verbose #20835 > >
00:19:40 verbose #20836 > > inl runge_kutta_4 dt deriv st0 =
00:19:40 verbose #20837 > >     inl m0 = deriv st0
00:19:40 verbose #20838 > >     inl m1 = deriv (shift (dt / 2) m0 st0)
00:19:40 verbose #20839 > >     inl m2 = deriv (shift (dt / 2) m1 st0)
00:19:40 verbose #20840 > >     inl m3 = deriv (shift dt m2 st0)
00:19:40 verbose #20841 > >     shift (dt / 6) (m0 +++ m1 +++ m1 +++ m2 +++ m2 +++ m3) st0
00:19:40 verbose #20842 > >
00:19:40 verbose #20843 > > inl exponential (_, x0, v0) =
00:19:40 verbose #20844 > >     1f64, v0, x0
00:19:40 verbose #20845 > >
00:19:40 verbose #20846 > > inl of_state_1d (state_1d (t, x, v)) =
00:19:40 verbose #20847 > >     t, x, v
00:19:40 verbose #20848 > 00:19:39   debug #1142 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2b177fa6e846fd6fe8c835d2b919f65eb7605ccdda9636c47e35dfa042b3ac26/main.spi
00:19:40 verbose #20849 > >
00:19:40 verbose #20850 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:40 verbose #20851 > > //// test
00:19:40 verbose #20852 > >
00:19:40 verbose #20853 > > solver (euler 0.01) (of_state_1d >> exponential >> state_1d) (state_1d (0, 1,
00:19:40 verbose #20854 > > 1)) 800i32
00:19:40 verbose #20855 > > |> _assert_eq (state_1d (7.999999999999874, 2864.8311229272326,
00:19:40 verbose #20856 > > 2864.8311229272326))
00:19:40 verbose #20857 > >
00:19:40 verbose #20858 > > solver (euler_cromer_1d 0.1) (of_state_1d >> exponential >> rrr) (state_1d (0,
00:19:40 verbose #20859 > > 1, 1)) 80i32
00:19:40 verbose #20860 > > |> _assert_eq (state_1d (7.999999999999988, 3043.379244966009,
00:19:40 verbose #20861 > > 2895.0121485099035))
00:19:40 verbose #20862 > >
00:19:40 verbose #20863 > > solver (runge_kutta_4 1) (of_state_1d >> exponential >> rrr) (state_1d (0, 1,
00:19:40 verbose #20864 > > 1)) 8i32
00:19:40 verbose #20865 > > |> _assert_eq (state_1d (8.0, 2894.789038540849, 2894.789038540849))
00:19:40 verbose #20866 > 00:19:40   debug #1143 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a84ed6aa97453ce0473d60123c8a13cc855b4896005faedfe86e4be5f38079c9/main.spi
00:19:41 verbose #20867 > >
00:19:41 verbose #20868 > > ╭─[ 616.81ms - stdout ]────────────────────────────────────────────────────────╮
00:19:41 verbose #20869 > > │ assert_eq / actual: struct (8.0, 2864.831123, 2864.831123) / expected:       │
00:19:41 verbose #20870 > > │ struct (8.0, 2864.831123, 2864.831123)                                       │
00:19:41 verbose #20871 > > │ assert_eq / actual: struct (8.0, 3043.379245, 2895.012149) / expected:       │
00:19:41 verbose #20872 > > │ struct (8.0, 3043.379245, 2895.012149)                                       │
00:19:41 verbose #20873 > > │ assert_eq / actual: struct (8.0, 2894.789039, 2894.789039) / expected:       │
00:19:41 verbose #20874 > > │ struct (8.0, 2894.789039, 2894.789039)                                       │
00:19:41 verbose #20875 > > │                                                                              │
00:19:41 verbose #20876 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:41 verbose #20877 > >
00:19:41 verbose #20878 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:41 verbose #20879 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:41 verbose #20880 > > │ ### vec                                                                      │
00:19:41 verbose #20881 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:41 verbose #20882 > >
00:19:41 verbose #20883 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:41 verbose #20884 > > type vec =
00:19:41 verbose #20885 > >     {
00:19:41 verbose #20886 > >         x : f64
00:19:41 verbose #20887 > >         y : f64
00:19:41 verbose #20888 > >         z : f64
00:19:41 verbose #20889 > >     }
00:19:41 verbose #20890 > >
00:19:41 verbose #20891 > > inl vec x y z : vec =
00:19:41 verbose #20892 > >     { x y z }
00:19:41 verbose #20893 > 00:19:40   debug #1144 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c28cee7ab3252539f022429fa878866144d2047ab4135421fc603bcd098c50f1/main.spi
00:19:41 verbose #20894 > >
00:19:41 verbose #20895 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:41 verbose #20896 > > //// test
00:19:41 verbose #20897 > >
00:19:41 verbose #20898 > > vec 1 2 3 .z
00:19:41 verbose #20899 > > |> _assert_eq 3
00:19:41 verbose #20900 > 00:19:41   debug #1145 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/32fa5d5587282464522590037b07108ac5de4837904f39dfe01d3348422df2f2/main.spi
00:19:41 verbose #20901 > >
00:19:41 verbose #20902 > > ╭─[ 395.31ms - stdout ]────────────────────────────────────────────────────────╮
00:19:41 verbose #20903 > > │ assert_eq / actual: 3.0 / expected: 3.0                                      │
00:19:41 verbose #20904 > > │                                                                              │
00:19:41 verbose #20905 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:41 verbose #20906 > >
00:19:41 verbose #20907 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:41 verbose #20908 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:41 verbose #20909 > > │ #### consts                                                                  │
00:19:41 verbose #20910 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:41 verbose #20911 > >
00:19:41 verbose #20912 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:41 verbose #20913 > > inl i_hat () = vec 1 0 0
00:19:41 verbose #20914 > > inl j_hat () = vec 0 1 0
00:19:41 verbose #20915 > > inl k_hat () = vec 0 0 1
00:19:41 verbose #20916 > > inl zero_vec () = vec 0 0 0
00:19:42 verbose #20917 > 00:19:41   debug #1146 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f788cd1834a9711c3513641fb8cdd0a4c456c1559dd1074498fbaa5feff8304b/main.spi
00:19:42 verbose #20918 > >
00:19:42 verbose #20919 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:42 verbose #20920 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:42 verbose #20921 > > │ #### ^+^                                                                     │
00:19:42 verbose #20922 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:42 verbose #20923 > >
00:19:42 verbose #20924 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:42 verbose #20925 > > inl (^+^) (a : vec) (b : vec) =
00:19:42 verbose #20926 > >     vec (a.x + b.x) (a.y + b.y) (a.z + b.z)
00:19:42 verbose #20927 > 00:19:41   debug #1147 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9f74772cbec4124144d174a5ab9e4accccd6db003a3d1c6c93859f1b2777fce6/main.spi
00:19:42 verbose #20928 > >
00:19:42 verbose #20929 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:42 verbose #20930 > > //// test
00:19:42 verbose #20931 > >
00:19:42 verbose #20932 > > vec 1 2 3 ^+^ vec 4 5 6
00:19:42 verbose #20933 > > |> _assert_eq (vec 5 7 9)
00:19:42 verbose #20934 > 00:19:42   debug #1148 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5245ecfda5104d7d1d4df505c026d5b0b182d9e741a27e682da71bf5afd01137/main.spi
00:19:43 verbose #20935 > >
00:19:43 verbose #20936 > > ╭─[ 442.43ms - stdout ]────────────────────────────────────────────────────────╮
00:19:43 verbose #20937 > > │ assert_eq / actual: struct (5.0, 7.0, 9.0) / expected: struct (5.0, 7.0,     │
00:19:43 verbose #20938 > > │ 9.0)                                                                         │
00:19:43 verbose #20939 > > │                                                                              │
00:19:43 verbose #20940 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:43 verbose #20941 > >
00:19:43 verbose #20942 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:43 verbose #20943 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:43 verbose #20944 > > │ #### sum_vec                                                                 │
00:19:43 verbose #20945 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:43 verbose #20946 > >
00:19:43 verbose #20947 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:43 verbose #20948 > > inl sum_vec vs =
00:19:43 verbose #20949 > >     vs |> listm.fold (^+^) (zero_vec ())
00:19:43 verbose #20950 > 00:19:42   debug #1149 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3a67358f48b2ada0cc471184639b494e01dc0d23a7658e81fc425d664e785cf2/main.spi
00:19:43 verbose #20951 > >
00:19:43 verbose #20952 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:43 verbose #20953 > > //// test
00:19:43 verbose #20954 > >
00:19:43 verbose #20955 > > [[ vec 1 2 3; vec 4 5 6 ]]
00:19:43 verbose #20956 > > |> sum_vec
00:19:43 verbose #20957 > > |> _assert_eq (vec 5 7 9)
00:19:43 verbose #20958 > 00:19:43   debug #1150 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5442cf2c82771c1c0d111dc1153fc4641a89ff6577fb22786c2f1a32b7d058dd/main.spi
00:19:43 verbose #20959 > >
00:19:43 verbose #20960 > > ╭─[ 400.41ms - stdout ]────────────────────────────────────────────────────────╮
00:19:43 verbose #20961 > > │ assert_eq / actual: struct (5.0, 7.0, 9.0) / expected: struct (5.0, 7.0,     │
00:19:43 verbose #20962 > > │ 9.0)                                                                         │
00:19:43 verbose #20963 > > │                                                                              │
00:19:43 verbose #20964 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:43 verbose #20965 > >
00:19:43 verbose #20966 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:43 verbose #20967 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:43 verbose #20968 > > │ #### *^                                                                      │
00:19:43 verbose #20969 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:43 verbose #20970 > >
00:19:43 verbose #20971 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:43 verbose #20972 > > inl (*^) c { x y z } =
00:19:43 verbose #20973 > >     vec (c * x) (c * y) (c * z)
00:19:44 verbose #20974 > 00:19:43   debug #1151 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/92bdd32c44dfc258a439cf535819f813e68866fae2c7c54b9e6d3a32ebbd2965/main.spi
00:19:44 verbose #20975 > >
00:19:44 verbose #20976 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:44 verbose #20977 > > //// test
00:19:44 verbose #20978 > >
00:19:44 verbose #20979 > > 5 *^ vec 1 2 3
00:19:44 verbose #20980 > > |> _assert_eq (vec 5 10 15)
00:19:44 verbose #20981 > 00:19:43   debug #1152 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ece1631e00b9c319a9b09efcd9208271eca60f83141fdcbddbb06480581a15d1/main.spi
00:19:44 verbose #20982 > >
00:19:44 verbose #20983 > > ╭─[ 396.40ms - stdout ]────────────────────────────────────────────────────────╮
00:19:44 verbose #20984 > > │ assert_eq / actual: struct (5.0, 10.0, 15.0) / expected: struct (5.0, 10.0,  │
00:19:44 verbose #20985 > > │ 15.0)                                                                        │
00:19:44 verbose #20986 > > │                                                                              │
00:19:44 verbose #20987 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:44 verbose #20988 > >
00:19:44 verbose #20989 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:44 verbose #20990 > > //// test
00:19:44 verbose #20991 > >
00:19:44 verbose #20992 > > 3 *^ i_hat () ^+^ 4 *^ k_hat ()
00:19:44 verbose #20993 > > |> _assert_eq (vec 3 0 4)
00:19:44 verbose #20994 > 00:19:44   debug #1153 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8c11de930ff1bc25d289a930c42e23ff99f5670e28dc30fca88830e099e693fc/main.spi
00:19:45 verbose #20995 > >
00:19:45 verbose #20996 > > ╭─[ 367.21ms - stdout ]────────────────────────────────────────────────────────╮
00:19:45 verbose #20997 > > │ assert_eq / actual: struct (3.0, 0.0, 4.0) / expected: struct (3.0, 0.0,     │
00:19:45 verbose #20998 > > │ 4.0)                                                                         │
00:19:45 verbose #20999 > > │                                                                              │
00:19:45 verbose #21000 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:45 verbose #21001 > >
00:19:45 verbose #21002 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:45 verbose #21003 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:45 verbose #21004 > > │ #### ^*                                                                      │
00:19:45 verbose #21005 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:45 verbose #21006 > >
00:19:45 verbose #21007 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:45 verbose #21008 > > inl (^*) v c =
00:19:45 verbose #21009 > >     (*^) c v
00:19:45 verbose #21010 > 00:19:44   debug #1154 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/59889c51298a8d14ac9095651bef3494224035f7d740352b1bda6b044acdbc04/main.spi
00:19:45 verbose #21011 > >
00:19:45 verbose #21012 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:45 verbose #21013 > > //// test
00:19:45 verbose #21014 > >
00:19:45 verbose #21015 > > vec 1 2 3 ^* 5
00:19:45 verbose #21016 > > |> _assert_eq (vec 5 10 15)
00:19:45 verbose #21017 > 00:19:45   debug #1155 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2d380c606f15910da1731162281a3e40a8a089f146c35228494540187f7f9fe2/main.spi
00:19:45 verbose #21018 > >
00:19:45 verbose #21019 > > ╭─[ 427.89ms - stdout ]────────────────────────────────────────────────────────╮
00:19:45 verbose #21020 > > │ assert_eq / actual: struct (5.0, 10.0, 15.0) / expected: struct (5.0, 10.0,  │
00:19:45 verbose #21021 > > │ 15.0)                                                                        │
00:19:45 verbose #21022 > > │                                                                              │
00:19:45 verbose #21023 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:45 verbose #21024 > >
00:19:45 verbose #21025 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:45 verbose #21026 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:45 verbose #21027 > > │ #### ^/                                                                      │
00:19:45 verbose #21028 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:45 verbose #21029 > >
00:19:45 verbose #21030 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:45 verbose #21031 > > inl (^/) { x y z } c =
00:19:45 verbose #21032 > >     vec (x / c) (y / c) (z / c)
00:19:46 verbose #21033 > 00:19:45   debug #1156 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/378cd9b6f74661d3c712706d623d491ace2c75df3f746e352e2097ec029f7075/main.spi
00:19:46 verbose #21034 > >
00:19:46 verbose #21035 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:46 verbose #21036 > > //// test
00:19:46 verbose #21037 > >
00:19:46 verbose #21038 > > vec 1 2 3 ^/ 5
00:19:46 verbose #21039 > > |> _assert_eq (vec 0.2 0.4 0.6)
00:19:46 verbose #21040 > 00:19:45   debug #1157 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/552f59ec93780eb5201f3e7a180a14f817e5c8d9b9fb8b354f5122362ce9d150/main.spi
00:19:46 verbose #21041 > >
00:19:46 verbose #21042 > > ╭─[ 383.52ms - stdout ]────────────────────────────────────────────────────────╮
00:19:46 verbose #21043 > > │ assert_eq / actual: struct (0.2, 0.4, 0.6) / expected: struct (0.2, 0.4,     │
00:19:46 verbose #21044 > > │ 0.6)                                                                         │
00:19:46 verbose #21045 > > │                                                                              │
00:19:46 verbose #21046 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:46 verbose #21047 > >
00:19:46 verbose #21048 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:46 verbose #21049 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:46 verbose #21050 > > │ #### negate_vec                                                              │
00:19:46 verbose #21051 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:46 verbose #21052 > >
00:19:46 verbose #21053 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:46 verbose #21054 > > inl negate_vec v =
00:19:46 verbose #21055 > >     v ^* -1
00:19:46 verbose #21056 > 00:19:46   debug #1158 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/94131339c78ccd2c8d0a4031da3525710f40ec6258ab6fe6a34eaf9a43d2b1bb/main.spi
00:19:47 verbose #21057 > >
00:19:47 verbose #21058 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:47 verbose #21059 > > //// test
00:19:47 verbose #21060 > >
00:19:47 verbose #21061 > > vec 1 2 3
00:19:47 verbose #21062 > > |> negate_vec
00:19:47 verbose #21063 > > |> _assert_eq (vec -1 -2 -3)
00:19:47 verbose #21064 > 00:19:46   debug #1159 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fdedac425a2786add255f65932c63d6c0017b4f318bc624777cbd33cfd89bd23/main.spi
00:19:47 verbose #21065 > >
00:19:47 verbose #21066 > > ╭─[ 400.69ms - stdout ]────────────────────────────────────────────────────────╮
00:19:47 verbose #21067 > > │ assert_eq / actual: struct (-1.0, -2.0, -3.0) / expected: struct (-1.0,      │
00:19:47 verbose #21068 > > │ -2.0, -3.0)                                                                  │
00:19:47 verbose #21069 > > │                                                                              │
00:19:47 verbose #21070 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:47 verbose #21071 > >
00:19:47 verbose #21072 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:47 verbose #21073 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:47 verbose #21074 > > │ #### ^-^                                                                     │
00:19:47 verbose #21075 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:47 verbose #21076 > >
00:19:47 verbose #21077 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:47 verbose #21078 > > inl (^-^) a b =
00:19:47 verbose #21079 > >     a ^+^ (negate_vec b)
00:19:47 verbose #21080 > 00:19:47   debug #1160 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/21fdbe192bd77f3a4e73490f37b52779b386f16099555bea04e906a05c22da17/main.spi
00:19:47 verbose #21081 > >
00:19:47 verbose #21082 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:47 verbose #21083 > > //// test
00:19:47 verbose #21084 > >
00:19:47 verbose #21085 > > vec 1 2 3 ^-^ vec 4 5 6
00:19:47 verbose #21086 > > |> _assert_eq (vec -3 -3 -3)
00:19:48 verbose #21087 > 00:19:47   debug #1161 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/917b97ceff00ea221782681c05a221c5d0f232ad35e4cd7160aa9ac74dc6eea1/main.spi
00:19:48 verbose #21088 > >
00:19:48 verbose #21089 > > ╭─[ 412.81ms - stdout ]────────────────────────────────────────────────────────╮
00:19:48 verbose #21090 > > │ assert_eq / actual: struct (-3.0, -3.0, -3.0) / expected: struct (-3.0,      │
00:19:48 verbose #21091 > > │ -3.0, -3.0)                                                                  │
00:19:48 verbose #21092 > > │                                                                              │
00:19:48 verbose #21093 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:48 verbose #21094 > >
00:19:48 verbose #21095 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:48 verbose #21096 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:48 verbose #21097 > > │ #### <.>                                                                     │
00:19:48 verbose #21098 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:48 verbose #21099 > >
00:19:48 verbose #21100 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:48 verbose #21101 > > inl (<.>) { x = ax y = ay z = az } { x = bx y = by z = bz } =
00:19:48 verbose #21102 > >     ax * bx + ay * by + az * bz
00:19:48 verbose #21103 > 00:19:47   debug #1162 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/99065ad3b1b895ff28a5df348ec2bbea4f42427970f91af6aa2fae6941fc41de/main.spi
00:19:48 verbose #21104 > >
00:19:48 verbose #21105 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:48 verbose #21106 > > //// test
00:19:48 verbose #21107 > >
00:19:48 verbose #21108 > > vec 1 2 3 <.> vec 4 5 6
00:19:48 verbose #21109 > > |> _assert_eq 32
00:19:48 verbose #21110 > 00:19:48   debug #1163 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c592c23878dc38d73876d3c8040729162c10400637a35814485722934550778b/main.spi
00:19:49 verbose #21111 > >
00:19:49 verbose #21112 > > ╭─[ 410.48ms - stdout ]────────────────────────────────────────────────────────╮
00:19:49 verbose #21113 > > │ assert_eq / actual: 32.0 / expected: 32.0                                    │
00:19:49 verbose #21114 > > │                                                                              │
00:19:49 verbose #21115 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:49 verbose #21116 > >
00:19:49 verbose #21117 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:49 verbose #21118 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:49 verbose #21119 > > │ #### \>\<                                                                    │
00:19:49 verbose #21120 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:49 verbose #21121 > >
00:19:49 verbose #21122 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:49 verbose #21123 > > inl (><) (a : vec) (b : vec) =
00:19:49 verbose #21124 > >     vec
00:19:49 verbose #21125 > >         (a.y * b.z - a.z * b.y)
00:19:49 verbose #21126 > >         (a.z * b.x - a.x * b.z)
00:19:49 verbose #21127 > >         (a.x * b.y - a.y * b.x)
00:19:49 verbose #21128 > 00:19:48   debug #1164 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/aed2496334bafb5bd0a8a3712ad9c397e37ac9eb9540c9bd6ae381349f1f0c82/main.spi
00:19:49 verbose #21129 > >
00:19:49 verbose #21130 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:49 verbose #21131 > > //// test
00:19:49 verbose #21132 > >
00:19:49 verbose #21133 > > vec 1 2 3 >< vec 4 5 6
00:19:49 verbose #21134 > > |> _assert_eq (vec -3 6 -3)
00:19:49 verbose #21135 > 00:19:49   debug #1165 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4d2e5b8e098db900b3d3cbebe62eaa5095e497ecca8fc9d7c338a5d69dbaa146/main.spi
00:19:49 verbose #21136 > >
00:19:49 verbose #21137 > > ╭─[ 395.33ms - stdout ]────────────────────────────────────────────────────────╮
00:19:49 verbose #21138 > > │ assert_eq / actual: struct (-3.0, 6.0, -3.0) / expected: struct (-3.0, 6.0,  │
00:19:49 verbose #21139 > > │ -3.0)                                                                        │
00:19:49 verbose #21140 > > │                                                                              │
00:19:49 verbose #21141 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:49 verbose #21142 > >
00:19:49 verbose #21143 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:49 verbose #21144 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:49 verbose #21145 > > │ #### magnitude                                                               │
00:19:49 verbose #21146 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:49 verbose #21147 > >
00:19:49 verbose #21148 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:49 verbose #21149 > > inl magnitude v =
00:19:49 verbose #21150 > >     v <.> v |> sqrt
00:19:50 verbose #21151 > 00:19:49   debug #1166 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5a4ef11f464163246b95d2d8a8a31049c400054f70717b4ac0c1129ef3769534/main.spi
00:19:50 verbose #21152 > >
00:19:50 verbose #21153 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:50 verbose #21154 > > //// test
00:19:50 verbose #21155 > >
00:19:50 verbose #21156 > > vec 1 2 3
00:19:50 verbose #21157 > > |> magnitude
00:19:50 verbose #21158 > > |> _assert_approx_eq None 3.7416573867739413
00:19:50 verbose #21159 > 00:19:49   debug #1167 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ab3a75d21b70fe9b9216d4205d776cef4d56277a8a920676d80415fcb0fabd53/main.spi
00:19:50 verbose #21160 > >
00:19:50 verbose #21161 > > ╭─[ 432.67ms - stdout ]────────────────────────────────────────────────────────╮
00:19:50 verbose #21162 > > │ assert_approx_eq / actual: 3.741657387 / expected: 3.741657387               │
00:19:50 verbose #21163 > > │                                                                              │
00:19:50 verbose #21164 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:50 verbose #21165 > >
00:19:50 verbose #21166 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:50 verbose #21167 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:50 verbose #21168 > > │ #### v1                                                                      │
00:19:50 verbose #21169 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:50 verbose #21170 > >
00:19:50 verbose #21171 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:50 verbose #21172 > > inl v1 t =
00:19:50 verbose #21173 > >     2 *^ (t ** 2 *^ i_hat () ^+^ 3 *^ (t ** 3 *^ j_hat () ^+^ t ** 4 *^ k_hat
00:19:50 verbose #21174 > > ()))
00:19:50 verbose #21175 > 00:19:50   debug #1168 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bccaf202d365272670f9847a8e686d3714808ec24394c0ad41e033008e5eae3b/main.spi
00:19:51 verbose #21176 > >
00:19:51 verbose #21177 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:51 verbose #21178 > > //// test
00:19:51 verbose #21179 > >
00:19:51 verbose #21180 > > v1 1
00:19:51 verbose #21181 > > |> _assert_eq (vec 2 6 6)
00:19:51 verbose #21182 > 00:19:50   debug #1169 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dd01ed090b29d53add2670d3f8311d2c964c1d5e37c395569e3a3accda865794/main.spi
00:19:51 verbose #21183 > >
00:19:51 verbose #21184 > > ╭─[ 393.23ms - stdout ]────────────────────────────────────────────────────────╮
00:19:51 verbose #21185 > > │ assert_eq / actual: struct (2.0, 6.0, 6.0) / expected: struct (2.0, 6.0,     │
00:19:51 verbose #21186 > > │ 6.0)                                                                         │
00:19:51 verbose #21187 > > │                                                                              │
00:19:51 verbose #21188 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:51 verbose #21189 > >
00:19:51 verbose #21190 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:51 verbose #21191 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:51 verbose #21192 > > │ #### vec_derivative                                                          │
00:19:51 verbose #21193 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:51 verbose #21194 > >
00:19:51 verbose #21195 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:51 verbose #21196 > > type vec_derivative = (f64 -> vec) -> f64 -> vec
00:19:51 verbose #21197 > >
00:19:51 verbose #21198 > > inl vec_derivative dt : vec_derivative =
00:19:51 verbose #21199 > >     fun v t =>
00:19:51 verbose #21200 > >         (v (t + dt / 2) ^-^ v (t - dt / 2)) ^/ dt
00:19:51 verbose #21201 > 00:19:51   debug #1170 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/87e27af0bacfed532e3311bf8799be231fc5baf402cb779ed47aa9bb69ad6e0d/main.spi
00:19:51 verbose #21202 > >
00:19:51 verbose #21203 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:51 verbose #21204 > > //// test
00:19:51 verbose #21205 > >
00:19:51 verbose #21206 > > vec_derivative 0.01 v1 3 .x
00:19:51 verbose #21207 > > |> _assert_approx_eq None (derivative 0.01 (v1 >> fun v => v.x) 3)
00:19:52 verbose #21208 > 00:19:51   debug #1171 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8fc8071c92b6b3cf61db97bc0979dcddf2bd80f2bc4da43fc2257ab2fb395622/main.spi
00:19:52 verbose #21209 > >
00:19:52 verbose #21210 > > ╭─[ 426.62ms - stdout ]────────────────────────────────────────────────────────╮
00:19:52 verbose #21211 > > │ assert_approx_eq / actual: 12.0 / expected: 12.0                             │
00:19:52 verbose #21212 > > │                                                                              │
00:19:52 verbose #21213 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:52 verbose #21214 > >
00:19:52 verbose #21215 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:52 verbose #21216 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:52 verbose #21217 > > │ ### states_ps                                                                │
00:19:52 verbose #21218 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:52 verbose #21219 > >
00:19:52 verbose #21220 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:52 verbose #21221 > > nominal particle_state =
00:19:52 verbose #21222 > >     {
00:19:52 verbose #21223 > >         mass : f64
00:19:52 verbose #21224 > >         charge : f64
00:19:52 verbose #21225 > >         time : f64
00:19:52 verbose #21226 > >         pos_vec : vec
00:19:52 verbose #21227 > >         velocity : vec
00:19:52 verbose #21228 > >     }
00:19:52 verbose #21229 > >
00:19:52 verbose #21230 > > inl default_particle_state () : particle_state =
00:19:52 verbose #21231 > >     particle_state {
00:19:52 verbose #21232 > >         mass = 1
00:19:52 verbose #21233 > >         charge = 0
00:19:52 verbose #21234 > >         time = 0
00:19:52 verbose #21235 > >         pos_vec = zero_vec ()
00:19:52 verbose #21236 > >         velocity = zero_vec ()
00:19:52 verbose #21237 > >     }
00:19:52 verbose #21238 > >
00:19:52 verbose #21239 > > type one_body_force = particle_state -> vec
00:19:52 verbose #21240 > >
00:19:52 verbose #21241 > > nominal d_particle_state =
00:19:52 verbose #21242 > >     {
00:19:52 verbose #21243 > >         dmdt : f64
00:19:52 verbose #21244 > >         dqdt : f64
00:19:52 verbose #21245 > >         dtdt : f64
00:19:52 verbose #21246 > >         drdt : vec
00:19:52 verbose #21247 > >         dvdt : vec
00:19:52 verbose #21248 > >     }
00:19:52 verbose #21249 > >
00:19:52 verbose #21250 > > inl newton_second_ps (fs : list one_body_force) (st : particle_state) :
00:19:52 verbose #21251 > > d_particle_state =
00:19:52 verbose #21252 > >     inl f_net = fs |> listm.map (fun f => f st) |> sum_vec
00:19:52 verbose #21253 > >     d_particle_state {
00:19:52 verbose #21254 > >         dmdt = 0
00:19:52 verbose #21255 > >         dqdt = 0
00:19:52 verbose #21256 > >         dtdt = 1
00:19:52 verbose #21257 > >         drdt = st.velocity
00:19:52 verbose #21258 > >         dvdt = f_net ^/ st.mass
00:19:52 verbose #21259 > >     }
00:19:52 verbose #21260 > >
00:19:52 verbose #21261 > > inl earth_surface_gravity (st : particle_state) =
00:19:52 verbose #21262 > >     inl g = 9.80665
00:19:52 verbose #21263 > >     -st.mass * g *^ k_hat ()
00:19:52 verbose #21264 > >
00:19:52 verbose #21265 > > inl air_resistance drag rho area (st : particle_state) =
00:19:52 verbose #21266 > >     -0.5 * drag * rho * area * magnitude st.velocity *^ st.velocity
00:19:52 verbose #21267 > >
00:19:52 verbose #21268 > > inl euler_cromer_ps dt (deriv : particle_state -> d_particle_state)
00:19:52 verbose #21269 > > (particle_state st) =
00:19:52 verbose #21270 > >     inl dst : d_particle_state = deriv (particle_state st)
00:19:52 verbose #21271 > >     inl v' = st.velocity ^+^ dst.dvdt ^* dt
00:19:52 verbose #21272 > >     particle_state { st with
00:19:52 verbose #21273 > >         time = st.time + dt
00:19:52 verbose #21274 > >         pos_vec = st.pos_vec ^+^ v' ^* dt
00:19:52 verbose #21275 > >         velocity = st.velocity ^+^ dst.dvdt ^* dt
00:19:52 verbose #21276 > >     }
00:19:52 verbose #21277 > >
00:19:52 verbose #21278 > > instance (+++) d_particle_state = fun (dps : d_particle_state) (dps' :
00:19:52 verbose #21279 > > d_particle_state) =>
00:19:52 verbose #21280 > >     d_particle_state {
00:19:52 verbose #21281 > >         dmdt = dps.dmdt + dps'.dmdt
00:19:52 verbose #21282 > >         dqdt = dps.dqdt + dps'.dqdt
00:19:52 verbose #21283 > >         dtdt = dps.dtdt + dps'.dtdt
00:19:52 verbose #21284 > >         drdt = dps.drdt ^+^ dps'.drdt
00:19:52 verbose #21285 > >         dvdt = dps.dvdt ^+^ dps'.dvdt
00:19:52 verbose #21286 > >     }
00:19:52 verbose #21287 > >
00:19:52 verbose #21288 > > instance scale d_particle_state = fun w (dps : d_particle_state) =>
00:19:52 verbose #21289 > >     d_particle_state {
00:19:52 verbose #21290 > >         dmdt = w * dps.dmdt
00:19:52 verbose #21291 > >         dqdt = w * dps.dqdt
00:19:52 verbose #21292 > >         dtdt = w * dps.dtdt
00:19:52 verbose #21293 > >         drdt = w *^ dps.drdt
00:19:52 verbose #21294 > >         dvdt = w *^ dps.dvdt
00:19:52 verbose #21295 > >     }
00:19:52 verbose #21296 > >
00:19:52 verbose #21297 > > instance shift particle_state = fun dt dps (particle_state st) =>
00:19:52 verbose #21298 > >     inl (d_particle_state dps) =
00:19:52 verbose #21299 > >         real
00:19:52 verbose #21300 > >             match dps with
00:19:52 verbose #21301 > >             | d_particle_state _ => dps
00:19:52 verbose #21302 > >     particle_state { st with
00:19:52 verbose #21303 > >         time = st.time + dps.dtdt * dt
00:19:52 verbose #21304 > >         pos_vec = st.pos_vec ^+^ dps.drdt ^* dt
00:19:52 verbose #21305 > >         velocity = st.velocity ^+^ dps.dvdt ^* dt
00:19:52 verbose #21306 > >     }
00:19:52 verbose #21307 > >
00:19:52 verbose #21308 > > inl states_ps (method : numerical_method particle_state d_particle_state) : _ ->
00:19:52 verbose #21309 > > _ -> i32 -> particle_state =
00:19:52 verbose #21310 > >     newton_second_ps >> method >> seq.iterate_
00:19:52 verbose #21311 > >
00:19:52 verbose #21312 > > inl z_ge0 sts =
00:19:52 verbose #21313 > >     sts
00:19:52 verbose #21314 > >     |> seq.take_while_ (fun (particle_state st) _ => st.pos_vec.z >= 0)
00:19:52 verbose #21315 > >
00:19:52 verbose #21316 > > inl trajectory sts =
00:19:52 verbose #21317 > >     sts |> listm.map (fun (particle_state st) => st.pos_vec.y, st.pos_vec.z)
00:19:52 verbose #21318 > 00:19:51   debug #1172 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cd98f06c047657503dc797c251df3bbd477097d3bb62b295190aef5b973cefaf/main.spi
00:19:52 verbose #21319 > >
00:19:52 verbose #21320 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:52 verbose #21321 > > //// test
00:19:52 verbose #21322 > >
00:19:52 verbose #21323 > > inl update_ps (method : numerical_method particle_state d_particle_state) =
00:19:52 verbose #21324 > >     newton_second_ps >> method
00:19:52 verbose #21325 > >
00:19:52 verbose #21326 > > inl position_ps (method : numerical_method particle_state d_particle_state) fs
00:19:52 verbose #21327 > > st t =
00:19:52 verbose #21328 > >     inl states : i32 -> particle_state = states_ps method fs st
00:19:52 verbose #21329 > >     inl dt = (states 1).time - (states 0).time
00:19:52 verbose #21330 > >     inl num_steps = t / dt |> math.round |> abs
00:19:52 verbose #21331 > >     inl st1 = solver' method (newton_second_ps fs) st num_steps
00:19:52 verbose #21332 > >     st1.pos_vec
00:19:52 verbose #21333 > >
00:19:52 verbose #21334 > > inl sun_gravity (st : particle_state) : vec =
00:19:52 verbose #21335 > >     inl big_g = 0.0000000000667408
00:19:52 verbose #21336 > >     inl sun_mass = 1988480000000000000000000000000
00:19:52 verbose #21337 > >     -big_g * sun_mass * st.mass *^ st.pos_vec ^/ magnitude st.pos_vec ** 3
00:19:52 verbose #21338 > >
00:19:52 verbose #21339 > > inl wind_force v_wind drag rho area (st : particle_state) =
00:19:52 verbose #21340 > >     inl v_rel = st.velocity ^-^ v_wind
00:19:52 verbose #21341 > >     -0.5 * drag * rho * area * magnitude v_rel *^ v_rel
00:19:52 verbose #21342 > >
00:19:52 verbose #21343 > > inl rock_state () =
00:19:52 verbose #21344 > >     inl (particle_state default_particle_state') = default_particle_state ()
00:19:52 verbose #21345 > >     particle_state { default_particle_state' with
00:19:52 verbose #21346 > >         mass = 2
00:19:52 verbose #21347 > >         velocity = vec 3 0 4
00:19:52 verbose #21348 > >     }
00:19:52 verbose #21349 > >
00:19:52 verbose #21350 > > inl halley_update dt =
00:19:52 verbose #21351 > >     update_ps (euler_cromer_ps dt) [[ sun_gravity ]]
00:19:52 verbose #21352 > >
00:19:52 verbose #21353 > > inl halley_initial () =
00:19:52 verbose #21354 > >     inl (particle_state default_particle_state') = default_particle_state ()
00:19:52 verbose #21355 > >     particle_state { default_particle_state' with
00:19:52 verbose #21356 > >         mass = 220000000000000
00:19:52 verbose #21357 > >         pos_vec = 87660000000 *^ i_hat ()
00:19:52 verbose #21358 > >         velocity = 54569 *^ j_hat ()
00:19:52 verbose #21359 > >     }
00:19:52 verbose #21360 > 00:19:52   debug #1173 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1b5e617304f18bbdd8745dbb0f62afafedb648660c33e3b9762cc0e32be7f533/main.spi
00:19:53 verbose #21361 > >
00:19:53 verbose #21362 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:53 verbose #21363 > > //// test
00:19:53 verbose #21364 > >
00:19:53 verbose #21365 > > inl baseball_forces () =
00:19:53 verbose #21366 > >     inl area = pi * (0.074 / 2) ** 2
00:19:53 verbose #21367 > >     [[
00:19:53 verbose #21368 > >         earth_surface_gravity
00:19:53 verbose #21369 > >         air_resistance 0.3 1.225 area
00:19:53 verbose #21370 > >     ]]
00:19:53 verbose #21371 > >
00:19:53 verbose #21372 > > inl baseball_trajectory dt v0 theta_deg =
00:19:53 verbose #21373 > >     inl theta_rad = theta_deg * pi / 180
00:19:53 verbose #21374 > >     inl vy0 = v0 * cos theta_rad
00:19:53 verbose #21375 > >     inl vz0 = v0 * sin theta_rad
00:19:53 verbose #21376 > >     inl initial_state =
00:19:53 verbose #21377 > >         particle_state {
00:19:53 verbose #21378 > >             mass = 0.145
00:19:53 verbose #21379 > >             charge = 0
00:19:53 verbose #21380 > >             time = 0
00:19:53 verbose #21381 > >             pos_vec = zero_vec ()
00:19:53 verbose #21382 > >             velocity = vec 0 vy0 vz0
00:19:53 verbose #21383 > >         }
00:19:53 verbose #21384 > >     states_ps (euler_cromer_ps dt) (baseball_forces ()) initial_state
00:19:53 verbose #21385 > >     >> Some
00:19:53 verbose #21386 > >     |> z_ge0
00:19:53 verbose #21387 > >     |> trajectory
00:19:53 verbose #21388 > >
00:19:53 verbose #21389 > > inl baseball_range dt v0 theta_deg =
00:19:53 verbose #21390 > >     baseball_trajectory dt v0 theta_deg
00:19:53 verbose #21391 > >     |> listm.fold (fun _ (y, _) => y) 0
00:19:53 verbose #21392 > >
00:19:53 verbose #21393 > > inl x = am'.init_series 10 80 1
00:19:53 verbose #21394 > > inl y = x |> am'.map_base (baseball_range 0.01 45)
00:19:53 verbose #21395 > > "range for a baseball hit at 45 m/s",
00:19:53 verbose #21396 > > "angle above horizontal (degrees)",
00:19:53 verbose #21397 > > "",
00:19:53 verbose #21398 > > ;[[ "horizontal range (m)", x, y ]]
00:19:53 verbose #21399 > 00:19:52   debug #1174 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b082c8c9b4629cba8166099f9dc7d7b5dd1825c68823d95c9501fb39ba891bd4/main.spi
00:19:53 verbose #21400 > >
00:19:53 verbose #21401 > > ╭─[ 912.96ms - return value ]──────────────────────────────────────────────────╮
00:19:53 verbose #21402 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:19:53 verbose #21403 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:19:53 verbose #21404 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:19:53 verbose #21405 > > │ stroke="none"/>                                                              │
00:19:53 verbose #21406 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:19:53 verbose #21407 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:19:53 verbose #21408 > > │ fill="#FFFFFF">                                                              │
00:19:53 verbose #21409 > > │ range for a baseball hit at 45 m/s                                           │
00:19:53 verbose #21410 > > │ </text>                                                                      │
00:19:53 verbose #21411 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="55" y1="424" x2="55" │
00:19:53 verbose #21412 > > │ y2="75"/>                                                                    │
00:19:53 verbose #21413 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="62" y1="424" x2="62" │
00:19:53 verbose #21414 > > │ y2="75"/>                                                                    │
00:19:53 verbose #21415 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:19:53 verbose #21416 > > │ y2="75"/>                                                                    │
00:19:53 verbose #21417 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="77" y1="424" x2="77" │
00:19:53 verbose #21418 > > │ y2="75"/>                                                                    │
00:19:53 verbose #21419 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="84" y1="424" x2="84" │
00:19:53 verbose #21420 > > │ y2="75"/>                                                                    │
00:19:53 verbose #21421 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="91" y1="424" x2="91" │
00:19:53 verbose #21422 > > │ y2="75"/>                                                                    │
00:19:53 verbose #21423 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="98" y1="424" x2="98" │
00:19:53 verbose #21424 > > │ y2="75"/>                                                                    │
00:19:53 verbose #21425 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="105" y1="424"        │
00:19:53 verbose #21426 > > │ x2="105" y2="75"/>                                                           │
00:19:53 verbose #21427 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="112" y1="424"        │
00:19:53 verbose #21428 > > │ x2="112" y2="75"/>                                                           │
00:19:53 verbose #21429 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:19:53 verbose #21430 > > │ x2="119" y2="75"/>                                                           │
00:19:53 verbose #21431 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="127" y1="424"        │
00:19:53 verbose #21432 > > │ x2="127" y2="75"/>                                                           │
00:19:53 verbose #21433 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="134" y1="424"        │
00:19:53 verbose #21434 > > │ x2="134" y2="75"/>                                                           │
00:19:53 verbose #21435 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="141" y1="424"        │
00:19:53 verbose #21436 > > │ x2="141" y2="75"/>                                                           │
00:19:53 verbose #21437 > > │ <li...nts="585,199 590,199 "/>                                               │
00:19:53 verbose #21438 > > │ <text x="595" y="156" dy="0.5ex" text-anchor="start"                         │
00:19:53 verbose #21439 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:19:53 verbose #21440 > > │ fill="#FFFFFF">                                                              │
00:19:53 verbose #21441 > > │ 100.0                                                                        │
00:19:53 verbose #21442 > > │ </text>                                                                      │
00:19:53 verbose #21443 > > │ <polyline fill="none" opacity="1" stroke="#FFFFFF" stroke-width="1"          │
00:19:53 verbose #21444 > > │ points="585,156 590,156 "/>                                                  │
00:19:53 verbose #21445 > > │ <text x="595" y="114" dy="0.5ex" text-anchor="start"                         │
00:19:53 verbose #21446 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:19:53 verbose #21447 > > │ fill="#FFFFFF">                                                              │
00:19:53 verbose #21448 > > │ 110.0                                                                        │
00:19:53 verbose #21449 > > │ </text>                                                                      │
00:19:53 verbose #21450 > > │ <polyline fill="none" opacity="1" stroke="#FFFFFF" stroke-width="1"          │
00:19:53 verbose #21451 > > │ points="585,114 590,114 "/>                                                  │
00:19:53 verbose #21452 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:19:53 verbose #21453 > > │ points="69,343 77,325 84,307 91,290 98,275 105,259 112,245 119,231 127,219   │
00:19:53 verbose #21454 > > │ 134,207 141,196 148,184 155,174 162,164 169,155 176,147 184,139 191,132      │
00:19:53 verbose #21455 > > │ 198,126 205,119 212,114 219,109 226,104 233,100 241,96 248,93 255,91 262,89  │
00:19:53 verbose #21456 > > │ 269,88 276,86 283,86 290,85 298,86 305,87 312,88 319,90 326,92 333,95 340,98 │
00:19:53 verbose #21457 > > │ 348,102 355,106 362,110 369,115 376,120 383,126 390,132 397,139 405,146      │
00:19:53 verbose #21458 > > │ 412,153 419,161 426,169 433,178 440,187 447,197 454,207 462,217 469,228      │
00:19:53 verbose #21459 > > │ 476,239 483,250 490,262 497,274 504,287 511,300 519,313 526,326 533,340      │
00:19:53 verbose #21460 > > │ 540,355 547,369 554,384 561,399 569,415 "/>                                  │
00:19:53 verbose #21461 > > │ <rect x="421" y="235" width="159" height="30" opacity="1" fill="none"        │
00:19:53 verbose #21462 > > │ stroke="#FFFFFF"/>                                                           │
00:19:53 verbose #21463 > > │ <text x="461" y="245" dy="0.76em" text-anchor="start"                        │
00:19:53 verbose #21464 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:19:53 verbose #21465 > > │ fill="#FFFFFF">                                                              │
00:19:53 verbose #21466 > > │ horizontal range (m)                                                         │
00:19:53 verbose #21467 > > │ </text>                                                                      │
00:19:53 verbose #21468 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:19:53 verbose #21469 > > │ points="431,250 451,250 "/>                                                  │
00:19:53 verbose #21470 > > │ </svg>                                                                       │
00:19:53 verbose #21471 > > │                                                                              │
00:19:53 verbose #21472 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:53 verbose #21473 > >
00:19:53 verbose #21474 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:53 verbose #21475 > > //// test
00:19:53 verbose #21476 > >
00:19:53 verbose #21477 > > inl best_angle (min, max) =
00:19:53 verbose #21478 > >     let rec loop theta_deg (best_range, best_theta_deg) =
00:19:53 verbose #21479 > >         if theta_deg > max
00:19:53 verbose #21480 > >         then best_range, best_theta_deg
00:19:53 verbose #21481 > >         else
00:19:53 verbose #21482 > >             inl range = baseball_range 0.01 45 theta_deg
00:19:53 verbose #21483 > >             loop
00:19:53 verbose #21484 > >                 (theta_deg + 1)
00:19:53 verbose #21485 > >                 (if range > best_range
00:19:53 verbose #21486 > >                     then range, theta_deg
00:19:53 verbose #21487 > >                     else best_range, best_theta_deg)
00:19:53 verbose #21488 > >     loop min (0f64, min)
00:19:53 verbose #21489 > >
00:19:53 verbose #21490 > > best_angle (30f64, 60f64)
00:19:53 verbose #21491 > > |> _assert_eq (116.77499158246208, 41)
00:19:54 verbose #21492 > 00:19:53   debug #1175 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f7e80e7b688b48b95af684eaaf2fcf3b122ab2cfd2fc2b0fce171ac31255262b/main.spi
00:19:54 verbose #21493 > >
00:19:54 verbose #21494 > > ╭─[ 970.87ms - stdout ]────────────────────────────────────────────────────────╮
00:19:54 verbose #21495 > > │ assert_eq / actual: struct (116.7749916, 41.0) / expected: struct            │
00:19:54 verbose #21496 > > │ (116.7749916, 41.0)                                                          │
00:19:54 verbose #21497 > > │                                                                              │
00:19:54 verbose #21498 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:54 verbose #21499 > >
00:19:54 verbose #21500 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:54 verbose #21501 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:54 verbose #21502 > > │ ### relativity_ps                                                            │
00:19:54 verbose #21503 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:54 verbose #21504 > >
00:19:54 verbose #21505 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:54 verbose #21506 > > inl relativity_ps fs (st : particle_state) =
00:19:54 verbose #21507 > >     inl f_net = fs |> listm.map (fun f => f st) |> sum_vec
00:19:54 verbose #21508 > >     inl c = 299792458
00:19:54 verbose #21509 > >     inl u = st.velocity ^/ c
00:19:54 verbose #21510 > >     inl acc = sqrt (1 - (u <.> u)) *^ (f_net ^-^ (f_net <.> u) *^ u) ^/ st.mass
00:19:54 verbose #21511 > >     d_particle_state {
00:19:54 verbose #21512 > >         dmdt = 0
00:19:54 verbose #21513 > >         dqdt = 0
00:19:54 verbose #21514 > >         dtdt = 1
00:19:54 verbose #21515 > >         drdt = st.velocity
00:19:54 verbose #21516 > >         dvdt = acc
00:19:54 verbose #21517 > >     }
00:19:55 verbose #21518 > 00:19:54   debug #1176 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dc6f44bd6e2446436c15debe35080a2ad13c8e950a697a7d1b69bac267631653/main.spi
00:19:55 verbose #21519 > >
00:19:55 verbose #21520 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:55 verbose #21521 > > //// test
00:19:55 verbose #21522 > >
00:19:55 verbose #21523 > > inl year = 365.25 * 24 * 60 * 60
00:19:55 verbose #21524 > > inl c = 299792458
00:19:55 verbose #21525 > > inl ~method = runge_kutta_4 100000
00:19:55 verbose #21526 > > inl forces = [[ fun _ => 10 *^ i_hat () ]]
00:19:55 verbose #21527 > > inl (particle_state default_particle_state') = default_particle_state ()
00:19:55 verbose #21528 > > inl initial_state =
00:19:55 verbose #21529 > >     particle_state { default_particle_state' with
00:19:55 verbose #21530 > >         mass = 1
00:19:55 verbose #21531 > >     }
00:19:55 verbose #21532 > >
00:19:55 verbose #21533 > > inl newton_states = solver_ method (newton_second_ps forces) initial_state
00:19:55 verbose #21534 > > inl relativity_states = solver_ method (relativity_ps forces) initial_state
00:19:55 verbose #21535 > >
00:19:55 verbose #21536 > > inl newton_x, newton_y =
00:19:55 verbose #21537 > >     newton_states
00:19:55 verbose #21538 > >     >> Some
00:19:55 verbose #21539 > >     |> seq.take_while_ (fun (particle_state st) (_ : i32) => st.time <= year)
00:19:55 verbose #21540 > >     |> listm.map (fun (particle_state st) => st.time / year, st.velocity.x / c)
00:19:55 verbose #21541 > >     |> listm'.unzip
00:19:55 verbose #21542 > >
00:19:55 verbose #21543 > > inl _, relativity_y =
00:19:55 verbose #21544 > >     relativity_states
00:19:55 verbose #21545 > >     >> Some
00:19:55 verbose #21546 > >     |> seq.take_while_ (fun (particle_state st) (_ : i32) => st.time <= year)
00:19:55 verbose #21547 > >     |> listm.map (fun (particle_state st) => st.time / year, st.velocity.x / c)
00:19:55 verbose #21548 > >     |> listm'.unzip
00:19:55 verbose #21549 > >
00:19:55 verbose #21550 > > inl newton_x = newton_x |> listm'.box |> listm'.to_array'
00:19:55 verbose #21551 > > inl newton_y = newton_y |> listm'.box |> listm'.to_array'
00:19:55 verbose #21552 > > inl relativity_y = relativity_y |> listm'.box |> listm'.to_array'
00:19:55 verbose #21553 > >
00:19:55 verbose #21554 > > "response to a constant force",
00:19:55 verbose #21555 > > "time (years)",
00:19:55 verbose #21556 > > "velocity (multiples of c)",
00:19:55 verbose #21557 > > ;[[
00:19:55 verbose #21558 > >     "newtonian", newton_x, newton_y
00:19:55 verbose #21559 > >     "relativistic", newton_x, relativity_y
00:19:55 verbose #21560 > > ]]
00:19:55 verbose #21561 > 00:19:54   debug #1177 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/aeab0aedb278b0007b0c4f11522037445eb4ec89bf833d2ad08ae806801e8ae6/main.spi
00:19:56 verbose #21562 > >
00:19:56 verbose #21563 > > ╭─[ 703.83ms - return value ]──────────────────────────────────────────────────╮
00:19:56 verbose #21564 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:19:56 verbose #21565 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:19:56 verbose #21566 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:19:56 verbose #21567 > > │ stroke="none"/>                                                              │
00:19:56 verbose #21568 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:19:56 verbose #21569 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:19:56 verbose #21570 > > │ fill="#FFFFFF">                                                              │
00:19:56 verbose #21571 > > │ response to a constant force                                                 │
00:19:56 verbose #21572 > > │ </text>                                                                      │
00:19:56 verbose #21573 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │
00:19:56 verbose #21574 > > │ y2="75"/>                                                                    │
00:19:56 verbose #21575 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:19:56 verbose #21576 > > │ y2="75"/>                                                                    │
00:19:56 verbose #21577 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │
00:19:56 verbose #21578 > > │ y2="75"/>                                                                    │
00:19:56 verbose #21579 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │
00:19:56 verbose #21580 > > │ y2="75"/>                                                                    │
00:19:56 verbose #21581 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="99" y1="424" x2="99" │
00:19:56 verbose #21582 > > │ y2="75"/>                                                                    │
00:19:56 verbose #21583 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="109" y1="424"        │
00:19:56 verbose #21584 > > │ x2="109" y2="75"/>                                                           │
00:19:56 verbose #21585 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:19:56 verbose #21586 > > │ x2="119" y2="75"/>                                                           │
00:19:56 verbose #21587 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="129" y1="424"        │
00:19:56 verbose #21588 > > │ x2="129" y2="75"/>                                                           │
00:19:56 verbose #21589 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="139" y1="424"        │
00:19:56 verbose #21590 > > │ x2="139" y2="75"/>                                                           │
00:19:56 verbose #21591 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="149" y1="424"        │
00:19:56 verbose #21592 > > │ x2="149" y2="75"/>                                                           │
00:19:56 verbose #21593 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="159" y1="424"        │
00:19:56 verbose #21594 > > │ x2="159" y2="75"/>                                                           │
00:19:56 verbose #21595 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="169" y1="424"        │
00:19:56 verbose #21596 > > │ x2="169" y2="75"/>                                                           │
00:19:56 verbose #21597 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="179" y1="424"        │
00:19:56 verbose #21598 > > │ x2="179" y2="75"/>                                                           │
00:19:56 verbose #21599 > > │ <line... 393,238 394,238 396,237 397,237 399,236 401,235 402,235 404,234     │
00:19:56 verbose #21600 > > │ 405,234 407,233 409,233 410,232 412,231 413,231 415,230 416,230 418,229      │
00:19:56 verbose #21601 > > │ 420,229 421,228 423,228 424,227 426,227 428,226 429,225 431,225 432,224      │
00:19:56 verbose #21602 > > │ 434,224 435,223 437,223 439,222 440,222 442,221 443,221 445,220 447,220      │
00:19:56 verbose #21603 > > │ 448,219 450,219 451,218 453,218 454,217 456,217 458,216 459,216 461,215      │
00:19:56 verbose #21604 > > │ 462,215 464,214 466,214 467,213 469,213 470,213 472,212 473,212 475,211      │
00:19:56 verbose #21605 > > │ 477,211 478,210 480,210 481,209 483,209 485,208 486,208 488,208 489,207      │
00:19:56 verbose #21606 > > │ 491,207 492,206 494,206 496,205 497,205 499,204 500,204 502,204 504,203      │
00:19:56 verbose #21607 > > │ 505,203 507,202 508,202 510,202 511,201 513,201 515,200 516,200 518,200      │
00:19:56 verbose #21608 > > │ 519,199 521,199 523,198 524,198 526,198 527,197 529,197 531,196 532,196      │
00:19:56 verbose #21609 > > │ 534,196 535,195 537,195 538,194 540,194 542,194 543,193 545,193 546,193      │
00:19:56 verbose #21610 > > │ 548,192 550,192 551,192 553,191 554,191 556,190 557,190 559,190 561,189      │
00:19:56 verbose #21611 > > │ 562,189 564,189 565,188 567,188 569,188 "/>                                  │
00:19:56 verbose #21612 > > │ <rect x="464" y="227" width="116" height="45" opacity="1" fill="none"        │
00:19:56 verbose #21613 > > │ stroke="#FFFFFF"/>                                                           │
00:19:56 verbose #21614 > > │ <text x="504" y="237" dy="0.76em" text-anchor="start"                        │
00:19:56 verbose #21615 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:19:56 verbose #21616 > > │ fill="#FFFFFF">                                                              │
00:19:56 verbose #21617 > > │ newtonian                                                                    │
00:19:56 verbose #21618 > > │ </text>                                                                      │
00:19:56 verbose #21619 > > │ <text x="504" y="252" dy="0.76em" text-anchor="start"                        │
00:19:56 verbose #21620 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:19:56 verbose #21621 > > │ fill="#FFFFFF">                                                              │
00:19:56 verbose #21622 > > │ relativistic                                                                 │
00:19:56 verbose #21623 > > │ </text>                                                                      │
00:19:56 verbose #21624 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:19:56 verbose #21625 > > │ points="474,242 494,242 "/>                                                  │
00:19:56 verbose #21626 > > │ <polyline fill="none" opacity="1" stroke="#0000FF" stroke-width="1"          │
00:19:56 verbose #21627 > > │ points="474,257 494,257 "/>                                                  │
00:19:56 verbose #21628 > > │ </svg>                                                                       │
00:19:56 verbose #21629 > > │                                                                              │
00:19:56 verbose #21630 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:56 verbose #21631 > >
00:19:56 verbose #21632 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:56 verbose #21633 > > inl uniform_lorentz_force v_e v_b (st : particle_state) =
00:19:56 verbose #21634 > >     st.charge *^ (v_e ^+^ st.velocity >< v_b)
00:19:56 verbose #21635 > 00:19:55   debug #1178 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d1efff46697e56beaa0357f3355ee91d1a31053a313aee20a74d1293bc0fc604/main.spi
00:19:56 verbose #21636 > >
00:19:56 verbose #21637 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:56 verbose #21638 > > //// test
00:19:56 verbose #21639 > >
00:19:56 verbose #21640 > > inl c : f64 = 299792458
00:19:56 verbose #21641 > > inl ~method = runge_kutta_4 0.000000001
00:19:56 verbose #21642 > > inl forces = [[ uniform_lorentz_force (zero_vec ()) (k_hat ()) ]]
00:19:56 verbose #21643 > > inl (particle_state default_particle_state') = default_particle_state ()
00:19:56 verbose #21644 > > inl initial_state =
00:19:56 verbose #21645 > >     particle_state { default_particle_state' with
00:19:56 verbose #21646 > >         mass = 0.000000000000000000000000001672621898
00:19:56 verbose #21647 > >         charge = 0.0000000000000000001602176621
00:19:56 verbose #21648 > >         velocity = 0.8 *^ (c *^ j_hat ())
00:19:56 verbose #21649 > >     }
00:19:56 verbose #21650 > >
00:19:56 verbose #21651 > > inl newton_states = solver_ method (newton_second_ps forces) initial_state
00:19:56 verbose #21652 > > inl relativity_states = solver_ method (relativity_ps forces) initial_state
00:19:56 verbose #21653 > >
00:19:56 verbose #21654 > > inl newton_x, newton_y =
00:19:56 verbose #21655 > >     newton_states
00:19:56 verbose #21656 > >     >> Some
00:19:56 verbose #21657 > >     |> seq.take_while_ (fun (particle_state st) i => i < 100i32)
00:19:56 verbose #21658 > >     |> listm.map (fun (particle_state st) => st.pos_vec.x, st.pos_vec.y)
00:19:56 verbose #21659 > >     |> listm'.unzip
00:19:56 verbose #21660 > >
00:19:56 verbose #21661 > > inl relativity_x, relativity_y =
00:19:56 verbose #21662 > >     relativity_states
00:19:56 verbose #21663 > >     >> Some
00:19:56 verbose #21664 > >     |> seq.take_while_ (fun (particle_state st) i => i < 165i32)
00:19:56 verbose #21665 > >     |> listm.map (fun (particle_state st) => st.pos_vec.x, st.pos_vec.y)
00:19:56 verbose #21666 > >     |> listm'.unzip
00:19:56 verbose #21667 > >
00:19:56 verbose #21668 > > inl newton_x = newton_x |> listm'.box |> listm'.to_array'
00:19:56 verbose #21669 > > inl newton_y = newton_y |> listm'.box |> listm'.to_array'
00:19:56 verbose #21670 > >
00:19:56 verbose #21671 > > inl relativity_x = relativity_x |> listm'.box |> listm'.to_array'
00:19:56 verbose #21672 > > inl relativity_y = relativity_y |> listm'.box |> listm'.to_array'
00:19:56 verbose #21673 > >
00:19:56 verbose #21674 > > "proton in a 1-t magnetic field",
00:19:56 verbose #21675 > > "x (m)",
00:19:56 verbose #21676 > > "y (m)",
00:19:56 verbose #21677 > > ;[[
00:19:56 verbose #21678 > >     "newtonian", newton_x, newton_y
00:19:56 verbose #21679 > >     "relativistic", relativity_x, relativity_y
00:19:56 verbose #21680 > > ]]
00:19:56 verbose #21681 > 00:19:55   debug #1179 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f440865aa6942f3bbb3aed3718ddd7fdca8e880f7fc117024593652b81891107/main.spi
00:19:57 verbose #21682 > >
00:19:57 verbose #21683 > > ╭─[ 723.65ms - return value ]──────────────────────────────────────────────────╮
00:19:57 verbose #21684 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:19:57 verbose #21685 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:19:57 verbose #21686 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:19:57 verbose #21687 > > │ stroke="none"/>                                                              │
00:19:57 verbose #21688 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:19:57 verbose #21689 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:19:57 verbose #21690 > > │ fill="#FFFFFF">                                                              │
00:19:57 verbose #21691 > > │ proton in a 1-t magnetic field                                               │
00:19:57 verbose #21692 > > │ </text>                                                                      │
00:19:57 verbose #21693 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="58" y1="424" x2="58" │
00:19:57 verbose #21694 > > │ y2="75"/>                                                                    │
00:19:57 verbose #21695 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:19:57 verbose #21696 > > │ y2="75"/>                                                                    │
00:19:57 verbose #21697 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="81" y1="424" x2="81" │
00:19:57 verbose #21698 > > │ y2="75"/>                                                                    │
00:19:57 verbose #21699 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="93" y1="424" x2="93" │
00:19:57 verbose #21700 > > │ y2="75"/>                                                                    │
00:19:57 verbose #21701 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="105" y1="424"        │
00:19:57 verbose #21702 > > │ x2="105" y2="75"/>                                                           │
00:19:57 verbose #21703 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="117" y1="424"        │
00:19:57 verbose #21704 > > │ x2="117" y2="75"/>                                                           │
00:19:57 verbose #21705 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="129" y1="424"        │
00:19:57 verbose #21706 > > │ x2="129" y2="75"/>                                                           │
00:19:57 verbose #21707 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="141" y1="424"        │
00:19:57 verbose #21708 > > │ x2="141" y2="75"/>                                                           │
00:19:57 verbose #21709 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="153" y1="424"        │
00:19:57 verbose #21710 > > │ x2="153" y2="75"/>                                                           │
00:19:57 verbose #21711 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="165" y1="424"        │
00:19:57 verbose #21712 > > │ x2="165" y2="75"/>                                                           │
00:19:57 verbose #21713 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="177" y1="424"        │
00:19:57 verbose #21714 > > │ x2="177" y2="75"/>                                                           │
00:19:57 verbose #21715 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="189" y1="424"        │
00:19:57 verbose #21716 > > │ x2="189" y2="75"/>                                                           │
00:19:57 verbose #21717 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="201" y1="424"        │
00:19:57 verbose #21718 > > │ x2="201" y2="75"/>                                                           │
00:19:57 verbose #21719 > > │ <...555,197 560,206 563,216 566,225 567,234 568,244 568,253 568,263 566,272  │
00:19:57 verbose #21720 > > │ 564,281 561,291 557,300 552,309 547,317 540,326 533,334 526,342 517,350      │
00:19:57 verbose #21721 > > │ 508,357 499,364 488,371 478,377 466,383 455,388 442,393 430,398 417,402      │
00:19:57 verbose #21722 > > │ 403,405 390,408 376,410 362,412 348,414 333,414 319,415 305,414 290,414      │
00:19:57 verbose #21723 > > │ 276,412 262,410 248,408 235,405 221,401 208,397 196,393 183,388 171,383      │
00:19:57 verbose #21724 > > │ 160,377 149,371 139,364 129,357 120,350 112,342 104,334 97,326 91,317 86,309 │
00:19:57 verbose #21725 > > │ 81,300 77,290 74,281 72,272 70,263 70,253 70,244 71,234 72,225 75,215 78,206 │
00:19:57 verbose #21726 > > │ 83,197 88,188 93,180 100,171 107,163 115,155 124,148 133,140 143,133 153,127 │
00:19:57 verbose #21727 > > │ 164,121 176,115 188,110 200,105 213,101 226,97 239,94 253,91 267,89 281,87   │
00:19:57 verbose #21728 > > │ 295,86 310,85 324,85 338,86 353,87 367,88 381,90 394,93 408,96 421,100       │
00:19:57 verbose #21729 > > │ 434,104 447,109 459,114 470,119 482,125 492,131 502,138 512,145 520,153      │
00:19:57 verbose #21730 > > │ 529,161 536,169 543,177 549,186 554,194 558,203 562,213 565,222 567,231      │
00:19:57 verbose #21731 > > │ 568,241 569,250 "/>                                                          │
00:19:57 verbose #21732 > > │ <rect x="464" y="227" width="116" height="45" opacity="1" fill="none"        │
00:19:57 verbose #21733 > > │ stroke="#FFFFFF"/>                                                           │
00:19:57 verbose #21734 > > │ <text x="504" y="237" dy="0.76em" text-anchor="start"                        │
00:19:57 verbose #21735 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:19:57 verbose #21736 > > │ fill="#FFFFFF">                                                              │
00:19:57 verbose #21737 > > │ newtonian                                                                    │
00:19:57 verbose #21738 > > │ </text>                                                                      │
00:19:57 verbose #21739 > > │ <text x="504" y="252" dy="0.76em" text-anchor="start"                        │
00:19:57 verbose #21740 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:19:57 verbose #21741 > > │ fill="#FFFFFF">                                                              │
00:19:57 verbose #21742 > > │ relativistic                                                                 │
00:19:57 verbose #21743 > > │ </text>                                                                      │
00:19:57 verbose #21744 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:19:57 verbose #21745 > > │ points="474,242 494,242 "/>                                                  │
00:19:57 verbose #21746 > > │ <polyline fill="none" opacity="1" stroke="#0000FF" stroke-width="1"          │
00:19:57 verbose #21747 > > │ points="474,257 494,257 "/>                                                  │
00:19:57 verbose #21748 > > │ </svg>                                                                       │
00:19:57 verbose #21749 > > │                                                                              │
00:19:57 verbose #21750 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:57 verbose #21751 > >
00:19:57 verbose #21752 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:57 verbose #21753 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:57 verbose #21754 > > │ #### system kinetic energy versus time 1                                     │
00:19:57 verbose #21755 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:57 verbose #21756 > >
00:19:57 verbose #21757 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:57 verbose #21758 > > //// test
00:19:57 verbose #21759 > >
00:19:57 verbose #21760 > > inl central_force f (particle_state st1) (particle_state st2) =
00:19:57 verbose #21761 > >     inl r1 = st1.pos_vec
00:19:57 verbose #21762 > >     inl r2 = st2.pos_vec
00:19:57 verbose #21763 > >     inl r21 = r2 ^-^ r1
00:19:57 verbose #21764 > >     inl r21mag = magnitude r21
00:19:57 verbose #21765 > >     f r21mag *^ r21 ^/ r21mag
00:19:57 verbose #21766 > >
00:19:57 verbose #21767 > > inl billiard_force k re =
00:19:57 verbose #21768 > >     inl f r =
00:19:57 verbose #21769 > >         if r >= re
00:19:57 verbose #21770 > >         then 0
00:19:57 verbose #21771 > >         else -k * (r - re)
00:19:57 verbose #21772 > >     central_force f
00:19:57 verbose #21773 > >
00:19:57 verbose #21774 > > type force_vector = vec
00:19:57 verbose #21775 > > type two_body_force = particle_state -> particle_state -> force_vector
00:19:57 verbose #21776 > >
00:19:57 verbose #21777 > > union force =
00:19:57 verbose #21778 > >     | ExternalForce : i32 * one_body_force
00:19:57 verbose #21779 > >     | InternalForce : i32 * i32 * two_body_force
00:19:57 verbose #21780 > >
00:19:57 verbose #21781 > > nominal multi_particle_state = list particle_state
00:19:57 verbose #21782 > >
00:19:57 verbose #21783 > > nominal d_multi_particle_state = list d_particle_state
00:19:57 verbose #21784 > >
00:19:57 verbose #21785 > > inl force_on n sts force =
00:19:57 verbose #21786 > >     match force with
00:19:57 verbose #21787 > >     | ExternalForce (n0, f_one_body) =>
00:19:57 verbose #21788 > >         if n = n0
00:19:57 verbose #21789 > >         then f_one_body
00:19:57 verbose #21790 > >         else fun _ => zero_vec ()
00:19:57 verbose #21791 > >     | InternalForce (n0, n1, f_two_body) =>
00:19:57 verbose #21792 > >         if n = n0
00:19:57 verbose #21793 > >         then f_two_body (sts |> listm'.item n1)
00:19:57 verbose #21794 > >         elif n = n1
00:19:57 verbose #21795 > >         then f_two_body (sts |> listm'.item n0)
00:19:57 verbose #21796 > >         else fun _ => zero_vec ()
00:19:57 verbose #21797 > >
00:19:57 verbose #21798 > > inl forces_on n (multi_particle_state sts) fs =
00:19:57 verbose #21799 > >     fs |> listm.map (force_on n sts)
00:19:57 verbose #21800 > >
00:19:57 verbose #21801 > > inl newton_second_mps fs (multi_particle_state sts) : d_multi_particle_state =
00:19:57 verbose #21802 > >     inl deriv (n, st) =
00:19:57 verbose #21803 > >         newton_second_ps (forces_on n (multi_particle_state sts) fs) st
00:19:57 verbose #21804 > >     sts |> listm'.indexed |> listm.map deriv |> d_multi_particle_state
00:19:57 verbose #21805 > >
00:19:57 verbose #21806 > > instance (+++) d_multi_particle_state = fun (d_multi_particle_state dsts1)
00:19:57 verbose #21807 > > (d_multi_particle_state dsts2) =>
00:19:57 verbose #21808 > >     d_multi_particle_state (listm'.zip_with_ (+++) dsts1 dsts2)
00:19:57 verbose #21809 > >
00:19:57 verbose #21810 > > instance scale d_multi_particle_state = fun w (d_multi_particle_state dsts) =>
00:19:57 verbose #21811 > >     d_multi_particle_state (dsts |> listm.map (scale w))
00:19:57 verbose #21812 > >
00:19:57 verbose #21813 > > instance shift multi_particle_state = fun dt dsts (multi_particle_state sts) =>
00:19:57 verbose #21814 > >     inl (d_multi_particle_state dsts) =
00:19:57 verbose #21815 > >         real
00:19:57 verbose #21816 > >             match dsts with
00:19:57 verbose #21817 > >             | d_multi_particle_state _ => dsts
00:19:57 verbose #21818 > >     listm'.zip_with_ (shift dt) dsts sts |> multi_particle_state
00:19:57 verbose #21819 > >
00:19:57 verbose #21820 > > inl euler_cromer_mps dt : numerical_method multi_particle_state
00:19:57 verbose #21821 > > d_multi_particle_state =
00:19:57 verbose #21822 > >     fun deriv mpst0 =>
00:19:57 verbose #21823 > >         inl mpst1 = euler dt deriv mpst0
00:19:57 verbose #21824 > >         inl (multi_particle_state sts0) = mpst0
00:19:57 verbose #21825 > >         inl (multi_particle_state sts1) = mpst1
00:19:57 verbose #21826 > >         sts1
00:19:57 verbose #21827 > >         |> listm'.zip_ sts0
00:19:57 verbose #21828 > >         |> listm.map (fun ((particle_state st0), (particle_state st1)) =>
00:19:57 verbose #21829 > >             particle_state {
00:19:57 verbose #21830 > >                 st1 with
00:19:57 verbose #21831 > >                     pos_vec = st0.pos_vec ^+^ st1.velocity ^* dt
00:19:57 verbose #21832 > >             }
00:19:57 verbose #21833 > >         )
00:19:57 verbose #21834 > >         |> multi_particle_state
00:19:57 verbose #21835 > >
00:19:57 verbose #21836 > > inl update_mps (method : numerical_method multi_particle_state
00:19:57 verbose #21837 > > d_multi_particle_state) =
00:19:57 verbose #21838 > >     newton_second_mps >> method
00:19:57 verbose #21839 > >
00:19:57 verbose #21840 > > inl states_mps (method : numerical_method multi_particle_state
00:19:57 verbose #21841 > > d_multi_particle_state) =
00:19:57 verbose #21842 > >     newton_second_mps >> method >> seq.iterate_
00:19:57 verbose #21843 > >
00:19:57 verbose #21844 > >
00:19:57 verbose #21845 > > inl kinetic_energy (particle_state st) =
00:19:57 verbose #21846 > >     inl m = st.mass
00:19:57 verbose #21847 > >     inl v = magnitude st.velocity
00:19:57 verbose #21848 > >     0.5 * m * v ** 2
00:19:57 verbose #21849 > >
00:19:57 verbose #21850 > > inl system_ke (multi_particle_state sts) =
00:19:57 verbose #21851 > >     sts |> listm.map kinetic_energy |> listm'.sum
00:19:57 verbose #21852 > >
00:19:57 verbose #21853 > > inl linear_spring_pe k re (particle_state st1) (particle_state st2) =
00:19:57 verbose #21854 > >     inl r1 = st1.pos_vec
00:19:57 verbose #21855 > >     inl r2 = st2.pos_vec
00:19:57 verbose #21856 > >     inl r21 = r2 ^-^ r1
00:19:57 verbose #21857 > >     inl r21mag = magnitude r21
00:19:57 verbose #21858 > >     k * (r21mag - re) ** 2 / 2
00:19:57 verbose #21859 > >
00:19:57 verbose #21860 > > inl earth_surface_gravity_pe (particle_state st) =
00:19:57 verbose #21861 > >     inl g = 9.80665
00:19:57 verbose #21862 > >     inl m = st.mass
00:19:57 verbose #21863 > >     inl z = st.pos_vec.z
00:19:57 verbose #21864 > >     m * g * z
00:19:57 verbose #21865 > >
00:19:57 verbose #21866 > > inl two_springs_pe (multi_particle_state sts) =
00:19:57 verbose #21867 > >     inl st0 = sts |> listm'.item 0i32
00:19:57 verbose #21868 > >     inl st1 = sts |> listm'.item 1i32
00:19:57 verbose #21869 > >     linear_spring_pe 100 0.5 (default_particle_state ()) st0
00:19:57 verbose #21870 > >     + linear_spring_pe 100 0.5 st0 st1
00:19:57 verbose #21871 > >     + earth_surface_gravity_pe st0
00:19:57 verbose #21872 > >     + earth_surface_gravity_pe st1
00:19:57 verbose #21873 > >
00:19:57 verbose #21874 > > inl two_springs_me mpst =
00:19:57 verbose #21875 > >     system_ke mpst + two_springs_pe mpst
00:19:57 verbose #21876 > >
00:19:57 verbose #21877 > > inl ball_radius () = 0.03
00:19:57 verbose #21878 > >
00:19:57 verbose #21879 > > inl billiard_forces k =
00:19:57 verbose #21880 > >     [[ InternalForce (0, 1, billiard_force k (2 * ball_radius ())) ]]
00:19:57 verbose #21881 > >
00:19:57 verbose #21882 > > inl billiard_update n_method k dt =
00:19:57 verbose #21883 > >     update_mps (n_method dt) (billiard_forces k)
00:19:57 verbose #21884 > >
00:19:57 verbose #21885 > > inl billiard_initial () =
00:19:57 verbose #21886 > >     inl ball_mass = 0.160
00:19:57 verbose #21887 > >     inl (particle_state default_particle_state') = default_particle_state ()
00:19:57 verbose #21888 > >     multi_particle_state [[
00:19:57 verbose #21889 > >         particle_state {
00:19:57 verbose #21890 > >             default_particle_state' with
00:19:57 verbose #21891 > >                 mass = ball_mass
00:19:57 verbose #21892 > >                 pos_vec = zero_vec ()
00:19:57 verbose #21893 > >                 velocity = 0.2 *^ i_hat ()
00:19:57 verbose #21894 > >         }
00:19:57 verbose #21895 > >         particle_state {
00:19:57 verbose #21896 > >             default_particle_state' with
00:19:57 verbose #21897 > >                 mass = ball_mass
00:19:57 verbose #21898 > >                 pos_vec = i_hat () ^+^ 0.02 *^ j_hat ()
00:19:57 verbose #21899 > >                 velocity = zero_vec ()
00:19:57 verbose #21900 > >         }
00:19:57 verbose #21901 > >     ]]
00:19:57 verbose #21902 > >
00:19:57 verbose #21903 > > inl billiard_states ~n_method k dt =
00:19:57 verbose #21904 > >     states_mps (n_method dt) (billiard_forces k) (billiard_initial ())
00:19:57 verbose #21905 > >
00:19:57 verbose #21906 > > inl billiard_states_finite n_method k dt =
00:19:57 verbose #21907 > >     billiard_states n_method k dt
00:19:57 verbose #21908 > >     >> Some
00:19:57 verbose #21909 > >     |> seq.take_while_ (fun (multi_particle_state mpst) (_ : i32) =>
00:19:57 verbose #21910 > >         (mpst |> listm'.item 0i32).time <= 10
00:19:57 verbose #21911 > >     )
00:19:57 verbose #21912 > >
00:19:57 verbose #21913 > > inl momentum (particle_state st) =
00:19:57 verbose #21914 > >     inl m = st.mass
00:19:57 verbose #21915 > >     inl v = st.velocity
00:19:57 verbose #21916 > >     m *^ v
00:19:57 verbose #21917 > >
00:19:57 verbose #21918 > > inl system_p (multi_particle_state sts) =
00:19:57 verbose #21919 > >     sts |> listm.map momentum |> sum_vec
00:19:57 verbose #21920 > >
00:19:57 verbose #21921 > >
00:19:57 verbose #21922 > > inl time_ke_ec_x, time_ke_ec_y =
00:19:57 verbose #21923 > >     billiard_states_finite euler_cromer_mps 30 0.03
00:19:57 verbose #21924 > >     |> listm.map (fun (multi_particle_state mpst) =>
00:19:57 verbose #21925 > >         (mpst |> listm'.item 0i32).time, system_ke (multi_particle_state mpst)
00:19:57 verbose #21926 > >     )
00:19:57 verbose #21927 > >     |> listm'.unzip
00:19:57 verbose #21928 > >
00:19:57 verbose #21929 > > inl time_ke_rk4_x, time_ke_rk4_y =
00:19:57 verbose #21930 > >     billiard_states_finite runge_kutta_4 30 0.03
00:19:57 verbose #21931 > >     |> listm.map (fun (multi_particle_state mpst) =>
00:19:57 verbose #21932 > >         (mpst |> listm'.item 0i32).time, system_ke (multi_particle_state mpst)
00:19:57 verbose #21933 > >     )
00:19:57 verbose #21934 > >     |> listm'.unzip
00:19:57 verbose #21935 > >
00:19:57 verbose #21936 > > inl time_ke_ec_x = time_ke_ec_x |> listm'.box |> listm'.to_array'
00:19:57 verbose #21937 > > inl time_ke_ec_y = time_ke_ec_y |> listm'.box |> listm'.to_array'
00:19:57 verbose #21938 > >
00:19:57 verbose #21939 > > inl time_ke_rk4_x = time_ke_rk4_x |> listm'.box |> listm'.to_array'
00:19:57 verbose #21940 > > inl time_ke_rk4_y = time_ke_rk4_y |> listm'.box |> listm'.to_array'
00:19:57 verbose #21941 > >
00:19:57 verbose #21942 > > "system kinetic energy versus time",
00:19:57 verbose #21943 > > "time (s)",
00:19:57 verbose #21944 > > "system kinetic energy (j)",
00:19:57 verbose #21945 > > ;[[
00:19:57 verbose #21946 > >     "euler-cromer", time_ke_ec_x, time_ke_ec_y
00:19:57 verbose #21947 > >     "runge-kutta 4", time_ke_rk4_x, time_ke_rk4_y
00:19:57 verbose #21948 > > ]]
00:19:57 verbose #21949 > 00:19:56   debug #1180 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c8e2647289a2329c3212ac5ef16843ddaa6adb4bd294facbfc659041ecff24ec/main.spi
00:19:58 verbose #21950 > >
00:19:58 verbose #21951 > > ╭─[ 1.51s - return value ]─────────────────────────────────────────────────────╮
00:19:58 verbose #21952 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:19:58 verbose #21953 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:19:58 verbose #21954 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:19:58 verbose #21955 > > │ stroke="none"/>                                                              │
00:19:58 verbose #21956 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:19:58 verbose #21957 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:19:58 verbose #21958 > > │ fill="#FFFFFF">                                                              │
00:19:58 verbose #21959 > > │ system kinetic energy versus time                                            │
00:19:58 verbose #21960 > > │ </text>                                                                      │
00:19:58 verbose #21961 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │
00:19:58 verbose #21962 > > │ y2="75"/>                                                                    │
00:19:58 verbose #21963 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:19:58 verbose #21964 > > │ y2="75"/>                                                                    │
00:19:58 verbose #21965 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │
00:19:58 verbose #21966 > > │ y2="75"/>                                                                    │
00:19:58 verbose #21967 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │
00:19:58 verbose #21968 > > │ y2="75"/>                                                                    │
00:19:58 verbose #21969 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="99" y1="424" x2="99" │
00:19:58 verbose #21970 > > │ y2="75"/>                                                                    │
00:19:58 verbose #21971 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="109" y1="424"        │
00:19:58 verbose #21972 > > │ x2="109" y2="75"/>                                                           │
00:19:58 verbose #21973 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:19:58 verbose #21974 > > │ x2="119" y2="75"/>                                                           │
00:19:58 verbose #21975 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="129" y1="424"        │
00:19:58 verbose #21976 > > │ x2="129" y2="75"/>                                                           │
00:19:58 verbose #21977 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="139" y1="424"        │
00:19:58 verbose #21978 > > │ x2="139" y2="75"/>                                                           │
00:19:58 verbose #21979 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="149" y1="424"        │
00:19:58 verbose #21980 > > │ x2="149" y2="75"/>                                                           │
00:19:58 verbose #21981 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="159" y1="424"        │
00:19:58 verbose #21982 > > │ x2="159" y2="75"/>                                                           │
00:19:58 verbose #21983 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="169" y1="424"        │
00:19:58 verbose #21984 > > │ x2="169" y2="75"/>                                                           │
00:19:58 verbose #21985 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="179" y1="424"        │
00:19:58 verbose #21986 > > │ x2="179" y2="75"/>                                                           │
00:19:58 verbose #21987 > > │ ...,104 404,104 405,104 407,104 408,104 410,104 411,104 413,104 414,104      │
00:19:58 verbose #21988 > > │ 416,104 417,104 419,104 420,104 422,104 423,104 425,104 426,104 428,104      │
00:19:58 verbose #21989 > > │ 429,104 431,104 432,104 434,104 435,104 437,104 438,104 440,104 441,104      │
00:19:58 verbose #21990 > > │ 443,104 444,104 446,104 447,104 449,104 450,104 452,104 453,104 455,104      │
00:19:58 verbose #21991 > > │ 456,104 458,104 459,104 461,104 462,104 464,104 465,104 467,104 468,104      │
00:19:58 verbose #21992 > > │ 470,104 471,104 473,104 474,104 476,104 477,104 479,104 480,104 482,104      │
00:19:58 verbose #21993 > > │ 483,104 485,104 486,104 488,104 489,104 491,104 492,104 494,104 495,104      │
00:19:58 verbose #21994 > > │ 497,104 498,104 500,104 501,104 503,104 504,104 506,104 507,104 509,104      │
00:19:58 verbose #21995 > > │ 510,104 512,104 513,104 515,104 516,104 518,104 519,104 521,104 522,104      │
00:19:58 verbose #21996 > > │ 524,104 525,104 527,104 528,104 530,104 531,104 533,104 534,104 536,104      │
00:19:58 verbose #21997 > > │ 537,104 539,104 540,104 542,104 543,104 545,104 546,104 548,104 549,104      │
00:19:58 verbose #21998 > > │ 551,104 552,104 554,104 555,104 557,104 558,104 560,104 561,104 563,104      │
00:19:58 verbose #21999 > > │ 564,104 566,104 567,104 569,104 "/>                                          │
00:19:58 verbose #22000 > > │ <rect x="459" y="227" width="121" height="45" opacity="1" fill="none"        │
00:19:58 verbose #22001 > > │ stroke="#FFFFFF"/>                                                           │
00:19:58 verbose #22002 > > │ <text x="499" y="237" dy="0.76em" text-anchor="start"                        │
00:19:58 verbose #22003 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:19:58 verbose #22004 > > │ fill="#FFFFFF">                                                              │
00:19:58 verbose #22005 > > │ euler-cromer                                                                 │
00:19:58 verbose #22006 > > │ </text>                                                                      │
00:19:58 verbose #22007 > > │ <text x="499" y="252" dy="0.76em" text-anchor="start"                        │
00:19:58 verbose #22008 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:19:58 verbose #22009 > > │ fill="#FFFFFF">                                                              │
00:19:58 verbose #22010 > > │ runge-kutta 4                                                                │
00:19:58 verbose #22011 > > │ </text>                                                                      │
00:19:58 verbose #22012 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:19:58 verbose #22013 > > │ points="469,242 489,242 "/>                                                  │
00:19:58 verbose #22014 > > │ <polyline fill="none" opacity="1" stroke="#0000FF" stroke-width="1"          │
00:19:58 verbose #22015 > > │ points="469,257 489,257 "/>                                                  │
00:19:58 verbose #22016 > > │ </svg>                                                                       │
00:19:58 verbose #22017 > > │                                                                              │
00:19:58 verbose #22018 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:58 verbose #22019 > >
00:19:58 verbose #22020 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:58 verbose #22021 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:58 verbose #22022 > > │ #### wave 1                                                                  │
00:19:58 verbose #22023 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:58 verbose #22024 > >
00:19:58 verbose #22025 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:58 verbose #22026 > > //// test
00:19:58 verbose #22027 > >
00:19:58 verbose #22028 > > inl linear_spring k re (particle_state st1) (particle_state st2) =
00:19:58 verbose #22029 > >     inl r1 = st1.pos_vec
00:19:58 verbose #22030 > >     inl r2 = st2.pos_vec
00:19:58 verbose #22031 > >     inl r21 = r2 ^-^ r1
00:19:58 verbose #22032 > >     inl r21mag = magnitude r21
00:19:58 verbose #22033 > >     -k * (r21mag - re) *^ r21 ^/ r21mag
00:19:58 verbose #22034 > >
00:19:58 verbose #22035 > > inl fixed_linear_spring k re r1 =
00:19:58 verbose #22036 > >     inl (particle_state default_particle_state') = default_particle_state ()
00:19:58 verbose #22037 > >     linear_spring k re (particle_state { default_particle_state' with pos_vec =
00:19:58 verbose #22038 > > r1 })
00:19:58 verbose #22039 > >
00:19:58 verbose #22040 > > inl forces_string () =
00:19:58 verbose #22041 > >     [[
00:19:58 verbose #22042 > >         ExternalForce (0, fixed_linear_spring 5384 0 (zero_vec ()))
00:19:58 verbose #22043 > >         ExternalForce (63, fixed_linear_spring 5384 0 (0.65 *^ i_hat ()))
00:19:58 verbose #22044 > >     ]] ++ (
00:19:58 verbose #22045 > >         listm'.init_series 0 59 1
00:19:58 verbose #22046 > >         |> listm.map (fun n => InternalForce (n, n + 1, linear_spring 5384 0))
00:19:58 verbose #22047 > >     )
00:19:58 verbose #22048 > >
00:19:58 verbose #22049 > > inl string_update dt =
00:19:58 verbose #22050 > >     update_mps (runge_kutta_4 dt) (forces_string ())
00:19:58 verbose #22051 > >
00:19:58 verbose #22052 > > inl string_initial_overtone n =
00:19:58 verbose #22053 > >     inl ball_mass = 0.0008293 * 0.65 / 64
00:19:58 verbose #22054 > >     inl (particle_state default_particle_state') = default_particle_state ()
00:19:58 verbose #22055 > >     listm'.init_series 0.01 0.64 0.01
00:19:58 verbose #22056 > >     |> listm.map (fun x =>
00:19:58 verbose #22057 > >         inl y = 0.005 * sin (conv n * pi * x / 0.65)
00:19:58 verbose #22058 > >         particle_state {
00:19:58 verbose #22059 > >             default_particle_state' with
00:19:58 verbose #22060 > >                 mass = ball_mass
00:19:58 verbose #22061 > >                 pos_vec = x *^ i_hat () ^+^ y *^ j_hat ()
00:19:58 verbose #22062 > >                 velocity = zero_vec ()
00:19:58 verbose #22063 > >         }
00:19:58 verbose #22064 > >     )
00:19:58 verbose #22065 > >     |> multi_particle_state
00:19:58 verbose #22066 > >
00:19:58 verbose #22067 > > inl string_initial_pluck () =
00:19:58 verbose #22068 > >     inl ball_mass = 0.0008293 * 0.65 / 64
00:19:58 verbose #22069 > >     inl (particle_state default_particle_state') = default_particle_state ()
00:19:58 verbose #22070 > >     listm'.init_series 0.01 0.64 0.01
00:19:58 verbose #22071 > >     |> listm.map (fun x =>
00:19:58 verbose #22072 > >         inl y =
00:19:58 verbose #22073 > >             inl n = if x <= 0.51 then 0 else 0.65
00:19:58 verbose #22074 > >             0.005 / (0.51 - n) * (x - n)
00:19:58 verbose #22075 > >         particle_state {
00:19:58 verbose #22076 > >             default_particle_state' with
00:19:58 verbose #22077 > >                 mass = ball_mass
00:19:58 verbose #22078 > >                 pos_vec = x *^ i_hat () ^+^ y *^ j_hat ()
00:19:58 verbose #22079 > >                 velocity = zero_vec ()
00:19:58 verbose #22080 > >         }
00:19:58 verbose #22081 > >     )
00:19:58 verbose #22082 > >     |> multi_particle_state
00:19:58 verbose #22083 > >
00:19:58 verbose #22084 > > let main () =
00:19:58 verbose #22085 > >     inl ~frames = listm'.init_series 0 9 1f64
00:19:58 verbose #22086 > >     inl initial_state = string_initial_overtone 3i32
00:19:58 verbose #22087 > >     inl frames =
00:19:58 verbose #22088 > >         frames
00:19:58 verbose #22089 > >         |> listm.map (fun n =>
00:19:58 verbose #22090 > >             inl (multi_particle_state sts) =
00:19:58 verbose #22091 > >                 seq.iterate' (string_update 0.000025) initial_state |> fun f =>
00:19:58 verbose #22092 > > f 0f64
00:19:58 verbose #22093 > >             inl rs =
00:19:58 verbose #22094 > >                 [[ zero_vec () ]]
00:19:58 verbose #22095 > >                 ++ (sts |> listm.map (fun (particle_state st) => st.pos_vec))
00:19:58 verbose #22096 > >                 ++ [[ 0.65 *^ i_hat () ]]
00:19:58 verbose #22097 > >             inl x, y =
00:19:58 verbose #22098 > >                 rs
00:19:58 verbose #22099 > >                 |> listm.map (fun r => r.x, r.y)
00:19:58 verbose #22100 > >                 |> listm'.unzip
00:19:58 verbose #22101 > >             inl x = x |> listm'.box |> listm'.to_array'
00:19:58 verbose #22102 > >             inl y = y |> listm'.box |> listm'.to_array'
00:19:58 verbose #22103 > >             x, y
00:19:58 verbose #22104 > >         )
00:19:58 verbose #22105 > >         |> listm'.box |> listm'.to_array'
00:19:58 verbose #22106 > >
00:19:58 verbose #22107 > >     inl n = 0i32
00:19:58 verbose #22108 > >
00:19:58 verbose #22109 > >     inl x, y = a frames |> am'.index n
00:19:58 verbose #22110 > >
00:19:58 verbose #22111 > >     "wave",
00:19:58 verbose #22112 > >     "position (m)",
00:19:58 verbose #22113 > >     "displacement (m)",
00:19:58 verbose #22114 > >     ;[[
00:19:58 verbose #22115 > >         ($'$"{!n}"' : string), x, y
00:19:58 verbose #22116 > >     ]]
00:19:58 verbose #22117 > 00:19:58   debug #1181 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f6b18424855979ef25e67e10654bdc2d22c6d1ab98f1cabe81e780b2a5242fe7/main.spi
00:19:59 verbose #22118 > >
00:19:59 verbose #22119 > > ╭─[ 642.57ms - return value ]──────────────────────────────────────────────────╮
00:19:59 verbose #22120 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:19:59 verbose #22121 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:19:59 verbose #22122 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:19:59 verbose #22123 > > │ stroke="none"/>                                                              │
00:19:59 verbose #22124 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:19:59 verbose #22125 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:19:59 verbose #22126 > > │ fill="#FFFFFF">                                                              │
00:19:59 verbose #22127 > > │ wave                                                                         │
00:19:59 verbose #22128 > > │ </text>                                                                      │
00:19:59 verbose #22129 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="62" y1="424" x2="62" │
00:19:59 verbose #22130 > > │ y2="75"/>                                                                    │
00:19:59 verbose #22131 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:19:59 verbose #22132 > > │ y2="75"/>                                                                    │
00:19:59 verbose #22133 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="77" y1="424" x2="77" │
00:19:59 verbose #22134 > > │ y2="75"/>                                                                    │
00:19:59 verbose #22135 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="85" y1="424" x2="85" │
00:19:59 verbose #22136 > > │ y2="75"/>                                                                    │
00:19:59 verbose #22137 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="93" y1="424" x2="93" │
00:19:59 verbose #22138 > > │ y2="75"/>                                                                    │
00:19:59 verbose #22139 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="100" y1="424"        │
00:19:59 verbose #22140 > > │ x2="100" y2="75"/>                                                           │
00:19:59 verbose #22141 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="108" y1="424"        │
00:19:59 verbose #22142 > > │ x2="108" y2="75"/>                                                           │
00:19:59 verbose #22143 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="116" y1="424"        │
00:19:59 verbose #22144 > > │ x2="116" y2="75"/>                                                           │
00:19:59 verbose #22145 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="123" y1="424"        │
00:19:59 verbose #22146 > > │ x2="123" y2="75"/>                                                           │
00:19:59 verbose #22147 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="131" y1="424"        │
00:19:59 verbose #22148 > > │ x2="131" y2="75"/>                                                           │
00:19:59 verbose #22149 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="139" y1="424"        │
00:19:59 verbose #22150 > > │ x2="139" y2="75"/>                                                           │
00:19:59 verbose #22151 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="146" y1="424"        │
00:19:59 verbose #22152 > > │ x2="146" y2="75"/>                                                           │
00:19:59 verbose #22153 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="154" y1="424"        │
00:19:59 verbose #22154 > > │ x2="154" y2="75"/>                                                           │
00:19:59 verbose #22155 > > │ <line opacity="1" stroke="#32...ne fill="none" opacity="1" stroke="#FFFFFF"  │
00:19:59 verbose #22156 > > │ stroke-width="1" points="585,250 590,250 "/>                                 │
00:19:59 verbose #22157 > > │ <text x="617" y="184" dy="0.5ex" text-anchor="end" font-family="sans-serif"  │
00:19:59 verbose #22158 > > │ font-size="9.67741935483871" opacity="1" fill="#FFFFFF">                     │
00:19:59 verbose #22159 > > │ 0.0                                                                          │
00:19:59 verbose #22160 > > │ </text>                                                                      │
00:19:59 verbose #22161 > > │ <polyline fill="none" opacity="1" stroke="#FFFFFF" stroke-width="1"          │
00:19:59 verbose #22162 > > │ points="585,184 590,184 "/>                                                  │
00:19:59 verbose #22163 > > │ <text x="617" y="118" dy="0.5ex" text-anchor="end" font-family="sans-serif"  │
00:19:59 verbose #22164 > > │ font-size="9.67741935483871" opacity="1" fill="#FFFFFF">                     │
00:19:59 verbose #22165 > > │ 0.0                                                                          │
00:19:59 verbose #22166 > > │ </text>                                                                      │
00:19:59 verbose #22167 > > │ <polyline fill="none" opacity="1" stroke="#FFFFFF" stroke-width="1"          │
00:19:59 verbose #22168 > > │ points="585,118 590,118 "/>                                                  │
00:19:59 verbose #22169 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:19:59 verbose #22170 > > │ points="69,250 77,226 85,203 93,181 100,160 108,141 116,124 123,110 131,99   │
00:19:59 verbose #22171 > > │ 139,91 146,87 154,85 162,88 169,93 177,102 185,115 192,129 200,147 208,167   │
00:19:59 verbose #22172 > > │ 215,188 223,211 231,234 238,258 246,282 254,305 261,327 269,347 277,365      │
00:19:59 verbose #22173 > > │ 284,381 292,394 300,404 307,411 315,415 323,415 331,411 338,404 346,394      │
00:19:59 verbose #22174 > > │ 354,381 361,365 369,347 377,327 384,305 392,282 400,258 407,234 415,211      │
00:19:59 verbose #22175 > > │ 423,188 430,167 438,147 446,129 453,115 461,102 469,93 476,88 484,85 492,87  │
00:19:59 verbose #22176 > > │ 499,91 507,99 515,110 522,124 530,141 538,160 545,181 553,203 561,226        │
00:19:59 verbose #22177 > > │ 569,250 "/>                                                                  │
00:19:59 verbose #22178 > > │ <rect x="525" y="235" width="55" height="30" opacity="1" fill="none"         │
00:19:59 verbose #22179 > > │ stroke="#FFFFFF"/>                                                           │
00:19:59 verbose #22180 > > │ <text x="565" y="245" dy="0.76em" text-anchor="start"                        │
00:19:59 verbose #22181 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:19:59 verbose #22182 > > │ fill="#FFFFFF">                                                              │
00:19:59 verbose #22183 > > │ 0                                                                            │
00:19:59 verbose #22184 > > │ </text>                                                                      │
00:19:59 verbose #22185 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:19:59 verbose #22186 > > │ points="535,250 555,250 "/>                                                  │
00:19:59 verbose #22187 > > │ </svg>                                                                       │
00:19:59 verbose #22188 > > │                                                                              │
00:19:59 verbose #22189 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:59 verbose #22190 > >
00:19:59 verbose #22191 > > ── markdown ────────────────────────────────────────────────────────────────────
00:19:59 verbose #22192 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:19:59 verbose #22193 > > │ #### system kinetic energy versus time 2                                     │
00:19:59 verbose #22194 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:19:59 verbose #22195 > >
00:19:59 verbose #22196 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:19:59 verbose #22197 > > //// test
00:19:59 verbose #22198 > >
00:19:59 verbose #22199 > > inl central_force f (particle_state st1) (particle_state st2) =
00:19:59 verbose #22200 > >     inl r1 = st1.pos_vec
00:19:59 verbose #22201 > >     inl r2 = st2.pos_vec
00:19:59 verbose #22202 > >     inl r21 = r2 ^-^ r1
00:19:59 verbose #22203 > >     inl r21mag = magnitude r21
00:19:59 verbose #22204 > >     f r21mag *^ r21 ^/ r21mag
00:19:59 verbose #22205 > >
00:19:59 verbose #22206 > > inl billiard_force k re =
00:19:59 verbose #22207 > >     inl f r =
00:19:59 verbose #22208 > >         if r >= re
00:19:59 verbose #22209 > >         then 0
00:19:59 verbose #22210 > >         else -k * (r - re)
00:19:59 verbose #22211 > >     central_force f
00:19:59 verbose #22212 > >
00:19:59 verbose #22213 > > type force_vector = vec
00:19:59 verbose #22214 > > type two_body_force = particle_state -> particle_state -> force_vector
00:19:59 verbose #22215 > >
00:19:59 verbose #22216 > > union force t =
00:19:59 verbose #22217 > >     | ExternalForce : t * one_body_force
00:19:59 verbose #22218 > >     | InternalForce : t * t * two_body_force
00:19:59 verbose #22219 > >
00:19:59 verbose #22220 > > nominal multi_particle_state = stream.stream particle_state
00:19:59 verbose #22221 > >
00:19:59 verbose #22222 > > nominal d_multi_particle_state = stream.stream d_particle_state
00:19:59 verbose #22223 > >
00:19:59 verbose #22224 > > inl force_on n s force =
00:19:59 verbose #22225 > >     match force with
00:19:59 verbose #22226 > >     | ExternalForce (n0, f_one_body) =>
00:19:59 verbose #22227 > >         if n = n0
00:19:59 verbose #22228 > >         then f_one_body
00:19:59 verbose #22229 > >         else fun _ => zero_vec ()
00:19:59 verbose #22230 > >     | InternalForce (n0, n1, f_two_body) =>
00:19:59 verbose #22231 > >         if n = n0
00:19:59 verbose #22232 > >         then s |> stream.try_item n1 |> optionm.map f_two_body
00:19:59 verbose #22233 > >         elif n = n1
00:19:59 verbose #22234 > >         then s |> stream.try_item n0 |> optionm.map f_two_body
00:19:59 verbose #22235 > >         else None
00:19:59 verbose #22236 > >         |> optionm'.default_value (fun _ => zero_vec ())
00:19:59 verbose #22237 > >
00:19:59 verbose #22238 > > inl forces_on n (multi_particle_state sts) fs =
00:19:59 verbose #22239 > >     fs
00:19:59 verbose #22240 > >     |> listm.map (force_on n sts)
00:19:59 verbose #22241 > >
00:19:59 verbose #22242 > > inl newton_second_mps fs ((multi_particle_state sts) as mpst) =
00:19:59 verbose #22243 > >     inl deriv (n, st) =
00:19:59 verbose #22244 > >         newton_second_ps (forces_on n mpst fs) st
00:19:59 verbose #22245 > >     sts |> stream.indexed |> stream.map deriv |> d_multi_particle_state
00:19:59 verbose #22246 > >
00:19:59 verbose #22247 > > instance (+++) d_multi_particle_state =
00:19:59 verbose #22248 > >     fun (d_multi_particle_state dsts1) (d_multi_particle_state dsts2) =>
00:19:59 verbose #22249 > >         (dsts1, dsts2)
00:19:59 verbose #22250 > >         ||> stream.zip_with (+++)
00:19:59 verbose #22251 > >         |> d_multi_particle_state
00:19:59 verbose #22252 > >
00:19:59 verbose #22253 > > instance scale d_multi_particle_state = fun w (d_multi_particle_state dsts) =>
00:19:59 verbose #22254 > >     dsts
00:19:59 verbose #22255 > >     |> stream.map (scale w)
00:19:59 verbose #22256 > >     |> d_multi_particle_state
00:19:59 verbose #22257 > >
00:19:59 verbose #22258 > > instance shift multi_particle_state = fun dt dsts (multi_particle_state sts) =>
00:19:59 verbose #22259 > >     inl (d_multi_particle_state dsts) =
00:19:59 verbose #22260 > >         real
00:19:59 verbose #22261 > >             match dsts with
00:19:59 verbose #22262 > >             | d_multi_particle_state _ => dsts
00:19:59 verbose #22263 > >     (dsts, sts)
00:19:59 verbose #22264 > >     ||> stream.zip_with (shift dt)
00:19:59 verbose #22265 > >     |> stream.memoize
00:19:59 verbose #22266 > >     |> fun x => x ()
00:19:59 verbose #22267 > >     |> multi_particle_state
00:19:59 verbose #22268 > >
00:19:59 verbose #22269 > > inl euler_cromer_mps dt : numerical_method multi_particle_state
00:19:59 verbose #22270 > > d_multi_particle_state =
00:19:59 verbose #22271 > >     fun deriv ((multi_particle_state sts0) as mpst0) =>
00:19:59 verbose #22272 > >         inl (multi_particle_state sts1) = euler dt deriv mpst0
00:19:59 verbose #22273 > >         (sts0, sts1)
00:19:59 verbose #22274 > >         ||> stream.zip
00:19:59 verbose #22275 > >         |> stream.map (fun ((particle_state st0), (particle_state st1)) =>
00:19:59 verbose #22276 > >             particle_state {
00:19:59 verbose #22277 > >                 st1 with
00:19:59 verbose #22278 > >                     pos_vec = st0.pos_vec ^+^ st1.velocity ^* dt
00:19:59 verbose #22279 > >             }
00:19:59 verbose #22280 > >         )
00:19:59 verbose #22281 > >         |> multi_particle_state
00:19:59 verbose #22282 > >
00:19:59 verbose #22283 > > inl update_mps (method : numerical_method multi_particle_state
00:19:59 verbose #22284 > > d_multi_particle_state) =
00:19:59 verbose #22285 > >     newton_second_mps >> method
00:19:59 verbose #22286 > >
00:19:59 verbose #22287 > > inl states_mps (method : numerical_method multi_particle_state
00:19:59 verbose #22288 > > d_multi_particle_state) =
00:19:59 verbose #22289 > >     newton_second_mps
00:19:59 verbose #22290 > >     >> method
00:19:59 verbose #22291 > >     >> (fun x (multi_particle_state y) =>
00:19:59 verbose #22292 > >         y
00:19:59 verbose #22293 > >         |> stream.memoize
00:19:59 verbose #22294 > >         |> (fun x => x ())
00:19:59 verbose #22295 > >         |> multi_particle_state |> x
00:19:59 verbose #22296 > >     )
00:19:59 verbose #22297 > >     // >> stream.iterate
00:19:59 verbose #22298 > >     >> seq.iterate'
00:19:59 verbose #22299 > >
00:19:59 verbose #22300 > > inl kinetic_energy (particle_state st) =
00:19:59 verbose #22301 > >     inl m = st.mass
00:19:59 verbose #22302 > >     inl v = magnitude st.velocity
00:19:59 verbose #22303 > >     0.5 * m * v ** 2
00:19:59 verbose #22304 > >
00:19:59 verbose #22305 > > inl system_ke (multi_particle_state sts) =
00:19:59 verbose #22306 > >     sts
00:19:59 verbose #22307 > >     |> stream.map kinetic_energy
00:19:59 verbose #22308 > >     |> stream.sum
00:19:59 verbose #22309 > >
00:19:59 verbose #22310 > > inl linear_spring_pe k re (particle_state st1) (particle_state st2) =
00:19:59 verbose #22311 > >     inl r1 = st1.pos_vec
00:19:59 verbose #22312 > >     inl r2 = st2.pos_vec
00:19:59 verbose #22313 > >     inl r21 = r2 ^-^ r1
00:19:59 verbose #22314 > >     inl r21mag = magnitude r21
00:19:59 verbose #22315 > >     k * (r21mag - re) ** 2 / 2
00:19:59 verbose #22316 > >
00:19:59 verbose #22317 > > inl earth_surface_gravity_pe (particle_state st) =
00:19:59 verbose #22318 > >     inl g = 9.80665
00:19:59 verbose #22319 > >     inl m = st.mass
00:19:59 verbose #22320 > >     inl z = st.pos_vec.z
00:19:59 verbose #22321 > >     m * g * z
00:19:59 verbose #22322 > >
00:19:59 verbose #22323 > > inl ball_radius () = 0.03
00:19:59 verbose #22324 > >
00:19:59 verbose #22325 > > inl billiard_forces k =
00:19:59 verbose #22326 > >     [[ InternalForce (0i32, 1, billiard_force k (2 * ball_radius ())) ]]
00:19:59 verbose #22327 > >
00:19:59 verbose #22328 > > inl billiard_initial () =
00:19:59 verbose #22329 > >     inl ball_mass = 0.160
00:19:59 verbose #22330 > >     inl (particle_state default_particle_state') = default_particle_state ()
00:19:59 verbose #22331 > >     [[
00:19:59 verbose #22332 > >         particle_state {
00:19:59 verbose #22333 > >             default_particle_state' with
00:19:59 verbose #22334 > >                 mass = ball_mass
00:19:59 verbose #22335 > >                 pos_vec = zero_vec ()
00:19:59 verbose #22336 > >                 velocity = 0.2 *^ i_hat ()
00:19:59 verbose #22337 > >         }
00:19:59 verbose #22338 > >         particle_state {
00:19:59 verbose #22339 > >             default_particle_state' with
00:19:59 verbose #22340 > >                 mass = ball_mass
00:19:59 verbose #22341 > >                 pos_vec = i_hat () ^+^ 0.02 *^ j_hat ()
00:19:59 verbose #22342 > >                 velocity = zero_vec ()
00:19:59 verbose #22343 > >         }
00:19:59 verbose #22344 > >     ]]
00:19:59 verbose #22345 > >     |> stream.from_list
00:19:59 verbose #22346 > >     |> multi_particle_state
00:19:59 verbose #22347 > >
00:19:59 verbose #22348 > > inl billiard_states ~n_method k dt =
00:19:59 verbose #22349 > >     states_mps (n_method dt) (billiard_forces k) (billiard_initial ())
00:19:59 verbose #22350 > >
00:19:59 verbose #22351 > > inl billiard_states_finite n_method k dt =
00:19:59 verbose #22352 > >     billiard_states n_method k dt
00:19:59 verbose #22353 > >     >> Some
00:19:59 verbose #22354 > >     |> seq.take_while_ (fun (multi_particle_state mpst) (_ : i32) =>
00:19:59 verbose #22355 > >         match mpst |> stream.try_item 0i32 with
00:19:59 verbose #22356 > >         | Some st =>
00:19:59 verbose #22357 > >             st.time <= 10
00:19:59 verbose #22358 > >         | None => false
00:19:59 verbose #22359 > >     )
00:19:59 verbose #22360 > >
00:19:59 verbose #22361 > > inl momentum (particle_state st) =
00:19:59 verbose #22362 > >     inl m = st.mass
00:19:59 verbose #22363 > >     inl v = st.velocity
00:19:59 verbose #22364 > >     m *^ v
00:19:59 verbose #22365 > >
00:19:59 verbose #22366 > > inl system_p (multi_particle_state sts) =
00:19:59 verbose #22367 > >     sts
00:19:59 verbose #22368 > >     |> stream.map momentum
00:19:59 verbose #22369 > >     |> stream.fold (^+^) (zero_vec ())
00:19:59 verbose #22370 > >
00:19:59 verbose #22371 > > inl time_ke_ec_x, time_ke_ec_y =
00:19:59 verbose #22372 > >     billiard_states_finite euler_cromer_mps 30 0.03
00:19:59 verbose #22373 > >     |> listm.map (fun (multi_particle_state mpst) =>
00:19:59 verbose #22374 > >         mpst |> stream.try_item 0i32
00:19:59 verbose #22375 > >         |> optionm.map (fun st =>
00:19:59 verbose #22376 > >             st.time, system_ke (multi_particle_state mpst)
00:19:59 verbose #22377 > >         )
00:19:59 verbose #22378 > >     )
00:19:59 verbose #22379 > >     // |> stream.to_list
00:19:59 verbose #22380 > >     |> listm'.choose id
00:19:59 verbose #22381 > >     |> listm'.unzip
00:19:59 verbose #22382 > >
00:19:59 verbose #22383 > > inl time_ke_rk4_x, time_ke_rk4_y =
00:19:59 verbose #22384 > >     billiard_states_finite runge_kutta_4 30 0.03
00:19:59 verbose #22385 > >     |> listm.map (fun (multi_particle_state mpst) =>
00:19:59 verbose #22386 > >         mpst |> stream.try_item 0i32
00:19:59 verbose #22387 > >         |> optionm.map (fun st =>
00:19:59 verbose #22388 > >             st.time, system_ke (multi_particle_state mpst)
00:19:59 verbose #22389 > >         )
00:19:59 verbose #22390 > >     )
00:19:59 verbose #22391 > >     // |> stream.to_list
00:19:59 verbose #22392 > >     |> listm'.choose id
00:19:59 verbose #22393 > >     |> listm'.unzip
00:19:59 verbose #22394 > >
00:19:59 verbose #22395 > > inl time_ke_ec_x = time_ke_ec_x |> listm'.box |> listm'.to_array'
00:19:59 verbose #22396 > > inl time_ke_ec_y = time_ke_ec_y |> listm'.box |> listm'.to_array'
00:19:59 verbose #22397 > >
00:19:59 verbose #22398 > > inl time_ke_rk4_x = time_ke_rk4_x |> listm'.box |> listm'.to_array'
00:19:59 verbose #22399 > > inl time_ke_rk4_y = time_ke_rk4_y |> listm'.box |> listm'.to_array'
00:19:59 verbose #22400 > >
00:19:59 verbose #22401 > > "system kinetic energy versus time",
00:19:59 verbose #22402 > > "time (s)",
00:19:59 verbose #22403 > > "system kinetic energy (j)",
00:19:59 verbose #22404 > > ;[[
00:19:59 verbose #22405 > >     "euler-cromer", time_ke_ec_x, time_ke_ec_y
00:19:59 verbose #22406 > >     "runge-kutta 4", time_ke_rk4_x, time_ke_rk4_y
00:19:59 verbose #22407 > > ]]
00:19:59 verbose #22408 > 00:19:58   debug #1182 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ceffa832d897ffa85ad4257e1162e9703894f6d15d021ab9e6d78e4f64aa7453/main.spi
00:20:01 verbose #22409 > >
00:20:01 verbose #22410 > > ╭─[ 1.95s - return value ]─────────────────────────────────────────────────────╮
00:20:01 verbose #22411 > > │ <svg width="640" height="480" viewBox="0 0 640 480"                          │
00:20:01 verbose #22412 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:20:01 verbose #22413 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:20:01 verbose #22414 > > │ stroke="none"/>                                                              │
00:20:01 verbose #22415 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:20:01 verbose #22416 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:20:01 verbose #22417 > > │ fill="#FFFFFF">                                                              │
00:20:01 verbose #22418 > > │ system kinetic energy versus time                                            │
00:20:01 verbose #22419 > > │ </text>                                                                      │
00:20:01 verbose #22420 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │
00:20:01 verbose #22421 > > │ y2="75"/>                                                                    │
00:20:01 verbose #22422 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:20:01 verbose #22423 > > │ y2="75"/>                                                                    │
00:20:01 verbose #22424 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │
00:20:01 verbose #22425 > > │ y2="75"/>                                                                    │
00:20:01 verbose #22426 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │
00:20:01 verbose #22427 > > │ y2="75"/>                                                                    │
00:20:01 verbose #22428 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="99" y1="424" x2="99" │
00:20:01 verbose #22429 > > │ y2="75"/>                                                                    │
00:20:01 verbose #22430 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="109" y1="424"        │
00:20:01 verbose #22431 > > │ x2="109" y2="75"/>                                                           │
00:20:01 verbose #22432 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="119" y1="424"        │
00:20:01 verbose #22433 > > │ x2="119" y2="75"/>                                                           │
00:20:01 verbose #22434 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="129" y1="424"        │
00:20:01 verbose #22435 > > │ x2="129" y2="75"/>                                                           │
00:20:01 verbose #22436 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="139" y1="424"        │
00:20:01 verbose #22437 > > │ x2="139" y2="75"/>                                                           │
00:20:01 verbose #22438 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="149" y1="424"        │
00:20:01 verbose #22439 > > │ x2="149" y2="75"/>                                                           │
00:20:01 verbose #22440 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="159" y1="424"        │
00:20:01 verbose #22441 > > │ x2="159" y2="75"/>                                                           │
00:20:01 verbose #22442 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="169" y1="424"        │
00:20:01 verbose #22443 > > │ x2="169" y2="75"/>                                                           │
00:20:01 verbose #22444 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="179" y1="424"        │
00:20:01 verbose #22445 > > │ x2="179" y2="75"/>                                                           │
00:20:01 verbose #22446 > > │ ...,104 404,104 405,104 407,104 408,104 410,104 411,104 413,104 414,104      │
00:20:01 verbose #22447 > > │ 416,104 417,104 419,104 420,104 422,104 423,104 425,104 426,104 428,104      │
00:20:01 verbose #22448 > > │ 429,104 431,104 432,104 434,104 435,104 437,104 438,104 440,104 441,104      │
00:20:01 verbose #22449 > > │ 443,104 444,104 446,104 447,104 449,104 450,104 452,104 453,104 455,104      │
00:20:01 verbose #22450 > > │ 456,104 458,104 459,104 461,104 462,104 464,104 465,104 467,104 468,104      │
00:20:01 verbose #22451 > > │ 470,104 471,104 473,104 474,104 476,104 477,104 479,104 480,104 482,104      │
00:20:01 verbose #22452 > > │ 483,104 485,104 486,104 488,104 489,104 491,104 492,104 494,104 495,104      │
00:20:01 verbose #22453 > > │ 497,104 498,104 500,104 501,104 503,104 504,104 506,104 507,104 509,104      │
00:20:01 verbose #22454 > > │ 510,104 512,104 513,104 515,104 516,104 518,104 519,104 521,104 522,104      │
00:20:01 verbose #22455 > > │ 524,104 525,104 527,104 528,104 530,104 531,104 533,104 534,104 536,104      │
00:20:01 verbose #22456 > > │ 537,104 539,104 540,104 542,104 543,104 545,104 546,104 548,104 549,104      │
00:20:01 verbose #22457 > > │ 551,104 552,104 554,104 555,104 557,104 558,104 560,104 561,104 563,104      │
00:20:01 verbose #22458 > > │ 564,104 566,104 567,104 569,104 "/>                                          │
00:20:01 verbose #22459 > > │ <rect x="459" y="227" width="121" height="45" opacity="1" fill="none"        │
00:20:01 verbose #22460 > > │ stroke="#FFFFFF"/>                                                           │
00:20:01 verbose #22461 > > │ <text x="499" y="237" dy="0.76em" text-anchor="start"                        │
00:20:01 verbose #22462 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:20:01 verbose #22463 > > │ fill="#FFFFFF">                                                              │
00:20:01 verbose #22464 > > │ euler-cromer                                                                 │
00:20:01 verbose #22465 > > │ </text>                                                                      │
00:20:01 verbose #22466 > > │ <text x="499" y="252" dy="0.76em" text-anchor="start"                        │
00:20:01 verbose #22467 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:20:01 verbose #22468 > > │ fill="#FFFFFF">                                                              │
00:20:01 verbose #22469 > > │ runge-kutta 4                                                                │
00:20:01 verbose #22470 > > │ </text>                                                                      │
00:20:01 verbose #22471 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:20:01 verbose #22472 > > │ points="469,242 489,242 "/>                                                  │
00:20:01 verbose #22473 > > │ <polyline fill="none" opacity="1" stroke="#0000FF" stroke-width="1"          │
00:20:01 verbose #22474 > > │ points="469,257 489,257 "/>                                                  │
00:20:01 verbose #22475 > > │ </svg>                                                                       │
00:20:01 verbose #22476 > > │                                                                              │
00:20:01 verbose #22477 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:01 verbose #22478 > >
00:20:01 verbose #22479 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:01 verbose #22480 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:01 verbose #22481 > > │ #### wave 2                                                                  │
00:20:01 verbose #22482 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:01 verbose #22483 > >
00:20:01 verbose #22484 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:01 verbose #22485 > > //// test
00:20:01 verbose #22486 > >
00:20:01 verbose #22487 > > inl linear_spring k re (particle_state st1) (particle_state st2) =
00:20:01 verbose #22488 > >     inl r1 = st1.pos_vec
00:20:01 verbose #22489 > >     inl r2 = st2.pos_vec
00:20:01 verbose #22490 > >     inl r21 = r2 ^-^ r1
00:20:01 verbose #22491 > >     inl r21mag = magnitude r21
00:20:01 verbose #22492 > >     -k * (r21mag - re) *^ r21 ^/ r21mag
00:20:01 verbose #22493 > >
00:20:01 verbose #22494 > > inl fixed_linear_spring k re r1 =
00:20:01 verbose #22495 > >     inl (particle_state default_particle_state') = default_particle_state ()
00:20:01 verbose #22496 > >     linear_spring k re (particle_state { default_particle_state' with pos_vec =
00:20:01 verbose #22497 > > r1 })
00:20:01 verbose #22498 > >
00:20:01 verbose #22499 > > inl forces_string () =
00:20:01 verbose #22500 > >     [[
00:20:01 verbose #22501 > >         ExternalForce (0i32, fixed_linear_spring 5384 0 (zero_vec ()))
00:20:01 verbose #22502 > >         ExternalForce (63, fixed_linear_spring 5384 0 (0.65 *^ i_hat ()))
00:20:01 verbose #22503 > >     ]] ++ (
00:20:01 verbose #22504 > >         listm'.init_series 0 59 1
00:20:01 verbose #22505 > >         |> listm.map (fun n => InternalForce (n, n + 1, linear_spring 5384 0))
00:20:01 verbose #22506 > >     )
00:20:01 verbose #22507 > >
00:20:01 verbose #22508 > > inl string_update dt =
00:20:01 verbose #22509 > >     update_mps (join runge_kutta_4 dt) (join forces_string ())
00:20:01 verbose #22510 > >
00:20:01 verbose #22511 > > inl string_initial_overtone n =
00:20:01 verbose #22512 > >     inl ball_mass = 0.0008293 * 0.65 / 64
00:20:01 verbose #22513 > >     inl (particle_state default_particle_state') = default_particle_state ()
00:20:01 verbose #22514 > >     listm'.init_series 0.01 0.64 0.01
00:20:01 verbose #22515 > >     |> listm.map (fun x =>
00:20:01 verbose #22516 > >         inl y = 0.005 * sin (conv n * pi * x / 0.65)
00:20:01 verbose #22517 > >         particle_state {
00:20:01 verbose #22518 > >             default_particle_state' with
00:20:01 verbose #22519 > >                 mass = ball_mass
00:20:01 verbose #22520 > >                 pos_vec = x *^ i_hat () ^+^ y *^ j_hat ()
00:20:01 verbose #22521 > >                 velocity = zero_vec ()
00:20:01 verbose #22522 > >         }
00:20:01 verbose #22523 > >     )
00:20:01 verbose #22524 > >     |> stream.from_list
00:20:01 verbose #22525 > >     |> multi_particle_state
00:20:01 verbose #22526 > >
00:20:01 verbose #22527 > > let main () =
00:20:01 verbose #22528 > >     inl ~frames = listm'.init_series 0 65 1f64 |> stream.from_list
00:20:01 verbose #22529 > >     inl ~initial_state = string_initial_overtone 3i32
00:20:01 verbose #22530 > >     inl frames =
00:20:01 verbose #22531 > >         frames
00:20:01 verbose #22532 > >         |> stream.map (fun n =>
00:20:01 verbose #22533 > >             inl (multi_particle_state sts) =
00:20:01 verbose #22534 > >                 stream.iterate (string_update 0.000025) initial_state |>
00:20:01 verbose #22535 > > stream.item n
00:20:01 verbose #22536 > >             inl x, y =
00:20:01 verbose #22537 > >                 [[ zero_vec () ]]
00:20:01 verbose #22538 > >                 ++ (sts |> stream.map (fun (particle_state st) => st.pos_vec) |>
00:20:01 verbose #22539 > > stream.to_list)
00:20:01 verbose #22540 > >                 ++ [[ 0.65 *^ i_hat () ]]
00:20:01 verbose #22541 > >                 |> listm.map (fun r => r.x, r.y)
00:20:01 verbose #22542 > >                 |> stream.from_list
00:20:01 verbose #22543 > >                 |> stream.unzip
00:20:01 verbose #22544 > >             inl x = x |> stream.to_list |> listm'.box |> listm'.to_array'
00:20:01 verbose #22545 > >             inl y = y |> stream.to_list |> listm'.box |> listm'.to_array'
00:20:01 verbose #22546 > >             x, y
00:20:01 verbose #22547 > >         )
00:20:01 verbose #22548 > >
00:20:01 verbose #22549 > >     inl plots =
00:20:01 verbose #22550 > >         frames
00:20:01 verbose #22551 > >         |> stream.indexed
00:20:01 verbose #22552 > >         |> stream.map (fun ((n : i32), (x, y)) =>
00:20:01 verbose #22553 > >             "wave",
00:20:01 verbose #22554 > >             "position (m)",
00:20:01 verbose #22555 > >             "displacement (m)",
00:20:01 verbose #22556 > >             ;[[
00:20:01 verbose #22557 > >                 ($'$"{!n}"' : string), x, y
00:20:01 verbose #22558 > >             ]]
00:20:01 verbose #22559 > >         )
00:20:01 verbose #22560 > >
00:20:01 verbose #22561 > >     plots |> stream.to_list |> listm'.box |> listm'.to_array'
00:20:01 verbose #22562 > 00:20:00   debug #1183 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/df2d611af59096748751c665fdf6a3750681db0aebac8e665f953d6137d4aa08/main.spi
00:20:07 verbose #22563 > >
00:20:07 verbose #22564 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:07 verbose #22565 > > ╭─[ 6.05s - diagnostics ]──────────────────────────────────────────────────────╮
00:20:07 verbose #22566 > > │ input.fsx (22,25)-(1084,1085) typecheck warning Incomplete pattern matches   │
00:20:07 verbose #22567 > > │ on this expression. For example, the value 'UH7_1 (_, _, _, _)' may indicate │
00:20:07 verbose #22568 > > │ a case not covered by the pattern(s).                                        │
00:20:07 verbose #22569 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:08 verbose #22570 > >
00:20:08 verbose #22571 > > ╭─[ 6.74s - return value ]─────────────────────────────────────────────────────╮
00:20:08 verbose #22572 > > │ <table><thead><tr><th><i>index</i></th><th>value</th></tr></thead><tbody><tr │
00:20:08 verbose #22573 > > │ ><td>0</td><td><svg width="640" height="480" viewBox="0 0 640 480"           │
00:20:08 verbose #22574 > > │ xmlns="http://www.w3.org/2000/svg">                                          │
00:20:08 verbose #22575 > > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414"        │
00:20:08 verbose #22576 > > │ stroke="none"/>                                                              │
00:20:08 verbose #22577 > > │ <text x="320" y="10" dy="0.76em" text-anchor="middle"                        │
00:20:08 verbose #22578 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:20:08 verbose #22579 > > │ fill="#FFFFFF">                                                              │
00:20:08 verbose #22580 > > │ wave                                                                         │
00:20:08 verbose #22581 > > │ </text>                                                                      │
00:20:08 verbose #22582 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="62" y1="424" x2="62" │
00:20:08 verbose #22583 > > │ y2="75"/>                                                                    │
00:20:08 verbose #22584 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:20:08 verbose #22585 > > │ y2="75"/>                                                                    │
00:20:08 verbose #22586 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="77" y1="424" x2="77" │
00:20:08 verbose #22587 > > │ y2="75"/>                                                                    │
00:20:08 verbose #22588 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="85" y1="424" x2="85" │
00:20:08 verbose #22589 > > │ y2="75"/>                                                                    │
00:20:08 verbose #22590 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="93" y1="424" x2="93" │
00:20:08 verbose #22591 > > │ y2="75"/>                                                                    │
00:20:08 verbose #22592 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="100" y1="424"        │
00:20:08 verbose #22593 > > │ x2="100" y2="75"/>                                                           │
00:20:08 verbose #22594 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="108" y1="424"        │
00:20:08 verbose #22595 > > │ x2="108" y2="75"/>                                                           │
00:20:08 verbose #22596 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="116" y1="424"        │
00:20:08 verbose #22597 > > │ x2="116" y2="75"/>                                                           │
00:20:08 verbose #22598 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="123" y1="424"        │
00:20:08 verbose #22599 > > │ x2="123" y2="75"/>                                                           │
00:20:08 verbose #22600 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="131" y1="424"        │
00:20:08 verbose #22601 > > │ x2="131" y2="75"/>                                                           │
00:20:08 verbose #22602 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="139" y1="424"        │
00:20:08 verbose #22603 > > │ x2="139" y2="75"/>                                                           │
00:20:08 verbose #22604 > > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="146" y1="424"        │
00:20:08 verbose #22605 > > │ x2="146" y2="75"/>                                                           │
00:20:08 verbose #22606 > > │ <line opacity="1" stroke="#...28 590,128 "/>                                 │
00:20:08 verbose #22607 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:20:08 verbose #22608 > > │ points="69,363 77,322 85,283 92,246 100,211 107,179 115,151 122,127 130,108  │
00:20:08 verbose #22609 > > │ 138,95 145,87 153,85 160,89 168,99 175,114 183,134 190,159 198,188 205,220   │
00:20:08 verbose #22610 > > │ 212,253 218,284 223,311 226,329 227,337 226,337 224,333 223,334 223,344      │
00:20:08 verbose #22611 > > │ 224,357 225,367 224,370 223,374 224,383 224,393 224,397 224,400 224,406      │
00:20:08 verbose #22612 > > │ 224,411 224,412 224,413 224,415 224,413 224,411 224,409 224,405 224,400      │
00:20:08 verbose #22613 > > │ 224,395 224,388 224,382 224,375 224,367 224,360 224,353 224,346 224,339      │
00:20:08 verbose #22614 > > │ 224,332 224,327 224,322 224,318 224,314 224,312 224,311 539,239 546,279      │
00:20:08 verbose #22615 > > │ 569,403 561,363 "/>                                                          │
00:20:08 verbose #22616 > > │ <rect x="519" y="235" width="61" height="30" opacity="1" fill="none"         │
00:20:08 verbose #22617 > > │ stroke="#FFFFFF"/>                                                           │
00:20:08 verbose #22618 > > │ <text x="559" y="245" dy="0.76em" text-anchor="start"                        │
00:20:08 verbose #22619 > > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1"            │
00:20:08 verbose #22620 > > │ fill="#FFFFFF">                                                              │
00:20:08 verbose #22621 > > │ 65                                                                           │
00:20:08 verbose #22622 > > │ </text>                                                                      │
00:20:08 verbose #22623 > > │ <polyline fill="none" opacity="1" stroke="#FF0000" stroke-width="1"          │
00:20:08 verbose #22624 > > │ points="529,250 549,250 "/>                                                  │
00:20:08 verbose #22625 > > │ </svg>                                                                       │
00:20:08 verbose #22626 > > │ </td></tr></tbody></table><style>                                            │
00:20:08 verbose #22627 > > │ .dni-code-hint {                                                             │
00:20:08 verbose #22628 > > │     font-style: italic;                                                      │
00:20:08 verbose #22629 > > │     overflow: hidden;                                                        │
00:20:08 verbose #22630 > > │     white-space: nowrap;                                                     │
00:20:08 verbose #22631 > > │ }                                                                            │
00:20:08 verbose #22632 > > │ .dni-treeview {                                                              │
00:20:08 verbose #22633 > > │     white-space: nowrap;                                                     │
00:20:08 verbose #22634 > > │ }                                                                            │
00:20:08 verbose #22635 > > │ .dni-treeview td {                                                           │
00:20:08 verbose #22636 > > │     vertical-align: top;                                                     │
00:20:08 verbose #22637 > > │     text-align: start;                                                       │
00:20:08 verbose #22638 > > │ }                                                                            │
00:20:08 verbose #22639 > > │ details.dni-treeview {                                                       │
00:20:08 verbose #22640 > > │     padding-left: 1em;                                                       │
00:20:08 verbose #22641 > > │ }                                                                            │
00:20:08 verbose #22642 > > │ table td {                                                                   │
00:20:08 verbose #22643 > > │     text-align: start;                                                       │
00:20:08 verbose #22644 > > │ }                                                                            │
00:20:08 verbose #22645 > > │ table tr {                                                                   │
00:20:08 verbose #22646 > > │     vertical-align: top;                                                     │
00:20:08 verbose #22647 > > │     margin: 0em 0px;                                                         │
00:20:08 verbose #22648 > > │ }                                                                            │
00:20:08 verbose #22649 > > │ table tr td pre                                                              │
00:20:08 verbose #22650 > > │ {                                                                            │
00:20:08 verbose #22651 > > │     vertical-align: top !important;                                          │
00:20:08 verbose #22652 > > │     margin: 0em 0px !important;                                              │
00:20:08 verbose #22653 > > │ }                                                                            │
00:20:08 verbose #22654 > > │ table th {                                                                   │
00:20:08 verbose #22655 > > │     text-align: start;                                                       │
00:20:08 verbose #22656 > > │ }                                                                            │
00:20:08 verbose #22657 > > │ </style>                                                                     │
00:20:08 verbose #22658 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:08 verbose #22659 > >
00:20:08 verbose #22660 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:08 verbose #22661 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:08 verbose #22662 > > │ ## end                                                                       │
00:20:08 verbose #22663 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:08 verbose #22664 > 00:01:04 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 157679 }
00:20:08 verbose #22665 > 00:01:04   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/physics.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/physics.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:20:10 verbose #22666 > 00:01:06 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/physics.dib.ipynb to html
00:20:10 verbose #22667 > 00:01:06 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:20:10 verbose #22668 > 00:01:06 verbose #7 !   validate(nb)
00:20:15 verbose #22669 > 00:01:10 verbose #8 ! [NbConvertApp] Writing 2508152 bytes to c:\home\git\polyglot\lib\spiral\physics.dib.html
00:20:15 verbose #22670 > 00:01:11 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 646 }
00:20:15 verbose #22671 > 00:01:11   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 646 }
00:20:15 verbose #22672 > 00:01:11   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/physics.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/physics.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:20:16 verbose #22673 > 00:01:12 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:20:16 verbose #22674 > 00:01:12   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:20:17 verbose #22675 > 00:01:12   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 158384 }
00:20:17   debug #22676 runtime.execute_with_options_async / { exit_code = 0; output_length = 166848 }
00:20:17   debug #29 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path physics.dib --retries 3
00:20:17   debug #22677 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path seq.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:20:17 verbose #22678 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "seq.dib", "--retries", "3"])) }
00:20:17 verbose #22679 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/seq.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/seq.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/seq.dib" --output-path "c:/home/git/polyglot/lib/spiral/seq.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:20:19 verbose #22680 > >
00:20:19 verbose #22681 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:19 verbose #22682 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:19 verbose #22683 > > │ # seq                                                                        │
00:20:19 verbose #22684 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:24 verbose #22685 > >
00:20:24 verbose #22686 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:24 verbose #22687 > > //// test
00:20:24 verbose #22688 > >
00:20:24 verbose #22689 > > open testing
00:20:24 verbose #22690 > 00:20:24   debug #1184 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7845de436c12d0ca65282fe0cd65832468ca943e72feba50e6b1bb441e251a/main.spi
00:20:25 verbose #22691 > >
00:20:25 verbose #22692 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:25 verbose #22693 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:25 verbose #22694 > > │ ## types                                                                     │
00:20:25 verbose #22695 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:25 verbose #22696 > >
00:20:25 verbose #22697 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:25 verbose #22698 > > inl types () =
00:20:25 verbose #22699 > >     backend_switch {
00:20:25 verbose #22700 > >         Fsharp = fun () =>
00:20:25 verbose #22701 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:20:25 verbose #22702 > > Fable.Core.Emit(\"core::iter::Fuse<$0>\")>]]\n#endif\ntype core_iter_Fuse<'T> =
00:20:25 verbose #22703 > > class end"
00:20:25 verbose #22704 > >         Python = fun () => ()
00:20:25 verbose #22705 > >     }
00:20:25 verbose #22706 > 00:20:24   debug #1185 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1de3dfd2abb229bcf61ad77d78b1c4729dd9645a09d9153cc7b7e37ad5438085/main.spi
00:20:25 verbose #22707 > >
00:20:25 verbose #22708 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:25 verbose #22709 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:25 verbose #22710 > > │ ## seq                                                                       │
00:20:25 verbose #22711 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:25 verbose #22712 > >
00:20:25 verbose #22713 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:25 verbose #22714 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:25 verbose #22715 > > │ ### seq                                                                      │
00:20:25 verbose #22716 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:25 verbose #22717 > >
00:20:25 verbose #22718 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:25 verbose #22719 > > type seq dim el = dim -> option el
00:20:26 verbose #22720 > 00:20:25   debug #1186 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d040cd386130e2a45fa539aeed5716a1425adb2e1367933f31ad1011ee3c4afd/main.spi
00:20:26 verbose #22721 > >
00:20:26 verbose #22722 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:26 verbose #22723 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:26 verbose #22724 > > │ ### try_item                                                                 │
00:20:26 verbose #22725 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:26 verbose #22726 > >
00:20:26 verbose #22727 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:26 verbose #22728 > > inl try_item n s =
00:20:26 verbose #22729 > >     n |> s
00:20:26 verbose #22730 > 00:20:25   debug #1187 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2817aa5db40e7cb763bc7ea3ce4072b9336006359525af9d5b0a764a85c3989f/main.spi
00:20:26 verbose #22731 > >
00:20:26 verbose #22732 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:26 verbose #22733 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:26 verbose #22734 > > │ ### from_list                                                                │
00:20:26 verbose #22735 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:26 verbose #22736 > >
00:20:26 verbose #22737 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:26 verbose #22738 > > inl from_list list =
00:20:26 verbose #22739 > >     fun n =>
00:20:26 verbose #22740 > >         list
00:20:26 verbose #22741 > >         |> listm'.try_item n
00:20:26 verbose #22742 > 00:20:26   debug #1188 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/97024867feafb5c9ab40e42478aaae488dd35c8ac80372ab6b67eef8f83e49af/main.spi
00:20:26 verbose #22743 > >
00:20:26 verbose #22744 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:26 verbose #22745 > > //// test
00:20:26 verbose #22746 > >
00:20:26 verbose #22747 > > listm.init 10i32 print_and_return
00:20:26 verbose #22748 > > |> from_list
00:20:26 verbose #22749 > > |> try_item 5i32
00:20:26 verbose #22750 > > |> _assert_eq (Some 5i32)
00:20:27 verbose #22751 > 00:20:26   debug #1189 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/26609169884f7e91b8e7de457d056b4ba6fbf00baad1700c16bab190830066d4/main.spi
00:20:28 verbose #22752 > >
00:20:28 verbose #22753 > > ╭─[ 1.49s - stdout ]───────────────────────────────────────────────────────────╮
00:20:28 verbose #22754 > > │ print_and_return / x: 0                                                      │
00:20:28 verbose #22755 > > │ print_and_return / x: 1                                                      │
00:20:28 verbose #22756 > > │ print_and_return / x: 2                                                      │
00:20:28 verbose #22757 > > │ print_and_return / x: 3                                                      │
00:20:28 verbose #22758 > > │ print_and_return / x: 4                                                      │
00:20:28 verbose #22759 > > │ print_and_return / x: 5                                                      │
00:20:28 verbose #22760 > > │ print_and_return / x: 6                                                      │
00:20:28 verbose #22761 > > │ print_and_return / x: 7                                                      │
00:20:28 verbose #22762 > > │ print_and_return / x: 8                                                      │
00:20:28 verbose #22763 > > │ print_and_return / x: 9                                                      │
00:20:28 verbose #22764 > > │ assert_eq / actual: US0_0 5 / expected: US0_0 5                              │
00:20:28 verbose #22765 > > │                                                                              │
00:20:28 verbose #22766 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:28 verbose #22767 > >
00:20:28 verbose #22768 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:28 verbose #22769 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:28 verbose #22770 > > │ ### map                                                                      │
00:20:28 verbose #22771 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:28 verbose #22772 > >
00:20:28 verbose #22773 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:28 verbose #22774 > > inl map fn s =
00:20:28 verbose #22775 > >     fun n =>
00:20:28 verbose #22776 > >         n
00:20:28 verbose #22777 > >         |> s
00:20:28 verbose #22778 > >         |> optionm.map fn
00:20:28 verbose #22779 > 00:20:27   debug #1190 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8a1a6911d06e3347251f3abae30b819a2bd895d6f81e62ee8beda6724e7b83c4/main.spi
00:20:28 verbose #22780 > >
00:20:28 verbose #22781 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:28 verbose #22782 > > //// test
00:20:28 verbose #22783 > >
00:20:28 verbose #22784 > > listm.init 10i32 id
00:20:28 verbose #22785 > > |> from_list
00:20:28 verbose #22786 > > |> map ((*) 2)
00:20:28 verbose #22787 > > |> try_item 5i32
00:20:28 verbose #22788 > > |> _assert_eq (Some 10i32)
00:20:29 verbose #22789 > 00:20:28   debug #1191 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1a8f0836b11002fc64bf5628d09ae21223bb54b289a002d50e69d7183ba058a8/main.spi
00:20:29 verbose #22790 > >
00:20:29 verbose #22791 > > ╭─[ 411.84ms - stdout ]────────────────────────────────────────────────────────╮
00:20:29 verbose #22792 > > │ assert_eq / actual: US0_0 10 / expected: US0_0 10                            │
00:20:29 verbose #22793 > > │                                                                              │
00:20:29 verbose #22794 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:29 verbose #22795 > >
00:20:29 verbose #22796 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:29 verbose #22797 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:29 verbose #22798 > > │ ### mapi                                                                     │
00:20:29 verbose #22799 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:29 verbose #22800 > >
00:20:29 verbose #22801 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:29 verbose #22802 > > inl mapi fn s =
00:20:29 verbose #22803 > >     fun n =>
00:20:29 verbose #22804 > >         n
00:20:29 verbose #22805 > >         |> s
00:20:29 verbose #22806 > >         |> optionm.map (fn n)
00:20:29 verbose #22807 > 00:20:28   debug #1192 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/415e040098c7e249848663211316f93f10602ae0bd7df50e0bfa04c827800332/main.spi
00:20:29 verbose #22808 > >
00:20:29 verbose #22809 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:29 verbose #22810 > > //// test
00:20:29 verbose #22811 > >
00:20:29 verbose #22812 > > listm.init 10i32 print_and_return
00:20:29 verbose #22813 > > |> from_list
00:20:29 verbose #22814 > > |> mapi fun i x => i + x
00:20:29 verbose #22815 > > |> try_item 5i32
00:20:29 verbose #22816 > > |> _assert_eq (Some 10i32)
00:20:29 verbose #22817 > 00:20:29   debug #1193 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e8e0051914b59646faefc20b427fca700694712fc6dea65e566f5c8493a159a2/main.spi
00:20:29 verbose #22818 > >
00:20:29 verbose #22819 > > ╭─[ 426.94ms - stdout ]────────────────────────────────────────────────────────╮
00:20:29 verbose #22820 > > │ print_and_return / x: 0                                                      │
00:20:29 verbose #22821 > > │ print_and_return / x: 1                                                      │
00:20:29 verbose #22822 > > │ print_and_return / x: 2                                                      │
00:20:29 verbose #22823 > > │ print_and_return / x: 3                                                      │
00:20:29 verbose #22824 > > │ print_and_return / x: 4                                                      │
00:20:29 verbose #22825 > > │ print_and_return / x: 5                                                      │
00:20:29 verbose #22826 > > │ print_and_return / x: 6                                                      │
00:20:29 verbose #22827 > > │ print_and_return / x: 7                                                      │
00:20:29 verbose #22828 > > │ print_and_return / x: 8                                                      │
00:20:29 verbose #22829 > > │ print_and_return / x: 9                                                      │
00:20:29 verbose #22830 > > │ assert_eq / actual: US0_0 10 / expected: US0_0 10                            │
00:20:29 verbose #22831 > > │                                                                              │
00:20:29 verbose #22832 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:29 verbose #22833 > >
00:20:29 verbose #22834 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:29 verbose #22835 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:29 verbose #22836 > > │ ### choose                                                                   │
00:20:29 verbose #22837 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:29 verbose #22838 > >
00:20:29 verbose #22839 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:29 verbose #22840 > > inl choose forall dim {number} t u. (fn : t -> option u) (s : seq dim t) : seq
00:20:29 verbose #22841 > > dim u =
00:20:29 verbose #22842 > >     fun n =>
00:20:29 verbose #22843 > >         inl rec body fn s i i' =
00:20:29 verbose #22844 > >             match i |> s with
00:20:29 verbose #22845 > >             | None => None
00:20:29 verbose #22846 > >             | Some x =>
00:20:29 verbose #22847 > >                 match x |> fn with
00:20:29 verbose #22848 > >                 | Some x when n = i' => Some x
00:20:29 verbose #22849 > >                 | Some _ => loop (i + 1) (i' + 1)
00:20:29 verbose #22850 > >                 | _ => loop (i + 1) i'
00:20:29 verbose #22851 > >         and inl loop i i' =
00:20:29 verbose #22852 > >             if n |> var_is |> not
00:20:29 verbose #22853 > >             then body fn s i i'
00:20:29 verbose #22854 > >             else
00:20:29 verbose #22855 > >                 inl fn = join fn
00:20:29 verbose #22856 > >                 inl s = join s
00:20:29 verbose #22857 > >                 join body fn s i i'
00:20:29 verbose #22858 > >         loop 0 0
00:20:30 verbose #22859 > 00:20:29   debug #1194 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2f9b34d8059559b2cff6015ec25f4612e8ef09dc9fbddf4e05f1ff5d76b45e95/main.spi
00:20:30 verbose #22860 > >
00:20:30 verbose #22861 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:30 verbose #22862 > > //// test
00:20:30 verbose #22863 > >
00:20:30 verbose #22864 > > listm.init 10i32 print_and_return
00:20:30 verbose #22865 > > |> from_list
00:20:30 verbose #22866 > > |> choose (fun x => if x % 2 = 0 then Some x else None)
00:20:30 verbose #22867 > > |> try_item 1i32
00:20:30 verbose #22868 > > |> _assert_eq (Some 2i32)
00:20:30 verbose #22869 > 00:20:29   debug #1195 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e9cbc156ea9db5e1df32bca376d837762bc5c9166603d915d3be4bfb107f0a10/main.spi
00:20:30 verbose #22870 > >
00:20:30 verbose #22871 > > ╭─[ 381.69ms - stdout ]────────────────────────────────────────────────────────╮
00:20:30 verbose #22872 > > │ print_and_return / x: 0                                                      │
00:20:30 verbose #22873 > > │ print_and_return / x: 1                                                      │
00:20:30 verbose #22874 > > │ print_and_return / x: 2                                                      │
00:20:30 verbose #22875 > > │ print_and_return / x: 3                                                      │
00:20:30 verbose #22876 > > │ print_and_return / x: 4                                                      │
00:20:30 verbose #22877 > > │ print_and_return / x: 5                                                      │
00:20:30 verbose #22878 > > │ print_and_return / x: 6                                                      │
00:20:30 verbose #22879 > > │ print_and_return / x: 7                                                      │
00:20:30 verbose #22880 > > │ print_and_return / x: 8                                                      │
00:20:30 verbose #22881 > > │ print_and_return / x: 9                                                      │
00:20:30 verbose #22882 > > │ assert_eq / actual: US0_0 2 / expected: US0_0 2                              │
00:20:30 verbose #22883 > > │                                                                              │
00:20:30 verbose #22884 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:30 verbose #22885 > >
00:20:30 verbose #22886 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:30 verbose #22887 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:30 verbose #22888 > > │ ### indexed                                                                  │
00:20:30 verbose #22889 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:30 verbose #22890 > >
00:20:30 verbose #22891 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:30 verbose #22892 > > inl indexed s =
00:20:30 verbose #22893 > >     s
00:20:30 verbose #22894 > >     |> mapi fun i x =>
00:20:30 verbose #22895 > >         i, x
00:20:30 verbose #22896 > 00:20:30   debug #1196 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cf99e3f649db3f59e55c0deaab0cfcd86457d8b77a0974247fc964634bc1a37e/main.spi
00:20:31 verbose #22897 > >
00:20:31 verbose #22898 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:31 verbose #22899 > > //// test
00:20:31 verbose #22900 > >
00:20:31 verbose #22901 > > listm.init 10i32 ((*) 2)
00:20:31 verbose #22902 > > |> from_list
00:20:31 verbose #22903 > > |> indexed
00:20:31 verbose #22904 > > |> try_item 5i32
00:20:31 verbose #22905 > > |> _assert_eq (Some (5i32, 10i32))
00:20:31 verbose #22906 > 00:20:30   debug #1197 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4667b9fa1e42e185b3fae5b2dc2712d1582a08bc248a5870c4524bc07501fd0c/main.spi
00:20:31 verbose #22907 > >
00:20:31 verbose #22908 > > ╭─[ 413.11ms - stdout ]────────────────────────────────────────────────────────╮
00:20:31 verbose #22909 > > │ assert_eq / actual: US0_0 (5, 10) / expected: US0_0 (5, 10)                  │
00:20:31 verbose #22910 > > │                                                                              │
00:20:31 verbose #22911 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:31 verbose #22912 > >
00:20:31 verbose #22913 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:31 verbose #22914 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:31 verbose #22915 > > │ ### zip                                                                      │
00:20:31 verbose #22916 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:31 verbose #22917 > >
00:20:31 verbose #22918 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:31 verbose #22919 > > inl zip n seq1 seq2 =
00:20:31 verbose #22920 > >     seq1 n, seq2 n
00:20:31 verbose #22921 > 00:20:30   debug #1198 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ef8b56a959571601d1becaaa7d6318cbddbc7530f0258af92efe04dde0de6709/main.spi
00:20:31 verbose #22922 > >
00:20:31 verbose #22923 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:31 verbose #22924 > > //// test
00:20:31 verbose #22925 > >
00:20:31 verbose #22926 > > ((listm.init 10i32 id |> from_list), (listm.init 10i32 ((*) 2) |> from_list))
00:20:31 verbose #22927 > > ||> zip 5i32
00:20:31 verbose #22928 > > |> _assert_eq (Some 5, Some 10)
00:20:32 verbose #22929 > 00:20:31   debug #1199 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/63c65a03935a42d1b72194b47ab083702d889904afb55004daa1088549b809bf/main.spi
00:20:32 verbose #22930 > >
00:20:32 verbose #22931 > > ╭─[ 432.33ms - stdout ]────────────────────────────────────────────────────────╮
00:20:32 verbose #22932 > > │ assert_eq / actual: struct (US0_0 5, US0_0 10) / expected: struct (US0_0 5,  │
00:20:32 verbose #22933 > > │ US0_0 10)                                                                    │
00:20:32 verbose #22934 > > │                                                                              │
00:20:32 verbose #22935 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:32 verbose #22936 > >
00:20:32 verbose #22937 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:32 verbose #22938 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:32 verbose #22939 > > │ ### zip_with                                                                 │
00:20:32 verbose #22940 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:32 verbose #22941 > >
00:20:32 verbose #22942 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:32 verbose #22943 > > inl zip_with fn seq1 seq2 =
00:20:32 verbose #22944 > >     fun n =>
00:20:32 verbose #22945 > >         fn (seq1 n) (seq2 n)
00:20:32 verbose #22946 > 00:20:31   debug #1200 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7495dcd0e731bb7ed61425c733e42a12322285fd7b0c819755834f5650120c82/main.spi
00:20:32 verbose #22947 > >
00:20:32 verbose #22948 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:32 verbose #22949 > > //// test
00:20:32 verbose #22950 > >
00:20:32 verbose #22951 > > ((listm.init 10i32 id |> from_list), (listm.init 10i32 ((*) 2) |> from_list))
00:20:32 verbose #22952 > > ||> zip_with (optionm'.choose (+))
00:20:32 verbose #22953 > > |> try_item 2i32
00:20:32 verbose #22954 > > |> _assert_eq (Some 6)
00:20:32 verbose #22955 > 00:20:32   debug #1201 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ece64ccd4efe03e443ac0e18c642a9cf1d2b6c1a1c9ceb95fe8a4c1451cdde0c/main.spi
00:20:33 verbose #22956 > >
00:20:33 verbose #22957 > > ╭─[ 426.46ms - stdout ]────────────────────────────────────────────────────────╮
00:20:33 verbose #22958 > > │ assert_eq / actual: US0_0 6 / expected: US0_0 6                              │
00:20:33 verbose #22959 > > │                                                                              │
00:20:33 verbose #22960 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:33 verbose #22961 > >
00:20:33 verbose #22962 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:33 verbose #22963 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:33 verbose #22964 > > │ ### fold                                                                     │
00:20:33 verbose #22965 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:33 verbose #22966 > >
00:20:33 verbose #22967 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:33 verbose #22968 > > inl fold fn init seq =
00:20:33 verbose #22969 > >     inl rec loop acc n =
00:20:33 verbose #22970 > >         match seq n with
00:20:33 verbose #22971 > >         | Some x => loop (fn acc x) (n + 1)
00:20:33 verbose #22972 > >         | None => acc
00:20:33 verbose #22973 > >     loop init 0
00:20:33 verbose #22974 > >
00:20:33 verbose #22975 > > inl fold_ fn init seq =
00:20:33 verbose #22976 > >     let rec loop acc n =
00:20:33 verbose #22977 > >         match seq n with
00:20:33 verbose #22978 > >         | Some x => loop (fn acc x) (n + 1)
00:20:33 verbose #22979 > >         | None => acc
00:20:33 verbose #22980 > >     loop init 0
00:20:33 verbose #22981 > 00:20:32   debug #1202 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3df1d4a54beecc5cdb4eaa77973a3523fb6e2e2f8ad0b1f50843f76c102f118a/main.spi
00:20:33 verbose #22982 > >
00:20:33 verbose #22983 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:33 verbose #22984 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:33 verbose #22985 > > │ ### sum                                                                      │
00:20:33 verbose #22986 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:33 verbose #22987 > >
00:20:33 verbose #22988 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:33 verbose #22989 > > inl sum seq =
00:20:33 verbose #22990 > >     seq |> fold (+) 0
00:20:33 verbose #22991 > >
00:20:33 verbose #22992 > > inl sum_ seq =
00:20:33 verbose #22993 > >     seq |> fold_ (+) 0
00:20:33 verbose #22994 > 00:20:32   debug #1203 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/78b3dd0562d9bd406613204a25acc471646466bda61e30d241f3fd01b83597cd/main.spi
00:20:33 verbose #22995 > >
00:20:33 verbose #22996 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:33 verbose #22997 > > //// test
00:20:33 verbose #22998 > >
00:20:33 verbose #22999 > > listm.init 10i32 id
00:20:33 verbose #23000 > > |> from_list
00:20:33 verbose #23001 > > |> fun f (n : i32) => f n
00:20:33 verbose #23002 > > |> sum
00:20:33 verbose #23003 > > |> _assert_eq 45
00:20:34 verbose #23004 > 00:20:33   debug #1204 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/eefb4681d923196deb918b7c03b7dc68543f08bd0823604b503e38845d676b10/main.spi
00:20:34 verbose #23005 > >
00:20:34 verbose #23006 > > ╭─[ 386.31ms - stdout ]────────────────────────────────────────────────────────╮
00:20:34 verbose #23007 > > │ assert_eq / actual: 45 / expected: 45                                        │
00:20:34 verbose #23008 > > │                                                                              │
00:20:34 verbose #23009 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:34 verbose #23010 > >
00:20:34 verbose #23011 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:34 verbose #23012 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:34 verbose #23013 > > │ ### to_list                                                                  │
00:20:34 verbose #23014 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:34 verbose #23015 > >
00:20:34 verbose #23016 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:34 verbose #23017 > > inl to_list seq =
00:20:34 verbose #23018 > >     seq
00:20:34 verbose #23019 > >     |> fold (fun acc x => x :: acc) [[]]
00:20:34 verbose #23020 > >     |> listm.rev
00:20:34 verbose #23021 > >
00:20:34 verbose #23022 > > inl to_list_ seq =
00:20:34 verbose #23023 > >     seq
00:20:34 verbose #23024 > >     |> fold_ (fun acc x => x :: acc) [[]]
00:20:34 verbose #23025 > >     |> listm.rev
00:20:34 verbose #23026 > 00:20:33   debug #1205 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e9e23e2032ffe93a46bc2729e5d8b16cc01f515d599911ff9c974e3aefe406f2/main.spi
00:20:34 verbose #23027 > >
00:20:34 verbose #23028 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:34 verbose #23029 > > //// test
00:20:34 verbose #23030 > >
00:20:34 verbose #23031 > > listm.init 10i32 id
00:20:34 verbose #23032 > > |> from_list
00:20:34 verbose #23033 > > |> fun f (n : i32) => f n
00:20:34 verbose #23034 > > |> to_list
00:20:34 verbose #23035 > > |> _assert_eq (listm.init 10i32 id)
00:20:34 verbose #23036 > 00:20:34   debug #1206 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0b12083148b0e707564c70c7aa0761868efe6ea60c525f0eb78920f716badb9e/main.spi
00:20:34 verbose #23037 > >
00:20:34 verbose #23038 > > ╭─[ 456.92ms - stdout ]────────────────────────────────────────────────────────╮
00:20:34 verbose #23039 > > │ assert_eq / actual: UH0_1                                                    │
00:20:34 verbose #23040 > > │   (0,                                                                        │
00:20:34 verbose #23041 > > │    UH0_1                                                                     │
00:20:34 verbose #23042 > > │      (1,                                                                     │
00:20:34 verbose #23043 > > │       UH0_1                                                                  │
00:20:34 verbose #23044 > > │         (2,                                                                  │
00:20:34 verbose #23045 > > │          UH0_1                                                               │
00:20:34 verbose #23046 > > │            (3,                                                               │
00:20:34 verbose #23047 > > │             UH0_1                                                            │
00:20:34 verbose #23048 > > │               (4, UH0_1 (5, UH0_1 (6, UH0_1 (7, UH0_1 (8, UH0_1 (9,          │
00:20:34 verbose #23049 > > │ UH0_0)))))))))) / expected: UH0_1                                            │
00:20:34 verbose #23050 > > │   (0,                                                                        │
00:20:34 verbose #23051 > > │    UH0_1                                                                     │
00:20:34 verbose #23052 > > │      (1,                                                                     │
00:20:34 verbose #23053 > > │       UH0_1                                                                  │
00:20:34 verbose #23054 > > │         (2,                                                                  │
00:20:34 verbose #23055 > > │          UH0_1                                                               │
00:20:34 verbose #23056 > > │            (3,                                                               │
00:20:34 verbose #23057 > > │             UH0_1                                                            │
00:20:34 verbose #23058 > > │               (4, UH0_1 (5, UH0_1 (6, UH0_1 (7, UH0_1 (8, UH0_1 (9,          │
00:20:34 verbose #23059 > > │ UH0_0))))))))))                                                              │
00:20:34 verbose #23060 > > │                                                                              │
00:20:34 verbose #23061 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:34 verbose #23062 > >
00:20:34 verbose #23063 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:34 verbose #23064 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:34 verbose #23065 > > │ ### from_array                                                               │
00:20:34 verbose #23066 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:34 verbose #23067 > >
00:20:34 verbose #23068 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:34 verbose #23069 > > inl from_array forall dim {number; int} el. (array : a dim el) : seq dim el =
00:20:34 verbose #23070 > >     fun n =>
00:20:34 verbose #23071 > >         if n >= length array
00:20:34 verbose #23072 > >         then None
00:20:34 verbose #23073 > >         else index array n |> Some
00:20:35 verbose #23074 > 00:20:34   debug #1207 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c23bfcdd97302036057e37be52624c430e234af285159a5bcb71f18e8548de42/main.spi
00:20:35 verbose #23075 > >
00:20:35 verbose #23076 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:35 verbose #23077 > > //// test
00:20:35 verbose #23078 > >
00:20:35 verbose #23079 > > a ;[[ 1; 2; 3 ]]
00:20:35 verbose #23080 > > |> from_array
00:20:35 verbose #23081 > > |> try_item 1i32
00:20:35 verbose #23082 > > |> _assert_eq (Some 2i32)
00:20:35 verbose #23083 > 00:20:34   debug #1208 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c64b889f690b967cf0f74391b7231d55f5215b8ddd8a9bba461bc7ab12a33ec9/main.spi
00:20:35 verbose #23084 > >
00:20:35 verbose #23085 > > ╭─[ 546.09ms - stdout ]────────────────────────────────────────────────────────╮
00:20:35 verbose #23086 > > │ assert_eq / actual: US0_0 2 / expected: US0_0 2                              │
00:20:35 verbose #23087 > > │                                                                              │
00:20:35 verbose #23088 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:35 verbose #23089 > >
00:20:35 verbose #23090 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:35 verbose #23091 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:35 verbose #23092 > > │ ### to_array                                                                 │
00:20:35 verbose #23093 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:35 verbose #23094 > >
00:20:35 verbose #23095 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:35 verbose #23096 > > inl to_array seq =
00:20:35 verbose #23097 > >     inl ar = a ;[[]] |> mut
00:20:35 verbose #23098 > >     ((), seq)
00:20:35 verbose #23099 > >     ||> fold fun _ x =>
00:20:35 verbose #23100 > >         ar <- *ar ++ a ;[[x]]
00:20:35 verbose #23101 > >     *ar
00:20:35 verbose #23102 > >
00:20:35 verbose #23103 > > inl to_array_ seq =
00:20:35 verbose #23104 > >     inl ar = a ;[[]] |> mut
00:20:35 verbose #23105 > >     ((), seq)
00:20:35 verbose #23106 > >     ||> fold_ fun _ x =>
00:20:35 verbose #23107 > >         ar <- *ar ++ a ;[[x]]
00:20:35 verbose #23108 > >     *ar
00:20:36 verbose #23109 > 00:20:35   debug #1209 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8503e66556b0112665a6676924c09b46a49d21e8dba8a7753cd975329a7cfd12/main.spi
00:20:36 verbose #23110 > >
00:20:36 verbose #23111 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:36 verbose #23112 > > //// test
00:20:36 verbose #23113 > >
00:20:36 verbose #23114 > > listm.init 10i32 id
00:20:36 verbose #23115 > > |> from_list
00:20:36 verbose #23116 > > |> fun (x : i32 -> _) => x
00:20:36 verbose #23117 > > |> to_array
00:20:36 verbose #23118 > > |> _assert_eq (a ;[[ 0; 1; 2; 3; 4; 5; 6; 7; 8; 9 ]] : _ i32 _)
00:20:36 verbose #23119 > 00:20:35   debug #1210 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c9541768dfbc17091a7de303c156df57ec144824c43deaf0800f10c2c5bb252c/main.spi
00:20:36 verbose #23120 > >
00:20:36 verbose #23121 > > ╭─[ 645.70ms - stdout ]────────────────────────────────────────────────────────╮
00:20:36 verbose #23122 > > │ assert_eq / actual: [|0; 1; 2; 3; 4; 5; 6; 7; 8; 9|] / expected: [|0; 1; 2;  │
00:20:36 verbose #23123 > > │ 3; 4; 5; 6; 7; 8; 9|]                                                        │
00:20:36 verbose #23124 > > │                                                                              │
00:20:36 verbose #23125 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:36 verbose #23126 > >
00:20:36 verbose #23127 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:36 verbose #23128 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:36 verbose #23129 > > │ ### take_while                                                               │
00:20:36 verbose #23130 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:36 verbose #23131 > >
00:20:36 verbose #23132 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:36 verbose #23133 > > inl take_while cond seq =
00:20:36 verbose #23134 > >     inl rec loop acc i =
00:20:36 verbose #23135 > >         match seq i with
00:20:36 verbose #23136 > >         | Some st when cond st i => loop (st :: acc) (i + 1)
00:20:36 verbose #23137 > >         | _ => acc |> listm.rev
00:20:36 verbose #23138 > >     loop [[]] 0
00:20:37 verbose #23139 > 00:20:36   debug #1211 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c019fc7fec220e5b3622bdb2b81e2bdda9de74b0ac572a85394b2657983817ec/main.spi
00:20:37 verbose #23140 > >
00:20:37 verbose #23141 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:37 verbose #23142 > > //// test
00:20:37 verbose #23143 > >
00:20:37 verbose #23144 > > listm.init 10i32 id
00:20:37 verbose #23145 > > |> from_list
00:20:37 verbose #23146 > > |> take_while (fun n (_ : i32) => n < 5)
00:20:37 verbose #23147 > > |> listm'.sum
00:20:37 verbose #23148 > > |> _assert_eq 10
00:20:37 verbose #23149 > 00:20:36   debug #1212 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/855740d8fe868b0c461fc1e5cf755880e039747f03d110f558abb9c5a3dcb72e/main.spi
00:20:37 verbose #23150 > >
00:20:37 verbose #23151 > > ╭─[ 384.81ms - stdout ]────────────────────────────────────────────────────────╮
00:20:37 verbose #23152 > > │ assert_eq / actual: 10 / expected: 10                                        │
00:20:37 verbose #23153 > > │                                                                              │
00:20:37 verbose #23154 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:37 verbose #23155 > >
00:20:37 verbose #23156 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:37 verbose #23157 > > //// test
00:20:37 verbose #23158 > >
00:20:37 verbose #23159 > > stream.new_finite_stream print_and_return 10i32
00:20:37 verbose #23160 > > |> flip stream.try_item
00:20:37 verbose #23161 > > |> take_while (fun n (_ : i32) => n < 5)
00:20:37 verbose #23162 > > |> listm'.sum
00:20:37 verbose #23163 > > |> _assert_eq 10
00:20:37 verbose #23164 > 00:20:37   debug #1213 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6d664ee3f7e47af27a138925102fe60b182d8fe9ccff577b91936ccb7bfde582/main.spi
00:20:37 verbose #23165 > >
00:20:37 verbose #23166 > > ╭─[ 429.96ms - stdout ]────────────────────────────────────────────────────────╮
00:20:37 verbose #23167 > > │ print_and_return / x: 0                                                      │
00:20:37 verbose #23168 > > │ print_and_return / x: 1                                                      │
00:20:37 verbose #23169 > > │ print_and_return / x: 1                                                      │
00:20:37 verbose #23170 > > │ print_and_return / x: 2                                                      │
00:20:37 verbose #23171 > > │ print_and_return / x: 1                                                      │
00:20:37 verbose #23172 > > │ print_and_return / x: 2                                                      │
00:20:37 verbose #23173 > > │ print_and_return / x: 3                                                      │
00:20:37 verbose #23174 > > │ print_and_return / x: 1                                                      │
00:20:37 verbose #23175 > > │ print_and_return / x: 2                                                      │
00:20:37 verbose #23176 > > │ print_and_return / x: 3                                                      │
00:20:37 verbose #23177 > > │ print_and_return / x: 4                                                      │
00:20:37 verbose #23178 > > │ print_and_return / x: 1                                                      │
00:20:37 verbose #23179 > > │ print_and_return / x: 2                                                      │
00:20:37 verbose #23180 > > │ print_and_return / x: 3                                                      │
00:20:37 verbose #23181 > > │ print_and_return / x: 4                                                      │
00:20:37 verbose #23182 > > │ print_and_return / x: 5                                                      │
00:20:37 verbose #23183 > > │ assert_eq / actual: 10 / expected: 10                                        │
00:20:37 verbose #23184 > > │                                                                              │
00:20:37 verbose #23185 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:37 verbose #23186 > >
00:20:37 verbose #23187 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:37 verbose #23188 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:37 verbose #23189 > > │ ### take_while_                                                              │
00:20:37 verbose #23190 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:37 verbose #23191 > >
00:20:37 verbose #23192 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:37 verbose #23193 > > inl take_while_ cond seq =
00:20:37 verbose #23194 > >     let rec loop acc i =
00:20:37 verbose #23195 > >         match seq i with
00:20:37 verbose #23196 > >         | Some st when cond st i => loop (st :: acc) (i + 1)
00:20:37 verbose #23197 > >         | _ => acc |> listm.rev
00:20:37 verbose #23198 > >     loop [[]] 0
00:20:38 verbose #23199 > 00:20:37   debug #1214 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/31a4e85656c9bccb70a575787060d46f6032aa19611f2940704b58824a6f1dc1/main.spi
00:20:38 verbose #23200 > >
00:20:38 verbose #23201 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:38 verbose #23202 > > //// test
00:20:38 verbose #23203 > >
00:20:38 verbose #23204 > > stream.new_infinite_stream_ print_and_return
00:20:38 verbose #23205 > > |> flip stream.try_item
00:20:38 verbose #23206 > > |> take_while_ (fun n (_ : i32) => n < 5i32)
00:20:38 verbose #23207 > > |> listm'.sum
00:20:38 verbose #23208 > > |> _assert_eq 10
00:20:38 verbose #23209 > 00:20:37   debug #1215 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa386af48270ea6e4964d619247ff41b80b94f2c06e1c19e703ba97b2086e832/main.spi
00:20:38 verbose #23210 > >
00:20:38 verbose #23211 > > ╭─[ 521.78ms - stdout ]────────────────────────────────────────────────────────╮
00:20:38 verbose #23212 > > │ print_and_return / x: 0                                                      │
00:20:38 verbose #23213 > > │ print_and_return / x: 1                                                      │
00:20:38 verbose #23214 > > │ print_and_return / x: 1                                                      │
00:20:38 verbose #23215 > > │ print_and_return / x: 2                                                      │
00:20:38 verbose #23216 > > │ print_and_return / x: 1                                                      │
00:20:38 verbose #23217 > > │ print_and_return / x: 2                                                      │
00:20:38 verbose #23218 > > │ print_and_return / x: 3                                                      │
00:20:38 verbose #23219 > > │ print_and_return / x: 1                                                      │
00:20:38 verbose #23220 > > │ print_and_return / x: 2                                                      │
00:20:38 verbose #23221 > > │ print_and_return / x: 3                                                      │
00:20:38 verbose #23222 > > │ print_and_return / x: 4                                                      │
00:20:38 verbose #23223 > > │ print_and_return / x: 1                                                      │
00:20:38 verbose #23224 > > │ print_and_return / x: 2                                                      │
00:20:38 verbose #23225 > > │ print_and_return / x: 3                                                      │
00:20:38 verbose #23226 > > │ print_and_return / x: 4                                                      │
00:20:38 verbose #23227 > > │ print_and_return / x: 5                                                      │
00:20:38 verbose #23228 > > │ assert_eq / actual: 10 / expected: 10                                        │
00:20:38 verbose #23229 > > │                                                                              │
00:20:38 verbose #23230 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:38 verbose #23231 > >
00:20:38 verbose #23232 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:38 verbose #23233 > > //// test
00:20:38 verbose #23234 > >
00:20:38 verbose #23235 > > stream.new_infinite_stream_ print_and_return
00:20:38 verbose #23236 > > |> stream.memoize
00:20:38 verbose #23237 > > |> fun list =>
00:20:38 verbose #23238 > >     inl list = list ()
00:20:38 verbose #23239 > >     fun n =>
00:20:38 verbose #23240 > >         list |> stream.try_item n
00:20:38 verbose #23241 > > |> take_while_ (fun n (_ : i32) => n < 5i32)
00:20:38 verbose #23242 > > |> listm'.sum
00:20:38 verbose #23243 > > |> _assert_eq 10
00:20:39 verbose #23244 > 00:20:38   debug #1216 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3faa368b30f771901ec97dc60cee8409bddfa758f4618548d060b891283e520d/main.spi
00:20:39 verbose #23245 > >
00:20:39 verbose #23246 > > ╭─[ 457.32ms - stdout ]────────────────────────────────────────────────────────╮
00:20:39 verbose #23247 > > │ print_and_return / x: 0                                                      │
00:20:39 verbose #23248 > > │ print_and_return / x: 1                                                      │
00:20:39 verbose #23249 > > │ print_and_return / x: 2                                                      │
00:20:39 verbose #23250 > > │ print_and_return / x: 3                                                      │
00:20:39 verbose #23251 > > │ print_and_return / x: 4                                                      │
00:20:39 verbose #23252 > > │ print_and_return / x: 5                                                      │
00:20:39 verbose #23253 > > │ assert_eq / actual: 10 / expected: 10                                        │
00:20:39 verbose #23254 > > │                                                                              │
00:20:39 verbose #23255 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:39 verbose #23256 > >
00:20:39 verbose #23257 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:39 verbose #23258 > > //// test
00:20:39 verbose #23259 > >
00:20:39 verbose #23260 > > stream.new_finite_stream print_and_return 10i32
00:20:39 verbose #23261 > > |> stream.memoize
00:20:39 verbose #23262 > > |> fun list =>
00:20:39 verbose #23263 > >     inl list = list ()
00:20:39 verbose #23264 > >     fun n =>
00:20:39 verbose #23265 > >         list |> stream.try_item n
00:20:39 verbose #23266 > > |> take_while_ (fun n (_ : i32) => n < 5)
00:20:39 verbose #23267 > > |> listm'.sum
00:20:39 verbose #23268 > > |> _assert_eq 10
00:20:39 verbose #23269 > 00:20:38   debug #1217 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6454ef7040c5dfea058b6b4c886114fbe1b330a1f6801818beed1cb3c0619fc4/main.spi
00:20:39 verbose #23270 > >
00:20:39 verbose #23271 > > ╭─[ 495.59ms - stdout ]────────────────────────────────────────────────────────╮
00:20:39 verbose #23272 > > │ print_and_return / x: 0                                                      │
00:20:39 verbose #23273 > > │ print_and_return / x: 1                                                      │
00:20:39 verbose #23274 > > │ print_and_return / x: 2                                                      │
00:20:39 verbose #23275 > > │ print_and_return / x: 3                                                      │
00:20:39 verbose #23276 > > │ print_and_return / x: 4                                                      │
00:20:39 verbose #23277 > > │ print_and_return / x: 5                                                      │
00:20:39 verbose #23278 > > │ assert_eq / actual: 10 / expected: 10                                        │
00:20:39 verbose #23279 > > │                                                                              │
00:20:39 verbose #23280 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:39 verbose #23281 > >
00:20:39 verbose #23282 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:39 verbose #23283 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:39 verbose #23284 > > │ ### memoize                                                                  │
00:20:39 verbose #23285 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:39 verbose #23286 > >
00:20:39 verbose #23287 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:39 verbose #23288 > > inl memoize seq =
00:20:39 verbose #23289 > >     inl state = mut [[]]
00:20:39 verbose #23290 > >     fun n =>
00:20:39 verbose #23291 > >         match *state |> listm'.try_find (fun (n', _) => n' = n) with
00:20:39 verbose #23292 > >         | Some (_, v) => v
00:20:39 verbose #23293 > >         | None =>
00:20:39 verbose #23294 > >             inl new_state = seq n
00:20:39 verbose #23295 > >             state <- (n, new_state) :: *state
00:20:39 verbose #23296 > >             new_state
00:20:39 verbose #23297 > >
00:20:39 verbose #23298 > > inl memoize_ seq =
00:20:39 verbose #23299 > >     inl state = mut [[]]
00:20:39 verbose #23300 > >     fun n =>
00:20:39 verbose #23301 > >         match *state |> listm'.try_find_ (fun (n', _) => n' = n) with
00:20:39 verbose #23302 > >         | Some (_, v) => v
00:20:39 verbose #23303 > >         | None =>
00:20:39 verbose #23304 > >             inl new_state = seq n
00:20:39 verbose #23305 > >             state <- (n, new_state) :: *state
00:20:39 verbose #23306 > >             new_state
00:20:40 verbose #23307 > 00:20:39   debug #1218 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d2ff08d3fc9c9bd6070f675d01a0fe5b245b55128f11bd65167155fd90795e95/main.spi
00:20:40 verbose #23308 > >
00:20:40 verbose #23309 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:40 verbose #23310 > > //// test
00:20:40 verbose #23311 > >
00:20:40 verbose #23312 > > inl seq =
00:20:40 verbose #23313 > >     fun n =>
00:20:40 verbose #23314 > >         n |> print_and_return |> Some
00:20:40 verbose #23315 > >     |> memoize_
00:20:40 verbose #23316 > >
00:20:40 verbose #23317 > > seq
00:20:40 verbose #23318 > > |> take_while_ (fun n (_ : i32) => n < 5)
00:20:40 verbose #23319 > > |> listm'.sum
00:20:40 verbose #23320 > > |> _assert_eq 10
00:20:40 verbose #23321 > >
00:20:40 verbose #23322 > > seq
00:20:40 verbose #23323 > > |> take_while_ (fun n _ => n < 5)
00:20:40 verbose #23324 > > |> listm'.sum
00:20:40 verbose #23325 > > |> _assert_eq 10
00:20:40 verbose #23326 > 00:20:39   debug #1219 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c66f80441578e0e11981a60d5466725c2c446ffc0a06d1a1e8925cb8b6842f22/main.spi
00:20:40 verbose #23327 > >
00:20:40 verbose #23328 > > ╭─[ 528.06ms - stdout ]────────────────────────────────────────────────────────╮
00:20:40 verbose #23329 > > │ print_and_return / x: 0                                                      │
00:20:40 verbose #23330 > > │ print_and_return / x: 1                                                      │
00:20:40 verbose #23331 > > │ print_and_return / x: 2                                                      │
00:20:40 verbose #23332 > > │ print_and_return / x: 3                                                      │
00:20:40 verbose #23333 > > │ print_and_return / x: 4                                                      │
00:20:40 verbose #23334 > > │ print_and_return / x: 5                                                      │
00:20:40 verbose #23335 > > │ assert_eq / actual: 10 / expected: 10                                        │
00:20:40 verbose #23336 > > │ assert_eq / actual: 10 / expected: 10                                        │
00:20:40 verbose #23337 > > │                                                                              │
00:20:40 verbose #23338 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:40 verbose #23339 > >
00:20:40 verbose #23340 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:40 verbose #23341 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:40 verbose #23342 > > │ ### iterate                                                                  │
00:20:40 verbose #23343 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:40 verbose #23344 > >
00:20:40 verbose #23345 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:40 verbose #23346 > > inl iterate f x0 num_steps =
00:20:40 verbose #23347 > >     inl rec loop x n =
00:20:40 verbose #23348 > >         if n <= 0
00:20:40 verbose #23349 > >         then x
00:20:40 verbose #23350 > >         else loop (f x) (n - 1)
00:20:40 verbose #23351 > >     loop x0 num_steps
00:20:40 verbose #23352 > 00:20:40   debug #1220 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a68a073e70a3cd9821739388be4c50aba17add4b8f4a106ff0fde5993aff031b/main.spi
00:20:41 verbose #23353 > >
00:20:41 verbose #23354 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:41 verbose #23355 > > //// test
00:20:41 verbose #23356 > >
00:20:41 verbose #23357 > > 10i32 |> iterate ((*) 2) 1i32
00:20:41 verbose #23358 > > |> _assert_eq 1024
00:20:41 verbose #23359 > 00:20:40   debug #1221 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dbb17399f668bf82d53c5b7a35307b490194935dd036f6ccbfd3546df2c878dd/main.spi
00:20:41 verbose #23360 > >
00:20:41 verbose #23361 > > ╭─[ 422.04ms - stdout ]────────────────────────────────────────────────────────╮
00:20:41 verbose #23362 > > │ assert_eq / actual: 1024 / expected: 1024                                    │
00:20:41 verbose #23363 > > │                                                                              │
00:20:41 verbose #23364 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:41 verbose #23365 > >
00:20:41 verbose #23366 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:41 verbose #23367 > > inl iterate_ f x0 num_steps =
00:20:41 verbose #23368 > >     let rec loop x n =
00:20:41 verbose #23369 > >         if n <= 0
00:20:41 verbose #23370 > >         then x
00:20:41 verbose #23371 > >         else loop (f x) (n - 1)
00:20:41 verbose #23372 > >     loop x0 num_steps
00:20:41 verbose #23373 > 00:20:40   debug #1222 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/928f85e60a4f58f16a23393221651c4da65bbd0ddd74dad62f216d477d11874c/main.spi
00:20:41 verbose #23374 > >
00:20:41 verbose #23375 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:41 verbose #23376 > > //// test
00:20:41 verbose #23377 > >
00:20:41 verbose #23378 > > 10i32 |> iterate_ ((*) 2) 1i32
00:20:41 verbose #23379 > > |> _assert_eq 1024
00:20:42 verbose #23380 > 00:20:41   debug #1223 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/779e4bce82bca34cb84416c0f617077a5ac022ce3b5d55765aea1df8bc36b37c/main.spi
00:20:42 verbose #23381 > >
00:20:42 verbose #23382 > > ╭─[ 377.08ms - stdout ]────────────────────────────────────────────────────────╮
00:20:42 verbose #23383 > > │ assert_eq / actual: 1024 / expected: 1024                                    │
00:20:42 verbose #23384 > > │                                                                              │
00:20:42 verbose #23385 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:42 verbose #23386 > >
00:20:42 verbose #23387 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:42 verbose #23388 > > inl iterate' f x0 num_steps =
00:20:42 verbose #23389 > >     listm.init num_steps id
00:20:42 verbose #23390 > >     |> listm.fold (fun x _ => f x) x0
00:20:42 verbose #23391 > 00:20:41   debug #1224 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c37a06d06ad20bc337ea92a6f88636dc08e3cabd7ee17b8f776a9026240ce02f/main.spi
00:20:42 verbose #23392 > >
00:20:42 verbose #23393 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:42 verbose #23394 > > //// test
00:20:42 verbose #23395 > >
00:20:42 verbose #23396 > > 10i32 |> iterate' ((*) 2) 1i32
00:20:42 verbose #23397 > > |> _assert_eq 1024
00:20:42 verbose #23398 > 00:20:42   debug #1225 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/228fdeb068b6220c50275d919356a5ae77712da88ca10c02be4606d01b1ae8e3/main.spi
00:20:42 verbose #23399 > >
00:20:42 verbose #23400 > > ╭─[ 370.49ms - stdout ]────────────────────────────────────────────────────────╮
00:20:42 verbose #23401 > > │ assert_eq / actual: 1024 / expected: 1024                                    │
00:20:42 verbose #23402 > > │                                                                              │
00:20:42 verbose #23403 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:42 verbose #23404 > >
00:20:42 verbose #23405 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:42 verbose #23406 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:42 verbose #23407 > > │ ### find_last                                                                │
00:20:42 verbose #23408 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:42 verbose #23409 > >
00:20:42 verbose #23410 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:42 verbose #23411 > > inl find_last forall item result. fold_fn fn target : option result =
00:20:42 verbose #23412 > >     fold_fn (fun (item : item) (result : option result) =>
00:20:42 verbose #23413 > >         match result with
00:20:42 verbose #23414 > >         | None => fn item
00:20:42 verbose #23415 > >         | result => result
00:20:42 verbose #23416 > >     ) target (None : option result)
00:20:42 verbose #23417 > >
00:20:42 verbose #23418 > > inl array_find_last forall item result. (fn : item -> option result) (target : a
00:20:42 verbose #23419 > > i32 item) : option result =
00:20:42 verbose #23420 > >     find_last am.foldBack fn target
00:20:42 verbose #23421 > >
00:20:42 verbose #23422 > > inl list_find_last forall item result. (fn : item -> option result) (target :
00:20:42 verbose #23423 > > list item) : option result =
00:20:42 verbose #23424 > >     find_last listm.foldBack fn target
00:20:43 verbose #23425 > 00:20:42   debug #1226 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/97c0db70a1caf131f5148671d43e8a549e7f003bbe48a9da22ba08bc9c5831f1/main.spi
00:20:43 verbose #23426 > >
00:20:43 verbose #23427 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:43 verbose #23428 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:43 verbose #23429 > > │ ## fsharp                                                                    │
00:20:43 verbose #23430 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:43 verbose #23431 > >
00:20:43 verbose #23432 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:43 verbose #23433 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:43 verbose #23434 > > │ ### seq'                                                                     │
00:20:43 verbose #23435 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:43 verbose #23436 > >
00:20:43 verbose #23437 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:43 verbose #23438 > > nominal seq' t = $"backend_switch `({ Fsharp : $"`t seq"; Python : t })"
00:20:43 verbose #23439 > 00:20:42   debug #1227 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2eecd8118ed5905bb34dcf0923a557be33dc2821d76c863b84c4927570533d9c/main.spi
00:20:43 verbose #23440 > >
00:20:43 verbose #23441 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:43 verbose #23442 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:43 verbose #23443 > > │ ### of_array'                                                                │
00:20:43 verbose #23444 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:43 verbose #23445 > >
00:20:43 verbose #23446 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:43 verbose #23447 > > inl of_array' forall dim t. (items : a dim t) : seq' t =
00:20:43 verbose #23448 > >     backend_switch {
00:20:43 verbose #23449 > >         Fsharp = fun () => $'seq { for i = 0 to !items.Length - 1 do yield
00:20:43 verbose #23450 > > !items.[[i]] }' : seq' t
00:20:43 verbose #23451 > >         Python = fun () => $'!items ' : seq' t
00:20:43 verbose #23452 > >     }
00:20:44 verbose #23453 > 00:20:43   debug #1228 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6219173157714453337a01771329eda688f4e62d5be34e24543c9ab7925bb510/main.spi
00:20:44 verbose #23454 > >
00:20:44 verbose #23455 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:44 verbose #23456 > > //// test
00:20:44 verbose #23457 > >
00:20:44 verbose #23458 > > (a ;[[ "a"; "b" ]] : _ i32 _)
00:20:44 verbose #23459 > > |> of_array'
00:20:44 verbose #23460 > 00:20:43   debug #1229 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ae5ea877810f073af3789b4e3e1eb6cb834d72098c24357ec28a7a6b6e7b40ca/main.spi
00:20:44 verbose #23461 > >
00:20:44 verbose #23462 > > ╭─[ 551.59ms - return value ]──────────────────────────────────────────────────╮
00:20:44 verbose #23463 > > │ <details open="open" class="dni-treeview"><summary><span                     │
00:20:44 verbose #23464 > > │ class="dni-code-hint"><code>[ a, b                                           │
00:20:44 verbose #23465 > > │ ]</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
00:20:44 verbose #23466 > > │ CheckClose</td><td><div                                                      │
00:20:44 verbose #23467 > > │ class="dni-plaintext"><pre>False</pre></div></td></tr><tr><td>LastGenerated< │
00:20:44 verbose #23468 > > │ /td><td><div                                                                 │
00:20:44 verbose #23469 > > │ class="dni-plaintext"><pre>&lt;null&gt;</pre></div></td></tr><tr><td>v2</td> │
00:20:44 verbose #23470 > > │ <td><div class="dni-plaintext"><pre>[ a, b                                   │
00:20:44 verbose #23471 > > │ ]</pre></div></td></tr><tr><td>enum</td><td><div                             │
00:20:44 verbose #23472 > > │ class="dni-plaintext"><pre>&lt;null&gt;</pre></div></td></tr><tr><td>pc</td> │
00:20:44 verbose #23473 > > │ <td><div                                                                     │
00:20:44 verbose #23474 > > │ class="dni-plaintext"><pre>0</pre></div></td></tr><tr><td>current</td><td><d │
00:20:44 verbose #23475 > > │ iv                                                                           │
00:20:44 verbose #23476 > > │ class="dni-plaintext"><pre>&lt;null&gt;</pre></div></td></tr><tr><td><i>(val │
00:20:44 verbose #23477 > > │ ues)</i></td><td><div class="dni-plaintext"><pre>[ a, b                      │
00:20:44 verbose #23478 > > │ ]</pre></div></td></tr></tbody></table></div></details><style>               │
00:20:44 verbose #23479 > > │ .dni-code-hint {                                                             │
00:20:44 verbose #23480 > > │     font-style: italic;                                                      │
00:20:44 verbose #23481 > > │     overflow: hidden;                                                        │
00:20:44 verbose #23482 > > │     white-space: nowrap;                                                     │
00:20:44 verbose #23483 > > │ }                                                                            │
00:20:44 verbose #23484 > > │ .dni-treeview {                                                              │
00:20:44 verbose #23485 > > │     white-space: nowrap;                                                     │
00:20:44 verbose #23486 > > │ }                                                                            │
00:20:44 verbose #23487 > > │ .dni-treeview td {                                                           │
00:20:44 verbose #23488 > > │     vertical-align: top;                                                     │
00:20:44 verbose #23489 > > │     text-align: start;                                                       │
00:20:44 verbose #23490 > > │ }                                                                            │
00:20:44 verbose #23491 > > │ details.dni-treeview {                                                       │
00:20:44 verbose #23492 > > │     padding-left: 1em;                                                       │
00:20:44 verbose #23493 > > │ }                                                                            │
00:20:44 verbose #23494 > > │ table td {                                                                   │
00:20:44 verbose #23495 > > │     text-align: start;                                                       │
00:20:44 verbose #23496 > > │ }                                                                            │
00:20:44 verbose #23497 > > │ table tr {                                                                   │
00:20:44 verbose #23498 > > │     vertical-align: top;                                                     │
00:20:44 verbose #23499 > > │     margin: 0em 0px;                                                         │
00:20:44 verbose #23500 > > │ }                                                                            │
00:20:44 verbose #23501 > > │ table tr td pre                                                              │
00:20:44 verbose #23502 > > │ {                                                                            │
00:20:44 verbose #23503 > > │     vertical-align: top !important;                                          │
00:20:44 verbose #23504 > > │     margin: 0em 0px !important;                                              │
00:20:44 verbose #23505 > > │ }                                                                            │
00:20:44 verbose #23506 > > │ table th {                                                                   │
00:20:44 verbose #23507 > > │     text-align: start;                                                       │
00:20:44 verbose #23508 > > │ }                                                                            │
00:20:44 verbose #23509 > > │ </style>                                                                     │
00:20:44 verbose #23510 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:44 verbose #23511 > >
00:20:44 verbose #23512 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:44 verbose #23513 > > inl of_array forall dim t. (items : a dim t) : seq' t =
00:20:44 verbose #23514 > >     backend_switch {
00:20:44 verbose #23515 > >         Fsharp = fun () => $'!items |> Seq.ofArray' : seq' t
00:20:44 verbose #23516 > >         Python = fun () => $'!items ' : seq' t
00:20:44 verbose #23517 > >     }
00:20:44 verbose #23518 > 00:20:44   debug #1230 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5e0713af1d04a9296fb19fd22ce625f32830eae6a9180a3f908344b837f6c9a3/main.spi
00:20:45 verbose #23519 > >
00:20:45 verbose #23520 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:45 verbose #23521 > > //// test
00:20:45 verbose #23522 > >
00:20:45 verbose #23523 > > (a ;[[ "a"; "b" ]] : _ i32 _)
00:20:45 verbose #23524 > > |> of_array
00:20:45 verbose #23525 > 00:20:44   debug #1231 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6aea7e13c0ad0416f4577655f90fe075aa2e76fe8c3aa04809234a1bbd01129e/main.spi
00:20:45 verbose #23526 > >
00:20:45 verbose #23527 > > ╭─[ 468.43ms - return value ]──────────────────────────────────────────────────╮
00:20:45 verbose #23528 > > │ <details open="open" class="dni-treeview"><summary><span                     │
00:20:45 verbose #23529 > > │ class="dni-code-hint"><code>[ a, b                                           │
00:20:45 verbose #23530 > > │ ]</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td> │
00:20:45 verbose #23531 > > │ f</td><td><details class="dni-treeview"><summary><span                       │
00:20:45 verbose #23532 > > │ class="dni-code-hint"><code>Microsoft.FSharp.Collections.SeqModule+OfArray@1 │
00:20:45 verbose #23533 > > │ 010[                                                                         │
00:20:45 verbose #23534 > > │ System.String]</code></span></summary><div><table><thead><tr></tr></thead><t │
00:20:45 verbose #23535 > > │ body><tr><td>source</td><td><div class="dni-plaintext"><pre>[ a, b           │
00:20:45 verbose #23536 > > │ ]</pre></div></td></tr></tbody></table></div></details></td></tr><tr><td><i> │
00:20:45 verbose #23537 > > │ (values)</i></td><td><div class="dni-plaintext"><pre>[ a, b                  │
00:20:45 verbose #23538 > > │ ]</pre></div></td></tr></tbody></table></div></details><style>               │
00:20:45 verbose #23539 > > │ .dni-code-hint {                                                             │
00:20:45 verbose #23540 > > │     font-style: italic;                                                      │
00:20:45 verbose #23541 > > │     overflow: hidden;                                                        │
00:20:45 verbose #23542 > > │     white-space: nowrap;                                                     │
00:20:45 verbose #23543 > > │ }                                                                            │
00:20:45 verbose #23544 > > │ .dni-treeview {                                                              │
00:20:45 verbose #23545 > > │     white-space: nowrap;                                                     │
00:20:45 verbose #23546 > > │ }                                                                            │
00:20:45 verbose #23547 > > │ .dni-treeview td {                                                           │
00:20:45 verbose #23548 > > │     vertical-align: top;                                                     │
00:20:45 verbose #23549 > > │     text-align: start;                                                       │
00:20:45 verbose #23550 > > │ }                                                                            │
00:20:45 verbose #23551 > > │ details.dni-treeview {                                                       │
00:20:45 verbose #23552 > > │     padding-left: 1em;                                                       │
00:20:45 verbose #23553 > > │ }                                                                            │
00:20:45 verbose #23554 > > │ table td {                                                                   │
00:20:45 verbose #23555 > > │     text-align: start;                                                       │
00:20:45 verbose #23556 > > │ }                                                                            │
00:20:45 verbose #23557 > > │ table tr {                                                                   │
00:20:45 verbose #23558 > > │     vertical-align: top;                                                     │
00:20:45 verbose #23559 > > │     margin: 0em 0px;                                                         │
00:20:45 verbose #23560 > > │ }                                                                            │
00:20:45 verbose #23561 > > │ table tr td pre                                                              │
00:20:45 verbose #23562 > > │ {                                                                            │
00:20:45 verbose #23563 > > │     vertical-align: top !important;                                          │
00:20:45 verbose #23564 > > │     margin: 0em 0px !important;                                              │
00:20:45 verbose #23565 > > │ }                                                                            │
00:20:45 verbose #23566 > > │ table th {                                                                   │
00:20:45 verbose #23567 > > │     text-align: start;                                                       │
00:20:45 verbose #23568 > > │ }                                                                            │
00:20:45 verbose #23569 > > │ </style>                                                                     │
00:20:45 verbose #23570 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:45 verbose #23571 > >
00:20:45 verbose #23572 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:45 verbose #23573 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:45 verbose #23574 > > │ ### to_array'                                                                │
00:20:45 verbose #23575 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:45 verbose #23576 > >
00:20:45 verbose #23577 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:45 verbose #23578 > > inl to_array' forall dim t. (items : seq' t) : a dim t =
00:20:45 verbose #23579 > >     backend_switch {
00:20:45 verbose #23580 > >         Fsharp = fun () => items |> $'Seq.toArray' : a dim t
00:20:45 verbose #23581 > >         Python = fun () => $'!items ' : a dim t
00:20:45 verbose #23582 > >     }
00:20:45 verbose #23583 > 00:20:45   debug #1232 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d4eebe79e47def93ebb485e36629193b4ee6237f925c5e312d8a97fe12efb4e5/main.spi
00:20:45 verbose #23584 > >
00:20:45 verbose #23585 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:45 verbose #23586 > > //// test
00:20:45 verbose #23587 > >
00:20:45 verbose #23588 > > (a ;[[ "a"; "b" ]] : _ i32 _)
00:20:45 verbose #23589 > > |> of_array'
00:20:45 verbose #23590 > > |> to_array'
00:20:45 verbose #23591 > > |> _assert_eq' (a ;[[ "a"; "b" ]] : _ i32 _)
00:20:46 verbose #23592 > 00:20:45   debug #1233 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0a6d6e3b53a96c082585075bc914384abb9c51f198b13a94b85c197eb18c8102/main.spi
00:20:46 verbose #23593 > >
00:20:46 verbose #23594 > > ╭─[ 403.76ms - stdout ]────────────────────────────────────────────────────────╮
00:20:46 verbose #23595 > > │ assert_eq' / actual: [|"a"; "b"|] / expected: [|"a"; "b"|]                   │
00:20:46 verbose #23596 > > │                                                                              │
00:20:46 verbose #23597 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:46 verbose #23598 > >
00:20:46 verbose #23599 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:46 verbose #23600 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:46 verbose #23601 > > │ ### of_list'                                                                 │
00:20:46 verbose #23602 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:46 verbose #23603 > >
00:20:46 verbose #23604 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:46 verbose #23605 > > inl of_list' forall t. (items : listm'.list' t) : seq' t =
00:20:46 verbose #23606 > >     backend_switch {
00:20:46 verbose #23607 > >         Fsharp = fun () => $'seq { for i = 0 to !items.Length - 1 do yield
00:20:46 verbose #23608 > > !items.[[i]] }' : seq' t
00:20:46 verbose #23609 > >         Python = fun () => $'!items ' : seq' t
00:20:46 verbose #23610 > >     }
00:20:46 verbose #23611 > 00:20:45   debug #1234 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/84cb9667b1a6197eee89fbe4f07188fbe57ae308fccf0a139c61bf2c87529c04/main.spi
00:20:46 verbose #23612 > >
00:20:46 verbose #23613 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:46 verbose #23614 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:46 verbose #23615 > > │ ### to_list'                                                                 │
00:20:46 verbose #23616 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:46 verbose #23617 > >
00:20:46 verbose #23618 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:46 verbose #23619 > > inl to_list' forall t. (items : seq' t) : listm'.list' t =
00:20:46 verbose #23620 > >     backend_switch {
00:20:46 verbose #23621 > >         Fsharp = fun () => items |> $'Seq.toList' : listm'.list' t
00:20:46 verbose #23622 > >         Python = fun () => $'!items ' : listm'.list' t
00:20:46 verbose #23623 > >     }
00:20:46 verbose #23624 > 00:20:46   debug #1235 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/79c5c28782dc18ce8a6788498d257c3d2260d0720d0382412db7b6438d5e182a/main.spi
00:20:47 verbose #23625 > >
00:20:47 verbose #23626 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:47 verbose #23627 > > //// test
00:20:47 verbose #23628 > >
00:20:47 verbose #23629 > > (a ;[[ "a"; "b" ]] : _ i32 _)
00:20:47 verbose #23630 > > |> of_array
00:20:47 verbose #23631 > > |> to_list'
00:20:47 verbose #23632 > > |> listm'.unbox
00:20:47 verbose #23633 > > |> _assert_eq ([[ "a"; "b" ]])
00:20:47 verbose #23634 > 00:20:46   debug #1236 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bf7831f704a3245bc2bc1c9a74a7572c6c453935b271e964e503997dd5375242/main.spi
00:20:47 verbose #23635 > >
00:20:47 verbose #23636 > > ╭─[ 443.77ms - stdout ]────────────────────────────────────────────────────────╮
00:20:47 verbose #23637 > > │ assert_eq / actual: UH0_1 ("a", UH0_1 ("b", UH0_0)) / expected: UH0_1 ("a",  │
00:20:47 verbose #23638 > > │ UH0_1 ("b", UH0_0))                                                          │
00:20:47 verbose #23639 > > │                                                                              │
00:20:47 verbose #23640 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:47 verbose #23641 > >
00:20:47 verbose #23642 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:47 verbose #23643 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:47 verbose #23644 > > │ ### rev'                                                                     │
00:20:47 verbose #23645 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:47 verbose #23646 > >
00:20:47 verbose #23647 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:47 verbose #23648 > > inl rev'' forall t u. (items : t) : seq' u =
00:20:47 verbose #23649 > >     backend_switch {
00:20:47 verbose #23650 > >         Fsharp = fun () => items |> $'Seq.rev' : seq' u
00:20:47 verbose #23651 > >         Python = fun () => $'reversed(!items)' : seq' u
00:20:47 verbose #23652 > >     }
00:20:47 verbose #23653 > 00:20:46   debug #1237 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/aa58db48967029e6d08d2ff7f73b8f4268f9227fbe80054f82a0e0dfce60d291/main.spi
00:20:47 verbose #23654 > >
00:20:47 verbose #23655 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:47 verbose #23656 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:47 verbose #23657 > > │ ## rust                                                                      │
00:20:47 verbose #23658 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:47 verbose #23659 > >
00:20:47 verbose #23660 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:47 verbose #23661 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:47 verbose #23662 > > │ ### fuse                                                                     │
00:20:47 verbose #23663 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:47 verbose #23664 > >
00:20:47 verbose #23665 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:20:47 verbose #23666 > > nominal fuse t = $'core_iter_Fuse<`t>'
00:20:48 verbose #23667 > 00:20:47   debug #1238 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/05a075a99c20a6adc95f31717f17a34548ae6835b2672a8cca19be69fb9ebf47/main.spi
00:20:48 verbose #23668 > 00:00:31 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 46205 }
00:20:48 verbose #23669 > 00:00:31   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/seq.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/seq.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:20:50 verbose #23670 > 00:00:33 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/seq.dib.ipynb to html
00:20:50 verbose #23671 > 00:00:33 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:20:50 verbose #23672 > 00:00:33 verbose #7 !   validate(nb)
00:20:52 verbose #23673 > 00:00:35 verbose #8 ! [NbConvertApp] Writing 382351 bytes to c:\home\git\polyglot\lib\spiral\seq.dib.html
00:20:52 verbose #23674 > 00:00:35 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 637 }
00:20:52 verbose #23675 > 00:00:35   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 637 }
00:20:52 verbose #23676 > 00:00:35   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/seq.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/seq.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:20:53 verbose #23677 > 00:00:36 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:20:53 verbose #23678 > 00:00:36   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:20:53 verbose #23679 > 00:00:36   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 46901 }
00:20:53   debug #23680 runtime.execute_with_options_async / { exit_code = 0; output_length = 51357 }
00:20:53   debug #30 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path seq.dib --retries 3
00:20:53   debug #23681 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path env.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:20:53 verbose #23682 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "env.dib", "--retries", "3"])) }
00:20:53 verbose #23683 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/env.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/env.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/env.dib" --output-path "c:/home/git/polyglot/lib/spiral/env.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:20:56 verbose #23684 > >
00:20:56 verbose #23685 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:56 verbose #23686 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:56 verbose #23687 > > │ # env                                                                        │
00:20:56 verbose #23688 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:20:56 verbose #23689 > >
00:20:56 verbose #23690 > > ── markdown ────────────────────────────────────────────────────────────────────
00:20:56 verbose #23691 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:20:56 verbose #23692 > > │ ## types                                                                     │
00:20:56 verbose #23693 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:00 verbose #23694 > >
00:21:00 verbose #23695 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:00 verbose #23696 > > inl types () =
00:21:00 verbose #23697 > >     backend_switch {
00:21:00 verbose #23698 > >         Fsharp = fun () =>
00:21:00 verbose #23699 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:21:00 verbose #23700 > > Fable.Core.Emit(\"std::env::VarError\")>]]\n#endif\ntype std_env_VarError =
00:21:00 verbose #23701 > > class end"
00:21:00 verbose #23702 > >         Python = fun () => ()
00:21:00 verbose #23703 > >     }
00:21:00 verbose #23704 > 00:21:00   debug #1239 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cd7a4925eb6a4082f7fda02635fe0a2b14a51b34f2905dacfc039acfab219f35/main.spi
00:21:01 verbose #23705 > >
00:21:01 verbose #23706 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:01 verbose #23707 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:01 verbose #23708 > > │ ## rust                                                                      │
00:21:01 verbose #23709 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:01 verbose #23710 > >
00:21:01 verbose #23711 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:01 verbose #23712 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:01 verbose #23713 > > │ ### var_error                                                                │
00:21:01 verbose #23714 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:01 verbose #23715 > >
00:21:01 verbose #23716 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:01 verbose #23717 > > nominal var_error = $'std_env_VarError'
00:21:01 verbose #23718 > 00:21:00   debug #1240 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/500e588ae7d9fbad36db1fe75da0556379721e32734c14f5a58ae21c1f72a51e/main.spi
00:21:01 verbose #23719 > >
00:21:01 verbose #23720 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:01 verbose #23721 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:01 verbose #23722 > > │ ### get_environment_variable_comptime                                        │
00:21:01 verbose #23723 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:01 verbose #23724 > >
00:21:01 verbose #23725 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:01 verbose #23726 > > inl get_environment_variable_comptime (var : string) : string =
00:21:01 verbose #23727 > >     run_target function
00:21:01 verbose #23728 > >         | Rust (Native) => fun () =>
00:21:01 verbose #23729 > >             open rust_operators
00:21:01 verbose #23730 > >             !\($'"env\!(\\\"" + !var + "\\\")"')
00:21:01 verbose #23731 > >             |> sm'.from_std_string
00:21:01 verbose #23732 > >         | target => fun () => null ()
00:21:02 verbose #23733 > 00:21:01   debug #1241 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cb2907a43fd745dfb819001aeacddf5b50672e6c1dc7a80e3c12e5b9e396a6e0/main.spi
00:21:02 verbose #23734 > >
00:21:02 verbose #23735 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:02 verbose #23736 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:02 verbose #23737 > > │ ## python                                                                    │
00:21:02 verbose #23738 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:02 verbose #23739 > >
00:21:02 verbose #23740 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:02 verbose #23741 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:02 verbose #23742 > > │ ### os_environ                                                               │
00:21:02 verbose #23743 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:02 verbose #23744 > >
00:21:02 verbose #23745 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:02 verbose #23746 > > nominal os_environ = any
00:21:02 verbose #23747 > 00:21:01   debug #1242 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/74877c6e9807cbafe44b2896c59331939ed23da57b35fe8cf46505f9fc720ba1/main.spi
00:21:02 verbose #23748 > >
00:21:02 verbose #23749 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:02 verbose #23750 > > inl os_environ () : os_environ =
00:21:02 verbose #23751 > >     backend_switch {
00:21:02 verbose #23752 > >         Fsharp = fun () =>
00:21:02 verbose #23753 > >             open python_operators
00:21:02 verbose #23754 > >             global "type IOsEnviron = abstract environ: x: unit -> obj"
00:21:02 verbose #23755 > >             inl os : $'IOsEnviron' = python.import_all "os"
00:21:02 verbose #23756 > >             !\($'"!os.environ"') : os_environ
00:21:02 verbose #23757 > >         Python = fun () =>
00:21:02 verbose #23758 > >             global "import os"
00:21:02 verbose #23759 > >             $'os.environ' : os_environ
00:21:02 verbose #23760 > >     }
00:21:02 verbose #23761 > 00:21:02   debug #1243 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d6623e77c4417edea470cf34d63773a2b67310cdd906c7b46d5ffbcf7fee3942/main.spi
00:21:02 verbose #23762 > >
00:21:02 verbose #23763 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:02 verbose #23764 > > inl environ_get (key : string) (os_environ : os_environ) : string =
00:21:02 verbose #23765 > >     backend_switch {
00:21:02 verbose #23766 > >         Fsharp = fun () =>
00:21:02 verbose #23767 > >             open python_operators
00:21:02 verbose #23768 > >             !\\(key, $'"!os_environ.get($0)"') : string
00:21:02 verbose #23769 > >         Python = fun () =>
00:21:02 verbose #23770 > >             $'!os_environ.get(!key)' : string
00:21:02 verbose #23771 > >     }
00:21:03 verbose #23772 > 00:21:02   debug #1244 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8952cab9391a9e0bb269bd221ea6b0a9380a6fc0524153ed32d33c3693e47504/main.spi
00:21:03 verbose #23773 > >
00:21:03 verbose #23774 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:03 verbose #23775 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:03 verbose #23776 > > │ ## env                                                                       │
00:21:03 verbose #23777 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:03 verbose #23778 > >
00:21:03 verbose #23779 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:03 verbose #23780 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:03 verbose #23781 > > │ ### get_environment_variable                                                 │
00:21:03 verbose #23782 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:03 verbose #23783 > >
00:21:03 verbose #23784 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:03 verbose #23785 > > let get_environment_variable (var : string) : string =
00:21:03 verbose #23786 > >     run_target function
00:21:03 verbose #23787 > >         | Rust _ => fun () =>
00:21:03 verbose #23788 > >             open rust_operators
00:21:03 verbose #23789 > >             !\\(var, $'"std::env::var(&*$0)"')
00:21:03 verbose #23790 > >             |> fun x => x : resultm.result' sm'.std_string var_error
00:21:03 verbose #23791 > >             |> resultm.map' sm'.from_std_string
00:21:03 verbose #23792 > >             |> resultm.unwrap_or' (join "")
00:21:03 verbose #23793 > >         | Fsharp _ => fun () =>
00:21:03 verbose #23794 > >             var
00:21:03 verbose #23795 > >             |> $'System.Environment.GetEnvironmentVariable'
00:21:03 verbose #23796 > >             |> optionm'.of_obj
00:21:03 verbose #23797 > >             |> optionm'.unbox
00:21:03 verbose #23798 > >             |> optionm'.default_value ""
00:21:03 verbose #23799 > >         | TypeScript _ => fun () =>
00:21:03 verbose #23800 > >             open typescript_operators
00:21:03 verbose #23801 > >             !\\(var, $'"process.env[[$0]] ?? \\\"\\\""')
00:21:03 verbose #23802 > >         | Python _ | Cuda _ => fun () =>
00:21:03 verbose #23803 > >             os_environ ()
00:21:03 verbose #23804 > >             |> environ_get var
00:21:03 verbose #23805 > >             |> optionm'.of_obj
00:21:03 verbose #23806 > >             |> optionm'.unbox
00:21:03 verbose #23807 > >             |> optionm'.default_value ""
00:21:03 verbose #23808 > >         | target => fun () => failwith $'$"env.get_environment_variable
00:21:03 verbose #23809 > > target: {!target} / var: {!var}"'
00:21:03 verbose #23810 > 00:21:02   debug #1245 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/00de39214ce72b58270bb233829467931b95aeb4ce49bdb912c791964df4e0a4/main.spi
00:21:03 verbose #23811 > >
00:21:03 verbose #23812 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:03 verbose #23813 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:03 verbose #23814 > > │ ### get_entry_assembly_name                                                  │
00:21:03 verbose #23815 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:03 verbose #23816 > >
00:21:03 verbose #23817 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:03 verbose #23818 > > let get_entry_assembly_name () : string =
00:21:03 verbose #23819 > >     run_target function
00:21:03 verbose #23820 > >         | Rust _ => fun () =>
00:21:03 verbose #23821 > >             (join "CARGO_PKG_NAME") |> get_environment_variable
00:21:03 verbose #23822 > >         | Fsharp _ => fun () =>
00:21:03 verbose #23823 > >             $'System.Reflection.Assembly.GetEntryAssembly().GetName().Name'
00:21:03 verbose #23824 > >         | target => fun () => failwith $'$"env.get_entry_assembly_name / target:
00:21:03 verbose #23825 > > {!target}"'
00:21:03 verbose #23826 > 00:21:03   debug #1246 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b36adb846d437969808232627d66fe9899077a81902d8feb505940860a6ed8b1/main.spi
00:21:04 verbose #23827 > >
00:21:04 verbose #23828 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:04 verbose #23829 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:04 verbose #23830 > > │ ### append_path                                                              │
00:21:04 verbose #23831 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:04 verbose #23832 > >
00:21:04 verbose #23833 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:04 verbose #23834 > > inl append_path (path : string) : option string =
00:21:04 verbose #23835 > >     inl env_path = "PATH" |> get_environment_variable
00:21:04 verbose #23836 > >     if env_path = ""
00:21:04 verbose #23837 > >     then None
00:21:04 verbose #23838 > >     else
00:21:04 verbose #23839 > >         inl env_sep =
00:21:04 verbose #23840 > >             if platform.is_windows ()
00:21:04 verbose #23841 > >             then ";"
00:21:04 verbose #23842 > >             else ":"
00:21:04 verbose #23843 > >         Some $'$"{!path}{!env_sep}{!env_path}"'
00:21:04 verbose #23844 > 00:21:03   debug #1247 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d7802d31ebdcb80e892316eee3f0adf1cedcb4d17579ecc8b0334deb3236a754/main.spi
00:21:04 verbose #23845 > 00:00:10 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 7244 }
00:21:04 verbose #23846 > 00:00:10   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/env.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/env.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:21:06 verbose #23847 > 00:00:12 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/env.dib.ipynb to html
00:21:06 verbose #23848 > 00:00:12 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:21:06 verbose #23849 > 00:00:12 verbose #7 !   validate(nb)
00:21:07 verbose #23850 > 00:00:14 verbose #8 ! [NbConvertApp] Writing 291974 bytes to c:\home\git\polyglot\lib\spiral\env.dib.html
00:21:08 verbose #23851 > 00:00:14 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 637 }
00:21:08 verbose #23852 > 00:00:14   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 637 }
00:21:08 verbose #23853 > 00:00:14   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/env.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/env.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:21:09 verbose #23854 > 00:00:15 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:21:09 verbose #23855 > 00:00:15   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:21:09 verbose #23856 > 00:00:15   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 7940 }
00:21:09   debug #23857 runtime.execute_with_options_async / { exit_code = 0; output_length = 10832 }
00:21:09   debug #31 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path env.dib --retries 3
00:21:09   debug #23858 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path python.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:21:09 verbose #23859 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "python.dib", "--retries", "3"])) }
00:21:09 verbose #23860 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/python.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/python.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/python.dib" --output-path "c:/home/git/polyglot/lib/spiral/python.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:21:12 verbose #23861 > >
00:21:12 verbose #23862 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:12 verbose #23863 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:12 verbose #23864 > > │ # python                                                                     │
00:21:12 verbose #23865 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:12 verbose #23866 > >
00:21:12 verbose #23867 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:12 verbose #23868 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:12 verbose #23869 > > │ ### emit_expr                                                                │
00:21:12 verbose #23870 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:16 verbose #23871 > >
00:21:16 verbose #23872 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:16 verbose #23873 > > inl emit_expr forall a t. (args : a) (code : string) : t =
00:21:16 verbose #23874 > >     real
00:21:16 verbose #23875 > >         $'Fable.Core.PyInterop.emitPyExpr !args !code ' : t
00:21:16 verbose #23876 > 00:21:16   debug #1248 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5447e0dc10564f04ef577d20fa8f92f247573bd47f061c29042e3e47e071987b/main.spi
00:21:17 verbose #23877 > >
00:21:17 verbose #23878 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:17 verbose #23879 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:17 verbose #23880 > > │ ###                                                                          │
00:21:17 verbose #23881 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:17 verbose #23882 > >
00:21:17 verbose #23883 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:17 verbose #23884 > > inl (~!\) forall t. (code : string) : t =
00:21:17 verbose #23885 > >     emit_expr () code
00:21:17 verbose #23886 > 00:21:16   debug #1249 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b00ac9592ed76583bf0d1c17c0013f6f39638179952e6cbed2d811f62e382264/main.spi
00:21:17 verbose #23887 > >
00:21:17 verbose #23888 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:17 verbose #23889 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:17 verbose #23890 > > │ ###                                                                          │
00:21:17 verbose #23891 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:17 verbose #23892 > >
00:21:17 verbose #23893 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:17 verbose #23894 > > inl (~!\\) forall t u. ((args : t), (code : string)) : u =
00:21:17 verbose #23895 > >     emit_expr args code
00:21:18 verbose #23896 > 00:21:17   debug #1250 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dc066a710ba31498d2155086d76d96ef6fb4c6287fecc061873365ced829915d/main.spi
00:21:18 verbose #23897 > >
00:21:18 verbose #23898 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:18 verbose #23899 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:18 verbose #23900 > > │ ###                                                                          │
00:21:18 verbose #23901 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:18 verbose #23902 > >
00:21:18 verbose #23903 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:18 verbose #23904 > > inl import_all forall t. (file : string) : t =
00:21:18 verbose #23905 > >     real
00:21:18 verbose #23906 > >         $'Fable.Core.PyInterop.importAll !file ' : t
00:21:18 verbose #23907 > 00:21:17   debug #1251 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3f385c6af6c0dc432908d54e1c558d789b39449adc75e847b1b91b2940f32fb5/main.spi
00:21:18 verbose #23908 > >
00:21:18 verbose #23909 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:18 verbose #23910 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:18 verbose #23911 > > │ ###                                                                          │
00:21:18 verbose #23912 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:18 verbose #23913 > >
00:21:18 verbose #23914 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:18 verbose #23915 > > inl import forall t. (name : string) (file : string) : t =
00:21:18 verbose #23916 > >     real
00:21:18 verbose #23917 > >         $'Fable.Core.PyInterop.import !name !file ' : t
00:21:18 verbose #23918 > 00:21:18   debug #1252 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/75fccd10a6550c424d30c9017eded8c5430744be3810874309cad2aaeedc7a6f/main.spi
00:21:19 verbose #23919 > 00:00:09 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 2867 }
00:21:19 verbose #23920 > 00:00:09   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/python.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/python.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:21:21 verbose #23921 > 00:00:11 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/python.dib.ipynb to html
00:21:21 verbose #23922 > 00:00:11 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:21:21 verbose #23923 > 00:00:11 verbose #7 !   validate(nb)
00:21:22 verbose #23924 > 00:00:12 verbose #8 ! [NbConvertApp] Writing 278637 bytes to c:\home\git\polyglot\lib\spiral\python.dib.html
00:21:22 verbose #23925 > 00:00:12 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 643 }
00:21:22 verbose #23926 > 00:00:12   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 643 }
00:21:22 verbose #23927 > 00:00:12   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/python.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/python.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:21:23 verbose #23928 > 00:00:13 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:21:23 verbose #23929 > 00:00:13   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:21:23 verbose #23930 > 00:00:14   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 3569 }
00:21:23   debug #23931 runtime.execute_with_options_async / { exit_code = 0; output_length = 6290 }
00:21:23   debug #32 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path python.dib --retries 3
00:21:23   debug #23932 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path typescript.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:21:23 verbose #23933 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "typescript.dib", "--retries", "3"])) }
00:21:23 verbose #23934 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/typescript.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/typescript.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/typescript.dib" --output-path "c:/home/git/polyglot/lib/spiral/typescript.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:21:26 verbose #23935 > >
00:21:26 verbose #23936 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:26 verbose #23937 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:26 verbose #23938 > > │ # typescript                                                                 │
00:21:26 verbose #23939 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:26 verbose #23940 > >
00:21:26 verbose #23941 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:26 verbose #23942 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:26 verbose #23943 > > │ ### emit_expr                                                                │
00:21:26 verbose #23944 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:30 verbose #23945 > >
00:21:30 verbose #23946 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:30 verbose #23947 > > inl emit_expr forall a t. (args : a) (code : string) : t =
00:21:30 verbose #23948 > >     real
00:21:30 verbose #23949 > >         $'Fable.Core.JsInterop.emitJsExpr !args !code ' : t
00:21:31 verbose #23950 > 00:21:30   debug #1253 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ffd4addd53f79aa04e68f6f302bd824f16c03e6b0378c0d72008016b3937842c/main.spi
00:21:31 verbose #23951 > >
00:21:31 verbose #23952 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:31 verbose #23953 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:31 verbose #23954 > > │ ###                                                                          │
00:21:31 verbose #23955 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:31 verbose #23956 > >
00:21:31 verbose #23957 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:31 verbose #23958 > > inl (~!\) forall t. (code : string) : t =
00:21:31 verbose #23959 > >     emit_expr () code
00:21:31 verbose #23960 > 00:21:31   debug #1254 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/92a275d67df2eba3e649fcfd83691b71189adf20a9eae633febd0fa9139b7336/main.spi
00:21:31 verbose #23961 > >
00:21:31 verbose #23962 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:31 verbose #23963 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:31 verbose #23964 > > │ ###                                                                          │
00:21:31 verbose #23965 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:31 verbose #23966 > >
00:21:31 verbose #23967 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:31 verbose #23968 > > inl (~!\\) forall t u. ((args : t), (code : string)) : u =
00:21:31 verbose #23969 > >     emit_expr args code
00:21:32 verbose #23970 > 00:21:31   debug #1255 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a94c8e498193017c7a37098496ec045f58660b4e7e5d36eaf0cef34cd40a2bdc/main.spi
00:21:32 verbose #23971 > >
00:21:32 verbose #23972 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:32 verbose #23973 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:32 verbose #23974 > > │ ###                                                                          │
00:21:32 verbose #23975 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:32 verbose #23976 > >
00:21:32 verbose #23977 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:32 verbose #23978 > > inl import_all forall t. (file : string) : t =
00:21:32 verbose #23979 > >     real
00:21:32 verbose #23980 > >         $'Fable.Core.JsInterop.importAll !file ' : t
00:21:32 verbose #23981 > 00:21:31   debug #1256 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bb6475de865cc5962b83d816d8a6a2e7fe48128f2411a97c7016f0b49cc6a338/main.spi
00:21:32 verbose #23982 > >
00:21:32 verbose #23983 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:32 verbose #23984 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:32 verbose #23985 > > │ ###                                                                          │
00:21:32 verbose #23986 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:32 verbose #23987 > >
00:21:32 verbose #23988 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:32 verbose #23989 > > inl import forall t. (name : string) (file : string) : t =
00:21:32 verbose #23990 > >     real
00:21:32 verbose #23991 > >         $'Fable.Core.JsInterop.import !name !file ' : t
00:21:32 verbose #23992 > 00:21:32   debug #1257 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/698c6e1e71c7d8bdab2cc6d00031ecfb5301f686bbc38beba7d10a842f6b0be9/main.spi
00:21:33 verbose #23993 > 00:00:09 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 2867 }
00:21:33 verbose #23994 > 00:00:09   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/typescript.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/typescript.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:21:35 verbose #23995 > 00:00:11 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/typescript.dib.ipynb to html
00:21:35 verbose #23996 > 00:00:11 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:21:35 verbose #23997 > 00:00:11 verbose #7 !   validate(nb)
00:21:36 verbose #23998 > 00:00:12 verbose #8 ! [NbConvertApp] Writing 278653 bytes to c:\home\git\polyglot\lib\spiral\typescript.dib.html
00:21:36 verbose #23999 > 00:00:12 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 651 }
00:21:36 verbose #24000 > 00:00:12   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 651 }
00:21:36 verbose #24001 > 00:00:12   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/typescript.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/typescript.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:21:37 verbose #24002 > 00:00:13 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:21:37 verbose #24003 > 00:00:13   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:21:38 verbose #24004 > 00:00:14   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 3577 }
00:21:38   debug #24005 runtime.execute_with_options_async / { exit_code = 0; output_length = 6334 }
00:21:38   debug #33 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path typescript.dib --retries 3
00:21:38   debug #24006 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path file_system.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:21:38 verbose #24007 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "file_system.dib", "--retries", "3"])) }
00:21:38 verbose #24008 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/file_system.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/file_system.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/file_system.dib" --output-path "c:/home/git/polyglot/lib/spiral/file_system.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:21:40 verbose #24009 > >
00:21:40 verbose #24010 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:40 verbose #24011 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:40 verbose #24012 > > │ # file_system                                                                │
00:21:40 verbose #24013 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:44 verbose #24014 > >
00:21:44 verbose #24015 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:44 verbose #24016 > > open sm'_operators
00:21:44 verbose #24017 > > open rust_operators
00:21:45 verbose #24018 > 00:21:44   debug #1258 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d18c421303fb6d605a3027516e3f0203aee5cd8d2239592f6ee01be536c64466/main.spi
00:21:46 verbose #24019 > >
00:21:46 verbose #24020 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:46 verbose #24021 > > //// test
00:21:46 verbose #24022 > >
00:21:46 verbose #24023 > > open testing
00:21:46 verbose #24024 > 00:21:45   debug #1259 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/65d2454ef2c69f3bd21146b71bfa20756423ab99aa4c66771c7f5ede708c0b19/main.spi
00:21:46 verbose #24025 > >
00:21:46 verbose #24026 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:46 verbose #24027 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:46 verbose #24028 > > │ ## types                                                                     │
00:21:46 verbose #24029 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:46 verbose #24030 > >
00:21:46 verbose #24031 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:46 verbose #24032 > > inl types () =
00:21:46 verbose #24033 > >     backend_switch {
00:21:46 verbose #24034 > >         Fsharp = fun () =>
00:21:46 verbose #24035 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:21:46 verbose #24036 > > Fable.Core.Emit(\"std::fs::File\")>]]\n#endif\ntype std_fs_File = class end"
00:21:46 verbose #24037 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:21:46 verbose #24038 > > Fable.Core.Emit(\"std::fs::FileType\")>]]\n#endif\ntype std_fs_FileType = class
00:21:46 verbose #24039 > > end"
00:21:46 verbose #24040 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:21:46 verbose #24041 > > Fable.Core.Emit(\"std::path::Display\")>]]\n#endif\ntype std_path_Display =
00:21:46 verbose #24042 > > class end"
00:21:46 verbose #24043 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:21:46 verbose #24044 > > Fable.Core.Emit(\"std::path::Path\")>]]\n#endif\ntype std_path_Path = class end"
00:21:46 verbose #24045 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:21:46 verbose #24046 > > Fable.Core.Emit(\"std::path::PathBuf\")>]]\n#endif\ntype std_path_PathBuf =
00:21:46 verbose #24047 > > class end"
00:21:46 verbose #24048 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:21:46 verbose #24049 > > Fable.Core.Emit(\"async_walkdir::DirEntry\")>]]\n#endif\ntype
00:21:46 verbose #24050 > > async_walkdir_DirEntry = class end"
00:21:46 verbose #24051 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:21:46 verbose #24052 > > Fable.Core.Emit(\"async_walkdir::Error\")>]]\n#endif\ntype async_walkdir_Error =
00:21:46 verbose #24053 > > class end"
00:21:46 verbose #24054 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:21:46 verbose #24055 > > Fable.Core.Emit(\"async_walkdir::Filtering\")>]]\n#endif\ntype
00:21:46 verbose #24056 > > async_walkdir_Filtering = class end"
00:21:46 verbose #24057 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:21:46 verbose #24058 > > Fable.Core.Emit(\"async_walkdir::WalkDir\")>]]\n#endif\ntype
00:21:46 verbose #24059 > > async_walkdir_WalkDir = class end"
00:21:46 verbose #24060 > >         Python = fun () => ()
00:21:46 verbose #24061 > >     }
00:21:46 verbose #24062 > 00:21:46   debug #1260 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bc31db57f7104877215039167a4b0ca1a74db822a007a91e042baf93caaf0e78/main.spi
00:21:46 verbose #24063 > >
00:21:46 verbose #24064 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:46 verbose #24065 > > inl types () =
00:21:46 verbose #24066 > >     types ()
00:21:46 verbose #24067 > >     date_time.types ()
00:21:46 verbose #24068 > >     env.types ()
00:21:46 verbose #24069 > >     rust.types ()
00:21:46 verbose #24070 > >     sm'.types ()
00:21:46 verbose #24071 > >     stream.types ()
00:21:46 verbose #24072 > >     threading.types ()
00:21:47 verbose #24073 > 00:21:46   debug #1261 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/aae8a89d6be3c3a1ea0cb3c88e7fe1c52ed1e8a475612afce1c4e82fa84c66c9/main.spi
00:21:47 verbose #24074 > >
00:21:47 verbose #24075 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:47 verbose #24076 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:47 verbose #24077 > > │ ## fsharp                                                                    │
00:21:47 verbose #24078 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:47 verbose #24079 > >
00:21:47 verbose #24080 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:47 verbose #24081 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:47 verbose #24082 > > │ ### file_mode                                                                │
00:21:47 verbose #24083 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:47 verbose #24084 > >
00:21:47 verbose #24085 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:47 verbose #24086 > > nominal file_mode' = $'System.IO.FileMode'
00:21:47 verbose #24087 > >
00:21:47 verbose #24088 > > union file_mode =
00:21:47 verbose #24089 > >     | ModeCreateNew
00:21:47 verbose #24090 > >     | ModeCreate
00:21:47 verbose #24091 > >     | ModeOpen
00:21:47 verbose #24092 > >     | ModeOpenOrCreate
00:21:47 verbose #24093 > >     | Truncate
00:21:47 verbose #24094 > >     | Append
00:21:47 verbose #24095 > >
00:21:47 verbose #24096 > > inl file_mode = function
00:21:47 verbose #24097 > >     | ModeCreateNew => $'System.IO.FileMode.CreateNew' : file_mode'
00:21:47 verbose #24098 > >     | ModeCreate => $'System.IO.FileMode.Create' : file_mode'
00:21:47 verbose #24099 > >     | ModeOpen => $'System.IO.FileMode.Open' : file_mode'
00:21:47 verbose #24100 > >     | ModeOpenOrCreate => $'System.IO.FileMode.OpenOrCreate' : file_mode'
00:21:47 verbose #24101 > >     | Truncate => $'System.IO.FileMode.Truncate' : file_mode'
00:21:47 verbose #24102 > >     | Append => $'System.IO.FileMode.Append' : file_mode'
00:21:47 verbose #24103 > 00:21:46   debug #1262 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3c34d8778cacac400b99dd119ad75798d706d582573ddfbdeecc56a1f4e4aa99/main.spi
00:21:47 verbose #24104 > >
00:21:47 verbose #24105 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:47 verbose #24106 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:47 verbose #24107 > > │ ### file_access                                                              │
00:21:47 verbose #24108 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:47 verbose #24109 > >
00:21:47 verbose #24110 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:47 verbose #24111 > > nominal file_access' = $'System.IO.FileAccess'
00:21:47 verbose #24112 > >
00:21:47 verbose #24113 > > union file_access =
00:21:47 verbose #24114 > >     | AccessRead
00:21:47 verbose #24115 > >     | AccessWrite
00:21:47 verbose #24116 > >     | AccessReadWrite
00:21:47 verbose #24117 > >
00:21:47 verbose #24118 > > inl file_access = function
00:21:47 verbose #24119 > >     | AccessRead => $'System.IO.FileAccess.Read' : file_access'
00:21:47 verbose #24120 > >     | AccessWrite => $'System.IO.FileAccess.ReadWrite' : file_access'
00:21:47 verbose #24121 > >     | AccessReadWrite => $'System.IO.FileAccess.ReadWrite' : file_access'
00:21:47 verbose #24122 > 00:21:47   debug #1263 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/68e447742c1ddc41dbe68381bd158cbb00d43357bc5d5d584bede4f58be463dc/main.spi
00:21:48 verbose #24123 > >
00:21:48 verbose #24124 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:48 verbose #24125 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:48 verbose #24126 > > │ ### file_share                                                               │
00:21:48 verbose #24127 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:48 verbose #24128 > >
00:21:48 verbose #24129 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:48 verbose #24130 > > nominal file_share' = $'System.IO.FileShare'
00:21:48 verbose #24131 > >
00:21:48 verbose #24132 > > union file_share =
00:21:48 verbose #24133 > >     | ShareNone
00:21:48 verbose #24134 > >     | ShareRead
00:21:48 verbose #24135 > >     | ShareWrite
00:21:48 verbose #24136 > >     | ShareReadWrite
00:21:48 verbose #24137 > >     | ShareDelete
00:21:48 verbose #24138 > >
00:21:48 verbose #24139 > > inl file_share = function
00:21:48 verbose #24140 > >     | ShareNone => $'System.IO.FileShare.None' : file_share'
00:21:48 verbose #24141 > >     | ShareRead => $'System.IO.FileShare.Read' : file_share'
00:21:48 verbose #24142 > >     | ShareWrite => $'System.IO.FileShare.Write' : file_share'
00:21:48 verbose #24143 > >     | ShareReadWrite => $'System.IO.FileShare.ReadWrite' : file_share'
00:21:48 verbose #24144 > >     | ShareDelete => $'System.IO.FileShare.Delete' : file_share'
00:21:48 verbose #24145 > 00:21:47   debug #1264 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ce0d8455979725d95d59c9136268e4cd9fbb7757f571240d2b4350f39e0d8e29/main.spi
00:21:48 verbose #24146 > >
00:21:48 verbose #24147 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:48 verbose #24148 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:48 verbose #24149 > > │ ### file_stream                                                              │
00:21:48 verbose #24150 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:48 verbose #24151 > >
00:21:48 verbose #24152 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:48 verbose #24153 > > nominal file_stream' = $'System.IO.FileStream'
00:21:48 verbose #24154 > >
00:21:48 verbose #24155 > > inl file_stream (path : string) mode access share : file_stream' =
00:21:48 verbose #24156 > >     run_target function
00:21:48 verbose #24157 > >         | Fsharp (Native) => fun () =>
00:21:48 verbose #24158 > >             inl mode = mode |> file_mode
00:21:48 verbose #24159 > >             inl access = access |> file_access
00:21:48 verbose #24160 > >             inl share = share |> file_share
00:21:48 verbose #24161 > >             $'new System.IO.FileStream (!path, !mode, !access, !share)'
00:21:48 verbose #24162 > >         | _ => fun () => null ()
00:21:48 verbose #24163 > 00:21:47   debug #1265 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/af9147cd2e1439724df464ffd288991700f6d561e3b596f3de6e471343903403/main.spi
00:21:48 verbose #24164 > >
00:21:48 verbose #24165 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:48 verbose #24166 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:48 verbose #24167 > > │ ### directory_info                                                           │
00:21:48 verbose #24168 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:48 verbose #24169 > >
00:21:48 verbose #24170 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:48 verbose #24171 > > nominal directory_info = $'System.IO.DirectoryInfo'
00:21:48 verbose #24172 > >
00:21:48 verbose #24173 > > inl directory_info (path : string) : directory_info =
00:21:48 verbose #24174 > >     path |> $'`directory_info '
00:21:49 verbose #24175 > 00:21:48   debug #1266 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6b5a8e853826aa267597d1dcc3c9611dd5ae6877424bc45345a656a9ca554926/main.spi
00:21:49 verbose #24176 > >
00:21:49 verbose #24177 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:49 verbose #24178 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:49 verbose #24179 > > │ ### directory_info_exists                                                    │
00:21:49 verbose #24180 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:49 verbose #24181 > >
00:21:49 verbose #24182 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:49 verbose #24183 > > inl directory_info_exists (info : directory_info) : bool =
00:21:49 verbose #24184 > >     run_target function
00:21:49 verbose #24185 > >         | Fsharp (Native) => fun () =>
00:21:49 verbose #24186 > >             $'!info.Exists'
00:21:49 verbose #24187 > >         | _ => fun () => null ()
00:21:49 verbose #24188 > 00:21:48   debug #1267 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/849cf7f20b35c503b392b6413187a94c7610ebc15ab35a9a74bee58b2fca84cb/main.spi
00:21:49 verbose #24189 > >
00:21:49 verbose #24190 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:49 verbose #24191 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:49 verbose #24192 > > │ ### directory_info_creation_time                                             │
00:21:49 verbose #24193 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:49 verbose #24194 > >
00:21:49 verbose #24195 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:49 verbose #24196 > > inl directory_info_creation_time (info : directory_info) : date_time.date_time =
00:21:49 verbose #24197 > >     run_target function
00:21:49 verbose #24198 > >         | Fsharp (Native) => fun () =>
00:21:49 verbose #24199 > >             $'!info.CreationTime'
00:21:49 verbose #24200 > >         | _ => fun () => null ()
00:21:49 verbose #24201 > 00:21:49   debug #1268 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/381c4a94ca9482243ae6c55308179cb400241a9055d8314e4fe16c6b6fc35952/main.spi
00:21:49 verbose #24202 > >
00:21:49 verbose #24203 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:49 verbose #24204 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:49 verbose #24205 > > │ ### directory_info_name                                                      │
00:21:49 verbose #24206 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:49 verbose #24207 > >
00:21:49 verbose #24208 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:49 verbose #24209 > > inl directory_info_name (info : directory_info) : string =
00:21:49 verbose #24210 > >     run_target function
00:21:49 verbose #24211 > >         | Fsharp (Native) => fun () =>
00:21:49 verbose #24212 > >             $'!info.Name'
00:21:49 verbose #24213 > >         | _ => fun () => null ()
00:21:50 verbose #24214 > 00:21:49   debug #1269 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/13bd003bd0c1aa858ae1b78f98832f2a4b99c12b68dbd53bb3b1734968960a25/main.spi
00:21:50 verbose #24215 > >
00:21:50 verbose #24216 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:50 verbose #24217 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:50 verbose #24218 > > │ ### directory_info_full_name                                                 │
00:21:50 verbose #24219 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:50 verbose #24220 > >
00:21:50 verbose #24221 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:50 verbose #24222 > > inl directory_info_full_name (info : directory_info) : string =
00:21:50 verbose #24223 > >     run_target function
00:21:50 verbose #24224 > >         | Fsharp (Native) => fun () =>
00:21:50 verbose #24225 > >             $'!info.FullName'
00:21:50 verbose #24226 > >         | _ => fun () => null ()
00:21:50 verbose #24227 > 00:21:49   debug #1270 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/40a2471cf4fc7133a55f85c2db3cdbf91a842c90d38c453d636e818362c334c5/main.spi
00:21:50 verbose #24228 > >
00:21:50 verbose #24229 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:50 verbose #24230 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:50 verbose #24231 > > │ ### create_directory                                                         │
00:21:50 verbose #24232 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:50 verbose #24233 > >
00:21:50 verbose #24234 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:50 verbose #24235 > > inl create_directory (path : string) : directory_info =
00:21:50 verbose #24236 > >     run_target function
00:21:50 verbose #24237 > >         | Fsharp (Native) => fun () =>
00:21:50 verbose #24238 > >             path |> $'System.IO.Directory.CreateDirectory'
00:21:50 verbose #24239 > >         | _ => fun () => null ()
00:21:50 verbose #24240 > 00:21:50   debug #1271 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2fb07da2d676047215cd812e14c838d85fd7fed5ae38c6ce0f21192374f69c54/main.spi
00:21:50 verbose #24241 > >
00:21:50 verbose #24242 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:50 verbose #24243 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:50 verbose #24244 > > │ ### directory_get_files                                                      │
00:21:50 verbose #24245 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:50 verbose #24246 > >
00:21:50 verbose #24247 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:50 verbose #24248 > > inl directory_get_files (path : string) : array_base string =
00:21:50 verbose #24249 > >     run_target function
00:21:50 verbose #24250 > >         | Fsharp (Native) => fun () =>
00:21:50 verbose #24251 > >             path |> $'System.IO.Directory.GetFiles'
00:21:50 verbose #24252 > >         | _ => fun () => null ()
00:21:51 verbose #24253 > 00:21:50   debug #1272 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1731abaab3aa114d2975361a1114f199aeba700f93560f736fc4786343873430/main.spi
00:21:51 verbose #24254 > >
00:21:51 verbose #24255 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:51 verbose #24256 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:51 verbose #24257 > > │ ### file_move                                                                │
00:21:51 verbose #24258 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:51 verbose #24259 > >
00:21:51 verbose #24260 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:51 verbose #24261 > > inl file_move (new_path : string) (old_path : string) : () =
00:21:51 verbose #24262 > >     run_target function
00:21:51 verbose #24263 > >         | Fsharp (Native) => fun () =>
00:21:51 verbose #24264 > >             $'System.IO.File.Move (!old_path, !new_path)'
00:21:51 verbose #24265 > >         | _ => fun () => null ()
00:21:51 verbose #24266 > 00:21:50   debug #1273 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3b2ec2b15500da9e139615b4f5e925c9c02c19b2a164b490501a508bcb07ecff/main.spi
00:21:51 verbose #24267 > >
00:21:51 verbose #24268 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:51 verbose #24269 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:51 verbose #24270 > > │ ### read_all_text_async                                                      │
00:21:51 verbose #24271 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:51 verbose #24272 > >
00:21:51 verbose #24273 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:51 verbose #24274 > > inl read_all_text_async (path : string) : _ string =
00:21:51 verbose #24275 > >     run_target function
00:21:51 verbose #24276 > >         | Fsharp (Native) => fun () =>
00:21:51 verbose #24277 > >             path |> $'System.IO.File.ReadAllTextAsync' |> async.await_task
00:21:51 verbose #24278 > >         | _ => fun () => null ()
00:21:51 verbose #24279 > 00:21:51   debug #1274 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8c1ce1ca31c1ba6a7fa03eae3b836054431ec1ae2880f2c509d5f71e004e0739/main.spi
00:21:52 verbose #24280 > >
00:21:52 verbose #24281 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:52 verbose #24282 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:52 verbose #24283 > > │ ### write_all_text_async                                                     │
00:21:52 verbose #24284 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:52 verbose #24285 > >
00:21:52 verbose #24286 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:52 verbose #24287 > > inl write_all_text_async (path : string) (text : string) : _ () =
00:21:52 verbose #24288 > >     run_target function
00:21:52 verbose #24289 > >         | Fsharp (Native) => fun () =>
00:21:52 verbose #24290 > >             $'System.IO.File.WriteAllTextAsync (!path, !text)' |>
00:21:52 verbose #24291 > > async.await_task
00:21:52 verbose #24292 > >         | _ => fun () => null ()
00:21:52 verbose #24293 > 00:21:51   debug #1275 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/29563c94dbc8f737d7c19df96cb2fe80b8ebf1298b462d3b57fbbadb536913d0/main.spi
00:21:52 verbose #24294 > >
00:21:52 verbose #24295 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:52 verbose #24296 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:52 verbose #24297 > > │ ### file_system_info                                                         │
00:21:52 verbose #24298 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:52 verbose #24299 > >
00:21:52 verbose #24300 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:52 verbose #24301 > > nominal file_system_info = $'System.IO.FileSystemInfo'
00:21:52 verbose #24302 > 00:21:51   debug #1276 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/373e6be38492c45e4c40e9f4f659b3704389efc1257a4c79872385cd0370b762/main.spi
00:21:52 verbose #24303 > >
00:21:52 verbose #24304 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:52 verbose #24305 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:52 verbose #24306 > > │ ### get_source_directory                                                     │
00:21:52 verbose #24307 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:52 verbose #24308 > >
00:21:52 verbose #24309 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:52 verbose #24310 > > inl get_source_directory () =
00:21:52 verbose #24311 > >     $'__SOURCE_DIRECTORY__' : string
00:21:52 verbose #24312 > 00:21:52   debug #1277 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/87b5120d0417eedd2ad64bb610e88639e9b143e7d2df84ec303d0041eba0217f/main.spi
00:21:53 verbose #24313 > >
00:21:53 verbose #24314 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:53 verbose #24315 > > //// test
00:21:53 verbose #24316 > >
00:21:53 verbose #24317 > > get_source_directory ()
00:21:53 verbose #24318 > > |> directory_info
00:21:53 verbose #24319 > > |> directory_info_name
00:21:53 verbose #24320 > > |> _assert_eq "spiral"
00:21:53 verbose #24321 > 00:21:52   debug #1278 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dc3b0c0d7d1e2abfcbfa4bfdc0e82f40a54346e95d6b183761558ef1661f5adb/main.spi
00:21:54 verbose #24322 > >
00:21:54 verbose #24323 > > ╭─[ 1.09s - stdout ]───────────────────────────────────────────────────────────╮
00:21:54 verbose #24324 > > │ assert_eq / actual: "spiral" / expected: "spiral"                            │
00:21:54 verbose #24325 > > │                                                                              │
00:21:54 verbose #24326 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:54 verbose #24327 > >
00:21:54 verbose #24328 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:54 verbose #24329 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:54 verbose #24330 > > │ ## rust                                                                      │
00:21:54 verbose #24331 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:54 verbose #24332 > >
00:21:54 verbose #24333 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:54 verbose #24334 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:54 verbose #24335 > > │ ### display                                                                  │
00:21:54 verbose #24336 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:54 verbose #24337 > >
00:21:54 verbose #24338 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:54 verbose #24339 > > nominal display = $'std_path_Display'
00:21:54 verbose #24340 > 00:21:53   debug #1279 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d20511a5809399fcec38d4004bfaebd2698bc18aa512de644a2528e96a8c3d04/main.spi
00:21:54 verbose #24341 > >
00:21:54 verbose #24342 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:54 verbose #24343 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:54 verbose #24344 > > │ ### path                                                                     │
00:21:54 verbose #24345 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:54 verbose #24346 > >
00:21:54 verbose #24347 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:54 verbose #24348 > > nominal path = $'std_path_Path'
00:21:54 verbose #24349 > > nominal path = $'std_path_Path'
00:21:54 verbose #24350 > > nominal path_buf = $'std_path_PathBuf'
00:21:54 verbose #24351 > 00:21:54   debug #1280 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/601ce17f6b86a1c62d2308d6371e0f085d49882c12a6eeaeefaa1ebae0f7e291/main.spi
00:21:54 verbose #24352 > >
00:21:54 verbose #24353 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:54 verbose #24354 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:54 verbose #24355 > > │ ### new_path_buf                                                             │
00:21:54 verbose #24356 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:54 verbose #24357 > >
00:21:54 verbose #24358 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:54 verbose #24359 > > inl new_path_buf (path : sm'.std_string) : path_buf =
00:21:54 verbose #24360 > >     open rust_operators
00:21:54 verbose #24361 > >     !\\(path, $'"std::path::PathBuf::from($0)"')
00:21:55 verbose #24362 > 00:21:54   debug #1281 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5419e46692a832ea8e9a4d315325b8d3ed86793429721306d2e7ae69ebccfb0e/main.spi
00:21:55 verbose #24363 > >
00:21:55 verbose #24364 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:55 verbose #24365 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:55 verbose #24366 > > │ ### path_buf_from                                                            │
00:21:55 verbose #24367 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:55 verbose #24368 > >
00:21:55 verbose #24369 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:55 verbose #24370 > > inl path_buf_from (path : rust.box path) : path_buf =
00:21:55 verbose #24371 > >     open rust_operators
00:21:55 verbose #24372 > >     !\\(path, $'"std::path::PathBuf::from($0)"')
00:21:55 verbose #24373 > 00:21:54   debug #1282 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/24e82052bc4b364e80bccd14cdf8357f8c5db238b406ea6727255f51dfed6e87/main.spi
00:21:55 verbose #24374 > >
00:21:55 verbose #24375 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:55 verbose #24376 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:55 verbose #24377 > > │ ### path_buf_join                                                            │
00:21:55 verbose #24378 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:55 verbose #24379 > >
00:21:55 verbose #24380 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:55 verbose #24381 > > inl path_buf_join (s : string) (path_buf : path_buf) : path_buf =
00:21:55 verbose #24382 > >     open rust_operators
00:21:55 verbose #24383 > >     !\\((path_buf, s |> sm'.to_std_string), $'"$0.join($1)"')
00:21:55 verbose #24384 > 00:21:55   debug #1283 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/761a4e7c600640953c062fdeabe76d090e7d9cd7ee0722db3add9ca3a84ed73b/main.spi
00:21:56 verbose #24385 > >
00:21:56 verbose #24386 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:56 verbose #24387 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:56 verbose #24388 > > │ ### path_buf_strip_prefix                                                    │
00:21:56 verbose #24389 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:56 verbose #24390 > >
00:21:56 verbose #24391 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:56 verbose #24392 > > inl path_buf_strip_prefix (s : string) (path_buf : path_buf) : path_buf =
00:21:56 verbose #24393 > >     open rust_operators
00:21:56 verbose #24394 > >     !\\((path_buf, s |> sm'.to_std_string),
00:21:56 verbose #24395 > > $'"$0.strip_prefix($1).unwrap().to_path_buf()"')
00:21:56 verbose #24396 > 00:21:55   debug #1284 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c20b8fee79d3bc30b1b3ec35130efb1badcafe1cbe4ecb098e29fb86a8aeca3c/main.spi
00:21:56 verbose #24397 > >
00:21:56 verbose #24398 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:56 verbose #24399 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:56 verbose #24400 > > │ ### path_display                                                             │
00:21:56 verbose #24401 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:56 verbose #24402 > >
00:21:56 verbose #24403 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:56 verbose #24404 > > inl path_display (path : rust.ref' path) : display =
00:21:56 verbose #24405 > >     open rust_operators
00:21:56 verbose #24406 > >     !\\(path, $'"$0.display()"')
00:21:56 verbose #24407 > 00:21:55   debug #1285 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/62f69a2fb2b08b49b8dfcab877ab7704a8ce747db8d8108f4ad6c60985c9f711/main.spi
00:21:56 verbose #24408 > >
00:21:56 verbose #24409 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:56 verbose #24410 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:56 verbose #24411 > > │ ### path_buf_display                                                         │
00:21:56 verbose #24412 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:56 verbose #24413 > >
00:21:56 verbose #24414 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:56 verbose #24415 > > inl path_buf_display (path_buf : path_buf) : display =
00:21:56 verbose #24416 > >     open rust_operators
00:21:56 verbose #24417 > >     !\\(path_buf, $'"$0.display()"')
00:21:57 verbose #24418 > 00:21:56   debug #1286 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/71aac11023fb23fcfe4c3cc29930a131f9719c07d3a547a738a1aa680b8fdbc7/main.spi
00:21:57 verbose #24419 > >
00:21:57 verbose #24420 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:57 verbose #24421 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:57 verbose #24422 > > │ ### path_buf_file_name                                                       │
00:21:57 verbose #24423 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:57 verbose #24424 > >
00:21:57 verbose #24425 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:57 verbose #24426 > > inl path_buf_file_name (path : path_buf) : optionm'.option' (rust.ref'
00:21:57 verbose #24427 > > sm'.os_str) =
00:21:57 verbose #24428 > >     open rust_operators
00:21:57 verbose #24429 > >     !\($'"!path.file_name()"')
00:21:57 verbose #24430 > 00:21:56   debug #1287 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c8955ed4f45b6eb52554329011c94fb415a6fbb68f09d818e5e24911372c47f5/main.spi
00:21:57 verbose #24431 > >
00:21:57 verbose #24432 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:57 verbose #24433 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:57 verbose #24434 > > │ ### path_buf_exists                                                          │
00:21:57 verbose #24435 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:57 verbose #24436 > >
00:21:57 verbose #24437 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:57 verbose #24438 > > inl path_buf_exists (path_buf : path_buf) : bool =
00:21:57 verbose #24439 > >     open rust_operators
00:21:57 verbose #24440 > >     !\\(path_buf, $'"$0.exists()"')
00:21:57 verbose #24441 > 00:21:57   debug #1288 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9dfe53d712dc7aeef29914d88c34f73afaa3e31e3191d8c63a8936f57c984bf7/main.spi
00:21:57 verbose #24442 > >
00:21:57 verbose #24443 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:57 verbose #24444 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:57 verbose #24445 > > │ ### path_buf_is_dir                                                          │
00:21:57 verbose #24446 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:57 verbose #24447 > >
00:21:57 verbose #24448 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:57 verbose #24449 > > inl path_buf_is_dir (path_buf : path_buf) : bool =
00:21:57 verbose #24450 > >     open rust_operators
00:21:57 verbose #24451 > >     !\\(path_buf, $'"$0.is_dir()"')
00:21:58 verbose #24452 > 00:21:57   debug #1289 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7ceaffe47c0c664af5300caed2ae3907e825ff5e906c66ea42307b7a97a1c784/main.spi
00:21:58 verbose #24453 > >
00:21:58 verbose #24454 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:58 verbose #24455 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:58 verbose #24456 > > │ ### path_buf_is_file                                                         │
00:21:58 verbose #24457 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:58 verbose #24458 > >
00:21:58 verbose #24459 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:58 verbose #24460 > > inl path_buf_is_file (path_buf : path_buf) : bool =
00:21:58 verbose #24461 > >     open rust_operators
00:21:58 verbose #24462 > >     !\\(path_buf, $'"$0.is_file()"')
00:21:58 verbose #24463 > 00:21:57   debug #1290 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5c16ccb4b1f7cea2e7ff833afd7fb4d7af9330261510a7ae043f9944240d03f6/main.spi
00:21:58 verbose #24464 > >
00:21:58 verbose #24465 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:58 verbose #24466 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:58 verbose #24467 > > │ ### path_buf_is_symlink                                                      │
00:21:58 verbose #24468 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:58 verbose #24469 > >
00:21:58 verbose #24470 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:58 verbose #24471 > > inl path_buf_is_symlink (path_buf : path_buf) : bool =
00:21:58 verbose #24472 > >     open rust_operators
00:21:58 verbose #24473 > >     !\\(path_buf, $'"$0.is_symlink()"')
00:21:58 verbose #24474 > 00:21:58   debug #1291 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e5239643cf3755198e2cee0f553f98b8038b4b65f88a095c8b3b2ea8ad5766a4/main.spi
00:21:59 verbose #24475 > >
00:21:59 verbose #24476 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:59 verbose #24477 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:59 verbose #24478 > > │ ### path_buf_parent                                                          │
00:21:59 verbose #24479 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:59 verbose #24480 > >
00:21:59 verbose #24481 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:59 verbose #24482 > > inl path_buf_parent (path_buf : path_buf) : optionm'.option' path_buf =
00:21:59 verbose #24483 > >     open rust_operators
00:21:59 verbose #24484 > >     !\\(path_buf, $'"$0.parent().map(std::path::PathBuf::from)"')
00:21:59 verbose #24485 > 00:21:58   debug #1292 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/eef90751c8889fb0175a7919ddc7c0024a8128d57fa7b76365cc98c154dc5b40/main.spi
00:21:59 verbose #24486 > >
00:21:59 verbose #24487 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:59 verbose #24488 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:59 verbose #24489 > > │ ### dir_entry                                                                │
00:21:59 verbose #24490 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:59 verbose #24491 > >
00:21:59 verbose #24492 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:59 verbose #24493 > > nominal dir_entry = $'async_walkdir_DirEntry'
00:21:59 verbose #24494 > 00:21:58   debug #1293 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a12ce14ecf1c2ac21477d954d297a62928ac117eb4083073e3224ee306a08a55/main.spi
00:21:59 verbose #24495 > >
00:21:59 verbose #24496 > > ── markdown ────────────────────────────────────────────────────────────────────
00:21:59 verbose #24497 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:21:59 verbose #24498 > > │ ### walk_dir                                                                 │
00:21:59 verbose #24499 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:21:59 verbose #24500 > >
00:21:59 verbose #24501 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:21:59 verbose #24502 > > nominal walk_dir = $'async_walkdir_WalkDir'
00:22:00 verbose #24503 > 00:21:59   debug #1294 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/24bcfcce449dc34c35082e305ec2bd5bcfc8bf84169a3865999ebd175b6c8845/main.spi
00:22:00 verbose #24504 > >
00:22:00 verbose #24505 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:00 verbose #24506 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:00 verbose #24507 > > │ ### async_walkdir_filtering                                                  │
00:22:00 verbose #24508 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:00 verbose #24509 > >
00:22:00 verbose #24510 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:00 verbose #24511 > > nominal async_walkdir_filtering = $'async_walkdir_Filtering'
00:22:00 verbose #24512 > 00:21:59   debug #1295 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1d02a3fc26689995bd3834b09e1d6c90676cdb9d174a31daeaa1434fe5b8da9c/main.spi
00:22:00 verbose #24513 > >
00:22:00 verbose #24514 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:00 verbose #24515 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:00 verbose #24516 > > │ ### filtering                                                                │
00:22:00 verbose #24517 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:00 verbose #24518 > >
00:22:00 verbose #24519 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:00 verbose #24520 > > union filtering =
00:22:00 verbose #24521 > >     | Ignore
00:22:00 verbose #24522 > >     | IgnoreDir
00:22:00 verbose #24523 > >     | Continue
00:22:00 verbose #24524 > 00:22:00   debug #1296 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/baa125fa82c30c4c31fab7b063f5e64b598744518dfa4c99f221236d3f3a6a69/main.spi
00:22:00 verbose #24525 > >
00:22:00 verbose #24526 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:00 verbose #24527 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:00 verbose #24528 > > │ ### async_walkdir_error                                                      │
00:22:00 verbose #24529 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:00 verbose #24530 > >
00:22:00 verbose #24531 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:00 verbose #24532 > > nominal async_walkdir_error = $'async_walkdir_Error'
00:22:01 verbose #24533 > 00:22:00   debug #1297 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c49a7f03954bc8b237ad7c744b0c54b58e3f777ed54dc40fb558902559c813eb/main.spi
00:22:01 verbose #24534 > >
00:22:01 verbose #24535 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:01 verbose #24536 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:01 verbose #24537 > > │ ### stream_filter_map                                                        │
00:22:01 verbose #24538 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:01 verbose #24539 > >
00:22:01 verbose #24540 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:01 verbose #24541 > > inl stream_filter_map forall t.
00:22:01 verbose #24542 > >     (fn : resultm.result' dir_entry async_walkdir_error -> optionm'.option' t)
00:22:01 verbose #24543 > >     (stream : walk_dir)
00:22:01 verbose #24544 > >     : am'.vec t =
00:22:01 verbose #24545 > >
00:22:01 verbose #24546 > >     inl fn = join fn
00:22:01 verbose #24547 > >     inl result : am'.vec t =
00:22:01 verbose #24548 > >
00:22:01 verbose #24549 > > !\($'"tokio_stream::StreamExt::collect(tokio_stream::StreamExt::filter_map(!stre
00:22:01 verbose #24550 > > am, |x| !fn(x))).await"')
00:22:01 verbose #24551 > >     result
00:22:01 verbose #24552 > 00:22:00   debug #1298 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7583f92052a2b0c2d25fd3a740aae79b5fe9ea687314a003a17b086d082d0d5f/main.spi
00:22:01 verbose #24553 > >
00:22:01 verbose #24554 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:01 verbose #24555 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:01 verbose #24556 > > │ ### new_walk_dir                                                             │
00:22:01 verbose #24557 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:01 verbose #24558 > >
00:22:01 verbose #24559 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:01 verbose #24560 > > inl new_walk_dir (dir : string) : walk_dir =
00:22:01 verbose #24561 > >     !\\(dir, $'"async_walkdir::WalkDir::new(&*$0)"')
00:22:01 verbose #24562 > >     // inl walk_dir : walk_dir = walk_dir |> rust.to_mut
00:22:01 verbose #24563 > >     // (!\($'"true; let mut !walk_dir = !walk_dir"') : bool) |> ignore
00:22:01 verbose #24564 > 00:22:01   debug #1299 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/be3b413bc812c420ed7f69c8e0453c053c9aafb13eecbf3396fbb13f3016dab8/main.spi
00:22:02 verbose #24565 > >
00:22:02 verbose #24566 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:02 verbose #24567 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:02 verbose #24568 > > │ ### walk_dir_filter                                                          │
00:22:02 verbose #24569 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:02 verbose #24570 > >
00:22:02 verbose #24571 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:02 verbose #24572 > > inl walk_dir_filter (fn : dir_entry -> async.future_pin_send filtering)
00:22:02 verbose #24573 > > (walk_dir : walk_dir) : walk_dir =
00:22:02 verbose #24574 > >     inl fn entry = async.future_init_send (2, 1) 0 fun () =>
00:22:02 verbose #24575 > >         inl result = fn entry |> async.await_send
00:22:02 verbose #24576 > >         inl filtering : async_walkdir_filtering =
00:22:02 verbose #24577 > >             match result with
00:22:02 verbose #24578 > >             | Ignore => !\($'"async_walkdir::Filtering::Ignore"')
00:22:02 verbose #24579 > >             | IgnoreDir => !\($'"async_walkdir::Filtering::IgnoreDir"')
00:22:02 verbose #24580 > >             | Continue => !\($'"async_walkdir::Filtering::Continue"')
00:22:02 verbose #24581 > >         filtering
00:22:02 verbose #24582 > >     !\\((walk_dir, fn), $'"async_walkdir::WalkDir::filter($0, |x| $1(x))"')
00:22:02 verbose #24583 > 00:22:01   debug #1300 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ae4919bb612281f864d73a89baacdbdd70c8c571fd9ad08200eee6a9666b66f8/main.spi
00:22:02 verbose #24584 > >
00:22:02 verbose #24585 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:02 verbose #24586 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:02 verbose #24587 > > │ ### file_type                                                                │
00:22:02 verbose #24588 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:02 verbose #24589 > >
00:22:02 verbose #24590 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:02 verbose #24591 > > nominal file_type = $'std_fs_FileType'
00:22:02 verbose #24592 > 00:22:01   debug #1301 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/12c59d63919d7dd52f8a65ec2de1de944ac33c2037139624cfc79967268e0b01/main.spi
00:22:02 verbose #24593 > >
00:22:02 verbose #24594 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:02 verbose #24595 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:02 verbose #24596 > > │ ### dir_entry_file_type                                                      │
00:22:02 verbose #24597 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:02 verbose #24598 > >
00:22:02 verbose #24599 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:02 verbose #24600 > > inl dir_entry_file_type (dir_entry : dir_entry) : async.future_pin_send
00:22:02 verbose #24601 > > (resultm.result' file_type stream.io_error) =
00:22:02 verbose #24602 > >     inl dir_entry = join dir_entry
00:22:02 verbose #24603 > >     !\($'"Box::pin(async_walkdir::DirEntry::file_type(&!dir_entry))"')
00:22:02 verbose #24604 > 00:22:02   debug #1302 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e3e87f0e60aae6402c969ce76f42845903eb83b9c57ef30db326e75b175352c3/main.spi
00:22:03 verbose #24605 > >
00:22:03 verbose #24606 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:03 verbose #24607 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:03 verbose #24608 > > │ ### file_type_is_dir                                                         │
00:22:03 verbose #24609 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:03 verbose #24610 > >
00:22:03 verbose #24611 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:03 verbose #24612 > > inl file_type_is_dir (file_type : file_type) : bool =
00:22:03 verbose #24613 > >     inl file_type = join file_type
00:22:03 verbose #24614 > >     !\($'"std::fs::FileType::is_dir(&!file_type)"')
00:22:03 verbose #24615 > 00:22:02   debug #1303 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e9631ae8cdcea114e428f3cbbdd2d39cecf28c3330ff824306a3eba4e295191c/main.spi
00:22:03 verbose #24616 > >
00:22:03 verbose #24617 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:03 verbose #24618 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:03 verbose #24619 > > │ ### file                                                                     │
00:22:03 verbose #24620 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:03 verbose #24621 > >
00:22:03 verbose #24622 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:03 verbose #24623 > > nominal file = $'std_fs_File'
00:22:03 verbose #24624 > 00:22:02   debug #1304 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1093aa33272c5594514fe5ff390a524defd433c78dd37e47d67eee6638ea3ec0/main.spi
00:22:03 verbose #24625 > >
00:22:03 verbose #24626 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:03 verbose #24627 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:03 verbose #24628 > > │ ### file_open                                                                │
00:22:03 verbose #24629 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:03 verbose #24630 > >
00:22:03 verbose #24631 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:03 verbose #24632 > > inl file_open (path : string) : resultm.result' file stream.io_error =
00:22:03 verbose #24633 > >     !\($'"std::fs::File::open(&*!path)"')
00:22:04 verbose #24634 > 00:22:03   debug #1305 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/177b793a75a077b8e4d7916280f0c2090b93ff9501daa81cc4a5124806aee0f2/main.spi
00:22:04 verbose #24635 > >
00:22:04 verbose #24636 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:04 verbose #24637 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:04 verbose #24638 > > │ ### rename                                                                   │
00:22:04 verbose #24639 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:04 verbose #24640 > >
00:22:04 verbose #24641 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:04 verbose #24642 > > inl rename (to : string) (path : string) : resultm.result' () stream.io_error =
00:22:04 verbose #24643 > >     !\($'"std::fs::rename(&*!path, &*!to)"')
00:22:04 verbose #24644 > 00:22:03   debug #1306 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/72a8c5c82334f392b23fefbe5f8daef9202c26783c97fc45b9044a6e5e7fa98f/main.spi
00:22:04 verbose #24645 > >
00:22:04 verbose #24646 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:04 verbose #24647 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:04 verbose #24648 > > │ ### dir_entry_path                                                           │
00:22:04 verbose #24649 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:04 verbose #24650 > >
00:22:04 verbose #24651 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:04 verbose #24652 > > inl dir_entry_path (dir_entry : dir_entry) : path_buf =
00:22:04 verbose #24653 > >     !\\(dir_entry, $'"async_walkdir::DirEntry::path(&$0)"')
00:22:04 verbose #24654 > 00:22:04   debug #1307 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fbaaf35b22519ceb950a03c27479aca50ce193b0d9399655924827ecedd3ab1a/main.spi
00:22:05 verbose #24655 > >
00:22:05 verbose #24656 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:05 verbose #24657 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:05 verbose #24658 > > │ ### create_dir_all                                                           │
00:22:05 verbose #24659 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:05 verbose #24660 > >
00:22:05 verbose #24661 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:05 verbose #24662 > > inl create_dir_all (path : string) : resultm.result' () stream.io_error =
00:22:05 verbose #24663 > >     !\\(path, $'"std::fs::create_dir_all(&*$0)"')
00:22:05 verbose #24664 > 00:22:04   debug #1308 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/80c291609d7917ff665fc195b917e92f5a1811d9784503849e73220773aeab7d/main.spi
00:22:05 verbose #24665 > >
00:22:05 verbose #24666 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:05 verbose #24667 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:05 verbose #24668 > > │ ### read_link                                                                │
00:22:05 verbose #24669 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:05 verbose #24670 > >
00:22:05 verbose #24671 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:05 verbose #24672 > > inl read_link (path : string) : resultm.result' path_buf stream.io_error =
00:22:05 verbose #24673 > >     open rust_operators
00:22:05 verbose #24674 > >     !\\(path, $'"std::fs::read_link(&*$0)"')
00:22:05 verbose #24675 > 00:22:04   debug #1309 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/13196c1837eaba99d83e6296c389eba71e317cf67d4267c3b7deb35e2c0847aa/main.spi
00:22:05 verbose #24676 > >
00:22:05 verbose #24677 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:05 verbose #24678 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:05 verbose #24679 > > │ ## typescript                                                                │
00:22:05 verbose #24680 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:05 verbose #24681 > >
00:22:05 verbose #24682 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:05 verbose #24683 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:05 verbose #24684 > > │ ### ts_path_join                                                             │
00:22:05 verbose #24685 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:05 verbose #24686 > >
00:22:05 verbose #24687 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:05 verbose #24688 > > inl ts_path_join (b : string) (a : string) : string =
00:22:05 verbose #24689 > >     open typescript_operators
00:22:05 verbose #24690 > >     global "type IPathJoin = abstract join: [[<System.ParamArray>]] paths:
00:22:05 verbose #24691 > > string[[]] -> string"
00:22:05 verbose #24692 > >     inl path : $'IPathJoin' = typescript.import_all "path"
00:22:05 verbose #24693 > >     !\\((join a, join b), $'"!path.join($0, $1)"')
00:22:05 verbose #24694 > 00:22:05   debug #1310 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e94f2d6cc83a221d2b397926178f902067bc916dace8adcc098f85ba3e98df2c/main.spi
00:22:06 verbose #24695 > >
00:22:06 verbose #24696 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:06 verbose #24697 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:06 verbose #24698 > > │ ## file_system                                                               │
00:22:06 verbose #24699 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:06 verbose #24700 > >
00:22:06 verbose #24701 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:06 verbose #24702 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:06 verbose #24703 > > │ ### (< />)                                                                   │
00:22:06 verbose #24704 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:06 verbose #24705 > >
00:22:06 verbose #24706 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:06 verbose #24707 > > let (</>) (a : string) (b : string) : string =
00:22:06 verbose #24708 > >     run_target function
00:22:06 verbose #24709 > >         | Rust (Contract) => fun () => null ()
00:22:06 verbose #24710 > >         | Rust (Native) => fun () =>
00:22:06 verbose #24711 > >             a
00:22:06 verbose #24712 > >             |> sm'.to_std_string
00:22:06 verbose #24713 > >             |> new_path_buf
00:22:06 verbose #24714 > >             |> path_buf_join b
00:22:06 verbose #24715 > >             |> path_buf_display
00:22:06 verbose #24716 > >             |> sm'.format'
00:22:06 verbose #24717 > >             |> sm'.from_std_string
00:22:06 verbose #24718 > >         | TypeScript (Native) => fun () =>
00:22:06 verbose #24719 > >             a |> ts_path_join b
00:22:06 verbose #24720 > >         | Fsharp (Native) => fun () =>
00:22:06 verbose #24721 > >             $'System.IO.Path.Combine (!a, !b)'
00:22:06 verbose #24722 > >         | target => fun () => failwith $'$"file_system.(</>) / target: {!target}
00:22:06 verbose #24723 > > / a: {!a} / b: {!b}"'
00:22:06 verbose #24724 > 00:22:05   debug #1311 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d1515ef5058a3046bf7afb9ef9e0f5cac7feb469b776a63aacf65ef7db5570fb/main.spi
00:22:06 verbose #24725 > >
00:22:06 verbose #24726 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:06 verbose #24727 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:06 verbose #24728 > > │ ### get_temp_path                                                            │
00:22:06 verbose #24729 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:06 verbose #24730 > >
00:22:06 verbose #24731 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:06 verbose #24732 > > let get_temp_path () : string =
00:22:06 verbose #24733 > >     run_target function
00:22:06 verbose #24734 > >         | Rust (Contract) => fun () => null ()
00:22:06 verbose #24735 > >         | Rust (Native) => fun () =>
00:22:06 verbose #24736 > >             open rust_operators
00:22:06 verbose #24737 > >             !\($'"std::env::temp_dir()"')
00:22:06 verbose #24738 > >             |> path_buf_display
00:22:06 verbose #24739 > >             |> sm'.format'
00:22:06 verbose #24740 > >             |> sm'.from_std_string
00:22:06 verbose #24741 > >         | Fsharp (Native) => fun () =>
00:22:06 verbose #24742 > >             $'System.IO.Path.GetTempPath' ()
00:22:06 verbose #24743 > >         | target => fun () => failwith $'$"file_system.get_temp_path / target:
00:22:06 verbose #24744 > > {!target}"'
00:22:06 verbose #24745 > 00:22:06   debug #1312 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/82318f87c8c85e80808c4da55bf11da71cd9943ffb1f364ba212c0dc1859a2de/main.spi
00:22:06 verbose #24746 > >
00:22:06 verbose #24747 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:06 verbose #24748 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:06 verbose #24749 > > │ ### get_file_name                                                            │
00:22:06 verbose #24750 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:06 verbose #24751 > >
00:22:06 verbose #24752 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:06 verbose #24753 > > let get_file_name (path : string) : string =
00:22:06 verbose #24754 > >     run_target function
00:22:06 verbose #24755 > >         | Rust (Contract) => fun () => null ()
00:22:06 verbose #24756 > >         | Rust (Native) => fun () =>
00:22:06 verbose #24757 > >             open rust_operators
00:22:06 verbose #24758 > >             inl path_buf = path |> sm'.to_std_string |> new_path_buf
00:22:06 verbose #24759 > >             !\\(path_buf, $'"$0.file_name()"')
00:22:06 verbose #24760 > >             |> optionm'.unwrap
00:22:06 verbose #24761 > >             |> sm'.from_os_str_ref
00:22:06 verbose #24762 > >         | Fsharp (Native) => fun () =>
00:22:06 verbose #24763 > >             path |> $'System.IO.Path.GetFileName'
00:22:06 verbose #24764 > >         | target => fun () => failwith $'$"file_system.get_file_name / target:
00:22:06 verbose #24765 > > {!target} / path: {!path}"'
00:22:07 verbose #24766 > 00:22:06   debug #1313 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8f907f39456df5841783e3787ff3c3ba337f1f19f2e445a1c9a296d124d46eab/main.spi
00:22:07 verbose #24767 > >
00:22:07 verbose #24768 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:07 verbose #24769 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:07 verbose #24770 > > │ ### get_file_name_without_extension                                          │
00:22:07 verbose #24771 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:07 verbose #24772 > >
00:22:07 verbose #24773 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:07 verbose #24774 > > let get_file_name_without_extension (path : string) : string =
00:22:07 verbose #24775 > >     run_target function
00:22:07 verbose #24776 > >         | Rust (Contract) => fun () => null ()
00:22:07 verbose #24777 > >         | Rust (Native) => fun () =>
00:22:07 verbose #24778 > >             open rust_operators
00:22:07 verbose #24779 > >             inl path_buf = path |> sm'.to_std_string |> new_path_buf
00:22:07 verbose #24780 > >             !\\(path_buf, $'"$0.file_stem()"')
00:22:07 verbose #24781 > >             |> optionm'.unwrap
00:22:07 verbose #24782 > >             |> sm'.from_os_str_ref
00:22:07 verbose #24783 > >         | _ => fun () =>
00:22:07 verbose #24784 > >             path |> $'System.IO.Path.GetFileNameWithoutExtension'
00:22:07 verbose #24785 > 00:22:06   debug #1314 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5132fffc23205af9c7867f0dd11177033acfd95c53210844f83f0d68d7a4c3f1/main.spi
00:22:07 verbose #24786 > >
00:22:07 verbose #24787 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:07 verbose #24788 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:07 verbose #24789 > > │ ### get_directory_name                                                       │
00:22:07 verbose #24790 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:07 verbose #24791 > >
00:22:07 verbose #24792 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:07 verbose #24793 > > let get_directory_name (path : string) : string =
00:22:07 verbose #24794 > >     run_target function
00:22:07 verbose #24795 > >         | Rust (Contract) => fun () => null ()
00:22:07 verbose #24796 > >         | Rust (Native) => fun () =>
00:22:07 verbose #24797 > >             open rust_operators
00:22:07 verbose #24798 > >             inl path_buf = path |> sm'.to_std_string |> new_path_buf
00:22:07 verbose #24799 > >             !\\(path_buf, $'"$0.parent()"')
00:22:07 verbose #24800 > >             |> optionm'.unwrap
00:22:07 verbose #24801 > >             |> path_display
00:22:07 verbose #24802 > >             |> sm'.format'
00:22:07 verbose #24803 > >             |> sm'.from_std_string
00:22:07 verbose #24804 > >         | _ => fun () =>
00:22:07 verbose #24805 > >             path |> $'System.IO.Path.GetDirectoryName'
00:22:07 verbose #24806 > 00:22:07   debug #1315 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e47e3bea7151bf57e3c6b8bec0100cc38442449c3afb364ab8bc150454b12b16/main.spi
00:22:08 verbose #24807 > >
00:22:08 verbose #24808 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:08 verbose #24809 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:08 verbose #24810 > > │ ### get_extension                                                            │
00:22:08 verbose #24811 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:08 verbose #24812 > >
00:22:08 verbose #24813 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:08 verbose #24814 > > let get_extension (path : string) : string =
00:22:08 verbose #24815 > >     run_target function
00:22:08 verbose #24816 > >         | Rust (Contract) => fun () => null ()
00:22:08 verbose #24817 > >         | Rust (Native) => fun () =>
00:22:08 verbose #24818 > >             open rust_operators
00:22:08 verbose #24819 > >             inl path_buf = path |> sm'.to_std_string |> new_path_buf
00:22:08 verbose #24820 > >             !\\(path_buf, $'"$0.extension()"')
00:22:08 verbose #24821 > >             |> optionm'.unwrap
00:22:08 verbose #24822 > >             |> sm'.from_os_str_ref
00:22:08 verbose #24823 > >         | _ => fun () =>
00:22:08 verbose #24824 > >             path |> $'System.IO.Path.GetExtension'
00:22:08 verbose #24825 > 00:22:07   debug #1316 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bb91278064ae73e3d77c49d1c36b5a8482411ed2cf2b38f251fe2c3323a0c665/main.spi
00:22:08 verbose #24826 > >
00:22:08 verbose #24827 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:08 verbose #24828 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:08 verbose #24829 > > │ ### directory_separator_char                                                 │
00:22:08 verbose #24830 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:08 verbose #24831 > >
00:22:08 verbose #24832 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:08 verbose #24833 > > let directory_separator_char () : char =
00:22:08 verbose #24834 > >     run_target function
00:22:08 verbose #24835 > >         | Rust (Native) => fun () =>
00:22:08 verbose #24836 > >             open rust_operators
00:22:08 verbose #24837 > >             !\($'"std::path::MAIN_SEPARATOR"')
00:22:08 verbose #24838 > >         | _ => fun () =>
00:22:08 verbose #24839 > >             $'System.IO.Path.DirectorySeparatorChar'
00:22:08 verbose #24840 > 00:22:07   debug #1317 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1ff98022004c2b6dd341b34e239d787b4e99feaaa083ee99c7ff426bae11c890/main.spi
00:22:08 verbose #24841 > >
00:22:08 verbose #24842 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:08 verbose #24843 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:08 verbose #24844 > > │ ### get_current_directory                                                    │
00:22:08 verbose #24845 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:08 verbose #24846 > >
00:22:08 verbose #24847 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:08 verbose #24848 > > let get_current_directory () : string =
00:22:08 verbose #24849 > >     run_target function
00:22:08 verbose #24850 > >         | Rust (Contract | Wasm) => fun () => null ()
00:22:08 verbose #24851 > >         | Rust (Native) => fun () =>
00:22:08 verbose #24852 > >             open rust_operators
00:22:08 verbose #24853 > >             inl current_dir = !\($'"std::env::current_dir()"') : resultm.result'
00:22:08 verbose #24854 > > path_buf stream.io_error
00:22:08 verbose #24855 > >             current_dir
00:22:08 verbose #24856 > >             |> resultm.unwrap'
00:22:08 verbose #24857 > >             |> path_buf_display
00:22:08 verbose #24858 > >             |> sm'.format'
00:22:08 verbose #24859 > >             |> sm'.from_std_string
00:22:08 verbose #24860 > >         | Fsharp (Native) => fun () =>
00:22:08 verbose #24861 > >             $'System.IO.Directory.GetCurrentDirectory' ()
00:22:08 verbose #24862 > >         | _ => fun () => null ()
00:22:09 verbose #24863 > 00:22:08   debug #1318 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/daafe1a9201a797ac705cf8cbf430517ff0ce9f4862595207cf1300bb03ded69/main.spi
00:22:09 verbose #24864 > >
00:22:09 verbose #24865 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:09 verbose #24866 > > //// test
00:22:09 verbose #24867 > >
00:22:09 verbose #24868 > > get_current_directory ()
00:22:09 verbose #24869 > > |> _assert_contains (directory_separator_char ())
00:22:09 verbose #24870 > 00:22:08   debug #1319 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7f2587cb937b776ea670070c5fcccaa5f04e1c986ad644cefb7bebdc3a438a6f/main.spi
00:22:09 verbose #24871 > >
00:22:09 verbose #24872 > > ╭─[ 819.71ms - stdout ]────────────────────────────────────────────────────────╮
00:22:09 verbose #24873 > > │ assert_contains / actual: "C:\home\git\polyglot\lib\spiral" / expected: '\\' │
00:22:09 verbose #24874 > > │                                                                              │
00:22:09 verbose #24875 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:09 verbose #24876 > >
00:22:09 verbose #24877 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:09 verbose #24878 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:09 verbose #24879 > > │ ### normalize_path                                                           │
00:22:09 verbose #24880 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:09 verbose #24881 > >
00:22:09 verbose #24882 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:09 verbose #24883 > > let normalize_path (path : string) : string =
00:22:09 verbose #24884 > >     if path = ""
00:22:09 verbose #24885 > >     then ""
00:22:09 verbose #24886 > >     else
00:22:09 verbose #24887 > >         inl path = path |> sm'.replace_regex @"^\\\\\?\\" ""
00:22:09 verbose #24888 > >         $'$"{!path.[[0]] |> string |> _.ToLower()}{!path.[[1..]]}"' |>
00:22:09 verbose #24889 > > sm'.replace "\\" "/"
00:22:10 verbose #24890 > 00:22:09   debug #1320 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d75a3abb96dc1e4bb6d617c7c349c27b950bbc80af767f8438cbd1c09ecf5d13/main.spi
00:22:10 verbose #24891 > >
00:22:10 verbose #24892 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:10 verbose #24893 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:10 verbose #24894 > > │ ### get_full_path                                                            │
00:22:10 verbose #24895 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:10 verbose #24896 > >
00:22:10 verbose #24897 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:10 verbose #24898 > > let get_full_path (path : string) : string =
00:22:10 verbose #24899 > >     run_target function
00:22:10 verbose #24900 > >         | Fsharp (Native) => fun () =>
00:22:10 verbose #24901 > >             inl path = join path
00:22:10 verbose #24902 > >             path |> $'System.IO.Path.GetFullPath'
00:22:10 verbose #24903 > >         | Rust (Native) => fun () =>
00:22:10 verbose #24904 > >             inl path = join path
00:22:10 verbose #24905 > >             open rust_operators
00:22:10 verbose #24906 > >             inl path_buf = path |> sm'.to_std_string |> new_path_buf
00:22:10 verbose #24907 > >             if path_buf |> path_buf_exists |> not then
00:22:10 verbose #24908 > >                 inl current_dir = get_current_directory ()
00:22:10 verbose #24909 > >                 current_dir </> path
00:22:10 verbose #24910 > >                 |> normalize_path
00:22:10 verbose #24911 > >                 |> sm'.split "/"
00:22:10 verbose #24912 > >                 |> fun x =>
00:22:10 verbose #24913 > >                     ((a x : _ i32 _), (0i32, (a ;[[]] : _ i32 _)))
00:22:10 verbose #24914 > >                     ||> am.foldBack fun x level, acc =>
00:22:10 verbose #24915 > >                         match x, level with
00:22:10 verbose #24916 > >                         | "..", _ => level + 1, acc
00:22:10 verbose #24917 > >                         | ".", _ => level, acc
00:22:10 verbose #24918 > >                         | _, 0 when x |> sm'.ends_with ":" => 0, a ;[[
00:22:10 verbose #24919 > > $'$"{!current_dir.[[0]]}:"' ]] ++ acc
00:22:10 verbose #24920 > >                         | _, 0 => 0, a ;[[ x ]] ++ acc
00:22:10 verbose #24921 > >                         | _ => level - 1, acc
00:22:10 verbose #24922 > >                 |> snd
00:22:10 verbose #24923 > >                 |> seq.of_array'
00:22:10 verbose #24924 > >                 |> sm'.concat (directory_separator_char () |> sm'.obj_to_string)
00:22:10 verbose #24925 > >             else
00:22:10 verbose #24926 > >                 inl path = !\\(path, $'"std::fs::canonicalize(&*$0)"') :
00:22:10 verbose #24927 > > resultm.result' path_buf stream.io_error
00:22:10 verbose #24928 > >                 path
00:22:10 verbose #24929 > >                 |> resultm.unwrap'
00:22:10 verbose #24930 > >                 |> path_buf_display
00:22:10 verbose #24931 > >                 |> sm'.format'
00:22:10 verbose #24932 > >                 |> sm'.from_std_string
00:22:10 verbose #24933 > >         | _ => fun () => null ()
00:22:10 verbose #24934 > 00:22:09   debug #1321 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d1847ac6839b9c1cddd8bbc09077799f78c81a2916e29095edab6ed9b20cd807/main.spi
00:22:10 verbose #24935 > >
00:22:10 verbose #24936 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:10 verbose #24937 > > //// test
00:22:10 verbose #24938 > >
00:22:10 verbose #24939 > > "."
00:22:10 verbose #24940 > > |> get_full_path
00:22:10 verbose #24941 > > |> directory_info
00:22:10 verbose #24942 > > |> directory_info_name
00:22:10 verbose #24943 > > |> _assert_eq "spiral"
00:22:11 verbose #24944 > 00:22:10   debug #1322 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8622907a1c52a6a6ee7beeba0e4a342f98c3bd4883d82d3c921ede89612d353f/main.spi
00:22:11 verbose #24945 > >
00:22:11 verbose #24946 > > ╭─[ 692.34ms - stdout ]────────────────────────────────────────────────────────╮
00:22:11 verbose #24947 > > │ assert_eq / actual: "spiral" / expected: "spiral"                            │
00:22:11 verbose #24948 > > │                                                                              │
00:22:11 verbose #24949 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:11 verbose #24950 > >
00:22:11 verbose #24951 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:11 verbose #24952 > > //// test
00:22:11 verbose #24953 > >
00:22:11 verbose #24954 > > "dir/.././._file"
00:22:11 verbose #24955 > > |> get_full_path
00:22:11 verbose #24956 > > |> _assert_eq (get_current_directory () </> "._file")
00:22:11 verbose #24957 > 00:22:10   debug #1323 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ddc952fed63ad68e9d1c6dba86b9ca0bc69bbb7b1ce8fa46fe0952b1da84d355/main.spi
00:22:12 verbose #24958 > >
00:22:12 verbose #24959 > > ╭─[ 564.45ms - stdout ]────────────────────────────────────────────────────────╮
00:22:12 verbose #24960 > > │ assert_eq / actual: "C:\home\git\polyglot\lib\spiral\._file" / expected:     │
00:22:12 verbose #24961 > > │ "C:\home\git\polyglot\lib\spiral\._file"                                     │
00:22:12 verbose #24962 > > │                                                                              │
00:22:12 verbose #24963 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:12 verbose #24964 > >
00:22:12 verbose #24965 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:12 verbose #24966 > > //// test
00:22:12 verbose #24967 > > ///! rust -d regex
00:22:12 verbose #24968 > >
00:22:12 verbose #24969 > > types ()
00:22:12 verbose #24970 > > "."
00:22:12 verbose #24971 > > |> get_full_path
00:22:12 verbose #24972 > > |> sm'.to_std_string
00:22:12 verbose #24973 > > |> new_path_buf
00:22:12 verbose #24974 > > |> path_buf_file_name
00:22:12 verbose #24975 > > |> optionm'.unwrap
00:22:12 verbose #24976 > > |> sm'.from_os_str_ref
00:22:12 verbose #24977 > > |> _assert_eq "spiral"
00:22:12 verbose #24978 > 00:22:11   debug #1324 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1ed5c35b386edb35742f9d5b478b89f576ee3db91816872ff36fac7769c4124c/main.spi
00:22:16 verbose #24979 > >
00:22:16 verbose #24980 > > ╭─[ 4.36s - return value ]─────────────────────────────────────────────────────╮
00:22:16 verbose #24981 > > │ assert_eq / actual: "spiral" / expected: "spiral"                            │
00:22:16 verbose #24982 > > │                                                                              │
00:22:16 verbose #24983 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:16 verbose #24984 > >
00:22:16 verbose #24985 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:16 verbose #24986 > > //// test
00:22:16 verbose #24987 > > ///! rust -d regex
00:22:16 verbose #24988 > >
00:22:16 verbose #24989 > > types ()
00:22:16 verbose #24990 > > "dir/.././._file"
00:22:16 verbose #24991 > > |> get_full_path
00:22:16 verbose #24992 > > |> _assert_eq (get_current_directory () </> "._file")
00:22:16 verbose #24993 > 00:22:15   debug #1325 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/095432adb7fb2f82542d8a7d434e4ac0a4036c285f3493018e64160fa0d8606a/main.spi
00:22:20 verbose #24994 > >
00:22:20 verbose #24995 > > ╭─[ 3.67s - return value ]─────────────────────────────────────────────────────╮
00:22:20 verbose #24996 > > │ assert_eq / actual: "C:\home\git\polyglot\lib\spiral\._file" / expected:     │
00:22:20 verbose #24997 > > │ "C:\home\git\polyglot\lib\spiral\._file"                                     │
00:22:20 verbose #24998 > > │                                                                              │
00:22:20 verbose #24999 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:20 verbose #25000 > >
00:22:20 verbose #25001 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:20 verbose #25002 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:20 verbose #25003 > > │ ### create_temp_path'                                                        │
00:22:20 verbose #25004 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:20 verbose #25005 > >
00:22:20 verbose #25006 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:20 verbose #25007 > > let create_temp_path' (guid : guid.guid) =
00:22:20 verbose #25008 > >     run_target function
00:22:20 verbose #25009 > >         | Rust (Contract) => fun () => null ()
00:22:20 verbose #25010 > >         | _ => fun () =>
00:22:20 verbose #25011 > >             get_temp_path ()
00:22:20 verbose #25012 > >             </> (join "!create_temp_path_")
00:22:20 verbose #25013 > >             </> (env.get_entry_assembly_name ())
00:22:20 verbose #25014 > >             </> (guid |> sm'.obj_to_string)
00:22:20 verbose #25015 > 00:22:19   debug #1326 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/83b342efd4c48de1daeeac1e84bc97ed79d3f6efeee30ef8eec0fbdc2bf26755/main.spi
00:22:20 verbose #25016 > >
00:22:20 verbose #25017 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:20 verbose #25018 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:20 verbose #25019 > > │ ### create_temp_path                                                         │
00:22:20 verbose #25020 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:20 verbose #25021 > >
00:22:20 verbose #25022 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:20 verbose #25023 > > let create_temp_path () =
00:22:20 verbose #25024 > >     run_target function
00:22:20 verbose #25025 > >         | Rust (Contract) => fun () => null ()
00:22:20 verbose #25026 > >         | _ => fun () =>
00:22:20 verbose #25027 > >             date_time.now ()
00:22:20 verbose #25028 > >             |> date_time.new_guid_from_date_time
00:22:20 verbose #25029 > >             |> create_temp_path'
00:22:20 verbose #25030 > 00:22:19   debug #1327 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c8821846c16620a53995607ab5d0a777c63d8dad036c6bc898e15a5883f12898/main.spi
00:22:20 verbose #25031 > >
00:22:20 verbose #25032 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:20 verbose #25033 > > //// test
00:22:20 verbose #25034 > > ///! fsharp
00:22:20 verbose #25035 > > ///! rust -d chrono
00:22:20 verbose #25036 > >
00:22:20 verbose #25037 > > types ()
00:22:20 verbose #25038 > > create_temp_path ()
00:22:20 verbose #25039 > > |> _assert_contains (directory_separator_char ())
00:22:20 verbose #25040 > 00:22:20   debug #1328 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f838cb914c65425dba00d8aa41b58d30f5fa79c9237d33424d74d2a2565c8f3d/main.spi
00:22:24 verbose #25041 > >
00:22:24 verbose #25042 > > ╭─[ 3.64s - return value ]─────────────────────────────────────────────────────╮
00:22:24 verbose #25043 > > │ .rs output:                                                                  │
00:22:24 verbose #25044 > > │ assert_contains / actual:                                                    │
00:22:24 verbose #25045 > > │ "C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\spiral_builder_c24dbac │
00:22:24 verbose #25046 > > │ f776a0b9ea1995e9a8c45df7291ac3d6753a3acd95babfad266126a23\20240709-0010-0097 │
00:22:24 verbose #25047 > > │ -6091-000000336e72" / expected: '\\'                                         │
00:22:24 verbose #25048 > > │                                                                              │
00:22:24 verbose #25049 > > │                                                                              │
00:22:24 verbose #25050 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:24 verbose #25051 > >
00:22:24 verbose #25052 > > ╭─[ 3.64s - stdout ]───────────────────────────────────────────────────────────╮
00:22:24 verbose #25053 > > │ .fsx output:                                                                 │
00:22:24 verbose #25054 > > │ assert_contains / actual:                                                    │
00:22:24 verbose #25055 > > │ "C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\dotnet-repl\20240709-0 │
00:22:24 verbose #25056 > > │ 010-0133-3353-3003008f9fd9" / expected: '\\'                                 │
00:22:24 verbose #25057 > > │                                                                              │
00:22:24 verbose #25058 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:24 verbose #25059 > >
00:22:24 verbose #25060 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:24 verbose #25061 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:24 verbose #25062 > > │ ### directory_exists                                                         │
00:22:24 verbose #25063 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:24 verbose #25064 > >
00:22:24 verbose #25065 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:24 verbose #25066 > > let directory_exists (path : string) : bool =
00:22:24 verbose #25067 > >     run_target function
00:22:24 verbose #25068 > >         | Fsharp (Native) => fun () =>
00:22:24 verbose #25069 > >             path |> $'System.IO.Directory.Exists'
00:22:24 verbose #25070 > >         | Rust (Native) => fun () =>
00:22:24 verbose #25071 > >             inl path = path |> sm'.to_std_string |> new_path_buf
00:22:24 verbose #25072 > >             path_buf_exists path || path_buf_is_dir path || path_buf_is_symlink
00:22:24 verbose #25073 > > path
00:22:24 verbose #25074 > >         | TypeScript (Native) => fun () =>
00:22:24 verbose #25075 > >             global "type IFsExistsSync = abstract existsSync: path: string ->
00:22:24 verbose #25076 > > bool"
00:22:24 verbose #25077 > >             open typescript_operators
00:22:24 verbose #25078 > >             inl fs : $'IFsExistsSync' = typescript.import_all "fs"
00:22:24 verbose #25079 > >             !\\((fs, path), $'"$0.existsSync($1)"')
00:22:24 verbose #25080 > >         | _ => fun () => null ()
00:22:24 verbose #25081 > 00:22:23   debug #1329 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ce3590a4045a52ddfdcdfb04d7c109118cec2ddd4b9d11279bc48ca47fc16cbf/main.spi
00:22:24 verbose #25082 > >
00:22:24 verbose #25083 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:24 verbose #25084 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:24 verbose #25085 > > │ ### directory_get_parent                                                     │
00:22:24 verbose #25086 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:24 verbose #25087 > >
00:22:24 verbose #25088 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:24 verbose #25089 > > let directory_get_parent (path : string) : optionm'.option' string =
00:22:24 verbose #25090 > >     run_target function
00:22:24 verbose #25091 > >         | Fsharp (Native) => fun () =>
00:22:24 verbose #25092 > >             inl parent : directory_info = path |>
00:22:24 verbose #25093 > > $'System.IO.Directory.GetParent'
00:22:24 verbose #25094 > >             if parent =. null ()
00:22:24 verbose #25095 > >             then None
00:22:24 verbose #25096 > >             else parent |> directory_info_full_name |> Some
00:22:24 verbose #25097 > >         | Rust (Native) => fun () =>
00:22:24 verbose #25098 > >             path
00:22:24 verbose #25099 > >             |> sm'.to_std_string
00:22:24 verbose #25100 > >             |> new_path_buf
00:22:24 verbose #25101 > >             |> path_buf_parent
00:22:24 verbose #25102 > >             |> optionm'.try'
00:22:24 verbose #25103 > >             |> path_buf_display
00:22:24 verbose #25104 > >             |> sm'.format'
00:22:24 verbose #25105 > >             |> sm'.from_std_string
00:22:24 verbose #25106 > >             |> Some
00:22:24 verbose #25107 > >         | TypeScript _ => fun () =>
00:22:24 verbose #25108 > >             open typescript_operators
00:22:24 verbose #25109 > >             global "type IPathDirname = abstract dirname: path: string ->
00:22:24 verbose #25110 > > string"
00:22:24 verbose #25111 > >             inl fs : $'IPathDirname' = typescript.import_all "path"
00:22:24 verbose #25112 > >             !\\(path, $'"!fs.dirname($0)"') |> Some
00:22:24 verbose #25113 > >         | _ => fun () => null ()
00:22:24 verbose #25114 > >     |> optionm'.box
00:22:25 verbose #25115 > 00:22:24   debug #1330 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cffa85e5e5bfbac188493648abcf5614ebae914890154af585e9adfbc53ee614/main.spi
00:22:25 verbose #25116 > >
00:22:25 verbose #25117 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:25 verbose #25118 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:25 verbose #25119 > > │ ### file_copy                                                                │
00:22:25 verbose #25120 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:25 verbose #25121 > >
00:22:25 verbose #25122 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:25 verbose #25123 > > let file_copy (new_path : string) (old_path : string) : () =
00:22:25 verbose #25124 > >     run_target function
00:22:25 verbose #25125 > >         | Fsharp (Native) => fun () =>
00:22:25 verbose #25126 > >             $'System.IO.File.Copy (!old_path, !new_path, true)'
00:22:25 verbose #25127 > >         | Rust (Native) => fun () =>
00:22:25 verbose #25128 > >             open rust_operators
00:22:25 verbose #25129 > >             inl new_path = join new_path
00:22:25 verbose #25130 > >             !\\(old_path, $'"std::fs::copy(&*$0, &*!new_path)"')
00:22:25 verbose #25131 > >             |> fun x => x : _ u64 stream.io_error
00:22:25 verbose #25132 > >             |> resultm.unwrap'
00:22:25 verbose #25133 > >             |> ignore
00:22:25 verbose #25134 > >         | _ => fun () => null ()
00:22:25 verbose #25135 > 00:22:24   debug #1331 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0d1fafff3bcacddfad6c5afb89c07354285d90ae27f0bbd763f59b064df8aec4/main.spi
00:22:25 verbose #25136 > >
00:22:25 verbose #25137 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:25 verbose #25138 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:25 verbose #25139 > > │ ### file_exists                                                              │
00:22:25 verbose #25140 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:25 verbose #25141 > >
00:22:25 verbose #25142 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:25 verbose #25143 > > let file_exists (path : string) : bool =
00:22:25 verbose #25144 > >     run_target function
00:22:25 verbose #25145 > >         | Fsharp (Native) => fun () =>
00:22:25 verbose #25146 > >             path |> $'System.IO.File.Exists'
00:22:25 verbose #25147 > >         | Rust (Native) => fun () =>
00:22:25 verbose #25148 > >             inl path_buf = path |> sm'.to_std_string |> new_path_buf
00:22:25 verbose #25149 > >             path_buf_exists path_buf && path_buf_is_file path_buf
00:22:25 verbose #25150 > >         | TypeScript (Native) => fun () =>
00:22:25 verbose #25151 > >             open typescript_operators
00:22:25 verbose #25152 > >             global "type IFsExistsSync = abstract existsSync: path: string ->
00:22:25 verbose #25153 > > bool"
00:22:25 verbose #25154 > >             inl fs : $'IFsExistsSync' = typescript.import_all "fs"
00:22:25 verbose #25155 > >             !\\((fs, path), $'"$0.existsSync($1)"')
00:22:25 verbose #25156 > >         | _ => fun () => null ()
00:22:25 verbose #25157 > 00:22:25   debug #1332 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/540574122bd4a8cd10139e40b6ba2a5ce7c0b73bb214532c81827232da058fa8/main.spi
00:22:25 verbose #25158 > >
00:22:25 verbose #25159 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:25 verbose #25160 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:25 verbose #25161 > > │ ### directory_delete                                                         │
00:22:25 verbose #25162 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:25 verbose #25163 > >
00:22:25 verbose #25164 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:25 verbose #25165 > > let directory_delete recursive (path : string) : () =
00:22:25 verbose #25166 > >     run_target function
00:22:25 verbose #25167 > >         | Fsharp (Native) => fun () =>
00:22:25 verbose #25168 > >             $'System.IO.Directory.Delete (!path, !recursive)'
00:22:25 verbose #25169 > >         | Rust (Native) => fun () =>
00:22:25 verbose #25170 > >             inl path = join path
00:22:25 verbose #25171 > >             if path |> directory_exists then
00:22:25 verbose #25172 > >                 open rust_operators
00:22:25 verbose #25173 > >                 if recursive
00:22:25 verbose #25174 > >                 then !\\(path, $'"std::fs::remove_dir_all(&*$0).unwrap()"')
00:22:25 verbose #25175 > >                 else !\\(path, $'"std::fs::remove_dir(&*$0).unwrap()"')
00:22:25 verbose #25176 > >         | _ => fun () => null ()
00:22:26 verbose #25177 > 00:22:25   debug #1333 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5bf7ff2751c711ee0b3ff49cc7899df37ccc08e61ecf620b45a4993977df34c1/main.spi
00:22:26 verbose #25178 > >
00:22:26 verbose #25179 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:26 verbose #25180 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:26 verbose #25181 > > │ ### write_all_text                                                           │
00:22:26 verbose #25182 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:26 verbose #25183 > >
00:22:26 verbose #25184 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:26 verbose #25185 > > inl write_all_text (path : string) (text : string) : () =
00:22:26 verbose #25186 > >     run_target function
00:22:26 verbose #25187 > >         | Fsharp (Native) => fun () =>
00:22:26 verbose #25188 > >             inl text = join text
00:22:26 verbose #25189 > >             $'System.IO.File.WriteAllText (!path, !text)'
00:22:26 verbose #25190 > >         | Rust (Native) => fun () =>
00:22:26 verbose #25191 > >             open rust_operators
00:22:26 verbose #25192 > >             !\\((path, text), $'"std::fs::write(&*$0, &*$1).unwrap()"')
00:22:26 verbose #25193 > >         | _ => fun () => null ()
00:22:26 verbose #25194 > 00:22:25   debug #1334 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7d1ae9f685602bd898c5d9795507d6f2694fe37e5a29ccdceed14f0259be7f9c/main.spi
00:22:26 verbose #25195 > >
00:22:26 verbose #25196 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:26 verbose #25197 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:26 verbose #25198 > > │ ### read_all_bytes                                                           │
00:22:26 verbose #25199 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:26 verbose #25200 > >
00:22:26 verbose #25201 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:26 verbose #25202 > > inl read_all_bytes (path : string) : am'.vec u8 =
00:22:26 verbose #25203 > >     run_target function
00:22:26 verbose #25204 > >         | Fsharp (Native) => fun () =>
00:22:26 verbose #25205 > >             $'!path |> System.IO.File.ReadAllBytes'
00:22:26 verbose #25206 > >             |> am'.to_vec
00:22:26 verbose #25207 > >         | Rust (Native) => fun () =>
00:22:26 verbose #25208 > >             open rust_operators
00:22:26 verbose #25209 > >             !\\(path, $'"std::fs::read(&*$0).unwrap()"')
00:22:26 verbose #25210 > >         | _ => fun () => null ()
00:22:27 verbose #25211 > 00:22:26   debug #1335 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2360f9c93804784749084e8f57ac7a0d35b483352f3d3b556b81f41c557422a6/main.spi
00:22:27 verbose #25212 > >
00:22:27 verbose #25213 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:27 verbose #25214 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:27 verbose #25215 > > │ ### read_all_text                                                            │
00:22:27 verbose #25216 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:27 verbose #25217 > >
00:22:27 verbose #25218 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:27 verbose #25219 > > inl read_all_text (path : string) : string =
00:22:27 verbose #25220 > >     run_target function
00:22:27 verbose #25221 > >         | Fsharp (Native) => fun () =>
00:22:27 verbose #25222 > >             $'!path |> System.IO.File.ReadAllText'
00:22:27 verbose #25223 > >         | Rust (Native) => fun () =>
00:22:27 verbose #25224 > >             path
00:22:27 verbose #25225 > >             |> read_all_bytes
00:22:27 verbose #25226 > >             |> sm'.string_from_utf8
00:22:27 verbose #25227 > >             |> resultm.unwrap'
00:22:27 verbose #25228 > >             |> sm'.from_std_string
00:22:27 verbose #25229 > >         | _ => fun () => null ()
00:22:27 verbose #25230 > 00:22:26   debug #1336 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4d67fd87f18df0ccd9f70fd6bc870a2d61d1e8800d5c62aa60da4061a4a8d4fd/main.spi
00:22:27 verbose #25231 > >
00:22:27 verbose #25232 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:27 verbose #25233 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:27 verbose #25234 > > │ ### directory_create_symbolic_link                                           │
00:22:27 verbose #25235 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:27 verbose #25236 > >
00:22:27 verbose #25237 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:27 verbose #25238 > > inl directory_create_symbolic_link (target : string) (path : string) : () =
00:22:27 verbose #25239 > >     run_target function
00:22:27 verbose #25240 > >         | Fsharp (Native) => fun () =>
00:22:27 verbose #25241 > >             ($'System.IO.Directory.CreateSymbolicLink (!path, !target)' :
00:22:27 verbose #25242 > > file_system_info)
00:22:27 verbose #25243 > >             |> ignore
00:22:27 verbose #25244 > >         | Rust (Native) => fun () =>
00:22:27 verbose #25245 > >             open rust_operators
00:22:27 verbose #25246 > >             platform.run_platform function
00:22:27 verbose #25247 > >                 | Windows => fun () => !\\((target, path),
00:22:27 verbose #25248 > > $'"std::os::windows::fs::symlink_dir(&*$0, &*$1).unwrap()"')
00:22:27 verbose #25249 > >                 | _ => fun () => !\\((target, path),
00:22:27 verbose #25250 > > $'"std::os::unix::fs::symlink(&*$0, &*$1).unwrap()"')
00:22:27 verbose #25251 > >         | _ => fun () => null ()
00:22:27 verbose #25252 > 00:22:27   debug #1337 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e7b0ff3ac062b26bd7034c6c23be5f56c13bf9db326fde4ea14c6125fb80fd69/main.spi
00:22:28 verbose #25253 > >
00:22:28 verbose #25254 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:28 verbose #25255 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:28 verbose #25256 > > │ ### find_parent                                                              │
00:22:28 verbose #25257 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:28 verbose #25258 > >
00:22:28 verbose #25259 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:28 verbose #25260 > > inl find_parent name is_file root_dir =
00:22:28 verbose #25261 > >     let rec loop dir =
00:22:28 verbose #25262 > >         if dir </> name |> (if is_file then file_exists else directory_exists)
00:22:28 verbose #25263 > >         then dir |> Ok
00:22:28 verbose #25264 > >         else
00:22:28 verbose #25265 > >             inl result = dir |> (join directory_get_parent)
00:22:28 verbose #25266 > >             match result |> optionm'.unbox with
00:22:28 verbose #25267 > >             | Some parent => parent |> loop
00:22:28 verbose #25268 > >             | None => ($'$"""No parent for {if !is_file then "file" else "dir"}
00:22:28 verbose #25269 > > \'{!name}\' at \'{!root_dir}\' (until \'{!dir}\')"""' : string) |> Error
00:22:28 verbose #25270 > >     loop root_dir
00:22:28 verbose #25271 > 00:22:27   debug #1338 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2d5589fbda3cb9f98c6ef84894f899eff4acce061c88a81a851b9de6de9e085b/main.spi
00:22:28 verbose #25272 > >
00:22:28 verbose #25273 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:28 verbose #25274 > > //// test
00:22:28 verbose #25275 > >
00:22:28 verbose #25276 > > a ;[[ ".paket", false; "paket.dependencies", true ]]
00:22:28 verbose #25277 > > |> am.map fun (file, is_file) =>
00:22:28 verbose #25278 > >     get_source_directory ()
00:22:28 verbose #25279 > >     |> find_parent file is_file
00:22:28 verbose #25280 > >     |> resultm.get
00:22:28 verbose #25281 > >     |> directory_info
00:22:28 verbose #25282 > >     |> directory_info_name
00:22:28 verbose #25283 > > |> am'.distinct
00:22:28 verbose #25284 > > |> fun (a x : _ int _) => x
00:22:28 verbose #25285 > > |> _assert_eq' ;[[ "polyglot" ]]
00:22:28 verbose #25286 > 00:22:27   debug #1339 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8e60db704677211231adea6414260c41a36dfab6c56466bb79ebbe1fb50ff80d/main.spi
00:22:29 verbose #25287 > >
00:22:29 verbose #25288 > > ╭─[ 670.29ms - stdout ]────────────────────────────────────────────────────────╮
00:22:29 verbose #25289 > > │ assert_eq' / actual: [|"polyglot"|] / expected: [|"polyglot"|]               │
00:22:29 verbose #25290 > > │                                                                              │
00:22:29 verbose #25291 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:29 verbose #25292 > >
00:22:29 verbose #25293 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:29 verbose #25294 > > //// test
00:22:29 verbose #25295 > > ///! rust
00:22:29 verbose #25296 > >
00:22:29 verbose #25297 > > types ()
00:22:29 verbose #25298 > > a ;[[ ".paket", false; "paket.dependencies", true ]]
00:22:29 verbose #25299 > > |> am.map fun (file, is_file) =>
00:22:29 verbose #25300 > >     fun () =>
00:22:29 verbose #25301 > >         join
00:22:29 verbose #25302 > >             get_source_directory ()
00:22:29 verbose #25303 > >             |> find_parent file is_file
00:22:29 verbose #25304 > >             |> resultm.get
00:22:29 verbose #25305 > >             |> sm'.to_std_string
00:22:29 verbose #25306 > >             |> new_path_buf
00:22:29 verbose #25307 > >             |> path_buf_file_name
00:22:29 verbose #25308 > >             |> optionm'.try'
00:22:29 verbose #25309 > >             |> sm'.from_os_str_ref
00:22:29 verbose #25310 > >             |> Some
00:22:29 verbose #25311 > >             |> optionm'.box
00:22:29 verbose #25312 > >     |> fun x => x () |> optionm'.unbox
00:22:29 verbose #25313 > >     |> optionm'.default_value ""
00:22:29 verbose #25314 > > |> am'.distinct
00:22:29 verbose #25315 > > |> fun result =>
00:22:29 verbose #25316 > >     result |> am'.length |> _assert_eq 1i32
00:22:29 verbose #25317 > >     index result 0i32 |> _assert_eq "polyglot"
00:22:29 verbose #25318 > 00:22:28   debug #1340 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dbf977967586ba23c70331deaa9c5d92b4a79ac903bf20e927eabff3801b0cfd/main.spi
00:22:32 verbose #25319 > >
00:22:32 verbose #25320 > > ╭─[ 3.23s - return value ]─────────────────────────────────────────────────────╮
00:22:32 verbose #25321 > > │ assert_eq / actual: 1 / expected: 1                                          │
00:22:32 verbose #25322 > > │ assert_eq / actual: "polyglot" / expected: "polyglot"                        │
00:22:32 verbose #25323 > > │                                                                              │
00:22:32 verbose #25324 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:32 verbose #25325 > >
00:22:32 verbose #25326 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:32 verbose #25327 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:32 verbose #25328 > > │ ### get_workspace_root                                                       │
00:22:32 verbose #25329 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:32 verbose #25330 > >
00:22:32 verbose #25331 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:32 verbose #25332 > > inl get_workspace_root () =
00:22:32 verbose #25333 > >     (None, [[ get_source_directory; get_current_directory ]])
00:22:32 verbose #25334 > >     ||> listm.fold fun acc path =>
00:22:32 verbose #25335 > >         match acc with
00:22:32 verbose #25336 > >         | Some path => Some path
00:22:32 verbose #25337 > >         | None =>
00:22:32 verbose #25338 > >             path ()
00:22:32 verbose #25339 > >             |> find_parent ("polyglot" </> ".devcontainer") false
00:22:32 verbose #25340 > >             |> function
00:22:32 verbose #25341 > >                 | Ok path => Some path
00:22:32 verbose #25342 > >                 | Error error =>
00:22:32 verbose #25343 > >                     trace Warning
00:22:32 verbose #25344 > >                         fun () => "file_system.get_workspace_root"
00:22:32 verbose #25345 > >                         fun () => { error }
00:22:32 verbose #25346 > >                     None
00:22:32 verbose #25347 > >     |> optionm.value
00:22:32 verbose #25348 > >     |> fun root => root </> "polyglot"
00:22:32 verbose #25349 > 00:22:31   debug #1341 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e1be4363868c391739eb68a1c1b0c31027989b2f7a7d390c9fdf4ba44ad23ce3/main.spi
00:22:32 verbose #25350 > >
00:22:32 verbose #25351 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:32 verbose #25352 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:32 verbose #25353 > > │ ### get_workspace_root_external                                              │
00:22:32 verbose #25354 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:32 verbose #25355 > >
00:22:32 verbose #25356 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:32 verbose #25357 > > inl get_workspace_root_external () =
00:22:32 verbose #25358 > >     inl workspace_root = get_workspace_root ()
00:22:32 verbose #25359 > >     inl current_dir = get_current_directory () |> sm'.to_lower
00:22:32 verbose #25360 > >     inl workspace_root = workspace_root |> sm'.to_lower
00:22:32 verbose #25361 > >     if current_dir |> sm'.starts_with workspace_root
00:22:32 verbose #25362 > >     then Error workspace_root
00:22:32 verbose #25363 > >     else Ok workspace_root
00:22:32 verbose #25364 > 00:22:32   debug #1342 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/54e299a6f788dca509a02b28c67771c8f25e8e96a474a4b841eee2c8a2ea92e3/main.spi
00:22:33 verbose #25365 > >
00:22:33 verbose #25366 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:33 verbose #25367 > > //// test
00:22:33 verbose #25368 > >
00:22:33 verbose #25369 > > get_workspace_root_external ()
00:22:33 verbose #25370 > > |> resultm.unwrap_err
00:22:33 verbose #25371 > > |> get_file_name
00:22:33 verbose #25372 > > |> _assert_eq "polyglot"
00:22:33 verbose #25373 > 00:22:32   debug #1343 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/3c585bdb72f9abcb2bddfd7dfde1b90f7c99cfb8956c994da333cdd096613cfc/main.spi
00:22:33 verbose #25374 > >
00:22:33 verbose #25375 > > ╭─[ 813.31ms - stdout ]────────────────────────────────────────────────────────╮
00:22:33 verbose #25376 > > │ assert_eq / actual: "polyglot" / expected: "polyglot"                        │
00:22:33 verbose #25377 > > │                                                                              │
00:22:33 verbose #25378 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:33 verbose #25379 > >
00:22:33 verbose #25380 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:33 verbose #25381 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:33 verbose #25382 > > │ ### standardize_path                                                         │
00:22:33 verbose #25383 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:33 verbose #25384 > >
00:22:33 verbose #25385 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:33 verbose #25386 > > let standardize_path path =
00:22:33 verbose #25387 > >     path |> get_full_path |> normalize_path
00:22:34 verbose #25388 > 00:22:33   debug #1344 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/067dab23b9974a0a94ea79bbde795a2d7ff726dead7c5f33d2420c449b571200/main.spi
00:22:34 verbose #25389 > >
00:22:34 verbose #25390 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:34 verbose #25391 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:34 verbose #25392 > > │ ### absolute_path                                                            │
00:22:34 verbose #25393 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:34 verbose #25394 > >
00:22:34 verbose #25395 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:34 verbose #25396 > > let absolute_path path =
00:22:34 verbose #25397 > >     inl current_dir = get_current_directory ()
00:22:34 verbose #25398 > >     current_dir </> path |> standardize_path
00:22:34 verbose #25399 > 00:22:33   debug #1345 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/dd49b24961faa79cb3465aa4e87680f5a01b6b5b157b518cb089ed9bf75e2740/main.spi
00:22:34 verbose #25400 > >
00:22:34 verbose #25401 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:34 verbose #25402 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:34 verbose #25403 > > │ ### new_file_uri                                                             │
00:22:34 verbose #25404 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:34 verbose #25405 > >
00:22:34 verbose #25406 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:34 verbose #25407 > > inl new_file_uri (path : string) : string =
00:22:34 verbose #25408 > >     inl path = path |> sm'.trim_start [[ '/' ]]
00:22:34 verbose #25409 > >     $'$"file:///{!path}"'
00:22:34 verbose #25410 > 00:22:34   debug #1346 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/a3ee1b2a33f99fe990e6298c8e6c94b36e83bbf071b2deddcec5315570f6777a/main.spi
00:22:35 verbose #25411 > >
00:22:35 verbose #25412 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:35 verbose #25413 > > //// test
00:22:35 verbose #25414 > >
00:22:35 verbose #25415 > > @"\\?\C:\test"
00:22:35 verbose #25416 > > |> normalize_path
00:22:35 verbose #25417 > > |> new_file_uri
00:22:35 verbose #25418 > > |> _assert_eq "file:///c:/test"
00:22:35 verbose #25419 > 00:22:34   debug #1347 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/1204ca6796a23c69836afc763e3c9a7263085a84dc73b8d9345b2cf0321ae7bf/main.spi
00:22:35 verbose #25420 > >
00:22:35 verbose #25421 > > ╭─[ 453.35ms - stdout ]────────────────────────────────────────────────────────╮
00:22:35 verbose #25422 > > │ assert_eq / actual: "file:///c:/test" / expected: "file:///c:/test"          │
00:22:35 verbose #25423 > > │                                                                              │
00:22:35 verbose #25424 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:35 verbose #25425 > >
00:22:35 verbose #25426 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:35 verbose #25427 > > //// test
00:22:35 verbose #25428 > > ///! rust -d regex
00:22:35 verbose #25429 > >
00:22:35 verbose #25430 > > types ()
00:22:35 verbose #25431 > > @"\\?\C:\test"
00:22:35 verbose #25432 > > |> normalize_path
00:22:35 verbose #25433 > > |> new_file_uri
00:22:35 verbose #25434 > > |> _assert_eq "file:///c:/test"
00:22:35 verbose #25435 > 00:22:35   debug #1348 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f5914ee1f45fc073eaf59ea9b3b983a349f773ca16431c4ec0bd9ab7646a7b88/main.spi
00:22:39 verbose #25436 > >
00:22:39 verbose #25437 > > ╭─[ 3.71s - return value ]─────────────────────────────────────────────────────╮
00:22:39 verbose #25438 > > │ assert_eq / actual: "file:///c:/test" / expected: "file:///c:/test"          │
00:22:39 verbose #25439 > > │                                                                              │
00:22:39 verbose #25440 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:39 verbose #25441 > >
00:22:39 verbose #25442 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:39 verbose #25443 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:39 verbose #25444 > > │ ### file_delete                                                              │
00:22:39 verbose #25445 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:39 verbose #25446 > >
00:22:39 verbose #25447 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:39 verbose #25448 > > inl file_delete (path : string) : () =
00:22:39 verbose #25449 > >     run_target function
00:22:39 verbose #25450 > >         | Fsharp (Native) => fun () =>
00:22:39 verbose #25451 > >             path |> $'System.IO.File.Delete'
00:22:39 verbose #25452 > >         | Rust (Native) => fun () =>
00:22:39 verbose #25453 > >             open rust_operators
00:22:39 verbose #25454 > >             !\\(path, $'"std::fs::remove_file(&*$0).unwrap()"')
00:22:39 verbose #25455 > >         | _ => fun () => null ()
00:22:39 verbose #25456 > 00:22:38   debug #1349 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/4c218e4c1182623dcbe4f58214f5a67f2826526f2e66bbca578b44aef4003fe1/main.spi
00:22:39 verbose #25457 > >
00:22:39 verbose #25458 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:39 verbose #25459 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:39 verbose #25460 > > │ ## fsharp                                                                    │
00:22:39 verbose #25461 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:39 verbose #25462 > >
00:22:39 verbose #25463 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:39 verbose #25464 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:39 verbose #25465 > > │ ### file_exists_content_async                                                │
00:22:39 verbose #25466 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:39 verbose #25467 > >
00:22:39 verbose #25468 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:39 verbose #25469 > > inl file_exists_content_async path content : async.async bool =
00:22:39 verbose #25470 > >     run_target function
00:22:39 verbose #25471 > >         | Fsharp (Native) => fun () =>
00:22:39 verbose #25472 > >             fun () =>
00:22:39 verbose #25473 > >                 fix_condition
00:22:39 verbose #25474 > >                     fun () => path |> file_exists |> not
00:22:39 verbose #25475 > >                     fun () => false |> return
00:22:39 verbose #25476 > >                     fun () =>
00:22:39 verbose #25477 > >                         inl existing_content = path |> read_all_text_async |>
00:22:39 verbose #25478 > > async.let'
00:22:39 verbose #25479 > >                         content = existing_content |> return
00:22:39 verbose #25480 > >             |> async.new_async_unit
00:22:39 verbose #25481 > >         | _ => fun () => null ()
00:22:39 verbose #25482 > 00:22:39   debug #1350 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c87c71d41d4eb20ccc875380d23e10a61ec58821ae81543bc8ece5c9d4a668fe/main.spi
00:22:40 verbose #25483 > >
00:22:40 verbose #25484 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:40 verbose #25485 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:40 verbose #25486 > > │ ### write_all_text_exists_async                                              │
00:22:40 verbose #25487 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:40 verbose #25488 > >
00:22:40 verbose #25489 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:40 verbose #25490 > > inl write_all_text_exists_async path contents =
00:22:40 verbose #25491 > >     fun () =>
00:22:40 verbose #25492 > >         inl exists' = contents |> file_exists_content_async path |> async.let'
00:22:40 verbose #25493 > >         if not exists'
00:22:40 verbose #25494 > >         then contents |> write_all_text_async path |> async.do
00:22:40 verbose #25495 > >     |> async.new_async
00:22:40 verbose #25496 > 00:22:39   debug #1351 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6d9cb17854d70c90b55a785af60af096a694c0902c3a235aab8569c495facc8f/main.spi
00:22:40 verbose #25497 > >
00:22:40 verbose #25498 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:40 verbose #25499 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:40 verbose #25500 > > │ ### delete_directory_async                                                   │
00:22:40 verbose #25501 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:40 verbose #25502 > >
00:22:40 verbose #25503 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:40 verbose #25504 > > inl delete_directory_async path : _ i64 =
00:22:40 verbose #25505 > >     run_target function
00:22:40 verbose #25506 > >         | Fsharp (Native) => fun () =>
00:22:40 verbose #25507 > >             let rec loop (retry : i64) =
00:22:40 verbose #25508 > >                 fun () =>
00:22:40 verbose #25509 > >                     try_unit
00:22:40 verbose #25510 > >                         fun () =>
00:22:40 verbose #25511 > >                             path |> directory_delete true
00:22:40 verbose #25512 > >                             retry |> return
00:22:40 verbose #25513 > >                         fun ex =>
00:22:40 verbose #25514 > >                             if retry % 100i64 = 0 then
00:22:40 verbose #25515 > >                                 inl ex = ex |> sm'.format_exception
00:22:40 verbose #25516 > >                                 trace Debug
00:22:40 verbose #25517 > >                                     fun () =>
00:22:40 verbose #25518 > > "file_system.delete_directory_async"
00:22:40 verbose #25519 > >                                     fun () => { ex path = path |> get_file_name
00:22:40 verbose #25520 > > }
00:22:40 verbose #25521 > >                             async.sleep 10i32 |> async.do
00:22:40 verbose #25522 > >                             loop (retry + 1) |> async.return_await
00:22:40 verbose #25523 > >                 |> async.new_async
00:22:40 verbose #25524 > >             loop 0
00:22:40 verbose #25525 > >         | _ => fun () => null ()
00:22:40 verbose #25526 > 00:22:39   debug #1352 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6cfd39193ee01990aee02f8d3c3f7f32d42350b03c3be667e37a20019738cdb4/main.spi
00:22:40 verbose #25527 > >
00:22:40 verbose #25528 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:40 verbose #25529 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:40 verbose #25530 > > │ ### trace_file                                                               │
00:22:40 verbose #25531 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:40 verbose #25532 > >
00:22:40 verbose #25533 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:40 verbose #25534 > > let rec trace_file text =
00:22:40 verbose #25535 > >     run_target function
00:22:40 verbose #25536 > >     | Fsharp (Native) => fun () =>
00:22:40 verbose #25537 > >         try_unit
00:22:40 verbose #25538 > >             fun () =>
00:22:40 verbose #25539 > >                 inl assembly_name = env.get_entry_assembly_name ()
00:22:40 verbose #25540 > >                 inl guid = date_time.now () |> date_time.new_guid_from_date_time
00:22:40 verbose #25541 > >                 inl file_name = $'$"{!assembly_name}_{!guid}.txt"'
00:22:40 verbose #25542 > >
00:22:40 verbose #25543 > >                 inl workspace_root = get_workspace_root ()
00:22:40 verbose #25544 > >                 inl trace_dir = workspace_root </> "target/trace"
00:22:40 verbose #25545 > >                 trace_dir |> create_directory |> ignore
00:22:40 verbose #25546 > >                 inl path = trace_dir </> file_name
00:22:40 verbose #25547 > >                 text |> write_all_text_async path |> async.run_synchronously
00:22:40 verbose #25548 > >             fun ex =>
00:22:40 verbose #25549 > >                 trace_file $'$"file_system.trace_file / ex: %A{!ex}"'
00:22:40 verbose #25550 > >     | _ => fun () => ()
00:22:41 verbose #25551 > 00:22:40   debug #1353 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8ace1403cac61ec19774f96ad49f28f0554ccb40f69672b0adfaa4adf0422f27/main.spi
00:22:41 verbose #25552 > >
00:22:41 verbose #25553 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:41 verbose #25554 > > //// test
00:22:41 verbose #25555 > >
00:22:41 verbose #25556 > > inl get_count dir : i64 =
00:22:41 verbose #25557 > >     inl files = dir |> directory_get_files
00:22:41 verbose #25558 > >     a files |> am'.length
00:22:41 verbose #25559 > >
00:22:41 verbose #25560 > > types ()
00:22:41 verbose #25561 > > inl trace_dir = get_workspace_root () </> "target/trace"
00:22:41 verbose #25562 > > trace_dir |> create_directory |> ignore
00:22:41 verbose #25563 > >
00:22:41 verbose #25564 > > inl count = get_count trace_dir
00:22:41 verbose #25565 > >
00:22:41 verbose #25566 > > trace_file "test"
00:22:41 verbose #25567 > >
00:22:41 verbose #25568 > > get_count trace_dir
00:22:41 verbose #25569 > > |> _assert_eq (count + 1)
00:22:41 verbose #25570 > 00:22:40   debug #1354 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e17ea0b3758240ba831c01f2cd19e84d8ee2aebc2866b7c8638a674450e2adaa/main.spi
00:22:42 verbose #25571 > >
00:22:42 verbose #25572 > > ╭─[ 1.24s - stdout ]───────────────────────────────────────────────────────────╮
00:22:42 verbose #25573 > > │ assert_eq / actual: 9L / expected: 9L                                        │
00:22:42 verbose #25574 > > │                                                                              │
00:22:42 verbose #25575 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:42 verbose #25576 > >
00:22:42 verbose #25577 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:42 verbose #25578 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:42 verbose #25579 > > │ ### init_trace_file                                                          │
00:22:42 verbose #25580 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:42 verbose #25581 > >
00:22:42 verbose #25582 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:42 verbose #25583 > > inl init_trace_file enabled =
00:22:42 verbose #25584 > >     inl state_trace_file = get_trace_state_or_init None .trace_file
00:22:42 verbose #25585 > >     state_trace_file <- if enabled then trace_file else ignore
00:22:42 verbose #25586 > 00:22:42   debug #1355 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c942487e6bcbc4a0948da037aa488be72c9a7f77a2f1b2a64c9845e9eaa6624f/main.spi
00:22:42 verbose #25587 > >
00:22:42 verbose #25588 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:42 verbose #25589 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:42 verbose #25590 > > │ ## file_system                                                               │
00:22:42 verbose #25591 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:43 verbose #25592 > >
00:22:43 verbose #25593 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:43 verbose #25594 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:43 verbose #25595 > > │ ### create_dir                                                               │
00:22:43 verbose #25596 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:43 verbose #25597 > >
00:22:43 verbose #25598 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:43 verbose #25599 > > let create_dir dir =
00:22:43 verbose #25600 > >     run_target function
00:22:43 verbose #25601 > >         | Rust (Contract | Wasm) => fun () => null ()
00:22:43 verbose #25602 > >         | Rust (Native) => fun () =>
00:22:43 verbose #25603 > >             inl dir = join dir
00:22:43 verbose #25604 > >             match dir |> create_dir_all |> resultm.map_error' sm'.format' |>
00:22:43 verbose #25605 > > resultm.unbox with
00:22:43 verbose #25606 > >             | Ok () =>
00:22:43 verbose #25607 > >                 trace Verbose
00:22:43 verbose #25608 > >                     fun () => "file_system.create_dir"
00:22:43 verbose #25609 > >                     fun () => { dir }
00:22:43 verbose #25610 > >             | Error error =>
00:22:43 verbose #25611 > >                 trace Critical
00:22:43 verbose #25612 > >                     fun () => "file_system.create_dir"
00:22:43 verbose #25613 > >                     fun () => { dir error }
00:22:43 verbose #25614 > >             inl disposable : _ () = new_disposable fun () =>
00:22:43 verbose #25615 > >                 dir
00:22:43 verbose #25616 > >                 |> directory_delete true
00:22:43 verbose #25617 > >             disposable
00:22:43 verbose #25618 > >         | _ => fun () =>
00:22:43 verbose #25619 > >             inl directory_info = dir |> create_directory
00:22:43 verbose #25620 > >             inl exists' = directory_info |> directory_info_exists
00:22:43 verbose #25621 > >             if not exists' then
00:22:43 verbose #25622 > >                 inl creation_time = directory_info |>
00:22:43 verbose #25623 > > directory_info_creation_time
00:22:43 verbose #25624 > >                 inl result = ($'{| Exists = !exists'; CreationTime =
00:22:43 verbose #25625 > > !creation_time |}' : any) |> sm'.format_debug
00:22:43 verbose #25626 > >                 trace Debug
00:22:43 verbose #25627 > >                     fun () => "file_system.create_dir"
00:22:43 verbose #25628 > >                     fun () => { dir result }
00:22:43 verbose #25629 > >             inl disposable : _ () = new_disposable fun () =>
00:22:43 verbose #25630 > >                 dir
00:22:43 verbose #25631 > >                 |> delete_directory_async
00:22:43 verbose #25632 > >                 |> async.ignore
00:22:43 verbose #25633 > >                 |> async.run_synchronously
00:22:43 verbose #25634 > >             disposable
00:22:43 verbose #25635 > 00:22:42   debug #1356 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/21c0a4777cc56700ee29d8d79896e9008973685a516d4fce6b33f8d8a56a4928/main.spi
00:22:43 verbose #25636 > >
00:22:43 verbose #25637 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:43 verbose #25638 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:43 verbose #25639 > > │ ### create_temp_dir                                                          │
00:22:43 verbose #25640 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:43 verbose #25641 > >
00:22:43 verbose #25642 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:43 verbose #25643 > > inl create_temp_dir () =
00:22:43 verbose #25644 > >     inl dir = create_temp_path ()
00:22:43 verbose #25645 > >     dir, dir |> create_dir
00:22:43 verbose #25646 > 00:22:42   debug #1357 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ee4504a33cf1fda11e61b59215f56c11701c446644514d5c9e29886b8ed3fb0b/main.spi
00:22:43 verbose #25647 > >
00:22:43 verbose #25648 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:43 verbose #25649 > > //// test
00:22:43 verbose #25650 > >
00:22:43 verbose #25651 > > types ()
00:22:43 verbose #25652 > > inl path, disposable = create_temp_dir ()
00:22:43 verbose #25653 > > disposable |> use |> ignore
00:22:43 verbose #25654 > > path
00:22:43 verbose #25655 > > |> directory_exists
00:22:43 verbose #25656 > > |> _assert_eq true
00:22:44 verbose #25657 > 00:22:43   debug #1358 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/79bb13af720597abbb17bce3e9449646ac8ada0f7b08b93a1559b9f6e417b528/main.spi
00:22:45 verbose #25658 > >
00:22:45 verbose #25659 > > ╭─[ 1.54s - stdout ]───────────────────────────────────────────────────────────╮
00:22:45 verbose #25660 > > │ assert_eq / actual: true / expected: true                                    │
00:22:45 verbose #25661 > > │                                                                              │
00:22:45 verbose #25662 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:45 verbose #25663 > >
00:22:45 verbose #25664 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:45 verbose #25665 > > //// test
00:22:45 verbose #25666 > > ///! rust -d chrono
00:22:45 verbose #25667 > >
00:22:45 verbose #25668 > > types ()
00:22:45 verbose #25669 > > inl path, disposable = create_temp_dir ()
00:22:45 verbose #25670 > > path
00:22:45 verbose #25671 > > |> directory_exists
00:22:45 verbose #25672 > > |> _assert_eq true
00:22:45 verbose #25673 > > disposable |> use |> ignore
00:22:45 verbose #25674 > > path
00:22:45 verbose #25675 > > |> directory_exists
00:22:45 verbose #25676 > > |> _assert_eq false
00:22:45 verbose #25677 > 00:22:44   debug #1359 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/bfc89fcb87c0eb0d170066c3a25a24000010ace4f7fcd186d64b2a85480a5e86/main.spi
00:22:49 verbose #25678 > >
00:22:49 verbose #25679 > > ╭─[ 3.88s - return value ]─────────────────────────────────────────────────────╮
00:22:49 verbose #25680 > > │ 00:00:00 verbose #1 file_system.create_dir / { dir =                   │
00:22:49 verbose #25681 > > │ C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\spiral_builder_c15e6e39 │
00:22:49 verbose #25682 > > │ f5e796ab2430d1c034e5fa5c89185a5f394e26128bff4b74a3d9244d\20240709-0010-2612- │
00:22:49 verbose #25683 > > │ 6156-00000002eb0b }                                                          │
00:22:49 verbose #25684 > > │ assert_eq / actual: true / expected: true                                    │
00:22:49 verbose #25685 > > │ assert_eq / actual: false / expected: false                                  │
00:22:49 verbose #25686 > > │                                                                              │
00:22:49 verbose #25687 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:49 verbose #25688 > >
00:22:49 verbose #25689 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:49 verbose #25690 > > //// test
00:22:49 verbose #25691 > >
00:22:49 verbose #25692 > > inl lock_directory path =
00:22:49 verbose #25693 > >     fun () =>
00:22:49 verbose #25694 > >         trace Debug (fun () => "_1") id
00:22:49 verbose #25695 > >         "0" |> write_all_text_async (path </> "test.txt") |> async.do
00:22:49 verbose #25696 > >         file_stream
00:22:49 verbose #25697 > >             (path </> "test.txt")
00:22:49 verbose #25698 > >             ModeOpen
00:22:49 verbose #25699 > >             AccessReadWrite
00:22:49 verbose #25700 > >             ShareNone
00:22:49 verbose #25701 > >         |> use
00:22:49 verbose #25702 > >         |> ignore
00:22:49 verbose #25703 > >         trace Debug (fun () => "_2") id
00:22:49 verbose #25704 > >         async.sleep 2000 |> async.do
00:22:49 verbose #25705 > >         trace Debug (fun () => "_3") id
00:22:49 verbose #25706 > >         () |> return
00:22:49 verbose #25707 > >     |> async.new_async
00:22:49 verbose #25708 > >
00:22:49 verbose #25709 > > types ()
00:22:49 verbose #25710 > > inl temp_dir, disposable = create_temp_dir ()
00:22:49 verbose #25711 > > disposable |> use |> ignore
00:22:49 verbose #25712 > > inl path = temp_dir </> "test"
00:22:49 verbose #25713 > >
00:22:49 verbose #25714 > > fun () =>
00:22:49 verbose #25715 > >     trace Debug (fun () => "1") id
00:22:49 verbose #25716 > >     path |> create_directory |> ignore
00:22:49 verbose #25717 > >     trace Debug (fun () => "2") id
00:22:49 verbose #25718 > >     inl child = path |> lock_directory |> async.start_child |> async.let'
00:22:49 verbose #25719 > >     trace Debug (fun () => "3") id
00:22:49 verbose #25720 > >     async.sleep 60 |> async.do
00:22:49 verbose #25721 > >     trace Debug (fun () => "4") id
00:22:49 verbose #25722 > >     inl retries = path |> delete_directory_async |> async.let'
00:22:49 verbose #25723 > >     trace Debug (fun () => "5") id
00:22:49 verbose #25724 > >     child |> async.do
00:22:49 verbose #25725 > >     trace Debug (fun () => "6") id
00:22:49 verbose #25726 > >     retries |> return
00:22:49 verbose #25727 > > |> async.new_async_unit
00:22:49 verbose #25728 > > |> async.run_with_timeout 3000
00:22:49 verbose #25729 > > |> fun x => x : _ i64
00:22:49 verbose #25730 > > |> function
00:22:49 verbose #25731 > >     | Some (retries : i64) =>
00:22:49 verbose #25732 > >         retries
00:22:49 verbose #25733 > >         |> _assert_between
00:22:49 verbose #25734 > >             (if platform.is_windows () then 50 else 0)
00:22:49 verbose #25735 > >             (if platform.is_windows () then 180 else 0)
00:22:49 verbose #25736 > >
00:22:49 verbose #25737 > >         true
00:22:49 verbose #25738 > >     | _ => false
00:22:49 verbose #25739 > > |> _assert_eq true
00:22:49 verbose #25740 > 00:22:48   debug #1360 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/59cbeb9b9a9c1594f2bbee6bb2a5296fcea7de74d1cca5b1a9d4debe056a19e0/main.spi
00:22:53 verbose #25741 > >
00:22:53 verbose #25742 > > ╭─[ 4.27s - stdout ]───────────────────────────────────────────────────────────╮
00:22:53 verbose #25743 > > │ 00:00:00   debug #1 1                                                   │
00:22:53 verbose #25744 > > │ 00:00:00   debug #2 2                                                   │
00:22:53 verbose #25745 > > │ 00:00:00   debug #3 3                                                   │
00:22:53 verbose #25746 > > │ 00:00:00   debug #4 _1                                                  │
00:22:53 verbose #25747 > > │ 00:00:00   debug #5 _2                                                  │
00:22:53 verbose #25748 > > │ 00:00:00   debug #6 4                                                   │
00:22:53 verbose #25749 > > │ 00:00:00   debug #7 file_system.delete_directory_async / { ex =         │
00:22:53 verbose #25750 > > │ System.IO.IOException: The process cannot access the file 'test.txt' because │
00:22:53 verbose #25751 > > │ it is being used by another process.; path = test }                          │
00:22:53 verbose #25752 > > │ 00:00:01   debug #8 file_system.delete_directory_async / { ex =         │
00:22:53 verbose #25753 > > │ System.IO.IOException: The process cannot access the file 'test.txt' because │
00:22:53 verbose #25754 > > │ it is being used by another process.; path = test }                          │
00:22:53 verbose #25755 > > │ 00:00:01   debug #9 _3                                                  │
00:22:53 verbose #25756 > > │ 00:00:02   debug #10 5                                                  │
00:22:53 verbose #25757 > > │ 00:00:02   debug #11 6                                                  │
00:22:53 verbose #25758 > > │ assert_between / actual: 125L / expected: struct (50L, 180L)                 │
00:22:53 verbose #25759 > > │ assert_eq / actual: true / expected: true                                    │
00:22:53 verbose #25760 > > │                                                                              │
00:22:53 verbose #25761 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:53 verbose #25762 > >
00:22:53 verbose #25763 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:53 verbose #25764 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:53 verbose #25765 > > │ ### create_temp_dir'                                                         │
00:22:53 verbose #25766 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:53 verbose #25767 > >
00:22:53 verbose #25768 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:53 verbose #25769 > > inl create_temp_dir' (hash : string) =
00:22:53 verbose #25770 > >     inl dir = hash |> guid.hash_guid |> create_temp_path'
00:22:53 verbose #25771 > >     dir, dir |> create_dir
00:22:53 verbose #25772 > 00:22:53   debug #1361 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/740100e277380a968ffd176136eb1ca33df08452d3071421def7263c710dad7d/main.spi
00:22:53 verbose #25773 > >
00:22:53 verbose #25774 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:53 verbose #25775 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:53 verbose #25776 > > │ ### link_directory                                                           │
00:22:53 verbose #25777 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:53 verbose #25778 > >
00:22:53 verbose #25779 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:53 verbose #25780 > > let link_directory target_path path =
00:22:53 verbose #25781 > >     if target_path |> directory_exists |> not
00:22:53 verbose #25782 > >     then target_path |> create_dir |> ignore
00:22:53 verbose #25783 > >
00:22:53 verbose #25784 > >     inl lib_dir_path = path |> get_directory_name
00:22:53 verbose #25785 > >     if lib_dir_path |> directory_exists |> not
00:22:53 verbose #25786 > >     then lib_dir_path |> create_dir |> ignore
00:22:53 verbose #25787 > >
00:22:53 verbose #25788 > >     if (path |> directory_exists)
00:22:53 verbose #25789 > >         && (path |> read_link |> resultm.is_err) then
00:22:53 verbose #25790 > >         path |> directory_delete true
00:22:53 verbose #25791 > >
00:22:53 verbose #25792 > >     if path |> directory_exists |> not then
00:22:53 verbose #25793 > >         path |> directory_create_symbolic_link target_path
00:22:54 verbose #25794 > 00:22:53   debug #1362 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/517d8010b68a2234faff9ed95313be60f2faa32f71868e6086ab44a1a3a59ca8/main.spi
00:22:54 verbose #25795 > >
00:22:54 verbose #25796 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:54 verbose #25797 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:54 verbose #25798 > > │ ## rust                                                                      │
00:22:54 verbose #25799 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:54 verbose #25800 > >
00:22:54 verbose #25801 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:54 verbose #25802 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:54 verbose #25803 > > │ ### file_exists_content                                                      │
00:22:54 verbose #25804 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:54 verbose #25805 > >
00:22:54 verbose #25806 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:54 verbose #25807 > > let file_exists_content path content : bool =
00:22:54 verbose #25808 > >     run_target function
00:22:54 verbose #25809 > >         | Rust (Native) => fun () =>
00:22:54 verbose #25810 > >             if path |> file_exists |> not
00:22:54 verbose #25811 > >             then false
00:22:54 verbose #25812 > >             else
00:22:54 verbose #25813 > >                 inl existing_content = path |> read_all_text
00:22:54 verbose #25814 > >                 content = existing_content
00:22:54 verbose #25815 > >         | _ => fun () => null ()
00:22:54 verbose #25816 > 00:22:53   debug #1363 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f872f0645b809224850dac09830007017eb05ad61515df2f5143bebac8840ecc/main.spi
00:22:54 verbose #25817 > >
00:22:54 verbose #25818 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:54 verbose #25819 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:54 verbose #25820 > > │ ### write_all_text_exists                                                    │
00:22:54 verbose #25821 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:54 verbose #25822 > >
00:22:54 verbose #25823 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:54 verbose #25824 > > let write_all_text_exists path contents =
00:22:54 verbose #25825 > >     inl exists' = contents |> file_exists_content path
00:22:54 verbose #25826 > >     if not exists' then
00:22:54 verbose #25827 > >         inl dir = path |> get_directory_name
00:22:54 verbose #25828 > >         if dir |> directory_exists |> not
00:22:54 verbose #25829 > >         then dir |> create_dir |> ignore
00:22:54 verbose #25830 > >         contents |> write_all_text path
00:22:54 verbose #25831 > 00:22:54   debug #1364 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f3f608e1d486e6bb646cd0569c838fe53eb8f0261a0d5aa257e1aca9dec6a24b/main.spi
00:22:55 verbose #25832 > >
00:22:55 verbose #25833 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:55 verbose #25834 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:55 verbose #25835 > > │ ## fsharp                                                                    │
00:22:55 verbose #25836 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:55 verbose #25837 > >
00:22:55 verbose #25838 > > ── markdown ────────────────────────────────────────────────────────────────────
00:22:55 verbose #25839 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:22:55 verbose #25840 > > │ ### wait_for_file_access                                                     │
00:22:55 verbose #25841 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:22:55 verbose #25842 > >
00:22:55 verbose #25843 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:55 verbose #25844 > > inl wait_for_file_access access path =
00:22:55 verbose #25845 > >     run_target function
00:22:55 verbose #25846 > >         | Fsharp (Native) => fun () =>
00:22:55 verbose #25847 > >             inl file_access, file_share =
00:22:55 verbose #25848 > >                 access
00:22:55 verbose #25849 > >                 |> optionm'.default_value (AccessReadWrite, ShareRead)
00:22:55 verbose #25850 > >             let rec loop (retry : i64) : _ i64 =
00:22:55 verbose #25851 > >                 fun () =>
00:22:55 verbose #25852 > >                     try_unit
00:22:55 verbose #25853 > >                         fun () =>
00:22:55 verbose #25854 > >                             file_stream
00:22:55 verbose #25855 > >                                 path
00:22:55 verbose #25856 > >                                 ModeOpen
00:22:55 verbose #25857 > >                                 file_access
00:22:55 verbose #25858 > >                                 file_share
00:22:55 verbose #25859 > >                             |> use
00:22:55 verbose #25860 > >                             |> ignore
00:22:55 verbose #25861 > >                             retry |> return
00:22:55 verbose #25862 > >                         fun ex =>
00:22:55 verbose #25863 > >                             if retry > 0 && retry % 100i64 = 0 then
00:22:55 verbose #25864 > >                                 inl ex = ex |> sm'.format_exception
00:22:55 verbose #25865 > >                                 trace Debug
00:22:55 verbose #25866 > >                                     fun () => "file_system.wait_for_file_access"
00:22:55 verbose #25867 > >                                     fun () => { path = path |> get_file_name;
00:22:55 verbose #25868 > > retry ex }
00:22:55 verbose #25869 > >                             async.sleep 10i32 |> async.do
00:22:55 verbose #25870 > >                             loop (retry + 1) |> async.return_await
00:22:55 verbose #25871 > >                 |> async.new_async
00:22:55 verbose #25872 > >             loop 0
00:22:55 verbose #25873 > >         | _ => fun () => null ()
00:22:55 verbose #25874 > >
00:22:55 verbose #25875 > > inl wait_for_file_access_read path =
00:22:55 verbose #25876 > >     path
00:22:55 verbose #25877 > >     |> wait_for_file_access (Some (
00:22:55 verbose #25878 > >         AccessRead,
00:22:55 verbose #25879 > >         ShareRead
00:22:55 verbose #25880 > >     ))
00:22:55 verbose #25881 > 00:22:54   debug #1365 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b0b51a8d9102e252dced76e75906b7d771790da6527c851758ee47ba6736e8b3/main.spi
00:22:55 verbose #25882 > >
00:22:55 verbose #25883 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:22:55 verbose #25884 > > //// test
00:22:55 verbose #25885 > >
00:22:55 verbose #25886 > > inl lock_file path =
00:22:55 verbose #25887 > >     fun () =>
00:22:55 verbose #25888 > >         trace Debug (fun () => "_1") id
00:22:55 verbose #25889 > >         inl stream : file_stream' =
00:22:55 verbose #25890 > >             file_stream
00:22:55 verbose #25891 > >                 path
00:22:55 verbose #25892 > >                 ModeOpen
00:22:55 verbose #25893 > >                 AccessReadWrite
00:22:55 verbose #25894 > >                 ShareNone
00:22:55 verbose #25895 > >             |> use
00:22:55 verbose #25896 > >         trace Debug (fun () => "_2") id
00:22:55 verbose #25897 > >         async.sleep 2000 |> async.do
00:22:55 verbose #25898 > >         trace Debug (fun () => "_3") id
00:22:55 verbose #25899 > >         ($'!stream.Seek (0L, System.IO.SeekOrigin.Begin)' : i64) |> ignore
00:22:55 verbose #25900 > >         trace Debug (fun () => "_4") id
00:22:55 verbose #25901 > >         $'!stream.WriteByte' 49u8
00:22:55 verbose #25902 > >         trace Debug (fun () => "_5") id
00:22:55 verbose #25903 > >         stream |> $'_.Flush()'
00:22:55 verbose #25904 > >         trace Debug (fun () => "_6") id
00:22:55 verbose #25905 > >     |> async.new_async
00:22:55 verbose #25906 > >
00:22:55 verbose #25907 > > types ()
00:22:55 verbose #25908 > >
00:22:55 verbose #25909 > > inl file_name = "test.txt"
00:22:55 verbose #25910 > > inl text = "0"
00:22:55 verbose #25911 > >
00:22:55 verbose #25912 > > inl temp_dir, disposable =
00:22:55 verbose #25913 > >     (file_name, text)
00:22:55 verbose #25914 > >     |> sm'.format_debug
00:22:55 verbose #25915 > >     |> crypto.hash_text
00:22:55 verbose #25916 > >     |> create_temp_dir'
00:22:55 verbose #25917 > > disposable |> use |> ignore
00:22:55 verbose #25918 > > inl path = temp_dir </> file_name
00:22:55 verbose #25919 > >
00:22:55 verbose #25920 > > fun () =>
00:22:55 verbose #25921 > >     trace Debug (fun () => "1") id
00:22:55 verbose #25922 > >     text |> write_all_text_async path |> async.do
00:22:55 verbose #25923 > >     trace Debug (fun () => "2") id
00:22:55 verbose #25924 > >     inl child = path |> lock_file |> async.start_child |> async.let'
00:22:55 verbose #25925 > >     trace Debug (fun () => "3") id
00:22:55 verbose #25926 > >     async.sleep 1 |> async.do
00:22:55 verbose #25927 > >     trace Debug (fun () => "4") id
00:22:55 verbose #25928 > >     inl retries = path |> wait_for_file_access None |> async.let'
00:22:55 verbose #25929 > >     trace Debug (fun () => "5") id
00:22:55 verbose #25930 > >     inl text = path |> read_all_text_async |> async.let'
00:22:55 verbose #25931 > >     trace Debug (fun () => "6") id
00:22:55 verbose #25932 > >     child |> async.do
00:22:55 verbose #25933 > >     trace Debug (fun () => "7") id
00:22:55 verbose #25934 > >     (retries, text) |> return
00:22:55 verbose #25935 > > |> async.new_async_unit
00:22:55 verbose #25936 > > |> async.run_with_timeout 3000
00:22:55 verbose #25937 > > |> function
00:22:55 verbose #25938 > >     | Some ((retries : i64), text) =>
00:22:55 verbose #25939 > >         retries
00:22:55 verbose #25940 > >         |> _assert_between
00:22:55 verbose #25941 > >             (if platform.is_windows () then 50 else 100)
00:22:55 verbose #25942 > >             (if platform.is_windows () then 180 else 200)
00:22:55 verbose #25943 > >
00:22:55 verbose #25944 > >         text |> _assert_eq (join "1")
00:22:55 verbose #25945 > >
00:22:55 verbose #25946 > >         true
00:22:55 verbose #25947 > >     | _ => false
00:22:55 verbose #25948 > > |> _assert_eq true
00:22:55 verbose #25949 > 00:22:55   debug #1366 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/397f789bcece4fe73611d3e693260d54a34d375f7f393595a7411a85aae483b5/main.spi
00:23:00 verbose #25950 > >
00:23:00 verbose #25951 > > ╭─[ 4.85s - stdout ]───────────────────────────────────────────────────────────╮
00:23:00 verbose #25952 > > │ 00:00:00   debug #1 1                                                   │
00:23:00 verbose #25953 > > │ 00:00:00   debug #2 2                                                   │
00:23:00 verbose #25954 > > │ 00:00:00   debug #3 3                                                   │
00:23:00 verbose #25955 > > │ 00:00:00   debug #4 _1                                                  │
00:23:00 verbose #25956 > > │ 00:00:00   debug #5 _2                                                  │
00:23:00 verbose #25957 > > │ 00:00:00   debug #6 4                                                   │
00:23:00 verbose #25958 > > │ 00:00:01   debug #7 file_system.wait_for_file_access / { path =         │
00:23:00 verbose #25959 > > │ test.txt; retry = 100; ex = System.IO.IOException: The process cannot access │
00:23:00 verbose #25960 > > │ the file                                                                     │
00:23:00 verbose #25961 > > │ 'C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\dotnet-repl\613830ed-0 │
00:23:00 verbose #25962 > > │ 16e-d959-8d21-02dc1c63c252\test.txt' because it is being used by another     │
00:23:00 verbose #25963 > > │ process. }                                                                   │
00:23:00 verbose #25964 > > │ 00:00:02   debug #8 _3                                                  │
00:23:00 verbose #25965 > > │ 00:00:02   debug #9 _4                                                  │
00:23:00 verbose #25966 > > │ 00:00:02   debug #10 _5                                                 │
00:23:00 verbose #25967 > > │ 00:00:02   debug #11 _6                                                 │
00:23:00 verbose #25968 > > │ 00:00:02   debug #12 5                                                  │
00:23:00 verbose #25969 > > │ 00:00:02   debug #13 6                                                  │
00:23:00 verbose #25970 > > │ 00:00:02   debug #14 7                                                  │
00:23:00 verbose #25971 > > │ assert_between / actual: 128L / expected: struct (50L, 180L)                 │
00:23:00 verbose #25972 > > │ assert_eq / actual: "1" / expected: "1"                                      │
00:23:00 verbose #25973 > > │ assert_eq / actual: true / expected: true                                    │
00:23:00 verbose #25974 > > │                                                                              │
00:23:00 verbose #25975 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:00 verbose #25976 > >
00:23:00 verbose #25977 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:00 verbose #25978 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:00 verbose #25979 > > │ ### read_all_text_retry_async                                                │
00:23:00 verbose #25980 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:00 verbose #25981 > >
00:23:00 verbose #25982 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:00 verbose #25983 > > inl read_all_text_retry_async full_path : async.async (optionm'.option' string)
00:23:00 verbose #25984 > > =
00:23:00 verbose #25985 > >     run_target function
00:23:00 verbose #25986 > >         | Fsharp (Native) => fun () =>
00:23:00 verbose #25987 > >             let rec loop (retry : i64) =
00:23:00 verbose #25988 > >                 fun () =>
00:23:00 verbose #25989 > >                     try_unit
00:23:00 verbose #25990 > >                         fun () =>
00:23:00 verbose #25991 > >                             if retry > 0
00:23:00 verbose #25992 > >                             then
00:23:00 verbose #25993 > >                                 full_path
00:23:00 verbose #25994 > >                                 |> wait_for_file_access_read
00:23:00 verbose #25995 > >                                 |> async.run_with_timeout_async 1000
00:23:00 verbose #25996 > >                                 |> async.ignore
00:23:00 verbose #25997 > >                                 |> async.do
00:23:00 verbose #25998 > >                             full_path |> read_all_text_async |> async.map (Some
00:23:00 verbose #25999 > > >> optionm'.box) |> async.return_await
00:23:00 verbose #26000 > >                         fun ex =>
00:23:00 verbose #26001 > >                             fix_condition
00:23:00 verbose #26002 > >                                 fun () => retry <> 0
00:23:00 verbose #26003 > >                                 fun () =>
00:23:00 verbose #26004 > >                                     inl ex = ex |> sm'.format_exception
00:23:00 verbose #26005 > >                                     trace Debug
00:23:00 verbose #26006 > >                                         fun () => $'"read_all_text_retry_async"'
00:23:00 verbose #26007 > >                                         fun () => { retry ex }
00:23:00 verbose #26008 > >                                     (None : _ string) |> optionm'.box |> return
00:23:00 verbose #26009 > >                                 fun () =>
00:23:00 verbose #26010 > >                                     loop (retry + 1) |> async.return_await
00:23:00 verbose #26011 > >                 |> async.new_async
00:23:00 verbose #26012 > >             loop 0
00:23:00 verbose #26013 > >         | _ => fun () => null ()
00:23:00 verbose #26014 > 00:22:59   debug #1367 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/444993a441bb44b95fb34b3c0d8665d1ffbe25ec5c5558eb45dc73f0090c184d/main.spi
00:23:00 verbose #26015 > >
00:23:00 verbose #26016 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:00 verbose #26017 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:00 verbose #26018 > > │ ### move_file_async                                                          │
00:23:00 verbose #26019 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:00 verbose #26020 > >
00:23:00 verbose #26021 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:00 verbose #26022 > > inl move_file_async new_path old_path : _ i64 =
00:23:00 verbose #26023 > >     run_target function
00:23:00 verbose #26024 > >         | Fsharp (Native) => fun () =>
00:23:00 verbose #26025 > >             let rec loop (retry : i64) =
00:23:00 verbose #26026 > >                 fun () =>
00:23:00 verbose #26027 > >                     try_unit
00:23:00 verbose #26028 > >                         fun () =>
00:23:00 verbose #26029 > >                             old_path |> file_move new_path
00:23:00 verbose #26030 > >                             return retry
00:23:00 verbose #26031 > >                         fun ex =>
00:23:00 verbose #26032 > >                             if retry % 100 = 0 then
00:23:00 verbose #26033 > >
00:23:00 verbose #26034 > >                                 trace Warning
00:23:00 verbose #26035 > >                                     fun () => "move_file_async"
00:23:00 verbose #26036 > >                                     fun () => {
00:23:00 verbose #26037 > >                                         old_path = old_path |> get_file_name
00:23:00 verbose #26038 > >                                         new_path = new_path |> get_file_name
00:23:00 verbose #26039 > >                                         ex
00:23:00 verbose #26040 > >                                     }
00:23:00 verbose #26041 > >                             async.sleep 10 |> async.do
00:23:00 verbose #26042 > >                             loop (retry + 1) |> async.return_await
00:23:00 verbose #26043 > >                 |> async.new_async_unit
00:23:00 verbose #26044 > >             loop 0
00:23:00 verbose #26045 > >         | _ => fun () => null ()
00:23:01 verbose #26046 > 00:23:00   debug #1368 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5da26c70ab27973d2202889ef6a6642a6f0d6d285533a1ee254e111bcee21367/main.spi
00:23:01 verbose #26047 > >
00:23:01 verbose #26048 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:01 verbose #26049 > > //// test
00:23:01 verbose #26050 > >
00:23:01 verbose #26051 > > inl lock_file path =
00:23:01 verbose #26052 > >     fun () =>
00:23:01 verbose #26053 > >         trace Debug (fun () => "_1") id
00:23:01 verbose #26054 > >         file_stream
00:23:01 verbose #26055 > >             path
00:23:01 verbose #26056 > >             ModeOpen
00:23:01 verbose #26057 > >             AccessReadWrite
00:23:01 verbose #26058 > >             ShareNone
00:23:01 verbose #26059 > >         |> use
00:23:01 verbose #26060 > >         |> ignore
00:23:01 verbose #26061 > >         trace Debug (fun () => "_2") id
00:23:01 verbose #26062 > >         async.sleep 2000 |> async.do
00:23:01 verbose #26063 > >         trace Debug (fun () => "_3") id
00:23:01 verbose #26064 > >     |> async.new_async
00:23:01 verbose #26065 > >
00:23:01 verbose #26066 > > types ()
00:23:01 verbose #26067 > > fun () =>
00:23:01 verbose #26068 > >     inl file_name = "test.txt"
00:23:01 verbose #26069 > >     inl text = "0"
00:23:01 verbose #26070 > >
00:23:01 verbose #26071 > >     inl temp_dir, disposable =
00:23:01 verbose #26072 > >         (file_name, text)
00:23:01 verbose #26073 > >         |> sm'.format_debug
00:23:01 verbose #26074 > >         |> crypto.hash_text
00:23:01 verbose #26075 > >         |> create_temp_dir'
00:23:01 verbose #26076 > >     disposable |> use |> ignore
00:23:01 verbose #26077 > >     let path = temp_dir </> file_name
00:23:01 verbose #26078 > >     let new_path = temp_dir </> "test2.txt"
00:23:01 verbose #26079 > >
00:23:01 verbose #26080 > >     trace Debug (fun () => "1") id
00:23:01 verbose #26081 > >     text |> write_all_text_async path |> async.do
00:23:01 verbose #26082 > >     trace Debug (fun () => "2") id
00:23:01 verbose #26083 > >     inl child = lock_file path |> async.start_child |> async.let'
00:23:01 verbose #26084 > >     trace Debug (fun () => "3") id
00:23:01 verbose #26085 > >     async.sleep 1 |> async.do
00:23:01 verbose #26086 > >     trace Debug (fun () => "4") id
00:23:01 verbose #26087 > >     inl retries1 = path |> move_file_async new_path |> async.let'
00:23:01 verbose #26088 > >     trace Debug (fun () => "5") id
00:23:01 verbose #26089 > >     inl retries2 = new_path |> wait_for_file_access None |> async.let'
00:23:01 verbose #26090 > >     trace Debug (fun () => "6") id
00:23:01 verbose #26091 > >     inl text = new_path |> read_all_text_async |> async.let'
00:23:01 verbose #26092 > >     trace Debug (fun () => "7") id
00:23:01 verbose #26093 > >     child |> async.do
00:23:01 verbose #26094 > >     trace Debug (fun () => "8") id
00:23:01 verbose #26095 > >     (retries1, retries2, text) |> return
00:23:01 verbose #26096 > > |> async.new_async_unit
00:23:01 verbose #26097 > > |> async.run_with_timeout 3000
00:23:01 verbose #26098 > > |> function
00:23:01 verbose #26099 > >     | Some (retries1, retries2, text) =>
00:23:01 verbose #26100 > >         retries1
00:23:01 verbose #26101 > >         |> _assert_between
00:23:01 verbose #26102 > >             (if platform.is_windows () then 50i64 else 0)
00:23:01 verbose #26103 > >             (if platform.is_windows () then 200 else 0)
00:23:01 verbose #26104 > >
00:23:01 verbose #26105 > >         retries2
00:23:01 verbose #26106 > >         |> _assert_between
00:23:01 verbose #26107 > >             (if platform.is_windows () then 0i64 else 100)
00:23:01 verbose #26108 > >             (if platform.is_windows () then 0 else 200)
00:23:01 verbose #26109 > >
00:23:01 verbose #26110 > >         text |> _assert_eq (join "0")
00:23:01 verbose #26111 > >
00:23:01 verbose #26112 > >         true
00:23:01 verbose #26113 > >     | _ => false
00:23:01 verbose #26114 > > |> _assert_eq true
00:23:01 verbose #26115 > 00:23:00   debug #1369 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/07c410c5de51104d3a112ac6d0f97b818f12a5a79944325cfdffb7cd6cb550f3/main.spi
00:23:06 verbose #26116 > >
00:23:06 verbose #26117 > > ╭─[ 4.88s - stdout ]───────────────────────────────────────────────────────────╮
00:23:06 verbose #26118 > > │ 00:00:00   debug #1 1                                                   │
00:23:06 verbose #26119 > > │ 00:00:00   debug #2 2                                                   │
00:23:06 verbose #26120 > > │ 00:00:00   debug #3 3                                                   │
00:23:06 verbose #26121 > > │ 00:00:00   debug #4 _1                                                  │
00:23:06 verbose #26122 > > │ 00:00:00   debug #5 _2                                                  │
00:23:06 verbose #26123 > > │ 00:00:00   debug #6 4                                                   │
00:23:06 verbose #26124 > > │ 00:00:00 warning #7 move_file_async / { old_path = test.txt; new_path = │
00:23:06 verbose #26125 > > │ test2.txt; ex = System.IO.IOException: The process cannot access the file    │
00:23:06 verbose #26126 > > │ because it is being used by another process.                                 │
00:23:06 verbose #26127 > > │    at System.IO.FileSystem.MoveFile(String sourceFullPath, String            │
00:23:06 verbose #26128 > > │ destFullPath, Boolean overwrite)                                             │
00:23:06 verbose #26129 > > │    at FSI_0115.method46@5716-12.Invoke(Unit unitVar)                         │
00:23:06 verbose #26130 > > │    at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[               │
00:23:06 verbose #26131 > > │ T,TResult](AsyncActivation`1 ctxt, TResult result1, FSharpFunc`2 part2) in   │
00:23:06 verbose #26132 > > │ D:\a\_work\1\s\src\FSharp.Core\async.fs:line 510                             │
00:23:06 verbose #26133 > > │    at Microsoft.FSharp.Control.Trampoline.Execute(FSharpFunc`2 firstAction)  │
00:23:06 verbose #26134 > > │ in D:\a\_work\1\s\src\FSharp.Core\async.fs:line 112 }                        │
00:23:06 verbose #26135 > > │ 00:00:01 warning #8 move_file_async / { old_path = test.txt; new_path = │
00:23:06 verbose #26136 > > │ test2.txt; ex = System.IO.IOException: The process cannot access the file    │
00:23:06 verbose #26137 > > │ because it is being used by another process.                                 │
00:23:06 verbose #26138 > > │    at System.IO.FileSystem.MoveFile(String sourceFullPath, String            │
00:23:06 verbose #26139 > > │ destFullPath, Boolean overwrite)                                             │
00:23:06 verbose #26140 > > │    at FSI_0115.method46@5716-12.Invoke(Unit unitVar)                         │
00:23:06 verbose #26141 > > │    at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[               │
00:23:06 verbose #26142 > > │ T,TResult](AsyncActivation`1 ctxt, TResult result1, FSharpFunc`2 part2) in   │
00:23:06 verbose #26143 > > │ D:\a\_work\1\s\src\FSharp.Core\async.fs:line 510                             │
00:23:06 verbose #26144 > > │    at Microsoft.FSharp.Control.Trampoline.Execute(FSharpFunc`2 firstAction)  │
00:23:06 verbose #26145 > > │ in D:\a\_work\1\s\src\FSharp.Core\async.fs:line 112 }                        │
00:23:06 verbose #26146 > > │ 00:00:01   debug #9 _3                                                  │
00:23:06 verbose #26147 > > │ 00:00:02   debug #10 5                                                  │
00:23:06 verbose #26148 > > │ 00:00:02   debug #11 6                                                  │
00:23:06 verbose #26149 > > │ 00:00:02   debug #12 7                                                  │
00:23:06 verbose #26150 > > │ 00:00:02   debug #13 8                                                  │
00:23:06 verbose #26151 > > │ assert_between / actual: 128L / expected: struct (50L, 200L)                 │
00:23:06 verbose #26152 > > │ assert_between / actual: 0L / expected: struct (0L, 0L)                      │
00:23:06 verbose #26153 > > │ assert_eq / actual: "0" / expected: "0"                                      │
00:23:06 verbose #26154 > > │ assert_eq / actual: true / expected: true                                    │
00:23:06 verbose #26155 > > │                                                                              │
00:23:06 verbose #26156 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:06 verbose #26157 > >
00:23:06 verbose #26158 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:06 verbose #26159 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:06 verbose #26160 > > │ ### delete_file_async                                                        │
00:23:06 verbose #26161 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:06 verbose #26162 > >
00:23:06 verbose #26163 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:06 verbose #26164 > > inl delete_file_async path : _ i64 =
00:23:06 verbose #26165 > >     run_target function
00:23:06 verbose #26166 > >         | Fsharp (Native) => fun () =>
00:23:06 verbose #26167 > >             let rec loop (retry : i64) =
00:23:06 verbose #26168 > >                 fun () =>
00:23:06 verbose #26169 > >                     try_unit
00:23:06 verbose #26170 > >                         fun () =>
00:23:06 verbose #26171 > >                             path |> file_delete
00:23:06 verbose #26172 > >                             return retry
00:23:06 verbose #26173 > >                         fun ex =>
00:23:06 verbose #26174 > >                             if retry % 100 = 0 then
00:23:06 verbose #26175 > >                                 trace Warning
00:23:06 verbose #26176 > >                                     fun () => "delete_file_async"
00:23:06 verbose #26177 > >                                     fun () => { path = path |> get_file_name; ex
00:23:06 verbose #26178 > > = ex |> sm'.format_exception }
00:23:06 verbose #26179 > >                             async.sleep 10 |> async.do
00:23:06 verbose #26180 > >                             loop (retry + 1) |> async.return_await
00:23:06 verbose #26181 > >                 |> async.new_async
00:23:06 verbose #26182 > >             loop 0
00:23:06 verbose #26183 > >         | _ => fun () => null ()
00:23:06 verbose #26184 > 00:23:05   debug #1370 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8daebe16c58068773563769643c301175d73d6d26ff36b8eee635c78be0c97b1/main.spi
00:23:06 verbose #26185 > >
00:23:06 verbose #26186 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:06 verbose #26187 > > //// test
00:23:06 verbose #26188 > >
00:23:06 verbose #26189 > > inl lock_file path =
00:23:06 verbose #26190 > >     fun () =>
00:23:06 verbose #26191 > >         trace Debug (fun () => "_1") id
00:23:06 verbose #26192 > >         file_stream
00:23:06 verbose #26193 > >             path
00:23:06 verbose #26194 > >             ModeOpen
00:23:06 verbose #26195 > >             AccessReadWrite
00:23:06 verbose #26196 > >             ShareNone
00:23:06 verbose #26197 > >         |> use
00:23:06 verbose #26198 > >         |> ignore
00:23:06 verbose #26199 > >         trace Debug (fun () => "_2") id
00:23:06 verbose #26200 > >         async.sleep 2000 |> async.do
00:23:06 verbose #26201 > >         trace Debug (fun () => "_3") id
00:23:06 verbose #26202 > >     |> async.new_async
00:23:06 verbose #26203 > >
00:23:06 verbose #26204 > > types ()
00:23:06 verbose #26205 > > fun () =>
00:23:06 verbose #26206 > >     inl file_name = "test.txt"
00:23:06 verbose #26207 > >     inl text = "0"
00:23:06 verbose #26208 > >
00:23:06 verbose #26209 > >     inl temp_dir, disposable =
00:23:06 verbose #26210 > >         (file_name, text)
00:23:06 verbose #26211 > >         |> sm'.format_debug
00:23:06 verbose #26212 > >         |> crypto.hash_text
00:23:06 verbose #26213 > >         |> create_temp_dir'
00:23:06 verbose #26214 > >     disposable |> use |> ignore
00:23:06 verbose #26215 > >     inl path = temp_dir </> file_name
00:23:06 verbose #26216 > >
00:23:06 verbose #26217 > >     trace Debug (fun () => "1") id
00:23:06 verbose #26218 > >     text |> write_all_text_async path |> async.do
00:23:06 verbose #26219 > >     trace Debug (fun () => "2") id
00:23:06 verbose #26220 > >     inl child = lock_file path |> async.start_child |> async.let'
00:23:06 verbose #26221 > >     trace Debug (fun () => "3") id
00:23:06 verbose #26222 > >     async.sleep 1 |> async.do
00:23:06 verbose #26223 > >     trace Debug (fun () => "4") id
00:23:06 verbose #26224 > >     inl retries = delete_file_async path |> async.let'
00:23:06 verbose #26225 > >     trace Debug (fun () => "5") id
00:23:06 verbose #26226 > >     child |> async.do
00:23:06 verbose #26227 > >     trace Debug (fun () => "6") id
00:23:06 verbose #26228 > >     return retries
00:23:06 verbose #26229 > > |> async.new_async_unit
00:23:06 verbose #26230 > > |> async.run_with_timeout 3000
00:23:06 verbose #26231 > > |> function
00:23:06 verbose #26232 > >     | Some (retries : i64) =>
00:23:06 verbose #26233 > >         retries
00:23:06 verbose #26234 > >         |> _assert_between
00:23:06 verbose #26235 > >             (if platform.is_windows () then 50 else 0)
00:23:06 verbose #26236 > >             (if platform.is_windows () then 180 else 0)
00:23:06 verbose #26237 > >
00:23:06 verbose #26238 > >         true
00:23:06 verbose #26239 > >     | _ => false
00:23:06 verbose #26240 > > |> _assert_eq true
00:23:06 verbose #26241 > 00:23:06   debug #1371 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fb37191e193ee40b37c95ed2375bd668ea1bbf98ad350cbb3b05affdc8288dee/main.spi
00:23:11 verbose #26242 > >
00:23:11 verbose #26243 > > ╭─[ 4.84s - stdout ]───────────────────────────────────────────────────────────╮
00:23:11 verbose #26244 > > │ 00:00:00   debug #1 1                                                   │
00:23:11 verbose #26245 > > │ 00:00:00   debug #2 2                                                   │
00:23:11 verbose #26246 > > │ 00:00:00   debug #3 3                                                   │
00:23:11 verbose #26247 > > │ 00:00:00   debug #4 _1                                                  │
00:23:11 verbose #26248 > > │ 00:00:00   debug #5 _2                                                  │
00:23:11 verbose #26249 > > │ 00:00:00   debug #6 4                                                   │
00:23:11 verbose #26250 > > │ 00:00:00 warning #7 delete_file_async / { path = test.txt; ex =         │
00:23:11 verbose #26251 > > │ System.IO.IOException: The process cannot access the file                    │
00:23:11 verbose #26252 > > │ 'C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\dotnet-repl\613830ed-0 │
00:23:11 verbose #26253 > > │ 16e-d959-8d21-02dc1c63c252\test.txt' because it is being used by another     │
00:23:11 verbose #26254 > > │ process. }                                                                   │
00:23:11 verbose #26255 > > │ 00:00:01 warning #8 delete_file_async / { path = test.txt; ex =         │
00:23:11 verbose #26256 > > │ System.IO.IOException: The process cannot access the file                    │
00:23:11 verbose #26257 > > │ 'C:\Users\i574n\AppData\Local\Temp\!create_temp_path_\dotnet-repl\613830ed-0 │
00:23:11 verbose #26258 > > │ 16e-d959-8d21-02dc1c63c252\test.txt' because it is being used by another     │
00:23:11 verbose #26259 > > │ process. }                                                                   │
00:23:11 verbose #26260 > > │ 00:00:02   debug #9 _3                                                  │
00:23:11 verbose #26261 > > │ 00:00:02   debug #10 5                                                  │
00:23:11 verbose #26262 > > │ 00:00:02   debug #11 6                                                  │
00:23:11 verbose #26263 > > │ assert_between / actual: 128L / expected: struct (50L, 180L)                 │
00:23:11 verbose #26264 > > │ assert_eq / actual: true / expected: true                                    │
00:23:11 verbose #26265 > > │                                                                              │
00:23:11 verbose #26266 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:11 verbose #26267 > >
00:23:11 verbose #26268 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:11 verbose #26269 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:11 verbose #26270 > > │ ## main                                                                      │
00:23:11 verbose #26271 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:11 verbose #26272 > >
00:23:11 verbose #26273 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:11 verbose #26274 > > inl main () =
00:23:11 verbose #26275 > >     types ()
00:23:11 verbose #26276 > >     init_trace_state None
00:23:11 verbose #26277 > >     $'let delete_directory_async x = !delete_directory_async x' : ()
00:23:11 verbose #26278 > >     $'let wait_for_file_access x = !wait_for_file_access x' : ()
00:23:11 verbose #26279 > >     $'let wait_for_file_access_read x = !wait_for_file_access_read x' : ()
00:23:11 verbose #26280 > >     $'let read_all_text_async x = !read_all_text_async x' : ()
00:23:11 verbose #26281 > >     $'let file_exists_content x = !file_exists_content x' : ()
00:23:11 verbose #26282 > >     $'let write_all_text_async x = !write_all_text_async x' : ()
00:23:11 verbose #26283 > >     $'let write_all_text_exists x = !write_all_text_exists_async x' : ()
00:23:11 verbose #26284 > >     $'let delete_file_async x = !delete_file_async x' : ()
00:23:11 verbose #26285 > >     $'let move_file_async x = !move_file_async x' : ()
00:23:11 verbose #26286 > >     $'let read_all_text_retry_async x = !read_all_text_retry_async x' : ()
00:23:11 verbose #26287 > >     $'let create_temp_path () = !create_temp_path ()' : ()
00:23:11 verbose #26288 > >     $'let create_temp_dir () = !create_temp_dir ()' : ()
00:23:11 verbose #26289 > >     $'let create_temp_dir\' x = !create_temp_dir' x' : ()
00:23:11 verbose #26290 > >     $'let get_source_directory () = !get_source_directory ()' : ()
00:23:11 verbose #26291 > >     $'let normalize_path x = !normalize_path x' : ()
00:23:11 verbose #26292 > >     $'let new_file_uri x = !new_file_uri x' : ()
00:23:11 verbose #26293 > >     $'let get_workspace_root () = !get_workspace_root ()' : ()
00:23:11 verbose #26294 > >     $'let init_trace_file x = !init_trace_file x' : ()
00:23:11 verbose #26295 > >     inl combine x = (</>) x
00:23:11 verbose #26296 > >     $'let (</>) x = !combine x' : ()
00:23:11 verbose #26297 > 00:23:11   debug #1372 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/30dc822fd5eacab0cdb85b997549d08b62fa8c87ec51f83fb2e730dcc5d5d77f/main.spi
00:23:15 verbose #26298 > 00:01:37 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 102230 }
00:23:15 verbose #26299 > 00:01:37   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/file_system.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/file_system.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:23:18 verbose #26300 > 00:01:40 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/file_system.dib.ipynb to html
00:23:18 verbose #26301 > 00:01:40 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:23:18 verbose #26302 > 00:01:40 verbose #7 !   validate(nb)
00:23:21 verbose #26303 > 00:01:43 verbose #8 ! [NbConvertApp] Writing 588126 bytes to c:\home\git\polyglot\lib\spiral\file_system.dib.html
00:23:22 verbose #26304 > 00:01:43 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 653 }
00:23:22 verbose #26305 > 00:01:43   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 653 }
00:23:22 verbose #26306 > 00:01:43   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/file_system.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/file_system.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:23:23 verbose #26307 > 00:01:45 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:23:23 verbose #26308 > 00:01:45   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:23:23 verbose #26309 > 00:01:45   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 102942 }
00:23:23   debug #26310 runtime.execute_with_options_async / { exit_code = 0; output_length = 109954 }
00:23:23   debug #34 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path file_system.dib --retries 3
00:23:23   debug #26311 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path networking.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:23:23 verbose #26312 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "networking.dib", "--retries", "3"])) }
00:23:23 verbose #26313 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/lib/spiral/networking.dib", "--output-path", "c:/home/git/polyglot/lib/spiral/networking.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/lib/spiral/networking.dib" --output-path "c:/home/git/polyglot/lib/spiral/networking.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:23:26 verbose #26314 > >
00:23:26 verbose #26315 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:26 verbose #26316 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:26 verbose #26317 > > │ # networking                                                                 │
00:23:26 verbose #26318 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:32 verbose #26319 > >
00:23:32 verbose #26320 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:32 verbose #26321 > > open rust_operators
00:23:32 verbose #26322 > 00:23:32   debug #1373 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0d9bd8e5bb71a8e1d983506a46e54fb8c8e6cf2d0bd973135d4cdd580c5f6d39/main.spi
00:23:33 verbose #26323 > >
00:23:33 verbose #26324 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:33 verbose #26325 > > //// test
00:23:33 verbose #26326 > >
00:23:33 verbose #26327 > > open testing
00:23:33 verbose #26328 > 00:23:33   debug #1374 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d06211d48c36e09624381aad71e69f817df1a545af31c21067514d4d391bdd05/main.spi
00:23:33 verbose #26329 > >
00:23:33 verbose #26330 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:33 verbose #26331 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:33 verbose #26332 > > │ ## types                                                                     │
00:23:33 verbose #26333 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:33 verbose #26334 > >
00:23:33 verbose #26335 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:33 verbose #26336 > > inl types () =
00:23:33 verbose #26337 > >     backend_switch {
00:23:33 verbose #26338 > >         Fsharp = fun () =>
00:23:33 verbose #26339 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:23:33 verbose #26340 > > Fable.Core.Emit(\"reqwest_wasm::Error\")>]]\n#endif\ntype reqwest_Error = class
00:23:33 verbose #26341 > > end"
00:23:33 verbose #26342 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:23:33 verbose #26343 > > Fable.Core.Emit(\"reqwest_wasm::RequestBuilder\")>]]\n#endif\ntype
00:23:33 verbose #26344 > > reqwest_RequestBuilder = class end"
00:23:33 verbose #26345 > >             global "#if FABLE_COMPILER\n[[<Fable.Core.Erase;
00:23:33 verbose #26346 > > Fable.Core.Emit(\"reqwest_wasm::Response\")>]]\n#endif\ntype reqwest_Response =
00:23:33 verbose #26347 > > class end"
00:23:33 verbose #26348 > >         Python = fun () => ()
00:23:33 verbose #26349 > >     }
00:23:34 verbose #26350 > 00:23:33   debug #1375 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7b0c90647ca27a83c088c94f1b5cb7fdaffbf68c968332357935aaf263f4e512/main.spi
00:23:34 verbose #26351 > >
00:23:34 verbose #26352 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:34 verbose #26353 > > inl types () =
00:23:34 verbose #26354 > >     types ()
00:23:34 verbose #26355 > >     env.types ()
00:23:34 verbose #26356 > >     rust.types ()
00:23:34 verbose #26357 > >     sm'.types ()
00:23:34 verbose #26358 > 00:23:33   debug #1376 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/18a7ad07c55758490ae5da679d624de153e41516f5ab3f714b30cce557261999/main.spi
00:23:34 verbose #26359 > >
00:23:34 verbose #26360 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:34 verbose #26361 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:34 verbose #26362 > > │ ## rust                                                                      │
00:23:34 verbose #26363 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:34 verbose #26364 > >
00:23:34 verbose #26365 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:34 verbose #26366 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:34 verbose #26367 > > │ ### reqwest_response                                                         │
00:23:34 verbose #26368 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:34 verbose #26369 > >
00:23:34 verbose #26370 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:34 verbose #26371 > > nominal reqwest_response = $'reqwest_Response'
00:23:34 verbose #26372 > 00:23:34   debug #1377 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7e0b7f8e56d4eb25e4f688870967b37595c24424af1f177972d29a88a8d23a83/main.spi
00:23:35 verbose #26373 > >
00:23:35 verbose #26374 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:35 verbose #26375 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:35 verbose #26376 > > │ ### reqwest_error                                                            │
00:23:35 verbose #26377 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:35 verbose #26378 > >
00:23:35 verbose #26379 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:35 verbose #26380 > > nominal reqwest_error = $'reqwest_Error'
00:23:35 verbose #26381 > 00:23:34   debug #1378 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e50f7fd8e59336286bbf867ef5089c440f62dcad64ba529fa890a99d3c8e0c70/main.spi
00:23:35 verbose #26382 > >
00:23:35 verbose #26383 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:35 verbose #26384 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:35 verbose #26385 > > │ ### request_builder                                                          │
00:23:35 verbose #26386 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:35 verbose #26387 > >
00:23:35 verbose #26388 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:35 verbose #26389 > > nominal request_builder = $'reqwest_RequestBuilder'
00:23:35 verbose #26390 > 00:23:35   debug #1379 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e068eec4b5f272c929235c88dbc98ac6519fa3e7863601fdc88ba568e5628239/main.spi
00:23:35 verbose #26391 > >
00:23:35 verbose #26392 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:35 verbose #26393 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:35 verbose #26394 > > │ ### request_type                                                             │
00:23:35 verbose #26395 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:35 verbose #26396 > >
00:23:35 verbose #26397 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:35 verbose #26398 > > union request_type =
00:23:35 verbose #26399 > >     | Get
00:23:35 verbose #26400 > >     | Post
00:23:36 verbose #26401 > 00:23:35   debug #1380 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/608b030cf7035cf6a09b46737065194119baea4c48a9e64475ba525b02e0e12d/main.spi
00:23:36 verbose #26402 > >
00:23:36 verbose #26403 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:36 verbose #26404 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:36 verbose #26405 > > │ ### request                                                                  │
00:23:36 verbose #26406 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:36 verbose #26407 > >
00:23:36 verbose #26408 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:36 verbose #26409 > > type request =
00:23:36 verbose #26410 > >     {
00:23:36 verbose #26411 > >         url : string
00:23:36 verbose #26412 > >         request_type : request_type
00:23:36 verbose #26413 > >         body : string
00:23:36 verbose #26414 > >         json : bool
00:23:36 verbose #26415 > >         auto_refresh : bool
00:23:36 verbose #26416 > >     }
00:23:36 verbose #26417 > 00:23:35   debug #1381 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6baeceff07d0e1d5f5b8b82f4ba5b40da6b570d650b02b5ec8579c141b7472e1/main.spi
00:23:36 verbose #26418 > >
00:23:36 verbose #26419 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:36 verbose #26420 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:36 verbose #26421 > > │ ### new_request_get                                                          │
00:23:36 verbose #26422 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:36 verbose #26423 > >
00:23:36 verbose #26424 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:36 verbose #26425 > > inl new_request_get (url : string) : request_builder =
00:23:36 verbose #26426 > >     inl url = join url
00:23:36 verbose #26427 > >     inl url = url |> sm'.to_std_string
00:23:36 verbose #26428 > >     inl url = join url
00:23:36 verbose #26429 > >     !\($'"reqwest_wasm::Client::builder().build().map_err(|err|
00:23:36 verbose #26430 > > err.to_string())?.get(!url)"')
00:23:36 verbose #26431 > 00:23:36   debug #1382 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/51f13d8bb2e7b0f99c0e91584192544fc1edaf0b85fa51b09c5b1cae56e1055e/main.spi
00:23:36 verbose #26432 > >
00:23:36 verbose #26433 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:36 verbose #26434 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:36 verbose #26435 > > │ ### new_request_post                                                         │
00:23:36 verbose #26436 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:36 verbose #26437 > >
00:23:36 verbose #26438 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:36 verbose #26439 > > inl new_request_post (url : string) : request_builder =
00:23:36 verbose #26440 > >     inl url = join url
00:23:36 verbose #26441 > >     inl url = url |> sm'.to_std_string
00:23:36 verbose #26442 > >     inl url = join url
00:23:36 verbose #26443 > >     !\($'"reqwest_wasm::Client::builder().build().map_err(|err|
00:23:36 verbose #26444 > > err.to_string())?.post(!url)"')
00:23:37 verbose #26445 > 00:23:36   debug #1383 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/24b9f5926fb030d9f77920f2438e38d64f276d132b16f2c3fb8e3d6f85c4997d/main.spi
00:23:37 verbose #26446 > >
00:23:37 verbose #26447 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:37 verbose #26448 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:37 verbose #26449 > > │ ### request_send                                                             │
00:23:37 verbose #26450 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:37 verbose #26451 > >
00:23:37 verbose #26452 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:37 verbose #26453 > > inl request_send (request : request_builder) : async.future_pin (resultm.result'
00:23:37 verbose #26454 > > reqwest_response reqwest_error) =
00:23:37 verbose #26455 > >     inl request = join request
00:23:37 verbose #26456 > >     !\($'"Box::pin(reqwest_wasm::RequestBuilder::send(!request))"')
00:23:37 verbose #26457 > 00:23:36   debug #1384 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/44e46d640b6ff9791c5f9684d61c3c379f820eb978f3b12501bdc0e8b8959360/main.spi
00:23:37 verbose #26458 > >
00:23:37 verbose #26459 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:37 verbose #26460 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:37 verbose #26461 > > │ ### request_body                                                             │
00:23:37 verbose #26462 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:37 verbose #26463 > >
00:23:37 verbose #26464 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:37 verbose #26465 > > inl request_body (body : string) (request : request_builder) : request_builder =
00:23:37 verbose #26466 > >     inl body = body |> sm'.to_std_string
00:23:37 verbose #26467 > >     !\($'"reqwest_wasm::RequestBuilder::body(!request, !body)"')
00:23:37 verbose #26468 > 00:23:37   debug #1385 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c231456e09ab778fe6fc73938ebc45b9870103bd0948ff9f8916c4151c38903b/main.spi
00:23:38 verbose #26469 > >
00:23:38 verbose #26470 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:38 verbose #26471 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:38 verbose #26472 > > │ ### request_header                                                           │
00:23:38 verbose #26473 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:38 verbose #26474 > >
00:23:38 verbose #26475 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:38 verbose #26476 > > inl request_header (key : string) (value : string) (request : request_builder) :
00:23:38 verbose #26477 > > request_builder =
00:23:38 verbose #26478 > >     inl request = join request
00:23:38 verbose #26479 > >     inl key = key |> sm'.to_std_string
00:23:38 verbose #26480 > >     inl value = value |> sm'.to_std_string
00:23:38 verbose #26481 > >     !\($'"reqwest_wasm::RequestBuilder::header(!request, !key, !value)"')
00:23:38 verbose #26482 > 00:23:37   debug #1386 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/af4d9a71b75eae0cdee7b3c475d98efa9396ccb345671b9e571ba4cf816b85c2/main.spi
00:23:38 verbose #26483 > >
00:23:38 verbose #26484 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:38 verbose #26485 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:38 verbose #26486 > > │ ### request_json                                                             │
00:23:38 verbose #26487 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:38 verbose #26488 > >
00:23:38 verbose #26489 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:38 verbose #26490 > > inl request_json forall t. (obj : t) (request : request_builder) :
00:23:38 verbose #26491 > > request_builder =
00:23:38 verbose #26492 > >     !\($'"reqwest_wasm::RequestBuilder::json(!request, &!obj)"')
00:23:38 verbose #26493 > 00:23:37   debug #1387 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/cda36bef021604fcca5e7350263476a7f05d0965706d51aec8c59ef6f8a45e37/main.spi
00:23:38 verbose #26494 > >
00:23:38 verbose #26495 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:38 verbose #26496 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:38 verbose #26497 > > │ ### response_text                                                            │
00:23:38 verbose #26498 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:38 verbose #26499 > >
00:23:38 verbose #26500 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:38 verbose #26501 > > inl response_text (response : reqwest_response) : async.future_pin
00:23:38 verbose #26502 > > (resultm.result' sm'.std_string reqwest_error) =
00:23:38 verbose #26503 > >     !\($'"Box::pin(reqwest_wasm::Response::text(!response))"')
00:23:38 verbose #26504 > 00:23:38   debug #1388 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/467401cce4f447a47dc48a1a72b50b2f95d6460d48ca529e6f2b399e51af7fa4/main.spi
00:23:39 verbose #26505 > >
00:23:39 verbose #26506 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:39 verbose #26507 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:39 verbose #26508 > > │ ## fsharp                                                                    │
00:23:39 verbose #26509 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:39 verbose #26510 > >
00:23:39 verbose #26511 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:39 verbose #26512 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:39 verbose #26513 > > │ ### tcp_client                                                               │
00:23:39 verbose #26514 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:39 verbose #26515 > >
00:23:39 verbose #26516 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:39 verbose #26517 > > nominal tcp_client = $'System.Net.Sockets.TcpClient'
00:23:39 verbose #26518 > 00:23:38   debug #1389 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/d401a644808133ddd3f92455d5f844383114952d67b791992f48718170dd537a/main.spi
00:23:39 verbose #26519 > >
00:23:39 verbose #26520 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:39 verbose #26521 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:39 verbose #26522 > > │ ### new_tcp_client                                                           │
00:23:39 verbose #26523 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:39 verbose #26524 > >
00:23:39 verbose #26525 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:39 verbose #26526 > > inl new_tcp_client () : tcp_client =
00:23:39 verbose #26527 > >     $'new `tcp_client ()'
00:23:39 verbose #26528 > 00:23:38   debug #1390 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7ef006b68072b9813a444c7a253b1a87b14937757c9a4f403cba6a6bbeb2a7d5/main.spi
00:23:39 verbose #26529 > >
00:23:39 verbose #26530 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:39 verbose #26531 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:39 verbose #26532 > > │ ### ip_address                                                               │
00:23:39 verbose #26533 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:39 verbose #26534 > >
00:23:39 verbose #26535 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:39 verbose #26536 > > nominal ip_address = $'System.Net.IPAddress'
00:23:40 verbose #26537 > 00:23:39   debug #1391 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/db4adaea98c9717ad307288df5dd7927be5f68a7c602840072f2f70cf85dc73e/main.spi
00:23:40 verbose #26538 > >
00:23:40 verbose #26539 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:40 verbose #26540 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:40 verbose #26541 > > │ ### ip_address_parse                                                         │
00:23:40 verbose #26542 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:40 verbose #26543 > >
00:23:40 verbose #26544 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:40 verbose #26545 > > inl ip_address_parse (s : string) : ip_address =
00:23:40 verbose #26546 > >     s |> $'`ip_address.Parse'
00:23:40 verbose #26547 > 00:23:39   debug #1392 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa835a8b353aab611cf184ca6fdae5234fe8500e93d1976789cfc1176a6d980b/main.spi
00:23:40 verbose #26548 > >
00:23:40 verbose #26549 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:40 verbose #26550 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:40 verbose #26551 > > │ ### tcp_listener                                                             │
00:23:40 verbose #26552 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:40 verbose #26553 > >
00:23:40 verbose #26554 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:40 verbose #26555 > > nominal tcp_listener = $'System.Net.Sockets.TcpListener'
00:23:40 verbose #26556 > 00:23:39   debug #1393 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5b468e27bee6f0e6dc2773317f95c83aab97e615ffc4a0060fe0a9fcec900075/main.spi
00:23:40 verbose #26557 > >
00:23:40 verbose #26558 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:40 verbose #26559 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:40 verbose #26560 > > │ ### new_tcp_listener                                                         │
00:23:40 verbose #26561 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:40 verbose #26562 > >
00:23:40 verbose #26563 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:40 verbose #26564 > > inl new_tcp_listener (ip_address : ip_address) (port : i32) : tcp_listener =
00:23:40 verbose #26565 > >     $'new `tcp_listener (!ip_address, !port)'
00:23:41 verbose #26566 > 00:23:40   debug #1394 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b5011280590adbf0e01f0a11a412c114edccf336fa4fb8996bf9b5a4b7efc69a/main.spi
00:23:41 verbose #26567 > >
00:23:41 verbose #26568 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:41 verbose #26569 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:41 verbose #26570 > > │ ### listener_start                                                           │
00:23:41 verbose #26571 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:41 verbose #26572 > >
00:23:41 verbose #26573 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:41 verbose #26574 > > inl listener_start (listener : tcp_listener) : () =
00:23:41 verbose #26575 > >     $'!listener.Start' ()
00:23:41 verbose #26576 > 00:23:40   debug #1395 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/026ff40e074dee47297f8d92df39b39512c83822f8246e0271b4ea97140bf53d/main.spi
00:23:41 verbose #26577 > >
00:23:41 verbose #26578 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:41 verbose #26579 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:41 verbose #26580 > > │ ### listener_stop                                                            │
00:23:41 verbose #26581 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:41 verbose #26582 > >
00:23:41 verbose #26583 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:41 verbose #26584 > > inl listener_stop (listener : tcp_listener) : () =
00:23:41 verbose #26585 > >     $'!listener.Stop' ()
00:23:41 verbose #26586 > 00:23:41   debug #1396 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fdbccf0baf0e7453c40b7ed2478bff44d470ee31f2f1f9854a634fc66f0626e9/main.spi
00:23:42 verbose #26587 > >
00:23:42 verbose #26588 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:42 verbose #26589 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:42 verbose #26590 > > │ ### client_connect_async                                                     │
00:23:42 verbose #26591 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:42 verbose #26592 > >
00:23:42 verbose #26593 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:42 verbose #26594 > > inl client_connect_async
00:23:42 verbose #26595 > >     (host : string)
00:23:42 verbose #26596 > >     (port : i32)
00:23:42 verbose #26597 > >     (ct : threading.cancellation_token)
00:23:42 verbose #26598 > >     (client : tcp_client)
00:23:42 verbose #26599 > >     : async.value_task
00:23:42 verbose #26600 > >     =
00:23:42 verbose #26601 > >     $'!client.ConnectAsync (!host, !port, !ct)'
00:23:42 verbose #26602 > 00:23:41   debug #1397 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0fe69d724b9ac5bada756f5d113341deaef14d0f087b5cb6264578617230bfa3/main.spi
00:23:42 verbose #26603 > >
00:23:42 verbose #26604 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:42 verbose #26605 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:42 verbose #26606 > > │ ### test_port_open                                                           │
00:23:42 verbose #26607 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:42 verbose #26608 > >
00:23:42 verbose #26609 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:42 verbose #26610 > > inl test_port_open host port : _ bool = async.new_async fun () =>
00:23:42 verbose #26611 > >     inl ct = async.cancellation_token () |> async.let'
00:23:42 verbose #26612 > >     inl client = new_tcp_client () |> use
00:23:42 verbose #26613 > >     try_unit
00:23:42 verbose #26614 > >         fun () =>
00:23:42 verbose #26615 > >             client |> client_connect_async host port ct |>
00:23:42 verbose #26616 > > async.await_value_task_unit |> async.do
00:23:42 verbose #26617 > >             return true
00:23:42 verbose #26618 > >         fun ex =>
00:23:42 verbose #26619 > >             inl ex = ex |> sm'.format_exception
00:23:42 verbose #26620 > >             trace Verbose
00:23:42 verbose #26621 > >                 fun () => $'$"networking.test_port_open"'
00:23:42 verbose #26622 > >                 fun () => { port ex }
00:23:42 verbose #26623 > >             return false
00:23:42 verbose #26624 > 00:23:41   debug #1398 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/da389518fea784c20e5cdb978811425419350833445df28a2ea440a1752f3ebd/main.spi
00:23:42 verbose #26625 > >
00:23:42 verbose #26626 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:42 verbose #26627 > > //// test
00:23:42 verbose #26628 > >
00:23:42 verbose #26629 > > test_port_open "127.0.0.1" 65536
00:23:42 verbose #26630 > > |> async.run_with_timeout 120
00:23:42 verbose #26631 > > |> _assert_eq (Some false)
00:23:42 verbose #26632 > 00:23:42   debug #1399 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/7c2a5cd66829af281c4994149ab430f419df962009db3c564a4a62f4bbf159a2/main.spi
00:23:45 verbose #26633 > >
00:23:45 verbose #26634 > > ╭─[ 3.21s - stdout ]───────────────────────────────────────────────────────────╮
00:23:45 verbose #26635 > > │ 00:00:00 verbose #1 networking.test_port_open / { port = 65536; ex =    │
00:23:45 verbose #26636 > > │ System.ArgumentOutOfRangeException: Specified argument was out of the range  │
00:23:45 verbose #26637 > > │ of valid values. (Parameter 'port') }                                        │
00:23:45 verbose #26638 > > │ assert_eq / actual: US4_0 false / expected: US4_0 false                      │
00:23:45 verbose #26639 > > │                                                                              │
00:23:45 verbose #26640 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:45 verbose #26641 > >
00:23:45 verbose #26642 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:45 verbose #26643 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:45 verbose #26644 > > │ ### test_port_open_timeout                                                   │
00:23:45 verbose #26645 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:45 verbose #26646 > >
00:23:45 verbose #26647 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:45 verbose #26648 > > inl test_port_open_timeout timeout host port : _ bool = async.new_async_unit fun
00:23:45 verbose #26649 > > () =>
00:23:45 verbose #26650 > >     test_port_open host port
00:23:45 verbose #26651 > >     |> async.run_with_timeout_async timeout
00:23:45 verbose #26652 > >     |> async.let'
00:23:45 verbose #26653 > >     |> function
00:23:45 verbose #26654 > >         | None => false
00:23:45 verbose #26655 > >         | Some result => result
00:23:45 verbose #26656 > >     |> return
00:23:46 verbose #26657 > 00:23:45   debug #1400 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/6ca1a0a6788e0015551def002b4ac2098553f395c03f489eea9903045c3d0873/main.spi
00:23:46 verbose #26658 > >
00:23:46 verbose #26659 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:46 verbose #26660 > > //// test
00:23:46 verbose #26661 > >
00:23:46 verbose #26662 > > test_port_open_timeout 120 "127.0.0.1" 65535
00:23:46 verbose #26663 > > |> async.run_synchronously
00:23:46 verbose #26664 > > |> _assert_eq false
00:23:46 verbose #26665 > 00:23:45   debug #1401 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/892d01d0917fa4639803063e02f2ec6797238da400f21ec82d412cc3f0716bdd/main.spi
00:23:48 verbose #26666 > >
00:23:48 verbose #26667 > > ╭─[ 1.75s - stdout ]───────────────────────────────────────────────────────────╮
00:23:48 verbose #26668 > > │ 00:00:00 verbose #1 async.run_with_timeout_async / { timeout = 120 }    │
00:23:48 verbose #26669 > > │ assert_eq / actual: false / expected: false                                  │
00:23:48 verbose #26670 > > │                                                                              │
00:23:48 verbose #26671 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:48 verbose #26672 > >
00:23:48 verbose #26673 > > ── markdown ────────────────────────────────────────────────────────────────────
00:23:48 verbose #26674 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:23:48 verbose #26675 > > │ ### wait_for_port_access                                                     │
00:23:48 verbose #26676 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:23:48 verbose #26677 > >
00:23:48 verbose #26678 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:48 verbose #26679 > > inl wait_for_port_access timeout status host port : _ i64 =
00:23:48 verbose #26680 > >     let rec loop retry : _ i64 = async.new_async_unit fun () =>
00:23:48 verbose #26681 > >         inl isPortOpen =
00:23:48 verbose #26682 > >             match timeout |> optionm'.unbox with
00:23:48 verbose #26683 > >             | None => test_port_open host port
00:23:48 verbose #26684 > >             | Some timeout => test_port_open_timeout timeout host port
00:23:48 verbose #26685 > >             |> async.let'
00:23:48 verbose #26686 > >
00:23:48 verbose #26687 > >         fix_condition
00:23:48 verbose #26688 > >             fun () => isPortOpen = status
00:23:48 verbose #26689 > >             fun () => retry |> return
00:23:48 verbose #26690 > >             fun () =>
00:23:48 verbose #26691 > >                 if retry % 100 = 0 then
00:23:48 verbose #26692 > >                     trace Verbose
00:23:48 verbose #26693 > >                         fun () => "networking.wait_for_port_access"
00:23:48 verbose #26694 > >                         fun () => { port retry timeout status }
00:23:48 verbose #26695 > >                 async.sleep 10 |> async.do
00:23:48 verbose #26696 > >                 loop (retry + 1) |> async.return_await
00:23:48 verbose #26697 > >     loop 0i64
00:23:48 verbose #26698 > 00:23:47   debug #1402 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f79ee9f660051ea21dbcf57f8a0f3007308e394f2e476fca2da58dc96e046c0a/main.spi
00:23:48 verbose #26699 > >
00:23:48 verbose #26700 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:23:48 verbose #26701 > > //// test
00:23:48 verbose #26702 > >
00:23:48 verbose #26703 > > inl lock_port host port = async.new_async fun () =>
00:23:48 verbose #26704 > >     trace Debug (fun () => "_1") id
00:23:48 verbose #26705 > >     async.sleep 5000 |> async.do
00:23:48 verbose #26706 > >     inl listener = new_tcp_listener (host |> ip_address_parse) port |> use
00:23:48 verbose #26707 > >     trace Debug (fun () => "_2") id
00:23:48 verbose #26708 > >     listener |> listener_start
00:23:48 verbose #26709 > >     trace Debug (fun () => "_3") id
00:23:48 verbose #26710 > >     async.sleep 2000 |> async.do
00:23:48 verbose #26711 > >     trace Debug (fun () => "_4") id
00:23:48 verbose #26712 > >     $'!listener.Stop' ()
00:23:48 verbose #26713 > >     trace Debug (fun () => "_5") id
00:23:48 verbose #26714 > >
00:23:48 verbose #26715 > > inl host = "127.0.0.1"
00:23:48 verbose #26716 > > inl port = 5555i32
00:23:48 verbose #26717 > >
00:23:48 verbose #26718 > > fun () =>
00:23:48 verbose #26719 > >     trace Debug (fun () => "1") id
00:23:48 verbose #26720 > >     inl child = lock_port host port |> async.start_child |> async.let'
00:23:48 verbose #26721 > >     trace Debug (fun () => "2") id
00:23:48 verbose #26722 > >     async.sleep 1 |> async.do
00:23:48 verbose #26723 > >     trace Debug (fun () => "3") id
00:23:48 verbose #26724 > >     inl retries1 = wait_for_port_access (None |> optionm'.box) true host port |>
00:23:48 verbose #26725 > > async.let'
00:23:48 verbose #26726 > >     trace Debug (fun () => "4") id
00:23:48 verbose #26727 > >     inl retries2 = wait_for_port_access (None |> optionm'.box) false host port
00:23:48 verbose #26728 > > |> async.let'
00:23:48 verbose #26729 > >     trace Debug (fun () => "5") id
00:23:48 verbose #26730 > >     child |> async.do
00:23:48 verbose #26731 > >     trace Debug (fun () => "6") id
00:23:48 verbose #26732 > >     (retries1, retries2) |> return
00:23:48 verbose #26733 > > |> async.new_async_unit
00:23:48 verbose #26734 > > |> async.run_with_timeout 20000
00:23:48 verbose #26735 > > |> function
00:23:48 verbose #26736 > >     | Some (retries1, retries2) =>
00:23:48 verbose #26737 > >         retries1
00:23:48 verbose #26738 > >         |> _assert_between
00:23:48 verbose #26739 > >             if platform.is_windows () then 2i64 else 2
00:23:48 verbose #26740 > >             if platform.is_windows () then 5 else 1500
00:23:48 verbose #26741 > >
00:23:48 verbose #26742 > >         retries2
00:23:48 verbose #26743 > >         |> _assert_between
00:23:48 verbose #26744 > >             if platform.is_windows () then 80i64 else 80
00:23:48 verbose #26745 > >             if platform.is_windows () then 200 else 600
00:23:48 verbose #26746 > >
00:23:48 verbose #26747 > >         true
00:23:48 verbose #26748 > >     | _ => false
00:23:48 verbose #26749 > > |> _assert_eq true
00:23:48 verbose #26750 > 00:23:47   debug #1403 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/28333759e30f09bf5b50a14eb1b01ef0f66f2ddc9a684393f9785a338545c407/main.spi
00:24:00 verbose #26751 > >
00:24:00 verbose #26752 > > ╭─[ 12.19s - stdout ]──────────────────────────────────────────────────────────╮
00:24:00 verbose #26753 > > │ 00:00:00   debug #1 1                                                   │
00:24:00 verbose #26754 > > │ 00:00:00   debug #2 _1                                                  │
00:24:00 verbose #26755 > > │ 00:00:00   debug #3 2                                                   │
00:24:00 verbose #26756 > > │ 00:00:00   debug #4 3                                                   │
00:24:00 verbose #26757 > > │ 00:00:02 verbose #5 networking.test_port_open / { port = 5555; ex =     │
00:24:00 verbose #26758 > > │ System.AggregateException: One or more errors occurred. (No connection could │
00:24:00 verbose #26759 > > │ be made because the target machine actively refused it.) }                   │
00:24:00 verbose #26760 > > │ 00:00:02 verbose #6 networking.wait_for_port_access / { port = 5555;    │
00:24:00 verbose #26761 > > │ retry = 0; timeout = None; status = true }                                   │
00:24:00 verbose #26762 > > │ 00:00:04 verbose #7 networking.test_port_open / { port = 5555; ex =     │
00:24:00 verbose #26763 > > │ System.AggregateException: One or more errors occurred. (No connection could │
00:24:00 verbose #26764 > > │ be made because the target machine actively refused it.) }                   │
00:24:00 verbose #26765 > > │ 00:00:05   debug #8 _2                                                  │
00:24:00 verbose #26766 > > │ 00:00:05   debug #9 _3                                                  │
00:24:00 verbose #26767 > > │ 00:00:05   debug #10 4                                                  │
00:24:00 verbose #26768 > > │ 00:00:05 verbose #11 networking.wait_for_port_access / { port = 5555;   │
00:24:00 verbose #26769 > > │ retry = 0; timeout = None; status = false }                                  │
00:24:00 verbose #26770 > > │ 00:00:06 verbose #12 networking.wait_for_port_access / { port = 5555;   │
00:24:00 verbose #26771 > > │ retry = 100; timeout = None; status = false }                                │
00:24:00 verbose #26772 > > │ 00:00:07   debug #13 _4                                                 │
00:24:00 verbose #26773 > > │ 00:00:07   debug #14 _5                                                 │
00:24:00 verbose #26774 > > │ 00:00:09 verbose #15 networking.test_port_open / { port = 5555; ex =    │
00:24:00 verbose #26775 > > │ System.AggregateException: One or more errors occurred. (No connection could │
00:24:00 verbose #26776 > > │ be made because the target machine actively refused it.) }                   │
00:24:00 verbose #26777 > > │ 00:00:09   debug #16 5                                                  │
00:24:00 verbose #26778 > > │ 00:00:09   debug #17 6                                                  │
00:24:00 verbose #26779 > > │ assert_between / actual: 2L / expected: struct (2L, 5L)                      │
00:24:00 verbose #26780 > > │ assert_between / actual: 120L / expected: struct (80L, 200L)                 │
00:24:00 verbose #26781 > > │ assert_eq / actual: true / expected: true                                    │
00:24:00 verbose #26782 > > │                                                                              │
00:24:00 verbose #26783 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:00 verbose #26784 > >
00:24:00 verbose #26785 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:00 verbose #26786 > > //// test
00:24:00 verbose #26787 > >
00:24:00 verbose #26788 > > inl lock_port host port = async.new_async_unit fun () =>
00:24:00 verbose #26789 > >     trace Debug (fun () => "_1") id
00:24:00 verbose #26790 > >     async.sleep 500 |> async.do
00:24:00 verbose #26791 > >     inl listener = new_tcp_listener (ip_address_parse host) port |> use
00:24:00 verbose #26792 > >     trace Debug (fun () => "_2") id
00:24:00 verbose #26793 > >     listener |> listener_start
00:24:00 verbose #26794 > >     trace Debug (fun () => "_3") id
00:24:00 verbose #26795 > >     async.sleep 200 |> async.do
00:24:00 verbose #26796 > >     trace Debug (fun () => "_4") id
00:24:00 verbose #26797 > >     listener |> listener_stop
00:24:00 verbose #26798 > >     trace Debug (fun () => "_5") id
00:24:00 verbose #26799 > >
00:24:00 verbose #26800 > > inl host = "127.0.0.1"
00:24:00 verbose #26801 > > inl port = 5555
00:24:00 verbose #26802 > >
00:24:00 verbose #26803 > > fun () =>
00:24:00 verbose #26804 > >     trace Debug (fun () => "1") id
00:24:00 verbose #26805 > >     inl child = lock_port host port |> async.start_child |> async.let'
00:24:00 verbose #26806 > >     trace Debug (fun () => "2") id
00:24:00 verbose #26807 > >     async.sleep 1 |> async.do
00:24:00 verbose #26808 > >     trace Debug (fun () => "3") id
00:24:00 verbose #26809 > >     inl retries1 = wait_for_port_access (Some 60 |> optionm'.box) true host port
00:24:00 verbose #26810 > > |> async.let'
00:24:00 verbose #26811 > >     trace Debug (fun () => "4") id
00:24:00 verbose #26812 > >     inl retries2 = wait_for_port_access (Some 60 |> optionm'.box) false host
00:24:00 verbose #26813 > > port |> async.let'
00:24:00 verbose #26814 > >     trace Debug (fun () => "5") id
00:24:00 verbose #26815 > >     child |> async.do
00:24:00 verbose #26816 > >     trace Debug (fun () => "6") id
00:24:00 verbose #26817 > >     (retries1, retries2) |> return
00:24:00 verbose #26818 > > |> async.new_async_unit
00:24:00 verbose #26819 > > |> async.run_with_timeout 2000
00:24:00 verbose #26820 > > |> function
00:24:00 verbose #26821 > >     | Some (retries1, retries2) =>
00:24:00 verbose #26822 > >         retries1
00:24:00 verbose #26823 > >         |> _assert_between
00:24:00 verbose #26824 > >             if platform.is_windows () then 4i64 else 2
00:24:00 verbose #26825 > >             if platform.is_windows () then 15 else 150
00:24:00 verbose #26826 > >
00:24:00 verbose #26827 > >         retries2
00:24:00 verbose #26828 > >         |> _assert_between
00:24:00 verbose #26829 > >             if platform.is_windows () then 5i64 else 0
00:24:00 verbose #26830 > >             if platform.is_windows () then 20 else 60
00:24:00 verbose #26831 > >
00:24:00 verbose #26832 > >         true
00:24:00 verbose #26833 > >     | _ => false
00:24:00 verbose #26834 > > |> _assert_eq true
00:24:00 verbose #26835 > 00:24:00   debug #1404 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/72cab7571134d0265c0d8e17eeda2417e2c40dcd25bb9eaae7c8d45589fe8db3/main.spi
00:24:04 verbose #26836 > >
00:24:04 verbose #26837 > > ╭─[ 3.66s - stdout ]───────────────────────────────────────────────────────────╮
00:24:04 verbose #26838 > > │ 00:00:00   debug #1 1                                                   │
00:24:04 verbose #26839 > > │ 00:00:00   debug #2 2                                                   │
00:24:04 verbose #26840 > > │ 00:00:00   debug #3 _1                                                  │
00:24:04 verbose #26841 > > │ 00:00:00   debug #4 3                                                   │
00:24:04 verbose #26842 > > │ 00:00:00 verbose #5 async.run_with_timeout_async / { timeout = 60 }     │
00:24:04 verbose #26843 > > │ 00:00:00 verbose #6 networking.wait_for_port_access / { port = 5555;    │
00:24:04 verbose #26844 > > │ retry = 0; timeout = Some 60; status = true }                                │
00:24:04 verbose #26845 > > │ 00:00:00 verbose #7 async.run_with_timeout_async / { timeout = 60 }     │
00:24:04 verbose #26846 > > │ 00:00:00 verbose #8 async.run_with_timeout_async / { timeout = 60 }     │
00:24:04 verbose #26847 > > │ 00:00:00 verbose #9 async.run_with_timeout_async / { timeout = 60 }     │
00:24:04 verbose #26848 > > │ 00:00:00 verbose #10 async.run_with_timeout_async / { timeout = 60 }    │
00:24:04 verbose #26849 > > │ 00:00:00 verbose #11 async.run_with_timeout_async / { timeout = 60 }    │
00:24:04 verbose #26850 > > │ 00:00:00   debug #12 _2                                                 │
00:24:04 verbose #26851 > > │ 00:00:00   debug #13 _3                                                 │
00:24:04 verbose #26852 > > │ 00:00:00 verbose #14 async.run_with_timeout_async / { timeout = 60 }    │
00:24:04 verbose #26853 > > │ 00:00:00   debug #15 4                                                  │
00:24:04 verbose #26854 > > │ 00:00:00 verbose #16 networking.wait_for_port_access / { port = 5555;   │
00:24:04 verbose #26855 > > │ retry = 0; timeout = Some 60; status = false }                               │
00:24:04 verbose #26856 > > │ 00:00:00   debug #17 _4                                                 │
00:24:04 verbose #26857 > > │ 00:00:00   debug #18 _5                                                 │
00:24:04 verbose #26858 > > │ 00:00:00 verbose #19 async.run_with_timeout_async / { timeout = 60 }    │
00:24:04 verbose #26859 > > │ 00:00:00   debug #20 5                                                  │
00:24:04 verbose #26860 > > │ 00:00:00   debug #21 6                                                  │
00:24:04 verbose #26861 > > │ assert_between / actual: 7L / expected: struct (4L, 15L)                     │
00:24:04 verbose #26862 > > │ assert_between / actual: 9L / expected: struct (5L, 20L)                     │
00:24:04 verbose #26863 > > │ assert_eq / actual: true / expected: true                                    │
00:24:04 verbose #26864 > > │                                                                              │
00:24:04 verbose #26865 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:04 verbose #26866 > >
00:24:04 verbose #26867 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:04 verbose #26868 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:04 verbose #26869 > > │ ### get_available_port                                                       │
00:24:04 verbose #26870 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:04 verbose #26871 > >
00:24:04 verbose #26872 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:04 verbose #26873 > > inl get_available_port timeout host initial_port : _ i32 =
00:24:04 verbose #26874 > >     let rec loop port = async.new_async_unit fun () =>
00:24:04 verbose #26875 > >         inl is_port_open =
00:24:04 verbose #26876 > >             match timeout |> optionm'.unbox with
00:24:04 verbose #26877 > >             | None => test_port_open host port
00:24:04 verbose #26878 > >             | Some timeout => test_port_open_timeout timeout host port
00:24:04 verbose #26879 > >             |> async.let'
00:24:04 verbose #26880 > >         fix_condition
00:24:04 verbose #26881 > >             fun () => is_port_open |> not
00:24:04 verbose #26882 > >             fun () => port |> return
00:24:04 verbose #26883 > >             fun () => loop (port + 1) |> async.return_await
00:24:04 verbose #26884 > >     loop initial_port
00:24:04 verbose #26885 > 00:24:03   debug #1405 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/b771632f1e1b592d5289d8b05c2915606c7ff86dc125ac8197c2dc23bc6d7e1c/main.spi
00:24:04 verbose #26886 > >
00:24:04 verbose #26887 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:04 verbose #26888 > > //// test
00:24:04 verbose #26889 > >
00:24:04 verbose #26890 > > inl lock_ports host port = async.new_async_unit fun () =>
00:24:04 verbose #26891 > >     trace Debug (fun () => "_1") id
00:24:04 verbose #26892 > >     inl listener1 = new_tcp_listener (ip_address_parse host) port |> use
00:24:04 verbose #26893 > >     inl listener2 = new_tcp_listener (ip_address_parse host) (port + 1) |> use
00:24:04 verbose #26894 > >     trace Debug (fun () => "_2") id
00:24:04 verbose #26895 > >     listener1 |> listener_start
00:24:04 verbose #26896 > >     listener2 |> listener_start
00:24:04 verbose #26897 > >     trace Debug (fun () => "_3") id
00:24:04 verbose #26898 > >     async.sleep 4000 |> async.do
00:24:04 verbose #26899 > >     trace Debug (fun () => "_4") id
00:24:04 verbose #26900 > >     listener1 |> listener_stop
00:24:04 verbose #26901 > >     listener2 |> listener_stop
00:24:04 verbose #26902 > >     trace Debug (fun () => "_5") id
00:24:04 verbose #26903 > >
00:24:04 verbose #26904 > > inl host = "127.0.0.1"
00:24:04 verbose #26905 > > inl port = 5555
00:24:04 verbose #26906 > >
00:24:04 verbose #26907 > > fun () =>
00:24:04 verbose #26908 > >     trace Debug (fun () => "1") id
00:24:04 verbose #26909 > >     inl child = lock_ports host port |> async.start_child |> async.let'
00:24:04 verbose #26910 > >     trace Debug (fun () => "2") id
00:24:04 verbose #26911 > >     async.sleep 240 |> async.do
00:24:04 verbose #26912 > >     trace Debug (fun () => "3") id
00:24:04 verbose #26913 > >     inl available_port = get_available_port (None |> optionm'.box) host port |>
00:24:04 verbose #26914 > > async.let'
00:24:04 verbose #26915 > >     trace Debug (fun () => "4") id
00:24:04 verbose #26916 > >     inl retries = wait_for_port_access (None |> optionm'.box) false host port |>
00:24:04 verbose #26917 > > async.let'
00:24:04 verbose #26918 > >     trace Debug (fun () => "5") id
00:24:04 verbose #26919 > >     child |> async.do
00:24:04 verbose #26920 > >     trace Debug (fun () => "6") id
00:24:04 verbose #26921 > >     (available_port, retries) |> return
00:24:04 verbose #26922 > > |> async.new_async_unit
00:24:04 verbose #26923 > > |> async.run_with_timeout 15000
00:24:04 verbose #26924 > > |> function
00:24:04 verbose #26925 > >     | Some (available_port, retries) =>
00:24:04 verbose #26926 > >         available_port |> _assert_eq (port + 2)
00:24:04 verbose #26927 > >
00:24:04 verbose #26928 > >         retries
00:24:04 verbose #26929 > >         |> _assert_between
00:24:04 verbose #26930 > >             if platform.is_windows () then 50i64 else 50
00:24:04 verbose #26931 > >             if platform.is_windows () then 150 else 1200
00:24:04 verbose #26932 > >
00:24:04 verbose #26933 > >         true
00:24:04 verbose #26934 > >     | _ => false
00:24:04 verbose #26935 > > |> _assert_eq true
00:24:04 verbose #26936 > 00:24:04   debug #1406 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/9bd811c6a6f7fd2b6ed6cde91cd6ffad2d629650f291785bf47b5274859122fb/main.spi
00:24:13 verbose #26937 > >
00:24:13 verbose #26938 > > ╭─[ 8.85s - stdout ]───────────────────────────────────────────────────────────╮
00:24:13 verbose #26939 > > │ 00:00:00   debug #1 1                                                   │
00:24:13 verbose #26940 > > │ 00:00:00   debug #2 _1                                                  │
00:24:13 verbose #26941 > > │ 00:00:00   debug #3 2                                                   │
00:24:13 verbose #26942 > > │ 00:00:00   debug #4 _2                                                  │
00:24:13 verbose #26943 > > │ 00:00:00   debug #5 _3                                                  │
00:24:13 verbose #26944 > > │ 00:00:00   debug #6 3                                                   │
00:24:13 verbose #26945 > > │ 00:00:02 verbose #7 networking.test_port_open / { port = 5557; ex =     │
00:24:13 verbose #26946 > > │ System.AggregateException: One or more errors occurred. (No connection could │
00:24:13 verbose #26947 > > │ be made because the target machine actively refused it.) }                   │
00:24:13 verbose #26948 > > │ 00:00:02   debug #8 4                                                   │
00:24:13 verbose #26949 > > │ 00:00:02 verbose #9 networking.wait_for_port_access / { port = 5555;    │
00:24:13 verbose #26950 > > │ retry = 0; timeout = None; status = false }                                  │
00:24:13 verbose #26951 > > │ 00:00:03 verbose #10 networking.wait_for_port_access / { port = 5555;   │
00:24:13 verbose #26952 > > │ retry = 100; timeout = None; status = false }                                │
00:24:13 verbose #26953 > > │ 00:00:04   debug #11 _4                                                 │
00:24:13 verbose #26954 > > │ 00:00:04   debug #12 _5                                                 │
00:24:13 verbose #26955 > > │ 00:00:06 verbose #13 networking.test_port_open / { port = 5555; ex =    │
00:24:13 verbose #26956 > > │ System.AggregateException: One or more errors occurred. (No connection could │
00:24:13 verbose #26957 > > │ be made because the target machine actively refused it.) }                   │
00:24:13 verbose #26958 > > │ 00:00:06   debug #14 5                                                  │
00:24:13 verbose #26959 > > │ 00:00:06   debug #15 6                                                  │
00:24:13 verbose #26960 > > │ assert_eq / actual: 5557 / expected: 5557                                    │
00:24:13 verbose #26961 > > │ assert_between / actual: 110L / expected: struct (50L, 150L)                 │
00:24:13 verbose #26962 > > │ assert_eq / actual: true / expected: true                                    │
00:24:13 verbose #26963 > > │                                                                              │
00:24:13 verbose #26964 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:13 verbose #26965 > >
00:24:13 verbose #26966 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:13 verbose #26967 > > //// test
00:24:13 verbose #26968 > >
00:24:13 verbose #26969 > > inl lock_ports host port = async.new_async_unit fun () =>
00:24:13 verbose #26970 > >     trace Debug (fun () => "_1") id
00:24:13 verbose #26971 > >     inl listener1 = new_tcp_listener (ip_address_parse host) port |> use
00:24:13 verbose #26972 > >     inl listener2 = new_tcp_listener (ip_address_parse host) (port + 1) |> use
00:24:13 verbose #26973 > >     trace Debug (fun () => "_2") id
00:24:13 verbose #26974 > >     listener1 |> listener_start
00:24:13 verbose #26975 > >     listener2 |> listener_start
00:24:13 verbose #26976 > >     trace Debug (fun () => "_3") id
00:24:13 verbose #26977 > >     async.sleep 400 |> async.do
00:24:13 verbose #26978 > >     trace Debug (fun () => "_4") id
00:24:13 verbose #26979 > >     listener1 |> listener_stop
00:24:13 verbose #26980 > >     listener2 |> listener_stop
00:24:13 verbose #26981 > >     trace Debug (fun () => "_5") id
00:24:13 verbose #26982 > >
00:24:13 verbose #26983 > > inl host = "127.0.0.1"
00:24:13 verbose #26984 > > inl port = 5555
00:24:13 verbose #26985 > >
00:24:13 verbose #26986 > > fun () =>
00:24:13 verbose #26987 > >     trace Debug (fun () => "1") id
00:24:13 verbose #26988 > >     inl child = lock_ports host port |> async.start_child |> async.let'
00:24:13 verbose #26989 > >     trace Debug (fun () => "2") id
00:24:13 verbose #26990 > >     async.sleep 240 |> async.do
00:24:13 verbose #26991 > >     trace Debug (fun () => "3") id
00:24:13 verbose #26992 > >     inl available_port = get_available_port (Some 60 |> optionm'.box) host port
00:24:13 verbose #26993 > > |> async.let'
00:24:13 verbose #26994 > >     trace Debug (fun () => "4") id
00:24:13 verbose #26995 > >     inl retries = wait_for_port_access (Some 60 |> optionm'.box) false host port
00:24:13 verbose #26996 > > |> async.let'
00:24:13 verbose #26997 > >     trace Debug (fun () => "5") id
00:24:13 verbose #26998 > >     child |> async.do
00:24:13 verbose #26999 > >     trace Debug (fun () => "6") id
00:24:13 verbose #27000 > >     (available_port, retries) |> return
00:24:13 verbose #27001 > > |> async.new_async_unit
00:24:13 verbose #27002 > > |> async.run_with_timeout 1500
00:24:13 verbose #27003 > > |> function
00:24:13 verbose #27004 > >     | Some (available_port, retries) =>
00:24:13 verbose #27005 > >         available_port |> _assert_eq (port + 2)
00:24:13 verbose #27006 > >
00:24:13 verbose #27007 > >         retries
00:24:13 verbose #27008 > >         |> _assert_between
00:24:13 verbose #27009 > >             (if platform.is_windows () then 2i64 else 1)
00:24:13 verbose #27010 > >             (if platform.is_windows () then 10 else 120)
00:24:13 verbose #27011 > >
00:24:13 verbose #27012 > >         true
00:24:13 verbose #27013 > >     | _ => false
00:24:13 verbose #27014 > > |> _assert_eq true
00:24:13 verbose #27015 > 00:24:13   debug #1407 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/80aaf7cca7f6be980f57bf85f51b18a64398e7b0e6d3980bcb8e1b5d07b6b894/main.spi
00:24:16 verbose #27016 > >
00:24:16 verbose #27017 > > ╭─[ 2.93s - stdout ]───────────────────────────────────────────────────────────╮
00:24:16 verbose #27018 > > │ 00:00:00   debug #1 1                                                   │
00:24:16 verbose #27019 > > │ 00:00:00   debug #2 _1                                                  │
00:24:16 verbose #27020 > > │ 00:00:00   debug #3 2                                                   │
00:24:16 verbose #27021 > > │ 00:00:00   debug #4 _2                                                  │
00:24:16 verbose #27022 > > │ 00:00:00   debug #5 _3                                                  │
00:24:16 verbose #27023 > > │ 00:00:00   debug #6 3                                                   │
00:24:16 verbose #27024 > > │ 00:00:00 verbose #7 async.run_with_timeout_async / { timeout = 60 }     │
00:24:16 verbose #27025 > > │ 00:00:00   debug #8 4                                                   │
00:24:16 verbose #27026 > > │ 00:00:00 verbose #9 networking.wait_for_port_access / { port = 5555;    │
00:24:16 verbose #27027 > > │ retry = 0; timeout = Some 60; status = false }                               │
00:24:16 verbose #27028 > > │ 00:00:00   debug #10 _4                                                 │
00:24:16 verbose #27029 > > │ 00:00:00   debug #11 _5                                                 │
00:24:16 verbose #27030 > > │ 00:00:00 verbose #12 async.run_with_timeout_async / { timeout = 60 }    │
00:24:16 verbose #27031 > > │ 00:00:00   debug #13 5                                                  │
00:24:16 verbose #27032 > > │ 00:00:00   debug #14 6                                                  │
00:24:16 verbose #27033 > > │ assert_eq / actual: 5557 / expected: 5557                                    │
00:24:16 verbose #27034 > > │ assert_between / actual: 5L / expected: struct (2L, 10L)                     │
00:24:16 verbose #27035 > > │ assert_eq / actual: true / expected: true                                    │
00:24:16 verbose #27036 > > │                                                                              │
00:24:16 verbose #27037 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:16 verbose #27038 > >
00:24:16 verbose #27039 > > ── markdown ────────────────────────────────────────────────────────────────────
00:24:16 verbose #27040 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:24:16 verbose #27041 > > │ ## main                                                                      │
00:24:16 verbose #27042 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:24:16 verbose #27043 > >
00:24:16 verbose #27044 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:24:16 verbose #27045 > > inl main () =
00:24:16 verbose #27046 > >     types ()
00:24:16 verbose #27047 > >     init_trace_state None
00:24:16 verbose #27048 > >     $'let test_port_open x = !test_port_open x' : ()
00:24:16 verbose #27049 > >     $'let test_port_open_timeout x = !test_port_open_timeout x' : ()
00:24:16 verbose #27050 > >     $'let wait_for_port_access x = !wait_for_port_access x' : ()
00:24:16 verbose #27051 > >     $'let get_available_port x = !get_available_port x' : ()
00:24:16 verbose #27052 > 00:24:15   debug #1408 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e49afe40d7bba3fc94212774ec7bed1a09f06b7324fbef238915d829d5c0bdb1/main.spi
00:24:19 verbose #27053 > 00:00:55 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 34787 }
00:24:19 verbose #27054 > 00:00:55   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/lib/spiral/networking.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/lib/spiral/networking.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:24:22 verbose #27055 > 00:00:58 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/lib/spiral/networking.dib.ipynb to html
00:24:22 verbose #27056 > 00:00:58 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:24:22 verbose #27057 > 00:00:58 verbose #7 !   validate(nb)
00:24:24 verbose #27058 > 00:01:00 verbose #8 ! [NbConvertApp] Writing 371878 bytes to c:\home\git\polyglot\lib\spiral\networking.dib.html
00:24:24 verbose #27059 > 00:01:00 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 651 }
00:24:24 verbose #27060 > 00:01:00   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 651 }
00:24:24 verbose #27061 > 00:01:00   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/networking.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/lib/spiral/networking.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:24:25 verbose #27062 > 00:01:01 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:24:25 verbose #27063 > 00:01:01   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:24:26 verbose #27064 > 00:01:02   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 35497 }
00:24:26   debug #27065 runtime.execute_with_options_async / { exit_code = 0; output_length = 39556 }
00:24:26   debug #35 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path networking.dib --retries 3
00:24:26 verbose #6 networking.wait_for_port_access / { port = 13805; retry = 0; timeout = Some 100; status = false }
00:24:26 verbose #7 async.run_with_timeout_async / { timeout = 100 }
00:00:00   debug #3 writeDibCode / output: Spi / path: crypto.dib
00:00:00   debug #3 writeDibCode / output: Spi / path: runtime.dib
00:00:00   debug #3 writeDibCode / output: Spi / path: testing.dib
00:00:00   debug #3 writeDibCode / output: Spi / path: async.dib
00:00:00   debug #3 writeDibCode / output: Spi / path: trace.dib
00:00:00   debug #3 writeDibCode / output: Spi / path: networking.dib
00:00:00   debug #3 writeDibCode / output: Spi / path: common.dib
00:00:00   debug #3 writeDibCode / output: Spi / path: threading.dib
00:00:00   debug #7 parseDibCode / output: Spi / file: crypto.dib
00:00:00   debug #6 parseDibCode / output: Spi / file: testing.dib
00:00:00   debug #8 parseDibCode / output: Spi / file: networking.dib
00:00:00   debug #11 parseDibCode / output: Spi / file: async.dib
00:00:00   debug #6 parseDibCode / output: Spi / file: trace.dib
00:00:00   debug #6 parseDibCode / output: Spi / file: threading.dib
00:00:00   debug #9 parseDibCode / output: Spi / file: common.dib
00:00:00   debug #11 parseDibCode / output: Spi / file: runtime.dib
00:00:00   debug #13 writeDibCode / output: Spi / path: resultm.dib
00:00:00   debug #13 writeDibCode / output: Spi / path: base.dib
00:00:00   debug #15 writeDibCode / output: Spi / path: env.dib
00:00:00   debug #15 writeDibCode / output: Spi / path: iter.dib
00:00:00   debug #16 writeDibCode / output: Spi / path: parsing.dib
00:00:00   debug #17 parseDibCode / output: Spi / file: resultm.dib
00:00:00   debug #18 parseDibCode / output: Spi / file: base.dib
00:00:00   debug #19 parseDibCode / output: Spi / file: env.dib
00:00:00   debug #20 parseDibCode / output: Spi / file: iter.dib
00:00:00   debug #21 parseDibCode / output: Spi / file: parsing.dib
00:00:00   debug #25 writeDibCode / output: Spi / path: console.dib
00:00:00   debug #25 writeDibCode / output: Spi / path: file_system.dib
00:00:00   debug #25 writeDibCode / output: Spi / path: guid.dib
00:00:00   debug #25 writeDibCode / output: Spi / path: date_time.dib
00:00:00   debug #27 parseDibCode / output: Spi / file: file_system.dib
00:00:00   debug #26 parseDibCode / output: Spi / file: console.dib
00:00:00   debug #28 parseDibCode / output: Spi / file: guid.dib
00:00:00   debug #29 parseDibCode / output: Spi / file: date_time.dib
00:00:00   debug #30 writeDibCode / output: Spi / path: math.dib
00:00:00   debug #31 writeDibCode / output: Spi / path: mapm.dib
00:00:00   debug #32 parseDibCode / output: Spi / file: math.dib
00:00:00   debug #33 parseDibCode / output: Spi / file: mapm.dib
00:00:00   debug #34 writeDibCode / output: Spi / path: optionm'.dib
00:00:00   debug #35 parseDibCode / output: Spi / file: optionm'.dib
00:00:00   debug #36 writeDibCode / output: Spi / path: am'.dib
00:00:00   debug #37 parseDibCode / output: Spi / file: am'.dib
00:00:00   debug #38 writeDibCode / output: Spi / path: sm'.dib
00:00:00   debug #39 parseDibCode / output: Spi / file: sm'.dib
00:00:00   debug #40 writeDibCode / output: Spir / path: sm'.dib
00:00:00   debug #41 parseDibCode / output: Spir / file: sm'.dib
00:00:00   debug #42 writeDibCode / output: Spi / path: listm'.dib
00:00:00   debug #43 parseDibCode / output: Spi / file: listm'.dib
00:00:00   debug #44 writeDibCode / output: Spi / path: reflection.dib
00:00:00   debug #45 parseDibCode / output: Spi / file: reflection.dib
00:00:00   debug #46 writeDibCode / output: Spi / path: python.dib
00:00:00   debug #47 parseDibCode / output: Spi / file: python.dib
00:00:00   debug #48 writeDibCode / output: Spi / path: typescript.dib
00:00:00   debug #49 parseDibCode / output: Spi / file: typescript.dib
00:00:00   debug #50 writeDibCode / output: Spi / path: benchmark.dib
00:00:00   debug #51 parseDibCode / output: Spi / file: benchmark.dib
00:00:00   debug #52 writeDibCode / output: Spi / path: stream.dib
00:00:00   debug #53 parseDibCode / output: Spi / file: stream.dib
00:00:00   debug #54 writeDibCode / output: Spi / path: seq.dib
00:00:00   debug #55 parseDibCode / output: Spi / file: seq.dib
00:00:00   debug #56 writeDibCode / output: Spi / path: util.dib
00:00:00   debug #57 parseDibCode / output: Spi / file: util.dib
00:00:00   debug #58 writeDibCode / output: Spi / path: platform.dib
00:00:00   debug #59 parseDibCode / output: Spi / file: platform.dib
00:00:00   debug #60 writeDibCode / output: Spi / path: rust.dib
00:00:00   debug #61 parseDibCode / output: Spi / file: rust.dib
00:00:00   debug #62 writeDibCode / output: Spi / path: physics.dib
00:00:00   debug #63 parseDibCode / output: Spi / file: physics.dib
00:00:00 verbose #1 async.run_with_timeout_async / { timeout = 180 }
00:00:00   debug #1 runtime.execute_with_options_async / { options = { command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = Some <fun:main@570-7>; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot" } }
00:00:01 verbose #2 > 00:00:00   debug #1 pwd: C:\home\git\polyglot
00:00:01 verbose #3 > 00:00:00   debug #2 dllPath: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:01 verbose #4 > 00:00:00   debug #3 targetDir: C:\home\git\polyglot\target/spiral_Eval
00:00:01 verbose #2 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #3 networking.wait_for_port_access / { port = 13805; retry = 0; timeout = Some 100; status = true }
00:00:01 verbose #4 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #5 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #5 > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:01   debug #1 runWithTimeoutAsync / timeout: 500
00:00:02 verbose #2 Supervisor.sendJson / port: 13805 / json: {"Ping":true} / result:
00:00:02 verbose #3 awaitCompiler / Ping / result: 'Some(null)' / port: 13805 / retry: 0
00:00:02 verbose #6 > Server bound to: http://localhost:13805
00:00:02 verbose #8 async.run_with_timeout_async / { timeout = 180 }
00:00:02 verbose #8 async.run_with_timeout_async / { timeout = 180 }
00:00:02 verbose #8 async.run_with_timeout_async / { timeout = 180 }
00:00:02 verbose #9 async.run_with_timeout_async / { timeout = 180 }
00:00:02 verbose #10 async.run_with_timeout_async / { timeout = 180 }
00:00:02   debug #6 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:02   debug #8 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:02   debug #4 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: trace.spi
00:00:02   debug #5 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: threading.spi
00:00:02   debug #7 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: async.spi
00:00:03   debug #10 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: threading.spi
00:00:03   debug #11 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:03   debug #10 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: async.spi
00:00:03   debug #13 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: trace.spi
00:00:03   debug #12 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:03   debug #15 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: threading.spi
00:00:03   debug #16 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:03   debug #15 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: trace.spi
00:00:03   debug #15 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: async.spi
00:00:03   debug #17 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:03 verbose #19 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # networking\nopen rust_operators\n\n/// ## types\ninl types () =\n    b...!get_available_port x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/networking.spi"}} / result:
00:00:03 verbose #21 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # runtime\nopen rust_operators\nopen sm\u0027_operators\n\n/// ## types\...t_args x = !split_args x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/runtime.spi"}} / result:
00:00:03 verbose #22 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # trace\n\n/// ## types\ninl types () =\n    env.types ()\n    guid.type...0027let trace x = !trace x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/trace.spi"}} / result:
00:00:03 verbose #20 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # async\nopen rust_operators\n\n/// ## types\ninl types () =\n    backen...token_with_default_async x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/async.spi"}} / result:
00:00:03 verbose #20 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # threading\nopen rust_operators\n\n/// ## types\ninl types () =\n    ba...new_disposable_token x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/threading.spi"}} / result:
00:00:03 verbose #25 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/runtime.spi"}} / result:
00:00:03 verbose #26 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/threading.spi"}} / result:
00:00:03 verbose #26 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/networking.spi"}} / result:
00:00:03 verbose #26 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/trace.spi"}} / result:
00:00:03 verbose #27 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/async.spi"}} / result:
00:00:03   debug #31 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: threading.spi
00:00:03   debug #31 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:03   debug #31 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:03   debug #32 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: threading.spi
00:00:03   debug #31 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: async.spi
00:00:03   debug #31 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: trace.spi
00:00:03   debug #33 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:03   debug #35 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: async.spi
00:00:03   debug #34 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:03   debug #36 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: trace.spi
00:00:03 verbose #7 > 00:00:02   debug #4 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/threading.spi
00:00:03 verbose #8 > 00:00:02   debug #5 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/networking.spi
00:00:03 verbose #9 > 00:00:02   debug #6 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/runtime.spi
00:00:03 verbose #10 > 00:00:02   debug #7 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/async.spi
00:00:03 verbose #11 > 00:00:02   debug #8 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/trace.spi
00:00:04   debug #39 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: threading.spi
00:00:04   debug #39 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:04   debug #39 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: async.spi
00:00:04   debug #40 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:04   debug #41 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: threading.spi
00:00:04   debug #43 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:04   debug #43 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: trace.spi
00:00:04   debug #44 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:04   debug #45 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: async.spi
00:00:04   debug #46 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: trace.spi
00:00:04   debug #48 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:04   debug #48 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: async.spi
00:00:04   debug #48 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:04   debug #49 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: threading.spi
00:00:04   debug #50 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: async.spi
00:00:04   debug #52 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: trace.spi
00:00:04   debug #53 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: threading.spi
00:00:04   debug #52 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:04   debug #54 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: trace.spi
00:00:04   debug #55 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:05   debug #57 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: async.spi
00:00:05   debug #58 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:05   debug #57 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: threading.spi
00:00:05   debug #60 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: async.spi
00:00:05   debug #59 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: trace.spi
00:00:05   debug #61 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:05   debug #62 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: threading.spi
00:00:05   debug #63 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: trace.spi
00:00:05   debug #59 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:05   debug #64 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:05   debug #67 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: async.spi
00:00:05   debug #67 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: trace.spi
00:00:05   debug #67 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:05   debug #68 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: trace.spi
00:00:05   debug #69 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:05   debug #70 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: async.spi
00:00:05   debug #71 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: threading.spi
00:00:05   debug #72 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: threading.spi
00:00:05   debug #73 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:05   debug #74 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:06   debug #78 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: async.spi
00:00:06   debug #75 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:06   debug #78 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: trace.spi
00:00:06   debug #78 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:06   debug #79 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: threading.spi
00:00:06   debug #80 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: async.spi
00:00:06   debug #83 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:06   debug #83 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: trace.spi
00:00:06   debug #81 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:06   debug #84 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: threading.spi
00:00:06   debug #85 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("futures::future::JoinAll<$0>")>]
#endif
type futures_future_JoinAll<'T> = class end
#if FABLE_...em.Threading.CancellationToken -> Async<System.Threading.CancellationToken>) = closure0()
let merge_cancellation_token_with_default_async x = v6 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: async.spi
00:00:06   debug #86 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::thread::JoinHandle<$0>")>]
#endif
type std_thread_JoinHandle<'T> = class end
#if FABLE_CO...ading.CancellationToken option -> struct (System.Threading.CancellationToken * System.IDisposable)) = closure0()
let new_disposable_token x = v6 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: threading.spi
00:00:06   debug #88 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("futures::future::JoinAll<$0>")>]
#endif
type futures_future_JoinAll<'T> = class end
#if FABLE_...em.Threading.CancellationToken -> Async<System.Threading.CancellationToken>) = closure0()
let merge_cancellation_token_with_default_async x = v6 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: async.spi
00:00:06   debug #88 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::thread::JoinHandle<$0>")>]
#endif
type std_thread_JoinHandle<'T> = class end
#if FABLE_CO...ading.CancellationToken option -> struct (System.Threading.CancellationToken * System.IDisposable)) = closure0()
let new_disposable_token x = v6 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: threading.spi
00:00:06   debug #90 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:06   debug #90 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: trace.spi
00:00:06   debug #91 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: trace.spi
00:00:06   debug #92 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:06   debug #93 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:06   debug #94 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:06   debug #95 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:06   debug #96 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:06   debug #97 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::env::VarError")>]
#endif
type std_env_VarError = class end
#if FABLE_COMPILER
[<Fable.Cor...one then State.trace_state <- v44 v45 |> Some
let v51 : (US0 -> ((unit -> string) -> ((unit -> string) -> unit))) = closure2()
let trace x = v51 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: trace.spi
00:00:06   debug #98 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::env::VarError")>]
#endif
type std_env_VarError = class end
#if FABLE_COMPILER
[<Fable.Cor...one then State.trace_state <- v44 v45 |> Some
let v51 : (US0 -> ((unit -> string) -> ((unit -> string) -> unit))) = closure2()
let trace x = v51 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: trace.spi
00:00:06   debug #99 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:06 verbose #11 async.run_with_timeout_async / { timeout = 180 }
00:00:06 verbose #12 async.run_with_timeout_async / { timeout = 180 }
00:00:06   debug #101 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: common.spi
00:00:06   debug #101 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: crypto.spi
00:00:06   debug #102 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: crypto.spi
00:00:06   debug #103 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: crypto.spi
00:00:06   debug #104 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: common.spi
00:00:06   debug #105 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: common.spi
00:00:06 verbose #107 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # crypto\nopen rust_operators\n\n/// ## types\ninl types () =\n    backe..._port x = !hash_to_port x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/crypto.spi"}} / result:
00:00:06 verbose #107 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # common\n\n/// ## types\ninl types () =\n    env.types ()\n    rust.typ...et memoize x = !memoize x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/common.spi"}} / result:
00:00:06 verbose #13 async.run_with_timeout_async / { timeout = 180 }
00:00:07   debug #108 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: date_time.spi
00:00:07   debug #109 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: date_time.spi
00:00:07   debug #110 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: date_time.spi
00:00:07 verbose #12 > 00:00:06   debug #9 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/crypto.spi
00:00:07 verbose #13 > 00:00:06   debug #10 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/common.spi
00:00:07 verbose #111 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/crypto.spi"}} / result:
00:00:07   debug #112 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:07   debug #113 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:07   debug #114 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:07   debug #115 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:07 verbose #116 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # date_time\nopen rust_operators\nopen sm\u0027_operators\n\n/// ## type... x = !format_iso8601 x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/date_time.spi"}} / result:
00:00:07 verbose #117 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/common.spi"}} / result:
00:00:07 verbose #118 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/date_time.spi"}} / result:
00:00:07 verbose #14 > 00:00:06   debug #11 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/date_time.spi
00:00:07   debug #119 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: common.spi
00:00:07   debug #120 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: common.spi
00:00:07   debug #121 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: crypto.spi
00:00:07   debug #122 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: crypto.spi
00:00:07   debug #123 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: date_time.spi
00:00:07   debug #124 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: date_time.spi
00:00:07   debug #125 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:07   debug #126 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:07   debug #128 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:07   debug #127 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:07   debug #129 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("core::any::Any")>]
#endif
type core_any_Any = class end
#if FABLE_COMPILER
[<Fable.Core.Erase;...> (System.DateTime -> string)) = closure11()
let format x = v36 x
let v37 : (System.DateTime -> string) = closure13()
let format_iso8601 x = v37 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: date_time.spi
00:00:07   debug #130 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("core::any::Any")>]
#endif
type core_any_Any = class end
#if FABLE_COMPILER
[<Fable.Core.Erase;...> (System.DateTime -> string)) = closure11()
let format x = v36 x
let v37 : (System.DateTime -> string) = closure13()
let format_iso8601 x = v37 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: date_time.spi
00:00:07   debug #131 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:07   debug #132 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: common.spi
00:00:07   debug #133 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: common.spi
00:00:07   debug #134 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: crypto.spi
00:00:07   debug #135 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: crypto.spi
00:00:07   debug #136 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::env::VarError")>]
#endif
type std_env_VarError = class end
#if FABLE_COMPILER
[<Fable.Cor...nit -> unit) -> unit option)) = closure3()
let retry_fn x = v46 x
let v47 : ((unit -> unit) -> (unit -> unit)) = closure11()
let memoize x = v47 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: common.spi
00:00:07   debug #137 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::env::VarError")>]
#endif
type std_env_VarError = class end
#if FABLE_COMPILER
[<Fable.Cor...nit -> unit) -> unit option)) = closure3()
let retry_fn x = v46 x
let v47 : ((unit -> unit) -> (unit -> unit)) = closure11()
let memoize x = v47 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: common.spi
00:00:07   debug #138 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:07   debug #139 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("core::any::Any")>]
#endif
type core_any_Any = class end
#if FABLE_COMPILER
[<Fable.Core.Erase;...    v13
let v234 : (string -> string) = closure0()
let hash_text x = v234 x
let v235 : (string -> uint16) = closure1()
let hash_to_port x = v235 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: crypto.spi
00:00:07   debug #140 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("core::any::Any")>]
#endif
type core_any_Any = class end
#if FABLE_COMPILER
[<Fable.Core.Erase;...    v13
let v234 : (string -> string) = closure0()
let hash_text x = v234 x
let v235 : (string -> uint16) = closure1()
let hash_to_port x = v235 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: crypto.spi
00:00:08   debug #141 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:08 verbose #14 async.run_with_timeout_async / { timeout = 180 }
00:00:08   debug #142 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: platform.spi
00:00:08   debug #143 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: platform.spi
00:00:08   debug #144 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: platform.spi
00:00:08   debug #145 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("clap::Arg")>]
#endif
type clap_Arg = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Co...ng option)) = closure28()
let execution_options x = v78 x
let v79 : (string -> Result<(string []), string>) = closure29()
let split_args x = v79 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: runtime.spi
00:00:08   debug #146 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("clap::Arg")>]
#endif
type clap_Arg = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Co...ng option)) = closure28()
let execution_options x = v78 x
let v79 : (string -> Result<(string []), string>) = closure29()
let split_args x = v79 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: runtime.spi
00:00:08 verbose #147 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # platform\nopen rust_operators\n\ninl types () =\n    ()\n\n/// ## fsha...et_executable_suffix ()\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/platform.spi"}} / result:
00:00:08   debug #148 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:08 verbose #15 > 00:00:07   debug #12 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/platform.spi
00:00:08 verbose #149 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/platform.spi"}} / result:
00:00:08   debug #150 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:08   debug #151 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:08 verbose #15 async.run_with_timeout_async / { timeout = 180 }
00:00:08 verbose #16 async.run_with_timeout_async / { timeout = 180 }
00:00:08   debug #152 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: file_system.spi
00:00:08   debug #153 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: guid.spi
00:00:08   debug #154 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: guid.spi
00:00:08   debug #155 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: guid.spi
00:00:08   debug #156 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: file_system.spi
00:00:08   debug #157 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: file_system.spi
00:00:08 verbose #158 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # guid\n\n/// ## types\ninl types () =\n    backend_switch {\n        Fs...aw_guid x = !new_raw_guid x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/guid.spi"}} / result:
00:00:08 verbose #159 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # file_system\nopen sm\u0027_operators\nopen rust_operators\n\n/// ## ty...003E) x = !combine x\u0027 : ()\n","uri":"file:///c:/home/git/polyglot/lib/spiral/file_system.spi"}} / result:
00:00:08 verbose #17 async.run_with_timeout_async / { timeout = 180 }
00:00:08   debug #160 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: sm'.spi
00:00:08 verbose #16 > 00:00:07   debug #13 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/file_system.spi
00:00:08 verbose #17 > 00:00:07   debug #14 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/guid.spi
00:00:08 verbose #161 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/file_system.spi"}} / result:
00:00:08 verbose #162 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/guid.spi"}} / result:
00:00:08   debug #163 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: sm'.spi
00:00:08   debug #164 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: sm'.spi
00:00:08   debug #165 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: platform.spi
00:00:08   debug #166 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: platform.spi
00:00:08 verbose #167 Supervisor.sendJson / port: 13805 / json: {"FileOpen":{"spiText":"/// # sm\u0027\nopen rust_operators\nopen real_sm\u0027\n\n/// ## types\ninl...tring std_string = from_std_string\n","uri":"file:///c:/home/git/polyglot/lib/spiral/sm\u0027.spi"}} / result:
00:00:08   debug #169 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: guid.spi
00:00:08   debug #169 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:08   debug #170 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: guid.spi
00:00:08   debug #171 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:08   debug #172 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: file_system.spi
00:00:08   debug #173 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: file_system.spi
00:00:08   debug #174 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: sm'.spi
00:00:08   debug #175 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: sm'.spi
00:00:08   debug #176 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("reqwest_wasm::Error")>]
#endif
type reqwest_Error = class end
#if FABLE_COMPILER
[<Fable.Core....
let wait_for_port_access x = v53 x
let v54 : (int32 option -> (string -> (int32 -> Async<int32>))) = closure25()
let get_available_port x = v54 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: networking.spi
00:00:08   debug #177 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("reqwest_wasm::Error")>]
#endif
type reqwest_Error = class end
#if FABLE_COMPILER
[<Fable.Core....
let wait_for_port_access x = v53 x
let v54 : (int32 option -> (string -> (int32 -> Async<int32>))) = closure25()
let get_available_port x = v54 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: networking.spi
00:00:08   debug #178 Supervisor.buildFile / AsyncSeq.scan / outputContent:
type [<Struct>] US0 =
    | US0_0
    | US0_1
    | US0_2
and [<Struct>] US1 =
    | US1_0 of f0_0 : US0
    | US1_1 of f1_0 : US0
    | US1_2 of f2_0...    v31
let v0 : (unit -> bool) = closure0()
let is_windows () = v0 ()
let v1 : (unit -> string) = closure1()
let get_executable_suffix () = v1 ()
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: platform.spi
00:00:08   debug #179 Supervisor.buildFile / takeWhileInclusive / outputContent:
type [<Struct>] US0 =
    | US0_0
    | US0_1
    | US0_2
and [<Struct>] US1 =
    | US1_0 of f0_0 : US0
    | US1_1 of f1_0 : US0
    | US1_2 of f2_0...    v31
let v0 : (unit -> bool) = closure0()
let is_windows () = v0 ()
let v1 : (unit -> string) = closure1()
let get_executable_suffix () = v1 ()
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: platform.spi
00:00:08   debug #180 Supervisor.buildFile / AsyncSeq.scan / outputContent:
let rec closure0 () (v0 : string) : System.Guid =
    let v3 : System.Guid = v0 |> System.Guid 
    v3
and method0 (v0 : string) : System.Guid =
    l... = v0 x
let v1 : (string -> System.Guid) = closure1()
let hash_guid x = v1 x
let v2 : (unit -> System.Guid) = closure2()
let new_raw_guid x = v2 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: guid.spi
00:00:08   debug #181 Supervisor.buildFile / takeWhileInclusive / outputContent:
let rec closure0 () (v0 : string) : System.Guid =
    let v3 : System.Guid = v0 |> System.Guid 
    v3
and method0 (v0 : string) : System.Guid =
    l... = v0 x
let v1 : (string -> System.Guid) = closure1()
let hash_guid x = v1 x
let v2 : (unit -> System.Guid) = closure2()
let new_raw_guid x = v2 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: guid.spi
00:00:08   debug #182 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:08   debug #183 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:08   debug #184 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:08 verbose #18 > 00:00:08   debug #15 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/lib/spiral/sm'.spi
00:00:09 verbose #185 Supervisor.sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/spiral/sm\u0027.spi"}} / result:
00:00:09   debug #186 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("core::any::Any")>]
#endif
type core_any_Any = class end
#if FABLE_COMPILER
[<Fable.Core.Erase;... : (string -> ((string []) -> string)) = closure46()
let join' x = v45 x
let v46 : (string -> (char [])) = closure48()
let to_char_array x = v46 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: sm'.spi
00:00:09   debug #187 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("core::any::Any")>]
#endif
type core_any_Any = class end
#if FABLE_COMPILER
[<Fable.Core.Erase;... : (string -> ((string []) -> string)) = closure46()
let join' x = v45 x
let v46 : (string -> (char [])) = closure48()
let to_char_array x = v46 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: sm'.spi
00:00:09   debug #188 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:09   debug #189 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: file_system.spi
00:00:09   debug #190 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: file_system.spi
00:00:09   debug #191 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: file_system.spi
00:00:09   debug #192 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: file_system.spi
00:00:10   debug #193 Supervisor.buildFile / AsyncSeq.scan / outputContent:
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: file_system.spi
00:00:10   debug #194 Supervisor.buildFile / takeWhileInclusive / outputContent:
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: file_system.spi
00:00:10   debug #195 Supervisor.buildFile / AsyncSeq.scan / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::fs::File")>]
#endif
type std_fs_File = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; F...et v110 : (bool -> unit) = closure65()
let init_trace_file x = v110 x
let v111 : (string -> (string -> string)) = closure67()
let (</>) x = v111 x
()
 / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 / error:  / path: file_system.spi
00:00:10   debug #196 Supervisor.buildFile / takeWhileInclusive / outputContent:
#if FABLE_COMPILER
[<Fable.Core.Erase; Fable.Core.Emit("std::fs::File")>]
#endif
type std_fs_File = class end
#if FABLE_COMPILER
[<Fable.Core.Erase; F...et v110 : (bool -> unit) = closure65()
let init_trace_file x = v110 x
let v111 : (string -> (string -> string)) = closure67()
let (</>) x = v111 x
()
 / errors: [] / typeErrorCount: 0 / retry: 0 / path: file_system.spi
00:00:10   debug #197 FileSystem.watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:10 verbose #18 networking.wait_for_port_access / { port = 13805; retry = 0; timeout = Some 100; status = false }
00:00:10 verbose #19 async.run_with_timeout_async / { timeout = 100 }
In [ ]:
{ pwsh ../apps/scheduler/build.ps1 } | Invoke-Block
00:00:00 verbose #1 async.run_with_timeout_async / { timeout = 180 }
00:00:00   debug #1 runtime.execute_with_options_async / { options = { command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = Some <fun:main@570-7>; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot" } }
00:00:01 verbose #2 > 00:00:00   debug #1 pwd: C:\home\git\polyglot
00:00:01 verbose #3 > 00:00:00   debug #2 dllPath: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:01 verbose #4 > 00:00:00   debug #3 targetDir: C:\home\git\polyglot\target/spiral_Eval
00:00:01 verbose #2 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #3 networking.wait_for_port_access / { port = 13805; retry = 0; timeout = Some 100; status = true }
00:00:01 verbose #4 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #5 async.run_with_timeout_async / { timeout = 100 }
00:00:01 verbose #5 > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:01   debug #1 runWithTimeoutAsync / timeout: 500
00:00:02 verbose #2 Supervisor.sendJson / port: 13805 / json: {"Ping":true} / result:
00:00:02 verbose #3 awaitCompiler / Ping / result: 'Some(null)' / port: 13805 / retry: 0
00:00:02 verbose #6 > Server bound to: http://localhost:13805
00:00:02   debug #7 runtime.execute_with_options_async / { options = { command = ../../workspace/target/release/spiral_builder.exe dib --path Tasks.dib --retries 3; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:02 verbose #8 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "Tasks.dib", "--retries", "3"])) }
00:00:02 verbose #9 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/apps/scheduler/Tasks.dib", "--output-path", "c:/home/git/polyglot/apps/scheduler/Tasks.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/apps/scheduler/Tasks.dib" --output-path "c:/home/git/polyglot/apps/scheduler/Tasks.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:00:05 verbose #10 > >
00:00:05 verbose #11 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:05 verbose #12 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:05 verbose #13 > > │ ## Tasks (Polyglot)                                                          │
00:00:05 verbose #14 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 verbose #15 > >
00:00:10 verbose #16 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 verbose #17 > > //// test
00:00:10 verbose #18 > >
00:00:10 verbose #19 > > open testing
00:00:12 verbose #20 > 00:00:11   debug #4 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7845de436c12d0ca65282fe0cd65832468ca943e72feba50e6b1bb441e251a/main.spi
00:00:16 verbose #21 > >
00:00:16 verbose #22 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:16 verbose #23 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:16 verbose #24 > > │ ## types                                                                     │
00:00:16 verbose #25 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 verbose #26 > >
00:00:16 verbose #27 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 verbose #28 > > inl types () =
00:00:16 verbose #29 > >     rust.types ()
00:00:16 verbose #30 > >     sm'.types ()
00:00:16 verbose #31 > 00:00:15   debug #5 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/f9edc64a078565e040298ee0414f86ef9169cf0d0233097ffe4335d54c5c3df9/main.spi
00:00:16 verbose #32 > >
00:00:16 verbose #33 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:16 verbose #34 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:16 verbose #35 > > │ ## task_name                                                                 │
00:00:16 verbose #36 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 verbose #37 > >
00:00:16 verbose #38 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 verbose #39 > > nominal task_name = string
00:00:16 verbose #40 > 00:00:15   debug #6 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e1c59ad2c1c87b983e38ff3837d8b7caa948ec6be53a109b030e4bffe25d8d3f/main.spi
00:00:17 verbose #41 > >
00:00:17 verbose #42 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:17 verbose #43 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:17 verbose #44 > > │ ## manual_scheduling                                                         │
00:00:17 verbose #45 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 verbose #46 > >
00:00:17 verbose #47 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 verbose #48 > > union manual_scheduling =
00:00:17 verbose #49 > >     | WithSuggestion
00:00:17 verbose #50 > >     | WithoutSuggestion
00:00:17 verbose #51 > 00:00:16   debug #7 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0e0e4a63de1628303100e871210c9849347023d22168819fd759ff474c36bccf/main.spi
00:00:17 verbose #52 > >
00:00:17 verbose #53 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:17 verbose #54 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:17 verbose #55 > > │ ## recurrency_offset                                                         │
00:00:17 verbose #56 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 verbose #57 > >
00:00:17 verbose #58 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 verbose #59 > > union recurrency_offset =
00:00:17 verbose #60 > >     | Days : i32
00:00:17 verbose #61 > >     | Weeks : i32
00:00:17 verbose #62 > >     | Months : i32
00:00:17 verbose #63 > 00:00:16   debug #8 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/c0cb2c9536e0d20f91414de831e25cb7ee15ec5546470b1ddf5bd1adf3179596/main.spi
00:00:18 verbose #64 > >
00:00:18 verbose #65 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:18 verbose #66 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:18 verbose #67 > > │ ## day_of_week                                                               │
00:00:18 verbose #68 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 verbose #69 > >
00:00:18 verbose #70 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 verbose #71 > > union day_of_week =
00:00:18 verbose #72 > >     | Sunday
00:00:18 verbose #73 > >     | Monday
00:00:18 verbose #74 > >     | Tuesday
00:00:18 verbose #75 > >     | Wednesday
00:00:18 verbose #76 > >     | Thursday
00:00:18 verbose #77 > >     | Friday
00:00:18 verbose #78 > >     | Saturday
00:00:18 verbose #79 > 00:00:17   debug #9 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/5d344f04387e6776834f30c9cca28a1fea4fdf50bbc8f91cfdcda5475ba938a1/main.spi
00:00:18 verbose #80 > >
00:00:18 verbose #81 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:18 verbose #82 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:18 verbose #83 > > │ ## month                                                                     │
00:00:18 verbose #84 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 verbose #85 > >
00:00:18 verbose #86 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 verbose #87 > > union month =
00:00:18 verbose #88 > >     | January
00:00:18 verbose #89 > >     | February
00:00:18 verbose #90 > >     | March
00:00:18 verbose #91 > >     | April
00:00:18 verbose #92 > >     | May
00:00:18 verbose #93 > >     | June
00:00:18 verbose #94 > >     | July
00:00:18 verbose #95 > >     | August
00:00:18 verbose #96 > >     | September
00:00:18 verbose #97 > >     | October
00:00:18 verbose #98 > >     | November
00:00:18 verbose #99 > >     | December
00:00:18 verbose #100 > 00:00:17   debug #10 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fc33b8d13342d524b6cca997462192f1ab5c3ac1f252560071c8dcedab861235/main.spi
00:00:19 verbose #101 > >
00:00:19 verbose #102 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:19 verbose #103 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:19 verbose #104 > > │ ## day                                                                       │
00:00:19 verbose #105 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 verbose #106 > >
00:00:19 verbose #107 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:19 verbose #108 > > nominal day = i32
00:00:19 verbose #109 > 00:00:18   debug #11 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/82560ea2d9b95dfdad4d28604d22b9edebf86853e490ee5ea4ed94dda4f5c84d/main.spi
00:00:19 verbose #110 > >
00:00:19 verbose #111 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:19 verbose #112 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:19 verbose #113 > > │ ## year                                                                      │
00:00:19 verbose #114 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 verbose #115 > >
00:00:19 verbose #116 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:19 verbose #117 > > nominal year = i32
00:00:19 verbose #118 > 00:00:18   debug #12 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fbaf6f93fa7a7f0bd6adf12e27120284f5b18bd54bf7e1f5c8df9f1e9964fdf1/main.spi
00:00:20 verbose #119 > >
00:00:20 verbose #120 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:20 verbose #121 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:20 verbose #122 > > │ ## fixed_recurrency                                                          │
00:00:20 verbose #123 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 verbose #124 > >
00:00:20 verbose #125 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:20 verbose #126 > > union fixed_recurrency =
00:00:20 verbose #127 > >     | Weekly : day_of_week
00:00:20 verbose #128 > >     | Monthly : day
00:00:20 verbose #129 > >     | Yearly : day * month
00:00:20 verbose #130 > 00:00:19   debug #13 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/150f649741c8d4ffdd7ec400f0a3a73bd19686790aae331e43736ebcfe3fa694/main.spi
00:00:20 verbose #131 > >
00:00:20 verbose #132 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:20 verbose #133 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:20 verbose #134 > > │ ## recurrency                                                                │
00:00:20 verbose #135 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 verbose #136 > >
00:00:20 verbose #137 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:20 verbose #138 > > union recurrency =
00:00:20 verbose #139 > >     | Offset : recurrency_offset
00:00:20 verbose #140 > >     | Fixed : list fixed_recurrency
00:00:20 verbose #141 > 00:00:19   debug #14 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/70cf343d3e0d5d605f89c3c4d70d89fb9996899e9fed633c09b6bce74bdbda43/main.spi
00:00:20 verbose #142 > >
00:00:20 verbose #143 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:20 verbose #144 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:20 verbose #145 > > │ ## scheduling                                                                │
00:00:20 verbose #146 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 verbose #147 > >
00:00:20 verbose #148 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:20 verbose #149 > > union scheduling =
00:00:20 verbose #150 > >     | Manual : manual_scheduling
00:00:20 verbose #151 > >     | Recurrent : recurrency
00:00:21 verbose #152 > 00:00:20   debug #15 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/e0bcff7bcb5afe52f6b01a9c42ec17045931ca21751969669e4325949b75d11c/main.spi
00:00:21 verbose #153 > >
00:00:21 verbose #154 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:21 verbose #155 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:21 verbose #156 > > │ ## task                                                                      │
00:00:21 verbose #157 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 verbose #158 > >
00:00:21 verbose #159 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:21 verbose #160 > > type task =
00:00:21 verbose #161 > >     {
00:00:21 verbose #162 > >         name : task_name
00:00:21 verbose #163 > >         scheduling : scheduling
00:00:21 verbose #164 > >     }
00:00:21 verbose #165 > 00:00:20   debug #16 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2f66a31a8f143f9b1f9df619b5b4dc70946f51223e3dc6a64f0c722e86d501d3/main.spi
00:00:21 verbose #166 > >
00:00:21 verbose #167 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:21 verbose #168 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:21 verbose #169 > > │ ## date                                                                      │
00:00:21 verbose #170 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 verbose #171 > >
00:00:21 verbose #172 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:21 verbose #173 > > type date =
00:00:21 verbose #174 > >     {
00:00:21 verbose #175 > >         year : year
00:00:21 verbose #176 > >         month : month
00:00:21 verbose #177 > >         day : day
00:00:21 verbose #178 > >     }
00:00:22 verbose #179 > 00:00:21   debug #17 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/23e42c99e4b1d8afa175495d9d89a12536268e684af658103e597fef7769e22d/main.spi
00:00:22 verbose #180 > >
00:00:22 verbose #181 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:22 verbose #182 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:22 verbose #183 > > │ ## status                                                                    │
00:00:22 verbose #184 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 verbose #185 > >
00:00:22 verbose #186 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:22 verbose #187 > > union status =
00:00:22 verbose #188 > >     | Postponed : option ()
00:00:22 verbose #189 > 00:00:21   debug #18 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/8a2aae8847521140a5533a1de8e1d808bbd58f1db8affc48193094abc647a425/main.spi
00:00:22 verbose #190 > >
00:00:22 verbose #191 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:22 verbose #192 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:22 verbose #193 > > │ ## event                                                                     │
00:00:22 verbose #194 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 verbose #195 > >
00:00:22 verbose #196 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:22 verbose #197 > > type event =
00:00:22 verbose #198 > >     {
00:00:22 verbose #199 > >         date : date
00:00:22 verbose #200 > >         status : status
00:00:22 verbose #201 > >     }
00:00:22 verbose #202 > 00:00:21   debug #19 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ede2d226d1d0cd45d231e624ba69991d5963c49a152836449e039a4a60edd662/main.spi
00:00:23 verbose #203 > >
00:00:23 verbose #204 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:23 verbose #205 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:23 verbose #206 > > │ ## task_template                                                             │
00:00:23 verbose #207 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 verbose #208 > >
00:00:23 verbose #209 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:23 verbose #210 > > type task_template =
00:00:23 verbose #211 > >     {
00:00:23 verbose #212 > >         task : task
00:00:23 verbose #213 > >         events : list event
00:00:23 verbose #214 > >     }
00:00:23 verbose #215 > 00:00:22   debug #20 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/2b312a4f96dadbff6986ec45bad868c3625d9b031a1cfd3fbb83c43e907cb1e7/main.spi
00:00:23 verbose #216 > >
00:00:23 verbose #217 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:23 verbose #218 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:23 verbose #219 > > │ ## get_tasks (test)                                                          │
00:00:23 verbose #220 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 verbose #221 > >
00:00:23 verbose #222 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:23 verbose #223 > > //// test
00:00:23 verbose #224 > >
00:00:23 verbose #225 > > inl get_tasks () : list task_template =
00:00:23 verbose #226 > >     [[
00:00:23 verbose #227 > >         {
00:00:23 verbose #228 > >             task =
00:00:23 verbose #229 > >                 {
00:00:23 verbose #230 > >                     name = task_name "01"
00:00:23 verbose #231 > >                     scheduling = Manual WithSuggestion
00:00:23 verbose #232 > >                 }
00:00:23 verbose #233 > >             events = [[]]
00:00:23 verbose #234 > >         }
00:00:23 verbose #235 > >         {
00:00:23 verbose #236 > >             task =
00:00:23 verbose #237 > >                 {
00:00:23 verbose #238 > >                     name = task_name "02"
00:00:23 verbose #239 > >                     scheduling = Manual WithSuggestion
00:00:23 verbose #240 > >                 }
00:00:23 verbose #241 > >             events = [[]]
00:00:23 verbose #242 > >         }
00:00:23 verbose #243 > >         {
00:00:23 verbose #244 > >             task =
00:00:23 verbose #245 > >                 {
00:00:23 verbose #246 > >                     name = task_name "03"
00:00:23 verbose #247 > >                     scheduling = Manual WithSuggestion
00:00:23 verbose #248 > >                 }
00:00:23 verbose #249 > >             events = [[]]
00:00:23 verbose #250 > >         }
00:00:23 verbose #251 > >     ]]
00:00:23 verbose #252 > 00:00:22   debug #21 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/0f2f5d478f2d6333cea423f91ee2a29cc5731cf5415004dbf547f9f71cac9311/main.spi
00:00:24 verbose #253 > >
00:00:24 verbose #254 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:24 verbose #255 > > //// test
00:00:24 verbose #256 > > ///! fsharp
00:00:24 verbose #257 > > ///! cuda
00:00:24 verbose #258 > > ///! rust
00:00:24 verbose #259 > > ///! typescript
00:00:24 verbose #260 > > ///! python
00:00:24 verbose #261 > >
00:00:24 verbose #262 > > types ()
00:00:24 verbose #263 > > get_tasks ()
00:00:24 verbose #264 > > |> sm'.format_debug
00:00:24 verbose #265 > > |> _assert_string_contains "01"
00:00:24 verbose #266 > 00:00:23   debug #22 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/997730cacbb14dbbfb61ca42c716e06a878b2dc40530d1565d5fa9beb3ed288a/main.spi
00:00:24 verbose #267 > 00:00:23   debug #23 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/89977427a998cad128e3f59c51896dacf5f21b1569abf43d46c85647092dbcec/main.spi
00:01:00 verbose #268 > >
00:01:00 verbose #269 > > ╭─[ 36.69s - return value ]────────────────────────────────────────────────────╮
00:01:00 verbose #270 > > │ .py output (Cuda):                                                           │
00:01:00 verbose #271 > > │ assert_string_contains / actual: 01 / expected: UH2_1(v0='01',               │
00:01:00 verbose #272 > > │ v1=US1_0(v0=US0_0()), v2=UH1_0(), v3=UH2_1(v0='02', v1=US1_0(v0=US0_0()),    │
00:01:00 verbose #273 > > │ v2=UH1_0(), v3=UH2_1(v0='03', v1=US1_0(v0=US0_0()), v2=UH1_0(),              │
00:01:00 verbose #274 > > │ v3=UH2_0())))                                                                │
00:01:00 verbose #275 > > │                                                                              │
00:01:00 verbose #276 > > │ .rs output:                                                                  │
00:01:00 verbose #277 > > │ assert_string_contains / actual: "01" / expected: "UH2_1("01", US1_0(US0_0), │
00:01:00 verbose #278 > > │ UH1_0, UH2_1("02", US1_0(US0_0), UH1_0, UH2_1("03", US1_0(US0_0), UH1_0,     │
00:01:00 verbose #279 > > │ UH2_0)))"                                                                    │
00:01:00 verbose #280 > > │                                                                              │
00:01:00 verbose #281 > > │ .ts output:                                                                  │
00:01:00 verbose #282 > > │ assert_string_contains / actual: 01 / expected: UH2_1 (01, US1_0 US0_0,      │
00:01:00 verbose #283 > > │ UH1_0, UH2_1 (02, US1_0 US0_0, UH1_0, UH2_1 (03, US1_0 US0_0, UH1_0,         │
00:01:00 verbose #284 > > │ UH2_0)))                                                                     │
00:01:00 verbose #285 > > │                                                                              │
00:01:00 verbose #286 > > │ .py output:                                                                  │
00:01:00 verbose #287 > > │ assert_string_contains / actual: 01 / expected: UH2_1 ("01", US1_0 US0_0,    │
00:01:00 verbose #288 > > │ UH1_0, UH2_1 ("02", US1_0 US0_0, UH1_0, UH2_1 ("03", US1_0 US0_0, UH1_0,     │
00:01:00 verbose #289 > > │ UH2_0)))                                                                     │
00:01:00 verbose #290 > > │                                                                              │
00:01:00 verbose #291 > > │                                                                              │
00:01:00 verbose #292 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:00 verbose #293 > >
00:01:00 verbose #294 > > ╭─[ 36.69s - stdout ]──────────────────────────────────────────────────────────╮
00:01:00 verbose #295 > > │ .fsx output:                                                                 │
00:01:00 verbose #296 > > │ assert_string_contains / actual: "01" / expected: "UH2_1                     │
00:01:00 verbose #297 > > │   ("01", US1_0 US0_0, UH1_0,                                                 │
00:01:00 verbose #298 > > │    UH2_1 ("02", US1_0 US0_0, UH1_0, UH2_1 ("03", US1_0 US0_0, UH1_0,         │
00:01:00 verbose #299 > > │ UH2_0)))"                                                                    │
00:01:00 verbose #300 > > │                                                                              │
00:01:00 verbose #301 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:00 verbose #302 > >
00:01:00 verbose #303 > > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:00 verbose #304 > > //// test
00:01:00 verbose #305 > > ///! fsharp
00:01:00 verbose #306 > > ///! cuda
00:01:00 verbose #307 > > ///! rust
00:01:00 verbose #308 > > ///! typescript
00:01:00 verbose #309 > > ///! python
00:01:00 verbose #310 > >
00:01:00 verbose #311 > > get_tasks ()
00:01:00 verbose #312 > > |> listm'.try_item 0i32
00:01:00 verbose #313 > > |> fun (Some task) => task.task.name
00:01:00 verbose #314 > > |> _assert_eq (task_name "01")
00:01:01 verbose #315 > 00:01:00   debug #24 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/96440485717f2c028fa4a3444fe39ffa97eec606f7e086030db008564c4325ea/main.spi
00:01:01 verbose #316 > 00:01:00   debug #25 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/99d929d049995c8967ee385549ff4c85610a6d22fab8a7ce343c3c907144fe8f/main.spi
00:01:28 verbose #317 > >
00:01:28 verbose #318 > > ╭─[ 28.10s - return value ]────────────────────────────────────────────────────╮
00:01:28 verbose #319 > > │ .py output (Cuda):                                                           │
00:01:28 verbose #320 > > │ assert_eq / actual: 01 / expected: 01                                        │
00:01:28 verbose #321 > > │                                                                              │
00:01:28 verbose #322 > > │ .rs output:                                                                  │
00:01:28 verbose #323 > > │ assert_eq / actual: "01" / expected: "01"                                    │
00:01:28 verbose #324 > > │                                                                              │
00:01:28 verbose #325 > > │ .ts output:                                                                  │
00:01:28 verbose #326 > > │ assert_eq / actual: 01 / expected: 01                                        │
00:01:28 verbose #327 > > │                                                                              │
00:01:28 verbose #328 > > │ .py output:                                                                  │
00:01:28 verbose #329 > > │ assert_eq / actual: 01 / expected: 01                                        │
00:01:28 verbose #330 > > │                                                                              │
00:01:28 verbose #331 > > │                                                                              │
00:01:28 verbose #332 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:28 verbose #333 > >
00:01:28 verbose #334 > > ╭─[ 28.10s - stdout ]──────────────────────────────────────────────────────────╮
00:01:28 verbose #335 > > │ .fsx output:                                                                 │
00:01:28 verbose #336 > > │ assert_eq / actual: "01" / expected: "01"                                    │
00:01:28 verbose #337 > > │                                                                              │
00:01:28 verbose #338 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:29 verbose #339 > 00:01:26 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 13891 }
00:01:29 verbose #340 > 00:01:26   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/apps/scheduler/Tasks.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/apps/scheduler/Tasks.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:32 verbose #341 > 00:01:29 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/apps/scheduler/Tasks.dib.ipynb to html
00:01:32 verbose #342 > 00:01:29 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:01:32 verbose #343 > 00:01:29 verbose #7 !   validate(nb)
00:01:33 verbose #344 > 00:01:31 verbose #8 ! [NbConvertApp] Writing 301586 bytes to c:\home\git\polyglot\apps\scheduler\Tasks.dib.html
00:01:34 verbose #345 > 00:01:31 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 649 }
00:01:34 verbose #346 > 00:01:31   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 649 }
00:01:34 verbose #347 > 00:01:31   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/apps/scheduler/Tasks.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/apps/scheduler/Tasks.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:01:35 verbose #348 > 00:01:32 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:01:35 verbose #349 > 00:01:32   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:01:35 verbose #350 > 00:01:33   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 14599 }
00:01:35   debug #351 runtime.execute_with_options_async / { exit_code = 0; output_length = 17853 }
00:01:35   debug #4 main / executeCommand / exitCode: 0 / command: ../../workspace/target/release/spiral_builder.exe dib --path Tasks.dib --retries 3
00:01:35 verbose #6 networking.wait_for_port_access / { port = 13805; retry = 0; timeout = Some 100; status = false }
00:01:36 verbose #7 async.run_with_timeout_async / { timeout = 100 }
00:00:00   debug #1 writeDibCode / output: Spi / path: Tasks.dib
00:00:00   debug #2 parseDibCode / output: Spi / file: Tasks.dib
In [ ]:
{ pwsh ../apps/chat/build.ps1 } | Invoke-Block
   Compiling version_check v0.9.4
   Compiling equivalent v1.0.1
   Compiling hashbrown v0.14.5
   Compiling toml_datetime v0.6.6
   Compiling winnow v0.5.40
   Compiling cfg_aliases v0.2.1
   Compiling typenum v1.17.0
   Compiling syn v2.0.70
   Compiling serde v1.0.204
   Compiling borsh v1.5.1
   Compiling serde_json v1.0.120
   Compiling proc-macro-error-attr v1.0.4
   Compiling proc-macro-error v1.0.4
   Compiling generic-array v0.14.7
   Compiling indexmap v2.2.6
   Compiling fnv v1.0.7
   Compiling syn v1.0.109
   Compiling rustversion v1.0.17
   Compiling ident_case v1.0.1
   Compiling wee_alloc v0.4.5
   Compiling ryu v1.0.18
   Compiling near-sdk-macros v5.1.0
   Compiling toml_edit v0.21.1
   Compiling data-encoding v2.6.0
   Compiling heck v0.5.0
   Compiling itoa v1.0.11
   Compiling cfg-if v0.1.10
   Compiling block-buffer v0.10.4
   Compiling crypto-common v0.1.6
   Compiling Inflector v0.11.4
   Compiling memory_units v0.4.0
   Compiling strum v0.26.3
   Compiling digest v0.10.7
   Compiling near-sys v0.2.2
   Compiling once_cell v1.19.0
   Compiling base64 v0.21.7
   Compiling darling_core v0.20.9
   Compiling data-encoding-macro-internal v0.1.13
   Compiling bs58 v0.5.1
   Compiling base-x v0.2.11
   Compiling proc-macro-crate v3.1.0
   Compiling cfg-if v1.0.0
   Compiling sha2 v0.10.8
   Compiling unsigned-varint v0.8.0
   Compiling data-encoding-macro v0.1.15
   Compiling multibase v0.9.1
   Compiling serde_derive v1.0.204
   Compiling syn_derive v0.1.8
   Compiling strum_macros v0.26.4
   Compiling darling_macro v0.20.9
   Compiling borsh-derive v1.5.1
   Compiling darling v0.20.9
   Compiling near-account-id v1.0.0
   Compiling near-token v0.2.0
   Compiling near-gas v0.2.5
   Compiling near-sdk v5.1.0
   Compiling chat_contract v0.0.1 (C:\home\git\polyglot\apps\chat\contract)
    Finished `release` profile [optimized] target(s) in 53.52s
    Updating crates.io index
 Downloading crates ...
  Downloaded async-trait v0.1.81
  Downloaded serde_derive v1.0.204
  Downloaded serde_with_macros v3.8.3
  Downloaded clap v4.5.9
  Downloaded tinyvec v1.8.0
  Downloaded serde v1.0.204
  Downloaded cc v1.0.106
  Downloaded serde_with v3.8.3
  Downloaded clap_builder v4.5.9
  Downloaded syn v2.0.70
  Downloaded zstd-sys v2.0.12+zstd.1.5.6
   Compiling serde v1.0.204
   Compiling syn v2.0.70
   Compiling cc v1.0.106
   Compiling tinyvec v1.8.0
   Compiling openssl-src v300.3.1+3.3.1
   Compiling clap_builder v4.5.9
   Compiling unicode-normalization v0.1.22
   Compiling idna v0.5.0
   Compiling ring v0.17.8
   Compiling zstd-sys v2.0.12+zstd.1.5.6
   Compiling openssl-sys v0.9.102
   Compiling bzip2-sys v0.1.11+1.0.8
   Compiling secp256k1-sys v0.8.1
   Compiling darling_core v0.20.9
   Compiling serde_derive_internals v0.29.1
   Compiling serde_derive v1.0.204
   Compiling tracing-attributes v0.1.27
   Compiling tokio-macros v2.2.0
   Compiling thiserror-impl v1.0.61
   Compiling futures-macro v0.3.30
   Compiling syn_derive v0.1.8
   Compiling pin-project-internal v1.1.5
   Compiling async-trait v0.1.81
   Compiling tokio v1.37.0
   Compiling futures-util v0.3.30
   Compiling tracing v0.1.40
   Compiling tokio-util v0.7.11
   Compiling darling_macro v0.20.9
   Compiling serde_repr v0.1.19
   Compiling h2 v0.3.26
   Compiling thiserror v1.0.61
   Compiling borsh-derive v1.5.1
   Compiling serde_json v1.0.120
   Compiling hex v0.4.3
   Compiling pin-project v1.1.5
   Compiling futures-executor v0.3.30
   Compiling tracing-subscriber v0.3.18
   Compiling hyper v0.14.29
   Compiling tokio-stream v0.1.15
   Compiling enum-map-derive v0.17.0
   Compiling derive_arbitrary v1.3.2
   Compiling derive_more v0.99.18
   Compiling num-rational v0.3.2
   Compiling curve25519-dalek-derive v0.1.1
   Compiling opentelemetry v0.17.0
   Compiling enum-map v2.7.3
   Compiling uint v0.9.5
   Compiling tokio-io-timeout v1.2.0
   Compiling schemars_derive v0.8.21
   Compiling async-stream-impl v0.3.5
   Compiling darling v0.20.9
   Compiling serde_with_macros v3.8.3
   Compiling arbitrary v1.3.2
   Compiling openssl-macros v0.1.1
   Compiling curve25519-dalek v4.1.3
   Compiling ed25519-dalek v2.1.1
   Compiling hyper-timeout v0.4.1
   Compiling borsh v1.5.1
   Compiling near-account-id v1.0.0
   Compiling primitive-types v0.10.1
   Compiling secp256k1 v0.27.0
   Compiling tower v0.4.13
   Compiling async-stream v0.3.5
   Compiling tracing-futures v0.2.5
   Compiling near-config-utils v0.20.1
   Compiling tokio-util v0.6.10
   Compiling near-crypto v0.20.1
   Compiling futures v0.3.30
   Compiling serde_yaml v0.9.34+deprecated
   Compiling actix-rt v2.10.0
   Compiling tonic v0.6.2
   Compiling actix_derive v0.6.1
   Compiling clap_derive v4.5.8
   Compiling actix-macros v0.2.4
   Compiling serde_with v3.8.3
   Compiling near-primitives-core v0.20.1
   Compiling opentelemetry-otlp v0.10.0
   Compiling opentelemetry-semantic-conventions v0.9.0
   Compiling tracing-opentelemetry v0.17.4
   Compiling near-parameters v0.20.1
   Compiling near-fmt v0.20.1
   Compiling tracing-appender v0.2.3
   Compiling near-rpc-error-core v0.20.1
   Compiling url v2.5.2
   Compiling chrono v0.4.38
   Compiling prometheus v0.13.4
   Compiling actix v0.13.5
   Compiling enumflags2_derive v0.7.10
   Compiling near-vm-runner v0.20.1
   Compiling zstd-safe v5.0.2+zstd.1.5.2
   Compiling near-rpc-error-macro v0.20.1
   Compiling clap v4.5.9
   Compiling near-o11y v0.20.1
   Compiling bytesize v1.3.0
   Compiling semver v1.0.23
   Compiling sct v0.7.1
   Compiling rustls-webpki v0.101.7
   Compiling rustls v0.21.12
   Compiling schemars v0.8.21
   Compiling zeroize_derive v1.4.2
   Compiling backtrace v0.3.71
   Compiling zstd v0.11.2+zstd.1.5.2
   Compiling bzip2 v0.4.4
   Compiling enumflags2 v0.7.10
   Compiling tracing-error v0.2.0
   Compiling zvariant v3.15.2
   Compiling serde_urlencoded v0.7.1
   Compiling near-primitives v0.20.1
   Compiling async-recursion v1.1.1
   Compiling zbus_names v2.6.1
   Compiling ureq v2.9.1
   Compiling color-spantrace v0.2.1
   Compiling zip v0.6.6
   Compiling near_schemafy_core v0.7.0
   Compiling toml_datetime v0.6.6
   Compiling serde_spanned v0.6.6
   Compiling scroll_derive v0.11.1
   Compiling near-abi v0.4.3
   Compiling toml_edit v0.19.15
   Compiling zeroize v1.3.0
   Compiling curve25519-dalek v3.2.1
   Compiling near_schemafy_lib v0.7.0
   Compiling ed25519-dalek v1.0.1
   Compiling binary-install v0.2.0
   Compiling color-eyre v0.6.3
   Compiling zbus v3.15.2
   Compiling near-chain-configs v0.20.1
   Compiling near-token v0.2.0
   Compiling string_cache v0.8.7
   Compiling csv v1.3.0
   Compiling cargo-platform v0.1.8
   Compiling camino v1.1.7
   Compiling elementtree v0.7.0
   Compiling near-jsonrpc-primitives v0.20.1
   Compiling prettytable v0.10.0
   Compiling near-sandbox-utils v0.8.0
   Compiling slip10 v0.4.3
   Compiling near-abi-client-impl v0.1.1
   Compiling toml v0.7.8
   Compiling scroll v0.11.0
   Compiling goblin v0.5.4
   Compiling secret-service v3.1.0
   Compiling near-gas v0.2.5
   Compiling bip39 v2.0.0
   Compiling linked-hash-map v0.5.6
   Compiling zip v0.5.13
   Compiling inquire v0.6.2
   Compiling smart-default v0.7.1
   Compiling symbolic-debuginfo v8.8.0
   Compiling near-abi-client-macros v0.1.1
   Compiling keyring v2.3.3
   Compiling near-workspaces v0.10.1
   Compiling cargo_metadata v0.14.2
   Compiling rustc_version v0.4.0
   Compiling cargo_metadata v0.18.1
   Compiling json-patch v1.4.0
   Compiling tokio-retry v0.3.0
   Compiling near-abi-client v0.1.1
   Compiling openssl v0.10.64
   Compiling native-tls v0.2.12
   Compiling crypto-hash v0.3.4
   Compiling cargo-util v0.1.2
   Compiling tokio-native-tls v0.3.1
   Compiling hyper-tls v0.5.0
   Compiling reqwest v0.11.27
   Compiling near-jsonrpc-client v0.8.0
   Compiling near-socialdb-client v0.2.2
   Compiling near-cli-rs v0.7.8
   Compiling cargo-near v0.5.2
   Compiling chat_contract_tests v0.0.1 (/mnt/c/home/git/polyglot/apps/chat/contract/tests)
    Finished `release` profile [optimized] target(s) in 33m 56s
     Running `/mnt/c/home/git/polyglot/workspace/target/release/chat_contract_tests`


new: ExecutionFinalResult {
    total_gas_burnt: NearGas {
        inner: 5283587146524,
    },
    transaction: ExecutionOutcome {
        transaction_hash: 6QMHH5XKxCzny2wYaeAUCdYZNhyPs8Le7gRi22QFn1Bs,
        block_hash: 85ivkCoDGsNj7Wjyg6bxK2jJLRUHbSAFN6BquPHo33wU,
        logs: [],
        receipt_ids: [
            3yA2XMguTnNRu8DxDbPHuiWAuWRMJfDAiRBJpx64Sf4m,
        ],
        gas_burnt: NearGas {
            inner: 2427927707802,
        },
        tokens_burnt: NearToken {
            inner: 242792770780200000000,
        },
        executor_id: AccountId(
            "dev-20240709034957-84377315504835",
        ),
        status: SuccessReceiptId(3yA2XMguTnNRu8DxDbPHuiWAuWRMJfDAiRBJpx64Sf4m),
    },
    receipts: [
        ExecutionOutcome {
            transaction_hash: 3yA2XMguTnNRu8DxDbPHuiWAuWRMJfDAiRBJpx64Sf4m,
            block_hash: 85ivkCoDGsNj7Wjyg6bxK2jJLRUHbSAFN6BquPHo33wU,
            logs: [],
            receipt_ids: [
                dXPe1dEGrsx2rA2YphUFL9mBWqXUNZd4uDvuqVZkTRy,
            ],
            gas_burnt: NearGas {
                inner: 2632476876222,
            },
            tokens_burnt: NearToken {
                inner: 263247687622200000000,
            },
            executor_id: AccountId(
                "dev-20240709034957-84377315504835",
            ),
            status: SuccessValue(''),
        },
        ExecutionOutcome {
            transaction_hash: dXPe1dEGrsx2rA2YphUFL9mBWqXUNZd4uDvuqVZkTRy,
            block_hash: B43wTYwsK1AVtLR8MRmmUJUUCY9stgpcYBL6oDJHebA8,
            logs: [],
            receipt_ids: [],
            gas_burnt: NearGas {
                inner: 223182562500,
            },
            tokens_burnt: NearToken {
                inner: 0,
            },
            executor_id: AccountId(
                "dev-20240709034957-84377315504835",
            ),
            status: SuccessValue(''),
        },
    ],
    status: SuccessValue(''),
}
total_gas_burnt_usd: 0.003529436213878032
outcome (success: true):
  outcome_gas_burnt_usd: 0.001621855708811736
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.001758494553316296
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.00014908595175
  outcome_tokens_burnt_usd: 0.0


claim_alias(contract, ''): ExecutionFinalResult {
    total_gas_burnt: NearGas {
        inner: 5278900605586,
    },
    transaction: ExecutionOutcome {
        transaction_hash: H52Z54MBA8cQCU27d8HD2qzBf5GPkmh12cGsqe7NZTM2,
        block_hash: BS8x314Js5MkUpZM8jThF7ENUQ8FFyKTrNV9cQTBQePz,
        logs: [],
        receipt_ids: [
            BcBooutWjJW64nxKpPX25sZuWDcPQR98VYfQD4rv3AKv,
        ],
        gas_burnt: NearGas {
            inner: 2427972426482,
        },
        tokens_burnt: NearToken {
            inner: 242797242648200000000,
        },
        executor_id: AccountId(
            "dev-20240709034957-84377315504835",
        ),
        status: SuccessReceiptId(BcBooutWjJW64nxKpPX25sZuWDcPQR98VYfQD4rv3AKv),
    },
    receipts: [
        ExecutionOutcome {
            transaction_hash: BcBooutWjJW64nxKpPX25sZuWDcPQR98VYfQD4rv3AKv,
            block_hash: BS8x314Js5MkUpZM8jThF7ENUQ8FFyKTrNV9cQTBQePz,
            logs: [
                "claim_alias / alias: \"\" / account_id: AccountId(\n    \"dev-20240709034957-84377315504835\",\n) / timestamp: 1720497000776423848",
            ],
            receipt_ids: [
                B6rMF2V5gtYnWXt3tLWM5Lv16TRiPyWBccWKvU7WpRzX,
            ],
            gas_burnt: NearGas {
                inner: 2627745616604,
            },
            tokens_burnt: NearToken {
                inner: 262774561660400000000,
            },
            executor_id: AccountId(
                "dev-20240709034957-84377315504835",
            ),
            status: Failure(ActionError(ActionError { index: Some(0), kind: FunctionCallError(ExecutionError("Smart contract panicked: Invalid alias")) })),
        },
        ExecutionOutcome {
            transaction_hash: B6rMF2V5gtYnWXt3tLWM5Lv16TRiPyWBccWKvU7WpRzX,
            block_hash: 3E5HNLTN5hn5QFcQokVy7JvGeUhnqt2b9JHYqdfT91W1,
            logs: [],
            receipt_ids: [],
            gas_burnt: NearGas {
                inner: 223182562500,
            },
            tokens_burnt: NearToken {
                inner: 0,
            },
            executor_id: AccountId(
                "dev-20240709034957-84377315504835",
            ),
            status: SuccessValue(''),
        },
    ],
    status: Failure(ActionError(ActionError { index: Some(0), kind: FunctionCallError(ExecutionError("Smart contract panicked: Invalid alias")) })),
}
total_gas_burnt_usd: 0.0035263056045314474
outcome (success: true):
  outcome_gas_burnt_usd: 0.001621885580889976
  outcome_tokens_burnt_usd: 0.0
outcome (success: false):
  outcome_gas_burnt_usd: 0.001755334071891472
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.00014908595175
  outcome_tokens_burnt_usd: 0.0


dev_create_account(account1): Account {
    id: AccountId(
        "dev-20240709035001-44294498826861",
    ),
}


generate_cid_borsh(account1): ViewResultDetails {
    result: [
        59,
        0,
        0,
        0,
        98,
        97,
        102,
        107,
        114,
        101,
        105,
        104,
        100,
        119,
        100,
        99,
        101,
        102,
        103,
        104,
        52,
        100,
        113,
        107,
        106,
        118,
        54,
        55,
        117,
        122,
        99,
        109,
        119,
        55,
        111,
        106,
        101,
        101,
        54,
        120,
        101,
        100,
        122,
        100,
        101,
        116,
        111,
        106,
        117,
        122,
        106,
        101,
        118,
        116,
        101,
        110,
        120,
        113,
        117,
        118,
        121,
        107,
        117,
    ],
    logs: [],
}


claim_alias(account1, alias1): ExecutionFinalResult {
    total_gas_burnt: NearGas {
        inner: 5698509475495,
    },
    transaction: ExecutionOutcome {
        transaction_hash: 38rdYoZFFHS49U1LFAdvEsJnzBAHU49MNPdaFpnM5gkq,
        block_hash: 8mWBLVc2B43UhsP4czSK76MT78HYXcCZZXtjC9Un1p3Q,
        logs: [],
        receipt_ids: [
            HuZ2J7L2SdmQZB8NJo5QqrRFYfF5pRn7AK9ELkscy3HF,
        ],
        gas_burnt: NearGas {
            inner: 2427985842086,
        },
        tokens_burnt: NearToken {
            inner: 242798584208600000000,
        },
        executor_id: AccountId(
            "dev-20240709035001-44294498826861",
        ),
        status: SuccessReceiptId(HuZ2J7L2SdmQZB8NJo5QqrRFYfF5pRn7AK9ELkscy3HF),
    },
    receipts: [
        ExecutionOutcome {
            transaction_hash: HuZ2J7L2SdmQZB8NJo5QqrRFYfF5pRn7AK9ELkscy3HF,
            block_hash: 29WYpvZmnxYxte5aLZuB18vDhknamwzkHZYvBPygYTRG,
            logs: [
                "claim_alias / alias: \"alias1\" / account_id: AccountId(\n    \"dev-20240709035001-44294498826861\",\n) / timestamp: 1720497002603027501",
            ],
            receipt_ids: [
                WpwcDqyjnAFiSty3Fh54p6sycAWJArivd1A6J1eWe57,
            ],
            gas_burnt: NearGas {
                inner: 3047341070909,
            },
            tokens_burnt: NearToken {
                inner: 304734107090900000000,
            },
            executor_id: AccountId(
                "dev-20240709034957-84377315504835",
            ),
            status: SuccessValue(''),
        },
        ExecutionOutcome {
            transaction_hash: WpwcDqyjnAFiSty3Fh54p6sycAWJArivd1A6J1eWe57,
            block_hash: FJgRGKDoQSQqj8XVkD88Kib4sxYyJk1hjs2dmHptYXy7,
            logs: [],
            receipt_ids: [],
            gas_burnt: NearGas {
                inner: 223182562500,
            },
            tokens_burnt: NearToken {
                inner: 0,
            },
            executor_id: AccountId(
                "dev-20240709035001-44294498826861",
            ),
            status: SuccessValue(''),
        },
    ],
    status: SuccessValue(''),
}
total_gas_burnt_usd: 0.00380660432963066
outcome (success: true):
  outcome_gas_burnt_usd: 0.0016218945425134478
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.002035623835367212
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.00014908595175
  outcome_tokens_burnt_usd: 0.0


claim_alias(account1, alias1): ExecutionFinalResult {
    total_gas_burnt: NearGas {
        inner: 5523425631856,
    },
    transaction: ExecutionOutcome {
        transaction_hash: 8K1WzBZYsSN9FbhWLfQr5rYuhK91T7enphmcckeEd64z,
        block_hash: A2k3M3M6cSPmd1ScjZoP3cnzV184mq9MCjZmgeKztN26,
        logs: [],
        receipt_ids: [
            APHyD3y1xK3jaBHRh5fqnxRBds23qHdL2s8QymLGkHyG,
        ],
        gas_burnt: NearGas {
            inner: 2427985842086,
        },
        tokens_burnt: NearToken {
            inner: 242798584208600000000,
        },
        executor_id: AccountId(
            "dev-20240709035001-44294498826861",
        ),
        status: SuccessReceiptId(APHyD3y1xK3jaBHRh5fqnxRBds23qHdL2s8QymLGkHyG),
    },
    receipts: [
        ExecutionOutcome {
            transaction_hash: APHyD3y1xK3jaBHRh5fqnxRBds23qHdL2s8QymLGkHyG,
            block_hash: 51t4zmj2jsC758MCehT5PEjNHBWbdfy4p3e6FFRkXjYU,
            logs: [
                "claim_alias / alias: \"alias1\" / account_id: AccountId(\n    \"dev-20240709035001-44294498826861\",\n) / timestamp: 1720497003614857030",
                "Alias already claimed",
            ],
            receipt_ids: [
                7GB147kpwfrRVe3gTu5A1bgHKjAcxfsVCEkSjdbSLC57,
            ],
            gas_burnt: NearGas {
                inner: 2872257227270,
            },
            tokens_burnt: NearToken {
                inner: 287225722727000000000,
            },
            executor_id: AccountId(
                "dev-20240709034957-84377315504835",
            ),
            status: SuccessValue(''),
        },
        ExecutionOutcome {
            transaction_hash: 7GB147kpwfrRVe3gTu5A1bgHKjAcxfsVCEkSjdbSLC57,
            block_hash: 91QQjdmZ1MdaAxbaRR47KiPtTcc1kfFHjBNP2VHip4Z1,
            logs: [],
            receipt_ids: [],
            gas_burnt: NearGas {
                inner: 223182562500,
            },
            tokens_burnt: NearToken {
                inner: 0,
            },
            executor_id: AccountId(
                "dev-20240709035001-44294498826861",
            ),
            status: SuccessValue(''),
        },
    ],
    status: SuccessValue(''),
}
total_gas_burnt_usd: 0.0036896483220798075
outcome (success: true):
  outcome_gas_burnt_usd: 0.0016218945425134478
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.00191866782781636
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.00014908595175
  outcome_tokens_burnt_usd: 0.0


get_account_info(account1): Some(
    (
        "alias1",
        (
            1720497002603027501,
            0,
        ),
    ),
)


get_alias_map(account1, alias1): Some(
    {
        AccountId(
            "dev-20240709035001-44294498826861",
        ): (
            1720497002603027501,
            0,
        ),
    },
)


dev_create_account(account2): Account {
    id: AccountId(
        "dev-20240709035004-75162092353121",
    ),
}


claim_alias(alias2): ExecutionFinalResult {
    total_gas_burnt: NearGas {
        inner: 5785859255125,
    },
    transaction: ExecutionOutcome {
        transaction_hash: 2B8yhjAwwerRSpfYynU2Sx5Ee91PLH1uATrPvCMEv2Cf,
        block_hash: 79XPu2TtD9JZL5iRMCcNxJwakzKJFkHGdgFivhf8bZV7,
        logs: [],
        receipt_ids: [
            3Y6oWbKSbKgjx6amLGih3Mm1jVNqPH9tYeRmKBcJvox5,
        ],
        gas_burnt: NearGas {
            inner: 2427985842086,
        },
        tokens_burnt: NearToken {
            inner: 242798584208600000000,
        },
        executor_id: AccountId(
            "dev-20240709035004-75162092353121",
        ),
        status: SuccessReceiptId(3Y6oWbKSbKgjx6amLGih3Mm1jVNqPH9tYeRmKBcJvox5),
    },
    receipts: [
        ExecutionOutcome {
            transaction_hash: 3Y6oWbKSbKgjx6amLGih3Mm1jVNqPH9tYeRmKBcJvox5,
            block_hash: BdmPGqGF3o28DoSCti2zydmws4atkKgUvuKjkfBBg4r,
            logs: [
                "claim_alias / alias: \"alias2\" / account_id: AccountId(\n    \"dev-20240709035004-75162092353121\",\n) / timestamp: 1720497005642773389",
            ],
            receipt_ids: [
                AH3WgHX1EpFkQ1nA6gsyWEwvEdYC1ByRjbgpmTJRrJiG,
            ],
            gas_burnt: NearGas {
                inner: 3134690850539,
            },
            tokens_burnt: NearToken {
                inner: 313469085053900000000,
            },
            executor_id: AccountId(
                "dev-20240709034957-84377315504835",
            ),
            status: SuccessValue(''),
        },
        ExecutionOutcome {
            transaction_hash: AH3WgHX1EpFkQ1nA6gsyWEwvEdYC1ByRjbgpmTJRrJiG,
            block_hash: G1avcqsWR9JoN1nXGaaRqiX92k3xptuL7Liv42E7Mejy,
            logs: [],
            receipt_ids: [],
            gas_burnt: NearGas {
                inner: 223182562500,
            },
            tokens_burnt: NearToken {
                inner: 0,
            },
            executor_id: AccountId(
                "dev-20240709035004-75162092353121",
            ),
            status: SuccessValue(''),
        },
    ],
    status: SuccessValue(''),
}
total_gas_burnt_usd: 0.0038649539824235
outcome (success: true):
  outcome_gas_burnt_usd: 0.0016218945425134478
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.0020939734881600517
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.00014908595175
  outcome_tokens_burnt_usd: 0.0


get_account_info(account2): Some(
    (
        "alias2",
        (
            1720497005642773389,
            0,
        ),
    ),
)


get_alias_map_borsh(alias2): Some(
    {
        AccountId(
            "dev-20240709035004-75162092353121",
        ): (
            1720497005642773389,
            0,
        ),
    },
)


claim_alias(account2, alias1): ExecutionFinalResult {
    total_gas_burnt: NearGas {
        inner: 6089562420736,
    },
    transaction: ExecutionOutcome {
        transaction_hash: GR8iSjBan72LE24MeiW6351ENp1CRXmMYA1T8qiKurEq,
        block_hash: EWB2joErnYVCCuV8er892iaaprTUBjXw7BJ6uU1Hp8jE,
        logs: [],
        receipt_ids: [
            A3MLjgHxp3erSjzzR3VCodHe268n3rCrD7RyqryKRqFc,
        ],
        gas_burnt: NearGas {
            inner: 2427985842086,
        },
        tokens_burnt: NearToken {
            inner: 242798584208600000000,
        },
        executor_id: AccountId(
            "dev-20240709035004-75162092353121",
        ),
        status: SuccessReceiptId(A3MLjgHxp3erSjzzR3VCodHe268n3rCrD7RyqryKRqFc),
    },
    receipts: [
        ExecutionOutcome {
            transaction_hash: A3MLjgHxp3erSjzzR3VCodHe268n3rCrD7RyqryKRqFc,
            block_hash: EekCo8QDRN5VKJxXqQa1Kfert8Cvjs6KLRSYBh6vGCB2,
            logs: [
                "claim_alias / alias: \"alias1\" / account_id: AccountId(\n    \"dev-20240709035004-75162092353121\",\n) / timestamp: 1720497006656672418",
            ],
            receipt_ids: [
                A3Weonx23zf1DxwQ4nq8MgaJPAJvBfTNWMLYt2gLpb1D,
            ],
            gas_burnt: NearGas {
                inner: 3438394016150,
            },
            tokens_burnt: NearToken {
                inner: 343839401615000000000,
            },
            executor_id: AccountId(
                "dev-20240709034957-84377315504835",
            ),
            status: SuccessValue(''),
        },
        ExecutionOutcome {
            transaction_hash: A3Weonx23zf1DxwQ4nq8MgaJPAJvBfTNWMLYt2gLpb1D,
            block_hash: FGMNqkYXSVEw9tt4AVMRgzoCEGNL6DF7myQNe2t7qSUa,
            logs: [],
            receipt_ids: [],
            gas_burnt: NearGas {
                inner: 223182562500,
            },
            tokens_burnt: NearToken {
                inner: 0,
            },
            executor_id: AccountId(
                "dev-20240709035004-75162092353121",
            ),
            status: SuccessValue(''),
        },
    ],
    status: SuccessValue(''),
}
total_gas_burnt_usd: 0.004067827697051648
outcome (success: true):
  outcome_gas_burnt_usd: 0.0016218945425134478
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.0022968472027882
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.00014908595175
  outcome_tokens_burnt_usd: 0.0


get_account_info(account2): Some(
    (
        "alias1",
        (
            1720497006656672418,
            1,
        ),
    ),
)


get_alias_map(account2, alias1): Some(
    {
        AccountId(
            "dev-20240709035001-44294498826861",
        ): (
            1720497002603027501,
            0,
        ),
        AccountId(
            "dev-20240709035004-75162092353121",
        ): (
            1720497006656672418,
            1,
        ),
    },
)


get_alias_map(account2, alias2): Some(
    {},
)


claim_alias(account1, alias2): ExecutionFinalResult {
    total_gas_burnt: NearGas {
        inner: 6084522217480,
    },
    transaction: ExecutionOutcome {
        transaction_hash: 3N4Loqen7n15xHetPdBcLjf27483EN7fxpW8hY8qhUmb,
        block_hash: GCPUSNMbKWb9uW5ycbWvFeDAt7VX6834L8xwCXdjaz57,
        logs: [],
        receipt_ids: [
            9vt8AJoAQVyphx4hqdEqKuXumrNxsvgNrupEy8u9VdJh,
        ],
        gas_burnt: NearGas {
            inner: 2427985842086,
        },
        tokens_burnt: NearToken {
            inner: 242798584208600000000,
        },
        executor_id: AccountId(
            "dev-20240709035001-44294498826861",
        ),
        status: SuccessReceiptId(9vt8AJoAQVyphx4hqdEqKuXumrNxsvgNrupEy8u9VdJh),
    },
    receipts: [
        ExecutionOutcome {
            transaction_hash: 9vt8AJoAQVyphx4hqdEqKuXumrNxsvgNrupEy8u9VdJh,
            block_hash: 4hPNLfsGDjDtWDBd8k4xaZYqYiPaeJJQ5KPcq7UxF2wG,
            logs: [
                "claim_alias / alias: \"alias2\" / account_id: AccountId(\n    \"dev-20240709035001-44294498826861\",\n) / timestamp: 1720497007669794749",
            ],
            receipt_ids: [
                6fKXemPS84u9GMykKFuLCKs56QkgAdSig3ohkw43CqWs,
            ],
            gas_burnt: NearGas {
                inner: 3433353812894,
            },
            tokens_burnt: NearToken {
                inner: 343335381289400000000,
            },
            executor_id: AccountId(
                "dev-20240709034957-84377315504835",
            ),
            status: SuccessValue(''),
        },
        ExecutionOutcome {
            transaction_hash: 6fKXemPS84u9GMykKFuLCKs56QkgAdSig3ohkw43CqWs,
            block_hash: D7wqLibRhqDYCM3y85jxCWsMtzFXdwEao5BGsYcEqQQf,
            logs: [],
            receipt_ids: [],
            gas_burnt: NearGas {
                inner: 223182562500,
            },
            tokens_burnt: NearToken {
                inner: 0,
            },
            executor_id: AccountId(
                "dev-20240709035001-44294498826861",
            ),
            status: SuccessValue(''),
        },
    ],
    status: SuccessValue(''),
}
total_gas_burnt_usd: 0.004064460841276639
outcome (success: true):
  outcome_gas_burnt_usd: 0.0016218945425134478
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.002293480347013192
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.00014908595175
  outcome_tokens_burnt_usd: 0.0


get_account_info(account1): Some(
    (
        "alias2",
        (
            1720497007669794749,
            0,
        ),
    ),
)


get_alias_map(account1, alias2): Some(
    {
        AccountId(
            "dev-20240709035001-44294498826861",
        ): (
            1720497007669794749,
            0,
        ),
    },
)


get_alias_map(account1, alias1): Some(
    {
        AccountId(
            "dev-20240709035004-75162092353121",
        ): (
            1720497006656672418,
            1,
        ),
    },
)


claim_alias(account1, alias1): ExecutionFinalResult {
    total_gas_burnt: NearGas {
        inner: 6089562420736,
    },
    transaction: ExecutionOutcome {
        transaction_hash: 3cPmGEYrVkiU9crX7tFjgTCfuGXye1VszkDQM93bdch5,
        block_hash: JZ1aSaxbn6E4pYwvratQBmK81hCE7xBqGDP7TMuTGGu,
        logs: [],
        receipt_ids: [
            GQZHye4RJuFrp6vWFYeTFiBpbADCWnARBSYjJtAnXCH2,
        ],
        gas_burnt: NearGas {
            inner: 2427985842086,
        },
        tokens_burnt: NearToken {
            inner: 242798584208600000000,
        },
        executor_id: AccountId(
            "dev-20240709035001-44294498826861",
        ),
        status: SuccessReceiptId(GQZHye4RJuFrp6vWFYeTFiBpbADCWnARBSYjJtAnXCH2),
    },
    receipts: [
        ExecutionOutcome {
            transaction_hash: GQZHye4RJuFrp6vWFYeTFiBpbADCWnARBSYjJtAnXCH2,
            block_hash: 52LsQhXiFbA6o8HUMY99LcoqWPnMnTwofQzEGFpKuQ5t,
            logs: [
                "claim_alias / alias: \"alias1\" / account_id: AccountId(\n    \"dev-20240709035001-44294498826861\",\n) / timestamp: 1720497008886866788",
            ],
            receipt_ids: [
                AwFpa891Y8a8Bm3LLiy3H6Z3U96oz96CEZMMoN5wwVmG,
            ],
            gas_burnt: NearGas {
                inner: 3438394016150,
            },
            tokens_burnt: NearToken {
                inner: 343839401615000000000,
            },
            executor_id: AccountId(
                "dev-20240709034957-84377315504835",
            ),
            status: SuccessValue(''),
        },
        ExecutionOutcome {
            transaction_hash: AwFpa891Y8a8Bm3LLiy3H6Z3U96oz96CEZMMoN5wwVmG,
            block_hash: CYDVt9zXrieBusYZhMMdFowbYV6B8ruwWU79owmgZ9ge,
            logs: [],
            receipt_ids: [],
            gas_burnt: NearGas {
                inner: 223182562500,
            },
            tokens_burnt: NearToken {
                inner: 0,
            },
            executor_id: AccountId(
                "dev-20240709035001-44294498826861",
            ),
            status: SuccessValue(''),
        },
    ],
    status: SuccessValue(''),
}
total_gas_burnt_usd: 0.004067827697051648
outcome (success: true):
  outcome_gas_burnt_usd: 0.0016218945425134478
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.0022968472027882
  outcome_tokens_burnt_usd: 0.0
outcome (success: true):
  outcome_gas_burnt_usd: 0.00014908595175
  outcome_tokens_burnt_usd: 0.0


get_account_info(account1): Some(
    (
        "alias1",
        (
            1720497008886866788,
            1,
        ),
    ),
)


get_alias_map(account1, alias1): Some(
    {
        AccountId(
            "dev-20240709035004-75162092353121",
        ): (
            1720497006656672418,
            0,
        ),
        AccountId(
            "dev-20240709035001-44294498826861",
        ): (
            1720497008886866788,
            1,
        ),
    },
)


get_alias_map(account1, alias2): Some(
    {},
)
In [ ]:
{ pwsh ../apps/spiral/temp/extension/build.ps1 } | Invoke-Block
bun install v1.1.7 (b0b7db5c)

Checked 11 installs across 13 packages (no changes) [507.00ms]
[INFO]: 🎯  Checking for the Wasm target...
[INFO]: 🌀  Compiling to Wasm...
warning: enum `AlbumData` is never used
  --> C:\home\git\polyglot\apps\spiral\temp\extension\src\timer.rs:52:6
   |
52 | enum AlbumData {
   |      ^^^^^^^^^
   |
   = note: `#[warn(dead_code)]` on by default

warning: `spiral_temp_extension` (lib) generated 1 warning
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.90s
[INFO]: ⬇️  Installing wasm-bindgen...
[INFO]: Optional field missing from Cargo.toml: 'description'. This is not necessary, but recommended
[INFO]: origin crate has no LICENSE
[INFO]: ✨   Done in 14.21s
[INFO]: 📦   Your wasm pkg is ready to publish at C:\home\git\polyglot\apps\spiral\temp\extension\pkg.
▲ [WARNING] "import.meta" is not available with the "iife" output format and will be empty [empty-import-meta]

    pkg/spiral_temp_extension.js:1494:57:
      1494 │ ...put = new URL('spiral_temp_extension_bg.wasm', import.meta.url);
           ╵                                                   ~~~~~~~~~~~

  You need to set the output format to "esm" for "import.meta" to work correctly.

1 warning

  dist\spiral_temp_extension_bg-5KWOYDYA.wasm   4.5mb ⚠️
  dist\devtools.js                             29.0kb
  dist\content_script.js                       27.1kb
  dist\service_worker.js                        2.2kb

⚡ Done in 288ms
$ playwright test
[WebServer]  Saved lockfile


Running 3 tests using 3 workers

[1/3] [Desktop Chrome] › extension.spec.ts:13:5 › libgen
[2/3] [Desktop Chrome] › extension.spec.ts:8:5 › popup extension
[3/3] [Desktop Chrome] › extension.spec.ts:3:5 › popup localhost
  3 passed (42.6s)

To open last HTML report run:

  npx playwright show-report

In [ ]:
{ pwsh ../apps/spiral/temp/test/build.ps1 } | Invoke-Block
00:00:01 verbose #1 async.run_with_timeout_async / { timeout = 180 }
00:00:01   debug #1 runtime.execute_with_options_async / { options = { command = dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = Some <fun:main@570-7>; stdin = None; trace = true; working_directory = Some "C:\home\git\polyglot" } }
00:00:03 verbose #2 > 00:00:00   debug #1 pwd: C:\home\git\polyglot
00:00:03 verbose #3 > 00:00:00   debug #2 dllPath: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:03 verbose #4 > 00:00:00   debug #3 targetDir: C:\home\git\polyglot\target/spiral_Eval
00:00:03 verbose #2 async.run_with_timeout_async / { timeout = 100 }
00:00:03 verbose #3 networking.wait_for_port_access / { port = 13805; retry = 0; timeout = Some 100; status = true }
00:00:03 verbose #4 async.run_with_timeout_async / { timeout = 100 }
00:00:03 verbose #5 async.run_with_timeout_async / { timeout = 100 }
00:00:03   debug #1 runWithTimeoutAsync / timeout: 500
00:00:04 verbose #5 > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:05 verbose #2 Supervisor.sendJson / port: 13805 / json: {"Ping":true} / result:
00:00:05 verbose #3 awaitCompiler / Ping / result: 'Some(null)' / port: 13805 / retry: 0
00:00:05 verbose #6 > Server bound to: http://localhost:13805
00:00:05   debug #7 runtime.execute_with_options_async / { options = { command = ../../../../workspace/target/release/spiral_builder.exe dib --path build.dib; cancellation_token = Some System.Threading.CancellationToken; environment_variables = [||]; on_line = None; stdin = None; trace = true; working_directory = None } }
00:00:05 verbose #8 > 00:00:00   debug #1 spiral_builder.main / { args = Array(MutCell(["dib", "--path", "build.dib"])) }
00:00:05 verbose #9 > 00:00:00   debug #2 runtime.execute_with_options / { file_name = dotnet; arguments = ["repl", "--exit-after-run", "--run", "c:/home/git/polyglot/apps/spiral/temp/test/build.dib", "--output-path", "c:/home/git/polyglot/apps/spiral/temp/test/build.dib.ipynb"]; options = { command = dotnet repl --exit-after-run --run "c:/home/git/polyglot/apps/spiral/temp/test/build.dib" --output-path "c:/home/git/polyglot/apps/spiral/temp/test/build.dib.ipynb"; cancellation_token = None; environment_variables = Array(MutCell([("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin = None; trace = false; working_directory = None } }
00:00:13 verbose #10 > >
00:00:13 verbose #11 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 verbose #12 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 verbose #13 > > │ # test                                                                       │
00:00:13 verbose #14 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 verbose #15 > >
00:00:13 verbose #16 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 verbose #17 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 verbose #18 > > │ ## include scripts                                                           │
00:00:13 verbose #19 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 verbose #20 > >
00:00:13 verbose #21 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 verbose #22 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 verbose #23 > > │ ### include notebook core                                                    │
00:00:13 verbose #24 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 verbose #25 > >
00:00:13 verbose #26 > > ── pwsh ────────────────────────────────────────────────────────────────────────
00:00:13 verbose #27 > > . ../../../../scripts/nbs_header.ps1
00:00:15 verbose #28 > >
00:00:15 verbose #29 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 verbose #30 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 verbose #31 > > │ ### Include core functions script                                            │
00:00:15 verbose #32 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 verbose #33 > >
00:00:15 verbose #34 > > ── pwsh ────────────────────────────────────────────────────────────────────────
00:00:15 verbose #35 > > . ../../../../scripts/core.ps1
00:00:15 verbose #36 > >
00:00:15 verbose #37 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 verbose #38 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 verbose #39 > > │ ### Include spiral library                                                   │
00:00:15 verbose #40 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 verbose #41 > >
00:00:15 verbose #42 > > ── pwsh ────────────────────────────────────────────────────────────────────────
00:00:15 verbose #43 > > . ../../../../lib/spiral/lib.ps1
00:00:15 verbose #44 > >
00:00:15 verbose #45 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 verbose #46 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 verbose #47 > > │ ## execute project commands                                                  │
00:00:15 verbose #48 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 verbose #49 > >
00:00:15 verbose #50 > > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 verbose #51 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 verbose #52 > > │ ### run notebook with retries using spiral supervisor                        │
00:00:15 verbose #53 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 verbose #54 > >
00:00:15 verbose #55 > > ── pwsh ────────────────────────────────────────────────────────────────────────
00:00:15 verbose #56 > > { . ../../../../apps/spiral/dist/Supervisor$(_exe) --execute-command
00:00:15 verbose #57 > > "../../../../workspace/target/release/spiral_builder$(_exe) dib --path test.dib
00:00:15 verbose #58 > > --retries 3" } | Invoke-Block
00:00:40 verbose #59 > 00:00:37   debug #4 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fa7845de436c12d0ca65282fe0cd65832468ca943e72feba50e6b1bb441e251a/main.spi
00:00:48 verbose #60 > 00:00:45   debug #5 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/ce990c2052584bdfe3d9095a6f66f3692ed9d22db4dfe9c0572634f2ad4150ae/main.spi
00:00:59 verbose #61 > 00:00:56   debug #6 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/fe0c2514da1c8580e6109e31362282ad2ab3a7239f752cd4b1aee48fbab1b1b8/main.spi
00:01:00 verbose #62 > 00:00:57   debug #7 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/target/spiral_Eval/packages/178adaa8563fb65ff883d10755bcf85f8b120a85a2cb7d9c92ec7d8259bf1906/main.spi
00:01:00 verbose #63 > <test>
00:01:00 verbose #64 > </test>
00:01:18 verbose #65 > >
00:01:18 verbose #66 > > ╭─[ 1.05m - stdout ]───────────────────────────────────────────────────────────╮
00:01:18 verbose #67 > > │ 00:00:01 verbose #1 async.run_with_timeout_async / { timeout = 180 }    │
00:01:18 verbose #68 > > │ 00:00:02   debug #1 runtime.execute_with_options_async / { options = {  │
00:01:18 verbose #69 > > │ command = ../../../../workspace/target/release/spiral_builder.exe dib --path │
00:01:18 verbose #70 > > │ test.dib --retries 3; cancellation_token = Some                              │
00:01:18 verbose #71 > > │ System.Threading.CancellationToken; environment_variables = [||]; on_line =  │
00:01:18 verbose #72 > > │ None; stdin = None; trace = true; working_directory = None } }               │
00:01:18 verbose #73 > > │ 00:00:02 verbose #2 > 00:00:00   debug #1 spiral_builder.main / { │
00:01:18 verbose #74 > > │ args = Array(MutCell(["dib", "--path", "test.dib", "--retries", "3"])) }     │
00:01:18 verbose #75 > > │ 00:00:02 verbose #3 > 00:00:00   debug #2                         │
00:01:18 verbose #76 > > │ runtime.execute_with_options / { file_name = dotnet; arguments = ["repl",    │
00:01:18 verbose #77 > > │ "--exit-after-run", "--run",                                                 │
00:01:18 verbose #78 > > │ "c:/home/git/polyglot/apps/spiral/temp/test/test.dib", "--output-path",      │
00:01:18 verbose #79 > > │ "c:/home/git/polyglot/apps/spiral/temp/test/test.dib.ipynb"]; options = {    │
00:01:18 verbose #80 > > │ command = dotnet repl --exit-after-run --run                                 │
00:01:18 verbose #81 > > │ "c:/home/git/polyglot/apps/spiral/temp/test/test.dib" --output-path          │
00:01:18 verbose #82 > > │ "c:/home/git/polyglot/apps/spiral/temp/test/test.dib.ipynb";                 │
00:01:18 verbose #83 > > │ cancellation_token = None; environment_variables = Array(MutCell([           │
00:01:18 verbose #84 > > │ ("TRACE_LEVEL", "Verbose"), ("AUTOMATION", "True")])); on_line = None; stdin │
00:01:18 verbose #85 > > │ = None; trace = false; working_directory = None } }                          │
00:01:18 verbose #86 > > │ 00:00:09 verbose #4 > >                                                 │
00:01:18 verbose #87 > > │ 00:00:09 verbose #5 > > ── markdown                                     │
00:01:18 verbose #88 > > │ ────────────────────────────────────────────────────────────────────         │
00:01:18 verbose #89 > > │ 00:00:09 verbose #6 > >                                                 │
00:01:18 verbose #90 > > │ ╭─────────────────────────────────────────────────────────────────────────── │
00:01:18 verbose #91 > > │ ───╮                                                                         │
00:01:18 verbose #92 > > │ 00:00:09 verbose #7 > > │ # test (Polyglot)                             │
00:01:18 verbose #93 > > │ │                                                                            │
00:01:18 verbose #94 > > │ 00:00:09 verbose #8 > >                                                 │
00:01:18 verbose #95 > > │ ╰─────────────────────────────────────────────────────────────────────────── │
00:01:18 verbose #96 > > │ ───╯                                                                         │
00:01:18 verbose #97 > > │ 00:00:21 verbose #9 > >                                                 │
00:01:18 verbose #98 > > │ 00:00:21 verbose #10 > > ── spiral                                      │
00:01:18 verbose #99 > > │ ──────────────────────────────────────────────────────────────────────       │
00:01:18 verbose #100 > > │ 00:00:21 verbose #11 > > //// test                                      │
00:01:18 verbose #101 > > │ 00:00:21 verbose #12 > >                                                │
00:01:18 verbose #102 > > │ 00:00:21 verbose #13 > > open testing                                   │
00:01:18 verbose #103 > > │ 00:00:31 verbose #14 > >                                                │
00:01:18 verbose #104 > > │ 00:00:31 verbose #15 > > ── spiral                                      │
00:01:18 verbose #105 > > │ ──────────────────────────────────────────────────────────────────────       │
00:01:18 verbose #106 > > │ 00:00:31 verbose #16 > > nominal i = ()                                 │
00:01:18 verbose #107 > > │ 00:00:31 verbose #17 > > nominal e = ()                                 │
00:01:18 verbose #108 > > │ 00:00:31 verbose #18 > > nominal s = ()                                 │
00:01:18 verbose #109 > > │ 00:00:31 verbose #19 > > nominal n = ()                                 │
00:01:18 verbose #110 > > │ 00:00:31 verbose #20 > > nominal t = ()                                 │
00:01:18 verbose #111 > > │ 00:00:31 verbose #21 > > nominal f = ()                                 │
00:01:18 verbose #112 > > │ 00:00:31 verbose #22 > > nominal j = ()                                 │
00:01:18 verbose #113 > > │ 00:00:31 verbose #23 > > nominal p = ()                                 │
00:01:18 verbose #114 > > │ 00:00:31 verbose #24 > >                                                │
00:01:18 verbose #115 > > │ 00:00:31 verbose #25 > > union sensing =                                │
00:01:18 verbose #116 > > │ 00:00:31 verbose #26 > >     | Si : s * i                               │
00:01:18 verbose #117 > > │ 00:00:31 verbose #27 > >     | Se : s * e                               │
00:01:18 verbose #118 > > │ 00:00:31 verbose #28 > >                                                │
00:01:18 verbose #119 > > │ 00:00:31 verbose #29 > > union intuition =                              │
00:01:18 verbose #120 > > │ 00:00:31 verbose #30 > >     | Ni : n * i                               │
00:01:18 verbose #121 > > │ 00:00:31 verbose #31 > >     | Ne : n * e                               │
00:01:18 verbose #122 > > │ 00:00:31 verbose #32 > >                                                │
00:01:18 verbose #123 > > │ 00:00:31 verbose #33 > > union thinking =                               │
00:01:18 verbose #124 > > │ 00:00:31 verbose #34 > >     | Ti : t * i                               │
00:01:18 verbose #125 > > │ 00:00:31 verbose #35 > >     | Te : t * e                               │
00:01:18 verbose #126 > > │ 00:00:31 verbose #36 > >                                                │
00:01:18 verbose #127 > > │ 00:00:31 verbose #37 > > union feeling =                                │
00:01:18 verbose #128 > > │ 00:00:31 verbose #38 > >     | Fi : f * i                               │
00:01:18 verbose #129 > > │ 00:00:31 verbose #39 > >     | Fe : f * e                               │
00:01:18 verbose #130 > > │ 00:00:31 verbose #40 > >                                                │
00:01:18 verbose #131 > > │ 00:00:31 verbose #41 > > union function_stack =                         │
00:01:18 verbose #132 > > │ 00:00:31 verbose #42 > >     | FS : sensing * intuition * thinking *    │
00:01:18 verbose #133 > > │ feeling                                                                      │
00:01:18 verbose #134 > > │ 00:00:31 verbose #43 > >                                                │
00:01:18 verbose #135 > > │ 00:00:31 verbose #44 > > union personality_type =                       │
00:01:18 verbose #136 > > │ 00:00:31 verbose #45 > >     | ISTJ : i * s * t * j * function_stack    │
00:01:18 verbose #137 > > │ 00:00:31 verbose #46 > >     | ISFJ : i * s * f * j * function_stack    │
00:01:18 verbose #138 > > │ 00:00:31 verbose #47 > >     | INFJ : i * n * f * j * function_stack    │
00:01:18 verbose #139 > > │ 00:00:31 verbose #48 > >     | INTJ : i * n * t * j * function_stack    │
00:01:18 verbose #140 > > │ 00:00:31 verbose #49 > >     | ISTP : i * s * t * p * function_stack    │
00:01:18 verbose #141 > > │ 00:00:31 verbose #50 > >     | ISFP : i * s * f * p * function_stack    │
00:01:18 verbose #142 > > │ 00:00:31 verbose #51 > >     | INFP : i * n * f * p * function_stack    │
00:01:18 verbose #143 > > │ 00:00:31 verbose #52 > >     | INTP : i * n * t * p * function_stack    │
00:01:18 verbose #144 > > │ 00:00:31 verbose #53 > >     | ESTP : e * s * t * p * function_stack    │
00:01:18 verbose #145 > > │ 00:00:31 verbose #54 > >     | ESFP : e * s * f * p * function_stack    │
00:01:18 verbose #146 > > │ 00:00:31 verbose #55 > >     | ENFP : e * n * f * p * function_stack    │
00:01:18 verbose #147 > > │ 00:00:31 verbose #56 > >     | ENTP : e * n * t * p * function_stack    │
00:01:18 verbose #148 > > │ 00:00:31 verbose #57 > >     | ESTJ : e * s * t * j * function_stack    │
00:01:18 verbose #149 > > │ 00:00:31 verbose #58 > >     | ESFJ : e * s * f * j * function_stack    │
00:01:18 verbose #150 > > │ 00:00:31 verbose #59 > >     | ENFJ : e * n * f * j * function_stack    │
00:01:18 verbose #151 > > │ 00:00:31 verbose #60 > >     | ENTJ : e * n * t * j * function_stack    │
00:01:18 verbose #152 > > │ 00:00:31 verbose #61 > >                                                │
00:01:18 verbose #153 > > │ 00:00:31 verbose #62 > >                                                │
00:01:18 verbose #154 > > │ 00:00:31 verbose #63 > > inl main () =                                  │
00:01:18 verbose #155 > > │ 00:00:31 verbose #64 > >     inl istj_stack = FS ((Si (s, i)), Ne (n,   │
00:01:18 verbose #156 > > │ e), (Te (t, e)), (Fi (f, i)))                                                │
00:01:18 verbose #157 > > │ 00:00:31 verbose #65 > >     inl istj_personality = ISTJ (i, s, t, j,   │
00:01:18 verbose #158 > > │ istj_stack)                                                                  │
00:01:18 verbose #159 > > │ 00:00:31 verbose #66 > >     // inl isfj_stack = FS ((Si (s, i)), Ne    │
00:01:18 verbose #160 > > │ (n, e), (Fe (f, e)), (Ti (t, i)))                                            │
00:01:18 verbose #161 > > │ 00:00:31 verbose #67 > >     // inl isfj_personality = ISFJ (i, s, f,   │
00:01:18 verbose #162 > > │ j, isfj_stack)                                                               │
00:01:18 verbose #163 > > │ 00:00:31 verbose #68 > >                                                │
00:01:18 verbose #164 > > │ 00:00:31 verbose #69 > >     ;[[                                        │
00:01:18 verbose #165 > > │ 00:00:31 verbose #70 > >         istj_personality                       │
00:01:18 verbose #166 > > │ 00:00:31 verbose #71 > >     ]]                                         │
00:01:18 verbose #167 > > │ 00:00:31 verbose #72 > >     |> fun x => $'$"%A{!x}"' : string          │
00:01:18 verbose #168 > > │ 00:00:31 verbose #73 > >     |> console.write_line                      │
00:01:18 verbose #169 > > │ 00:00:31 verbose #74 > >                                                │
00:01:18 verbose #170 > > │ 00:00:31 verbose #75 > > inl main () =                                  │
00:01:18 verbose #171 > > │ 00:00:31 verbose #76 > >     $'!main ()' : ()                           │
00:01:18 verbose #172 > > │ 00:00:36 verbose #77 > >                                                │
00:01:18 verbose #173 > > │ 00:00:36 verbose #78 > > ╭─[ 5.10s - stdout                             │
00:01:18 verbose #174 > > │ ]───────────────────────────────────────────────────────────╮                │
00:01:18 verbose #175 > > │ 00:00:36 verbose #79 > > │ [|US5_0 (US4_0 (US0_0, US1_1, US2_1,         │
00:01:18 verbose #176 > > │ US3_0))|]                               │                                    │
00:01:18 verbose #177 > > │ 00:00:36 verbose #80 > > │                                              │
00:01:18 verbose #178 > > │                                                                              │
00:01:18 verbose #179 > > │ │                                                                            │
00:01:18 verbose #180 > > │ 00:00:36 verbose #81 > >                                                │
00:01:18 verbose #181 > > │ ╰─────────────────────────────────────────────────────────────────────────── │
00:01:18 verbose #182 > > │ ───╯                                                                         │
00:01:18 verbose #183 > > │ 00:00:39 verbose #82 > >                                                │
00:01:18 verbose #184 > > │ 00:00:39 verbose #83 > > ── fsharp                                      │
00:01:18 verbose #185 > > │ ──────────────────────────────────────────────────────────────────────       │
00:01:18 verbose #186 > > │ 00:00:39 verbose #84 > > type PhonologicalFeature =                     │
00:01:18 verbose #187 > > │ 00:00:39 verbose #85 > >     | VowelFeature of                          │
00:01:18 verbose #188 > > │ 00:00:39 verbose #86 > >         height: Height                         │
00:01:18 verbose #189 > > │ 00:00:39 verbose #87 > >         * backness: Backness                   │
00:01:18 verbose #190 > > │ 00:00:39 verbose #88 > >         * roundedness: Roundedness             │
00:01:18 verbose #191 > > │ 00:00:39 verbose #89 > >         * tone: Option<Tone>                   │
00:01:18 verbose #192 > > │ 00:00:39 verbose #90 > >         * stress: Option<Stress>               │
00:01:18 verbose #193 > > │ 00:00:39 verbose #91 > >         * length: Option<Length>               │
00:01:18 verbose #194 > > │ 00:00:39 verbose #92 > >     | ConsonantFeature of                      │
00:01:18 verbose #195 > > │ 00:00:39 verbose #93 > >         place: PlaceOfArticulation             │
00:01:18 verbose #196 > > │ 00:00:39 verbose #94 > >         * manner: MannerOfArticulation         │
00:01:18 verbose #197 > > │ 00:00:39 verbose #95 > >         * voicing: Voicing                     │
00:01:18 verbose #198 > > │ 00:00:39 verbose #96 > >         * length: Option<Length>               │
00:01:18 verbose #199 > > │ 00:00:39 verbose #97 > >     | VowelHarmonyFeature                      │
00:01:18 verbose #200 > > │ 00:00:39 verbose #98 > >     | PitchAccentFeature                       │
00:01:18 verbose #201 > > │ 00:00:39 verbose #99 > >                                                │
00:01:18 verbose #202 > > │ 00:00:39 verbose #100 > > and Stress = Primary | Secondary              │
00:01:18 verbose #203 > > │ 00:00:39 verbose #101 > > and Length = Long | Short | HalfLong          │
00:01:18 verbose #204 > > │ 00:00:39 verbose #102 > >                                               │
00:01:18 verbose #205 > > │ 00:00:39 verbose #103 > > and Height =                                  │
00:01:18 verbose #206 > > │ 00:00:39 verbose #104 > >     | High | NearHigh | HighMid               │
00:01:18 verbose #207 > > │ 00:00:39 verbose #105 > >     | Mid | LowMid | NearLow                  │
00:01:18 verbose #208 > > │ 00:00:39 verbose #106 > >     | Low                                     │
00:01:18 verbose #209 > > │ 00:00:39 verbose #107 > >                                               │
00:01:18 verbose #210 > > │ 00:00:39 verbose #108 > > and Backness = Front | Central | Back         │
00:01:18 verbose #211 > > │ 00:00:39 verbose #109 > >                                               │
00:01:18 verbose #212 > > │ 00:00:39 verbose #110 > > and Roundedness = Rounded | Unrounded         │
00:01:18 verbose #213 > > │ 00:00:39 verbose #111 > >                                               │
00:01:18 verbose #214 > > │ 00:00:39 verbose #112 > > and PlaceOfArticulation =                     │
00:01:18 verbose #215 > > │ 00:00:39 verbose #113 > >     | Bilabial | Labiodental | Dental         │
00:01:18 verbose #216 > > │ 00:00:39 verbose #114 > >     | Alveolar | Postalveolar | Retroflex     │
00:01:18 verbose #217 > > │ 00:00:39 verbose #115 > >     | Palatal | Velar | Uvular                │
00:01:18 verbose #218 > > │ 00:00:39 verbose #116 > >     | Pharyngeal | Epiglottal | Glottal       │
00:01:18 verbose #219 > > │ 00:00:39 verbose #117 > >                                               │
00:01:18 verbose #220 > > │ 00:00:39 verbose #118 > > and MannerOfArticulation =                    │
00:01:18 verbose #221 > > │ 00:00:39 verbose #119 > >     | Plosive | Nasal | Trill                 │
00:01:18 verbose #222 > > │ 00:00:39 verbose #120 > >     | TapOrFlap | Fricative |                 │
00:01:18 verbose #223 > > │ LateralFricative                                                             │
00:01:18 verbose #224 > > │ 00:00:39 verbose #121 > >     | Approximant | LateralApproximant        │
00:01:18 verbose #225 > > │ 00:00:39 verbose #122 > >                                               │
00:01:18 verbose #226 > > │ 00:00:39 verbose #123 > > and Voicing = Voiced | Voiceless              │
00:01:18 verbose #227 > > │ 00:00:39 verbose #124 > >                                               │
00:01:18 verbose #228 > > │ 00:00:39 verbose #125 > > and SecondaryArticulation =                   │
00:01:18 verbose #229 > > │ 00:00:39 verbose #126 > >     | Labialization | Palatalization |        │
00:01:18 verbose #230 > > │ Velarization                                                                 │
00:01:18 verbose #231 > > │ 00:00:39 verbose #127 > >     | Pharyngealization | Aspiration          │
00:01:18 verbose #232 > > │ 00:00:39 verbose #128 > >                                               │
00:01:18 verbose #233 > > │ 00:00:39 verbose #129 > > and Tone =                                    │
00:01:18 verbose #234 > > │ 00:00:39 verbose #130 > >     | LevelTone of int                        │
00:01:18 verbose #235 > > │ 00:00:39 verbose #131 > >     | ContourTone of int list                 │
00:01:18 verbose #236 > > │ 00:00:39 verbose #132 > >                                               │
00:01:18 verbose #237 > > │ 00:00:39 verbose #133 > > and MorphologicalFeature =                    │
00:01:18 verbose #238 > > │ 00:00:39 verbose #134 > >     | RootFeature of string                   │
00:01:18 verbose #239 > > │ 00:00:39 verbose #135 > >     | AffixFeature of AffixType * string      │
00:01:18 verbose #240 > > │ 00:00:39 verbose #136 > >     | IncorporationFeature of string *        │
00:01:18 verbose #241 > > │ MorphologicalFeature                                                         │
00:01:18 verbose #242 > > │ 00:00:39 verbose #137 > >     | NonConcatenativePattern of string *     │
00:01:18 verbose #243 > > │ string                                                                       │
00:01:18 verbose #244 > > │ 00:00:39 verbose #138 > >     | AgglutinativeAffixFeature of            │
00:01:18 verbose #245 > > │ AgglutinativeAffixType * string                                              │
00:01:18 verbose #246 > > │ 00:00:39 verbose #139 > >     | HonorificFeature of HonorificType *     │
00:01:18 verbose #247 > > │ string                                                                       │
00:01:18 verbose #248 > > │ 00:00:39 verbose #140 > >                                               │
00:01:18 verbose #249 > > │ 00:00:39 verbose #141 > > and AgglutinativeAffixType = Suffix | Prefix  │
00:01:18 verbose #250 > > │ 00:00:39 verbose #142 > >                                               │
00:01:18 verbose #251 > > │ 00:00:39 verbose #143 > > and HonorificType = VerbHonorific |           │
00:01:18 verbose #252 > > │ NounHonorific                                                                │
00:01:18 verbose #253 > > │ 00:00:39 verbose #144 > >                                               │
00:01:18 verbose #254 > > │ 00:00:39 verbose #145 > > and AffixType =                               │
00:01:18 verbose #255 > > │ 00:00:39 verbose #146 > >     | Prefix | Suffix | Infix                 │
00:01:18 verbose #256 > > │ 00:00:39 verbose #147 > >     | Circumfix                               │
00:01:18 verbose #257 > > │ 00:00:39 verbose #148 > >                                               │
00:01:18 verbose #258 > > │ 00:00:39 verbose #149 > > type SyntacticFeature =                       │
00:01:18 verbose #259 > > │ 00:00:39 verbose #150 > >     | WordFeature of MorphologicalFeature     │
00:01:18 verbose #260 > > │ list * LexicalCategory                                                       │
00:01:18 verbose #261 > > │ 00:00:39 verbose #151 > >     | PhraseFeature of PhraseType *           │
00:01:18 verbose #262 > > │ SyntacticFeature list                                                        │
00:01:18 verbose #263 > > │ 00:00:39 verbose #152 > >     | GrammaticalRelation of                  │
00:01:18 verbose #264 > > │ GrammaticalRelationType * SyntacticFeature list                              │
00:01:18 verbose #265 > > │ 00:00:39 verbose #153 > >     | SOVOrderFeature                         │
00:01:18 verbose #266 > > │ 00:00:39 verbose #154 > >     | TopicCommentFeature                     │
00:01:18 verbose #267 > > │ 00:00:39 verbose #155 > >                                               │
00:01:18 verbose #268 > > │ 00:00:39 verbose #156 > > and GrammaticalRelationType =                 │
00:01:18 verbose #269 > > │ 00:00:39 verbose #157 > >     | Ergative | Absolutive | Nominative      │
00:01:18 verbose #270 > > │ 00:00:39 verbose #158 > >     | Accusative                              │
00:01:18 verbose #271 > > │ 00:00:39 verbose #159 > >                                               │
00:01:18 verbose #272 > > │ 00:00:39 verbose #160 > > and LexicalCategory =                         │
00:01:18 verbose #273 > > │ 00:00:39 verbose #161 > >     | Noun | Verb | Adjective                 │
00:01:18 verbose #274 > > │ 00:00:39 verbose #162 > >     | Adverb | Pronoun | Preposition          │
00:01:18 verbose #275 > > │ 00:00:39 verbose #163 > >     | Conjunction | Determiner | Interjection │
00:01:18 verbose #276 > > │ 00:00:39 verbose #164 > >                                               │
00:01:18 verbose #277 > > │ 00:00:39 verbose #165 > > and PhraseType =                              │
00:01:18 verbose #278 > > │ 00:00:39 verbose #166 > >     | NP | VP | AP                            │
00:01:18 verbose #279 > > │ 00:00:39 verbose #167 > >     | PP | CP                                 │
00:01:18 verbose #280 > > │ 00:00:39 verbose #168 > >                                               │
00:01:18 verbose #281 > > │ 00:00:39 verbose #169 > > and SemanticFeature =                         │
00:01:18 verbose #282 > > │ 00:00:39 verbose #170 > >     | Meaning of string                       │
00:01:18 verbose #283 > > │ 00:00:39 verbose #171 > >     | SemanticRole of SemanticRoleType *      │
00:01:18 verbose #284 > > │ SemanticFeature                                                              │
00:01:18 verbose #285 > > │ 00:00:39 verbose #172 > >                                               │
00:01:18 verbose #286 > > │ 00:00:39 verbose #173 > > and SemanticRoleType =                        │
00:01:18 verbose #287 > > │ 00:00:39 verbose #174 > >     | Agent | Patient | Instrument            │
00:01:18 verbose #288 > > │ 00:00:39 verbose #175 > >     | Location | Time | Cause                 │
00:01:18 verbose #289 > > │ 00:00:39 verbose #176 > >                                               │
00:01:18 verbose #290 > > │ 00:00:39 verbose #177 > > and PragmaticFeature =                        │
00:01:18 verbose #291 > > │ 00:00:39 verbose #178 > >     | UseContext of string                    │
00:01:18 verbose #292 > > │ 00:00:39 verbose #179 > >     | PolitenessLevel of Politeness           │
00:01:18 verbose #293 > > │ 00:00:39 verbose #180 > >     | SpeechAct of SpeechActType              │
00:01:18 verbose #294 > > │ 00:00:39 verbose #181 > >     | SpeechLevel of SpeechLevelType          │
00:01:18 verbose #295 > > │ 00:00:39 verbose #182 > >                                               │
00:01:18 verbose #296 > > │ 00:00:39 verbose #183 > > and Politeness = Formal | Informal | Neutral  │
00:01:18 verbose #297 > > │ 00:00:39 verbose #184 > >                                               │
00:01:18 verbose #298 > > │ 00:00:39 verbose #185 > > and SpeechActType =                           │
00:01:18 verbose #299 > > │ 00:00:39 verbose #186 > >     | Assertive | Directive | Commissive      │
00:01:18 verbose #300 > > │ 00:00:39 verbose #187 > >     | Expressive | Declarative                │
00:01:18 verbose #301 > > │ 00:00:39 verbose #188 > >                                               │
00:01:18 verbose #302 > > │ 00:00:39 verbose #189 > > and SpeechLevelType =                         │
00:01:18 verbose #303 > > │ 00:00:39 verbose #190 > >     | FormalHigh | FormalLow | InformalHigh   │
00:01:18 verbose #304 > > │ 00:00:39 verbose #191 > >     | InformalLow | Neutral                   │
00:01:18 verbose #305 > > │ 00:00:39 verbose #192 > >                                               │
00:01:18 verbose #306 > > │ 00:00:39 verbose #193 > > type LinguisticFeature =                      │
00:01:18 verbose #307 > > │ 00:00:39 verbose #194 > >     | Phonological of PhonologicalFeature     │
00:01:18 verbose #308 > > │ 00:00:39 verbose #195 > >     | Morphological of MorphologicalFeature   │
00:01:18 verbose #309 > > │ 00:00:39 verbose #196 > >     | Syntactic of SyntacticFeature           │
00:01:18 verbose #310 > > │ 00:00:39 verbose #197 > >     | Semantic of SemanticFeature             │
00:01:18 verbose #311 > > │ 00:00:39 verbose #198 > >     | Pragmatic of PragmaticFeature           │
00:01:18 verbose #312 > > │ 00:00:39 verbose #199 > >                                               │
00:01:18 verbose #313 > > │ 00:00:39 verbose #200 > > type LanguageConstruct =                      │
00:01:18 verbose #314 > > │ 00:00:39 verbose #201 > >     | LanguageElement of LinguisticFeature    │
00:01:18 verbose #315 > > │ 00:00:39 verbose #202 > >     | LanguageStructure of LanguageConstruct  │
00:01:18 verbose #316 > > │ list                                                                         │
00:01:18 verbose #317 > > │ 00:00:39 verbose #203 > >     | TranslationElement of                   │
00:01:18 verbose #318 > > │ TranslationFeature                                                           │
00:01:18 verbose #319 > > │ 00:00:39 verbose #204 > >                                               │
00:01:18 verbose #320 > > │ 00:00:39 verbose #205 > > and TranslationFeature =                      │
00:01:18 verbose #321 > > │ 00:00:39 verbose #206 > >     | LinkedPhonological of                   │
00:01:18 verbose #322 > > │ PhonologicalFeature * PhonologicalFeature                                    │
00:01:18 verbose #323 > > │ 00:00:39 verbose #207 > >     | LinkedMorphological of                  │
00:01:18 verbose #324 > > │ MorphologicalFeature * MorphologicalFeature                                  │
00:01:18 verbose #325 > > │ 00:00:39 verbose #208 > >     | LinkedSyntactic of SyntacticFeature *   │
00:01:18 verbose #326 > > │ SyntacticFeature                                                             │
00:01:18 verbose #327 > > │ 00:00:39 verbose #209 > >     | LinkedSemantic of SemanticFeature *     │
00:01:18 verbose #328 > > │ SemanticFeature                                                              │
00:01:18 verbose #329 > > │ 00:00:39 verbose #210 > >                                               │
00:01:18 verbose #330 > > │ 00:00:39 verbose #211 > > type Discourse = DiscourseUnit of             │
00:01:18 verbose #331 > > │ LanguageConstruct list                                                       │
00:01:18 verbose #332 > > │ 00:00:39 verbose #212 > >                                               │
00:01:18 verbose #333 > > │ 00:00:39 verbose #213 > > type LanguageModel =                          │
00:01:18 verbose #334 > > │ 00:00:39 verbose #214 > >     | Model of discourse: Discourse           │
00:01:18 verbose #335 > > │ 00:00:42 verbose #215 > >                                               │
00:01:18 verbose #336 > > │ 00:00:42 verbose #216 > > ── fsharp                                     │
00:01:18 verbose #337 > > │ ──────────────────────────────────────────────────────────────────────       │
00:01:18 verbose #338 > > │ 00:00:42 verbose #217 > > let testEnglish =                             │
00:01:18 verbose #339 > > │ 00:00:42 verbose #218 > >     Model(                                    │
00:01:18 verbose #340 > > │ 00:00:42 verbose #219 > >         DiscourseUnit [[                      │
00:01:18 verbose #341 > > │ 00:00:42 verbose #220 > >             LanguageElement (Phonological     │
00:01:18 verbose #342 > > │ (ConsonantFeature (Alveolar, Nasal,                                          │
00:01:18 verbose #343 > > │ 00:00:42 verbose #221 > > Voiced, Some(HalfLong))));                    │
00:01:18 verbose #344 > > │ 00:00:42 verbose #222 > >             LanguageElement (Phonological     │
00:01:18 verbose #345 > > │ (VowelFeature (High, Front, Unrounded,                                       │
00:01:18 verbose #346 > > │ 00:00:42 verbose #223 > > Some(LevelTone 1), Some(Primary),             │
00:01:18 verbose #347 > > │ Some(Short))));                                                              │
00:01:18 verbose #348 > > │ 00:00:42 verbose #224 > >             LanguageElement (Phonological     │
00:01:18 verbose #349 > > │ (VowelFeature (Low, Front, Unrounded,                                        │
00:01:18 verbose #350 > > │ 00:00:42 verbose #225 > > Some(LevelTone 2), Some(Secondary),           │
00:01:18 verbose #351 > > │ Some(Long))));                                                               │
00:01:18 verbose #352 > > │ 00:00:42 verbose #226 > >             LanguageElement (Phonological     │
00:01:18 verbose #353 > > │ (ConsonantFeature (Velar, Plosive,                                           │
00:01:18 verbose #354 > > │ 00:00:42 verbose #227 > > Voiceless, Some(HalfLong))));                 │
00:01:18 verbose #355 > > │ 00:00:42 verbose #228 > >             LanguageElement (Morphological    │
00:01:18 verbose #356 > > │ (RootFeature "I"));                                                          │
00:01:18 verbose #357 > > │ 00:00:42 verbose #229 > >             LanguageElement (Morphological    │
00:01:18 verbose #358 > > │ (RootFeature "see"));                                                        │
00:01:18 verbose #359 > > │ 00:00:42 verbose #230 > >             LanguageElement (Morphological    │
00:01:18 verbose #360 > > │ (RootFeature "a"));                                                          │
00:01:18 verbose #361 > > │ 00:00:42 verbose #231 > >             LanguageElement (Morphological    │
00:01:18 verbose #362 > > │ (RootFeature "cat"));                                                        │
00:01:18 verbose #363 > > │ 00:00:42 verbose #232 > >             LanguageElement (Syntactic        │
00:01:18 verbose #364 > > │ (PhraseFeature (NP, [[WordFeature                                            │
00:01:18 verbose #365 > > │ 00:00:42 verbose #233 > > ([[RootFeature "I"]], Pronoun)]])));          │
00:01:18 verbose #366 > > │ 00:00:42 verbose #234 > >             LanguageElement (Syntactic        │
00:01:18 verbose #367 > > │ (PhraseFeature (VP, [[WordFeature                                            │
00:01:18 verbose #368 > > │ 00:00:42 verbose #235 > > ([[RootFeature "see"]], Verb)]])));           │
00:01:18 verbose #369 > > │ 00:00:42 verbose #236 > >             LanguageElement (Syntactic        │
00:01:18 verbose #370 > > │ (PhraseFeature (NP, [[WordFeature                                            │
00:01:18 verbose #371 > > │ 00:00:42 verbose #237 > > ([[RootFeature "a"; RootFeature "cat"]],      │
00:01:18 verbose #372 > > │ Noun)]])));                                                                  │
00:01:18 verbose #373 > > │ 00:00:42 verbose #238 > >             LanguageElement (Semantic         │
00:01:18 verbose #374 > > │ (Meaning "Perception act of a feline by                                      │
00:01:18 verbose #375 > > │ 00:00:42 verbose #239 > > the speaker"));                               │
00:01:18 verbose #376 > > │ 00:00:42 verbose #240 > >             LanguageElement (Pragmatic        │
00:01:18 verbose #377 > > │ (UseContext "Statement of an action being                                    │
00:01:18 verbose #378 > > │ 00:00:42 verbose #241 > > observed"))                                   │
00:01:18 verbose #379 > > │ 00:00:42 verbose #242 > >         ]]                                    │
00:01:18 verbose #380 > > │ 00:00:42 verbose #243 > >     )                                         │
00:01:18 verbose #381 > > │ 00:00:42 verbose #244 > >                                               │
00:01:18 verbose #382 > > │ 00:00:42 verbose #245 > > let testPortuguese =                          │
00:01:18 verbose #383 > > │ 00:00:42 verbose #246 > >     Model(                                    │
00:01:18 verbose #384 > > │ 00:00:42 verbose #247 > >         DiscourseUnit [[                      │
00:01:18 verbose #385 > > │ 00:00:42 verbose #248 > >             LanguageElement (Phonological     │
00:01:18 verbose #386 > > │ (VowelFeature (High, Front, Unrounded,                                       │
00:01:18 verbose #387 > > │ 00:00:42 verbose #249 > > Some(LevelTone 1), Some(Primary),             │
00:01:18 verbose #388 > > │ Some(Short))));                                                              │
00:01:18 verbose #389 > > │ 00:00:42 verbose #250 > >             LanguageElement (Phonological     │
00:01:18 verbose #390 > > │ (VowelFeature (Low, Front, Unrounded,                                        │
00:01:18 verbose #391 > > │ 00:00:42 verbose #251 > > Some(LevelTone 2), Some(Secondary),           │
00:01:18 verbose #392 > > │ Some(Long))));                                                               │
00:01:18 verbose #393 > > │ 00:00:42 verbose #252 > >             LanguageElement (Phonological     │
00:01:18 verbose #394 > > │ (VowelFeature (Mid, Back, Rounded,                                           │
00:01:18 verbose #395 > > │ 00:00:42 verbose #253 > > Some(LevelTone 3), Some(Primary),             │
00:01:18 verbose #396 > > │ Some(Short))));                                                              │
00:01:18 verbose #397 > > │ 00:00:42 verbose #254 > >             LanguageElement (Phonological     │
00:01:18 verbose #398 > > │ (ConsonantFeature (Velar, Plosive,                                           │
00:01:18 verbose #399 > > │ 00:00:42 verbose #255 > > Voiceless, Some(HalfLong))));                 │
00:01:18 verbose #400 > > │ 00:00:42 verbose #256 > >             LanguageElement (Morphological    │
00:01:18 verbose #401 > > │ (RootFeature "Eu"));                                                         │
00:01:18 verbose #402 > > │ 00:00:42 verbose #257 > >             LanguageElement (Morphological    │
00:01:18 verbose #403 > > │ (RootFeature "ver" |> ignore;                                                │
00:01:18 verbose #404 > > │ 00:00:42 verbose #258 > > AffixFeature (Suffix, "o")));                 │
00:01:18 verbose #405 > > │ 00:00:42 verbose #259 > >             LanguageElement (Morphological    │
00:01:18 verbose #406 > > │ (RootFeature "um"));                                                         │
00:01:18 verbose #407 > > │ 00:00:42 verbose #260 > >             LanguageElement (Morphological    │
00:01:18 verbose #408 > > │ (RootFeature "gato"));                                                       │
00:01:18 verbose #409 > > │ 00:00:42 verbose #261 > >             LanguageElement (Syntactic        │
00:01:18 verbose #410 > > │ (PhraseFeature (NP, [[WordFeature                                            │
00:01:18 verbose #411 > > │ 00:00:42 verbose #262 > > ([[RootFeature "Eu"]], Pronoun)]])));         │
00:01:18 verbose #412 > > │ 00:00:42 verbose #263 > >             LanguageElement (Syntactic        │
00:01:18 verbose #413 > > │ (PhraseFeature (VP, [[WordFeature                                            │
00:01:18 verbose #414 > > │ 00:00:42 verbose #264 > > ([[RootFeature "vejo"]], Verb)]])));          │
00:01:18 verbose #415 > > │ 00:00:42 verbose #265 > >             LanguageElement (Syntactic        │
00:01:18 verbose #416 > > │ (PhraseFeature (NP, [[WordFeature                                            │
00:01:18 verbose #417 > > │ 00:00:42 verbose #266 > > ([[RootFeature "um"; RootFeature "gato"]],    │
00:01:18 verbose #418 > > │ Noun)]])));                                                                  │
00:01:18 verbose #419 > > │ 00:00:42 verbose #267 > >             LanguageElement (Semantic         │
00:01:18 verbose #420 > > │ (Meaning "Ação de percepção de um felino                                     │
00:01:18 verbose #421 > > │ 00:00:42 verbose #268 > > pelo falante"));                              │
00:01:18 verbose #422 > > │ 00:00:42 verbose #269 > >             LanguageElement (Pragmatic        │
00:01:18 verbose #423 > > │ (UseContext "Declaração de uma ação sendo                                    │
00:01:18 verbose #424 > > │ 00:00:42 verbose #270 > > observada"))                                  │
00:01:18 verbose #425 > > │ 00:00:42 verbose #271 > >         ]]                                    │
00:01:18 verbose #426 > > │ 00:00:42 verbose #272 > >     )                                         │
00:01:18 verbose #427 > > │ 00:00:42 verbose #273 > >                                               │
00:01:18 verbose #428 > > │ 00:00:42 verbose #274 > > let testKorean =                              │
00:01:18 verbose #429 > > │ 00:00:42 verbose #275 > >     Model(                                    │
00:01:18 verbose #430 > > │ 00:00:42 verbose #276 > >         DiscourseUnit [[                      │
00:01:18 verbose #431 > > │ 00:00:42 verbose #277 > >             LanguageElement (Phonological     │
00:01:18 verbose #432 > > │ (ConsonantFeature (Alveolar, Nasal,                                          │
00:01:18 verbose #433 > > │ 00:00:42 verbose #278 > > Voiced, Some(Short))));                       │
00:01:18 verbose #434 > > │ 00:00:42 verbose #279 > >             LanguageElement (Phonological     │
00:01:18 verbose #435 > > │ (VowelFeature (High, Back, Rounded,                                          │
00:01:18 verbose #436 > > │ 00:00:42 verbose #280 > > None, None, Some(Short))));                   │
00:01:18 verbose #437 > > │ 00:00:42 verbose #281 > >             LanguageElement (Phonological     │
00:01:18 verbose #438 > > │ (VowelFeature (Mid, Front, Unrounded,                                        │
00:01:18 verbose #439 > > │ 00:00:42 verbose #282 > > None, None, Some(Long))));                    │
00:01:18 verbose #440 > > │ 00:00:42 verbose #283 > >             LanguageElement (Phonological     │
00:01:18 verbose #441 > > │ (ConsonantFeature (Bilabial, Plosive,                                        │
00:01:18 verbose #442 > > │ 00:00:42 verbose #284 > > Voiceless, Some(Short))));                    │
00:01:18 verbose #443 > > │ 00:00:42 verbose #285 > >             LanguageElement (Morphological    │
00:01:18 verbose #444 > > │ (RootFeature "나"));                                                         │
00:01:18 verbose #445 > > │ 00:00:42 verbose #286 > >             LanguageElement (Morphological    │
00:01:18 verbose #446 > > │ (RootFeature "보다"));                                                       │
00:01:18 verbose #447 > > │ 00:00:42 verbose #287 > >             LanguageElement (Morphological    │
00:01:18 verbose #448 > > │ (AffixFeature (Suffix, "아")));                                              │
00:01:18 verbose #449 > > │ 00:00:42 verbose #288 > >             LanguageElement (Morphological    │
00:01:18 verbose #450 > > │ (RootFeature "고양이"));                                                     │
00:01:18 verbose #451 > > │ 00:00:42 verbose #289 > >             LanguageElement (Syntactic        │
00:01:18 verbose #452 > > │ (PhraseFeature (NP, [[WordFeature                                            │
00:01:18 verbose #453 > > │ 00:00:42 verbose #290 > > ([[RootFeature "나"]], Pronoun)]])));         │
00:01:18 verbose #454 > > │ 00:00:42 verbose #291 > >             LanguageElement (Syntactic        │
00:01:18 verbose #455 > > │ (PhraseFeature (VP, [[WordFeature                                            │
00:01:18 verbose #456 > > │ 00:00:42 verbose #292 > > ([[RootFeature "보다"; AffixFeature (Suffix,  │
00:01:18 verbose #457 > > │ "아")]], Verb)]])));                                                         │
00:01:18 verbose #458 > > │ 00:00:42 verbose #293 > >             LanguageElement (Syntactic        │
00:01:18 verbose #459 > > │ (PhraseFeature (NP, [[WordFeature                                            │
00:01:18 verbose #460 > > │ 00:00:42 verbose #294 > > ([[RootFeature "고양이"]], Noun)]])));        │
00:01:18 verbose #461 > > │ 00:00:42 verbose #295 > >             LanguageElement (Semantic         │
00:01:18 verbose #462 > > │ (Meaning "화자에 의한 고양이의 관찰                                          │
00:01:18 verbose #463 > > │ 00:00:42 verbose #296 > > 행위"));                                      │
00:01:18 verbose #464 > > │ 00:00:42 verbose #297 > >             LanguageElement (Pragmatic        │
00:01:18 verbose #465 > > │ (UseContext "관찰되고 있는 행동의 진술"))                                    │
00:01:18 verbose #466 > > │ 00:00:42 verbose #298 > >         ]]                                    │
00:01:18 verbose #467 > > │ 00:00:42 verbose #299 > >     )                                         │
00:01:18 verbose #468 > > │ 00:00:42 verbose #300 > >                                               │
00:01:18 verbose #469 > > │ 00:00:42 verbose #301 > > ── markdown                                   │
00:01:18 verbose #470 > > │ ────────────────────────────────────────────────────────────────────         │
00:01:18 verbose #471 > > │ 00:00:42 verbose #302 > >                                               │
00:01:18 verbose #472 > > │ ╭─────────────────────────────────────────────────────────────────────────── │
00:01:18 verbose #473 > > │ ───╮                                                                         │
00:01:18 verbose #474 > > │ 00:00:42 verbose #303 > > │ ## main                                     │
00:01:18 verbose #475 > > │ │                                                                            │
00:01:18 verbose #476 > > │ 00:00:42 verbose #304 > >                                               │
00:01:18 verbose #477 > > │ ╰─────────────────────────────────────────────────────────────────────────── │
00:01:18 verbose #478 > > │ ───╯                                                                         │
00:01:18 verbose #479 > > │ 00:00:42 verbose #305 > >                                               │
00:01:18 verbose #480 > > │ 00:00:42 verbose #306 > > ── spiral                                     │
00:01:18 verbose #481 > > │ ──────────────────────────────────────────────────────────────────────       │
00:01:18 verbose #482 > > │ 00:00:42 verbose #307 > > inl main (_args : array_base string) =        │
00:01:18 verbose #483 > > │ 00:00:42 verbose #308 > >     0i32                                      │
00:01:18 verbose #484 > > │ 00:00:42 verbose #309 > >                                               │
00:01:18 verbose #485 > > │ 00:00:42 verbose #310 > > inl main () =                                 │
00:01:18 verbose #486 > > │ 00:00:42 verbose #311 > >     $'let main args = !main args' : ()        │
00:01:18 verbose #487 > > │ 00:00:43 verbose #312 > >                                               │
00:01:18 verbose #488 > > │ 00:00:43 verbose #313 > > ── spiral                                     │
00:01:18 verbose #489 > > │ ──────────────────────────────────────────────────────────────────────       │
00:01:18 verbose #490 > > │ 00:00:43 verbose #314 > > inl app () =                                  │
00:01:18 verbose #491 > > │ 00:00:43 verbose #315 > >     "test" |> console.write_line              │
00:01:18 verbose #492 > > │ 00:00:43 verbose #316 > >     0i32                                      │
00:01:18 verbose #493 > > │ 00:00:43 verbose #317 > >                                               │
00:01:18 verbose #494 > > │ 00:00:43 verbose #318 > > inl main () =                                 │
00:01:18 verbose #495 > > │ 00:00:43 verbose #319 > >     print_static "<test>"                     │
00:01:18 verbose #496 > > │ 00:00:43 verbose #320 > >                                               │
00:01:18 verbose #497 > > │ 00:00:43 verbose #321 > >     app                                       │
00:01:18 verbose #498 > > │ 00:00:43 verbose #322 > >     |> dyn                                    │
00:01:18 verbose #499 > > │ 00:00:43 verbose #323 > >     |> ignore                                 │
00:01:18 verbose #500 > > │ 00:00:43 verbose #324 > >                                               │
00:01:18 verbose #501 > > │ 00:00:43 verbose #325 > >     print_static "</test>"                    │
00:01:18 verbose #502 > > │ 00:00:44 verbose #326 > 00:00:41 verbose #3                       │
00:01:18 verbose #503 > > │ runtime.execute_with_options / result / { exit_code = 0; std_trace_length =  │
00:01:18 verbose #504 > > │ 10945 }                                                                      │
00:01:18 verbose #505 > > │ 00:00:44 verbose #327 > 00:00:41   debug #4                       │
00:01:18 verbose #506 > > │ runtime.execute_with_options / { file_name = jupyter; arguments = [          │
00:01:18 verbose #507 > > │ "nbconvert", "c:/home/git/polyglot/apps/spiral/temp/test/test.dib.ipynb",    │
00:01:18 verbose #508 > > │ "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter  │
00:01:18 verbose #509 > > │ nbconvert "c:/home/git/polyglot/apps/spiral/temp/test/test.dib.ipynb" --to   │
00:01:18 verbose #510 > > │ html --HTMLExporter.theme=dark; cancellation_token = None;                   │
00:01:18 verbose #511 > > │ environment_variables = Array(MutCell([])); on_line = None; stdin = None;    │
00:01:18 verbose #512 > > │ trace = true; working_directory = None } }                                   │
00:01:18 verbose #513 > > │ 00:00:51 verbose #328 > 00:00:48 verbose #5 ! [NbConvertApp]      │
00:01:18 verbose #514 > > │ Converting notebook                                                          │
00:01:18 verbose #515 > > │ c:/home/git/polyglot/apps/spiral/temp/test/test.dib.ipynb to html            │
00:01:18 verbose #516 > > │ 00:00:51 verbose #329 > 00:00:48 verbose #6 !                     │
00:01:18 verbose #517 > > │ C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__ │
00:01:18 verbose #518 > > │ .py:93: MissingIDFieldWarning: Code cell is missing an id field, this will   │
00:01:18 verbose #519 > > │ become a hard error in future nbformat versions. You may want to use         │
00:01:18 verbose #520 > > │ `normalize()` on your notebooks before validations (available since nbformat │
00:01:18 verbose #521 > > │ 5.1.4). Previous versions of nbformat are fixing this issue transparently,   │
00:01:18 verbose #522 > > │ and will stop doing so in the future.                                        │
00:01:18 verbose #523 > > │ 00:00:51 verbose #330 > 00:00:48 verbose #7 !   validate(nb)      │
00:01:18 verbose #524 > > │ 00:00:56 verbose #331 > 00:00:53 verbose #8 ! [NbConvertApp]      │
00:01:18 verbose #525 > > │ Writing 318992 bytes to                                                      │
00:01:18 verbose #526 > > │ c:\home\git\polyglot\apps\spiral\temp\test\test.dib.html                     │
00:01:18 verbose #527 > > │ 00:00:57 verbose #332 > 00:00:54 verbose #9                       │
00:01:18 verbose #528 > > │ runtime.execute_with_options / result / { exit_code = 0; std_trace_length =  │
00:01:18 verbose #529 > > │ 661 }                                                                        │
00:01:18 verbose #530 > > │ 00:00:57 verbose #333 > 00:00:54   debug #10 spiral_builder.run / │
00:01:18 verbose #531 > > │ dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 661 }     │
00:01:18 verbose #532 > > │ 00:00:57 verbose #334 > 00:00:54   debug #11                      │
00:01:18 verbose #533 > > │ runtime.execute_with_options / { file_name = pwsh; arguments = ["-c",        │
00:01:18 verbose #534 > > │ "$counter = 1; $path =                                                       │
00:01:18 verbose #535 > > │ 'c:/home/git/polyglot/apps/spiral/temp/test/test.dib.html'; (Get-Content     │
00:01:18 verbose #536 > > │ $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value │
00:01:18 verbose #537 > > │ + $counter++ } | Set-Content $path"]; options = { command = pwsh -c          │
00:01:18 verbose #538 > > │ "$counter = 1; $path =                                                       │
00:01:18 verbose #539 > > │ 'c:/home/git/polyglot/apps/spiral/temp/test/test.dib.html'; (Get-Content     │
00:01:18 verbose #540 > > │ $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + │
00:01:18 verbose #541 > > │ $counter++ } | Set-Content $path"; cancellation_token = None;                │
00:01:18 verbose #542 > > │ environment_variables = Array(MutCell([])); on_line = None; stdin = None;    │
00:01:18 verbose #543 > > │ trace = true; working_directory = None } }                                   │
00:01:18 verbose #544 > > │ 00:01:00 verbose #335 > 00:00:57 verbose #12                      │
00:01:18 verbose #545 > > │ runtime.execute_with_options / result / { exit_code = 0; std_trace_length =  │
00:01:18 verbose #546 > > │ 0 }                                                                          │
00:01:18 verbose #547 > > │ 00:01:00 verbose #336 > 00:00:57   debug #13 spiral_builder.run / │
00:01:18 verbose #548 > > │ dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 } │
00:01:18 verbose #549 > > │ 00:01:01 verbose #337 > 00:00:58   debug #14 spiral_builder.run / │
00:01:18 verbose #550 > > │ dib / { exit_code = 0; result_length = 11665 }                               │
00:01:18 verbose #551 > > │ 00:01:01   debug #338 runtime.execute_with_options_async / { exit_code  │
00:01:18 verbose #552 > > │ = 0; output_length = 14996 }                                                 │
00:01:18 verbose #553 > > │ 00:01:01   debug #1 main / executeCommand / exitCode: 0 / command:      │
00:01:18 verbose #554 > > │ ../../../../workspace/target/release/spiral_builder.exe dib --path test.dib  │
00:01:18 verbose #555 > > │ --retries 3                                                                  │
00:01:18 verbose #556 > > │                                                                              │
00:01:18 verbose #557 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:18 verbose #558 > >
00:01:18 verbose #559 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:18 verbose #560 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:18 verbose #561 > > │ ### parse the .dib file into .spi format with dibparser                      │
00:01:18 verbose #562 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:18 verbose #563 > >
00:01:18 verbose #564 > > ── pwsh ────────────────────────────────────────────────────────────────────────
00:01:18 verbose #565 > > { . ../../../../apps/parser/dist/DibParser$(_exe) test.dib spi } | Invoke-Block
00:01:20 verbose #566 > >
00:01:20 verbose #567 > > ╭─[ 1.72s - stdout ]───────────────────────────────────────────────────────────╮
00:01:20 verbose #568 > > │ 00:00:00   debug #1 writeDibCode / output: Spi / path: test.dib         │
00:01:20 verbose #569 > > │ 00:00:01   debug #2 parseDibCode / output: Spi / file: test.dib         │
00:01:20 verbose #570 > > │                                                                              │
00:01:20 verbose #571 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:20 verbose #572 > >
00:01:20 verbose #573 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:20 verbose #574 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:20 verbose #575 > > │ ### build .fsx file from .spi using supervisor                               │
00:01:20 verbose #576 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:20 verbose #577 > >
00:01:20 verbose #578 > > ── pwsh ────────────────────────────────────────────────────────────────────────
00:01:20 verbose #579 > > { . ../../../../apps/spiral/dist/Supervisor$(_exe) --build-file test.spi
00:01:20 verbose #580 > > test.fsx } | Invoke-Block
00:01:24 verbose #581 > 00:01:21   debug #8 Supervisor.supervisor_server.BuildFile / file: c:/home/git/polyglot/apps/spiral/temp/test/test.spi
00:01:25 verbose #582 > <test>
00:01:25 verbose #583 > </test>
00:01:25 verbose #584 > >
00:01:25 verbose #585 > > ╭─[ 4.92s - stdout ]───────────────────────────────────────────────────────────╮
00:01:25 verbose #586 > > │ 00:00:01 verbose #1 async.run_with_timeout_async / { timeout = 180 }    │
00:01:25 verbose #587 > > │ 00:00:02 verbose #2 async.run_with_timeout_async / { timeout = 180 }    │
00:01:25 verbose #588 > > │ 00:00:02   debug #1 Supervisor.buildFile / takeWhileInclusive /         │
00:01:25 verbose #589 > > │ outputContent:                                                               │
00:01:25 verbose #590 > > │  / errors: [] / typeErrorCount: 0 / retry: 0 / path: test.spi                │
00:01:25 verbose #591 > > │ 00:00:02   debug #2 Supervisor.buildFile / AsyncSeq.scan /              │
00:01:25 verbose #592 > > │ outputContent:                                                               │
00:01:25 verbose #593 > > │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
00:01:25 verbose #594 > > │ error:  / path: test.spi                                                     │
00:01:25 verbose #595 > > │ 00:00:02   debug #3 Supervisor.buildFile / takeWhileInclusive /         │
00:01:25 verbose #596 > > │ outputContent:                                                               │
00:01:25 verbose #597 > > │  / errors: [] / typeErrorCount: 0 / retry: 0 / path: test.spi                │
00:01:25 verbose #598 > > │ 00:00:03 verbose #4 Supervisor.sendJson / port: 13805 / json:           │
00:01:25 verbose #599 > > │ {"FileOpen":{"spiText":"/// # test (Polyglot)\nnominal i = ()\nnominal e =   │
00:01:25 verbose #600 > > │ ()\nnominal s =                                                              │
00:01:25 verbose #601 > > │ ()\nnomin...0022\u003C/test\u003E\u0022\n","uri":"file:///c:/home/git/polygl │
00:01:25 verbose #602 > > │ ot/apps/spiral/temp/test/test.spi"}} / result:                               │
00:01:25 verbose #603 > > │ 00:00:03 verbose #5 Supervisor.sendJson / port: 13805 / json:           │
00:01:25 verbose #604 > > │ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/apps/sp │
00:01:25 verbose #605 > > │ iral/temp/test/test.spi"}} / result:                                         │
00:01:25 verbose #606 > > │ 00:00:03   debug #6 Supervisor.buildFile / AsyncSeq.scan /              │
00:01:25 verbose #607 > > │ outputContent:                                                               │
00:01:25 verbose #608 > > │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
00:01:25 verbose #609 > > │ error:  / path: test.spi                                                     │
00:01:25 verbose #610 > > │ 00:00:03   debug #7 Supervisor.buildFile / takeWhileInclusive /         │
00:01:25 verbose #611 > > │ outputContent:                                                               │
00:01:25 verbose #612 > > │  / errors: [] / typeErrorCount: 0 / retry: 0 / path: test.spi                │
00:01:25 verbose #613 > > │ 00:00:03   debug #8 Supervisor.buildFile / AsyncSeq.scan /              │
00:01:25 verbose #614 > > │ outputContent:                                                               │
00:01:25 verbose #615 > > │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
00:01:25 verbose #616 > > │ error:  / path: test.spi                                                     │
00:01:25 verbose #617 > > │ 00:00:03   debug #9 Supervisor.buildFile / takeWhileInclusive /         │
00:01:25 verbose #618 > > │ outputContent:                                                               │
00:01:25 verbose #619 > > │  / errors: [] / typeErrorCount: 0 / retry: 0 / path: test.spi                │
00:01:25 verbose #620 > > │ 00:00:04   debug #10 Supervisor.buildFile / AsyncSeq.scan /             │
00:01:25 verbose #621 > > │ outputContent:                                                               │
00:01:25 verbose #622 > > │ let rec closure0 () () : int32 =                                             │
00:01:25 verbose #623 > > │     let v2 : (string -> unit) = System.Console.WriteLine                     │
00:01:25 verbose #624 > > │     let v3 : string = "test"                                                 │
00:01:25 verbose #625 > > │     v2 v3                                                                    │
00:01:25 verbose #626 > > │     0                                                                        │
00:01:25 verbose #627 > > │ let v0 : (unit -> int32) = closure0()                                        │
00:01:25 verbose #628 > > │ ()                                                                           │
00:01:25 verbose #629 > > │  / errors: [] / outputContentResult:  / typeErrorCount: 0 / retry: 0 /       │
00:01:25 verbose #630 > > │ error:  / path: test.spi                                                     │
00:01:25 verbose #631 > > │ 00:00:04   debug #11 Supervisor.buildFile / takeWhileInclusive /        │
00:01:25 verbose #632 > > │ outputContent:                                                               │
00:01:25 verbose #633 > > │ let rec closure0 () () : int32 =                                             │
00:01:25 verbose #634 > > │     let v2 : (string -> unit) = System.Console.WriteLine                     │
00:01:25 verbose #635 > > │     let v3 : string = "test"                                                 │
00:01:25 verbose #636 > > │     v2 v3                                                                    │
00:01:25 verbose #637 > > │     0                                                                        │
00:01:25 verbose #638 > > │ let v0 : (unit -> int32) = closure0()                                        │
00:01:25 verbose #639 > > │ ()                                                                           │
00:01:25 verbose #640 > > │  / errors: [] / typeErrorCount: 0 / retry: 0 / path: test.spi                │
00:01:25 verbose #641 > > │ 00:00:04   debug #12 FileSystem.watchWithFilter / Disposing watch       │
00:01:25 verbose #642 > > │ stream / filter: FileName, LastWrite                                         │
00:01:25 verbose #643 > > │                                                                              │
00:01:25 verbose #644 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:25 verbose #645 > >
00:01:25 verbose #646 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:25 verbose #647 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:25 verbose #648 > > │ ## compile and format the project                                            │
00:01:25 verbose #649 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:25 verbose #650 > >
00:01:25 verbose #651 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:25 verbose #652 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:25 verbose #653 > > │ ### compile project with fable targeting optimized rust                      │
00:01:25 verbose #654 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:25 verbose #655 > >
00:01:25 verbose #656 > > ── pwsh ────────────────────────────────────────────────────────────────────────
00:01:25 verbose #657 > > dotnet fable --optimize --lang rs --extension .rs
00:01:36 verbose #658 > >
00:01:36 verbose #659 > > ╭─[ 10.57s - stdout ]──────────────────────────────────────────────────────────╮
00:01:36 verbose #660 > > │ Fable 4.19.3: F# to Rust compiler (status: alpha)                            │
00:01:36 verbose #661 > > │                                                                              │
00:01:36 verbose #662 > > │ Thanks to the contributor! @goswinr                                          │
00:01:36 verbose #663 > > │ Stand with Ukraine! https://standwithukraine.com.ua/                         │
00:01:36 verbose #664 > > │                                                                              │
00:01:36 verbose #665 > > │ Parsing test.fsproj...                                                       │
00:01:36 verbose #666 > > │ Retrieving project options from cache, in case of issues run `dotnet fable   │
00:01:36 verbose #667 > > │ clean` or try `--noCache` option.                                            │
00:01:36 verbose #668 > > │ Project and references (1 source files) parsed in 590ms                      │
00:01:36 verbose #669 > > │                                                                              │
00:01:36 verbose #670 > > │ Started Fable compilation...                                                 │
00:01:36 verbose #671 > > │                                                                              │
00:01:36 verbose #672 > > │ Fable compilation finished in 4975ms                                         │
00:01:36 verbose #673 > > │                                                                              │
00:01:36 verbose #674 > > │ .\test.fsx(7,0): (7,2) warning FABLE: For Rust, support for F# static and    │
00:01:36 verbose #675 > > │ module do bindings is disabled by default. It can be enabled with the        │
00:01:36 verbose #676 > > │ 'static_do_bindings' feature. Use at your own risk!                          │
00:01:36 verbose #677 > > │                                                                              │
00:01:36 verbose #678 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:36 verbose #679 > >
00:01:36 verbose #680 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:36 verbose #681 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:36 verbose #682 > > │ ### fix formatting issues in the .rs file using regex and set-content        │
00:01:36 verbose #683 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:36 verbose #684 > >
00:01:36 verbose #685 > > ── pwsh ────────────────────────────────────────────────────────────────────────
00:01:36 verbose #686 > > (Get-Content test.rs) `
00:01:36 verbose #687 > >     -replace [[regex]]::Escape("),);"), "));" `
00:01:36 verbose #688 > >     | FixRust `
00:01:36 verbose #689 > > | Set-Content test.rs
00:01:36 verbose #690 > >
00:01:36 verbose #691 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:36 verbose #692 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:36 verbose #693 > > │ ### format the rust code using cargo fmt                                     │
00:01:36 verbose #694 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:36 verbose #695 > >
00:01:36 verbose #696 > > ── pwsh ────────────────────────────────────────────────────────────────────────
00:01:36 verbose #697 > > cargo fmt --
00:01:37 verbose #698 > >
00:01:37 verbose #699 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:37 verbose #700 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:37 verbose #701 > > │ ## build and test the project                                                │
00:01:37 verbose #702 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:37 verbose #703 > >
00:01:37 verbose #704 > > ── markdown ────────────────────────────────────────────────────────────────────
00:01:37 verbose #705 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:37 verbose #706 > > │ ### build the project in release mode using nightly rust compiler            │
00:01:37 verbose #707 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:37 verbose #708 > >
00:01:37 verbose #709 > > ── pwsh ────────────────────────────────────────────────────────────────────────
00:01:37 verbose #710 > > cargo +nightly build --release
00:02:06 verbose #711 > >
00:02:06 verbose #712 > > ╭─[ 28.81s - stdout ]──────────────────────────────────────────────────────────╮
00:02:06 verbose #713 > > │    Compiling fable_library_rust v0.1.0                                  │
00:02:06 verbose #714 > > │ (C:\home\git\polyglot\lib\rust\fable\fable_modules\fable-library-rust)     │
00:02:06 verbose #715 > > │    Compiling spiral_temp_test v0.0.1                                    │
00:02:06 verbose #716 > > │ (C:\home\git\polyglot\apps\spiral\temp\test)                               │
00:02:06 verbose #717 > > │ warning: enum `Item` is never used                                    │
00:02:06 verbose #718 > > │   --> C:\home\git\polyglot\apps\spiral\temp\test\./main.rs:16:6       │
00:02:06 verbose #719 > > │    |                                                                  │
00:02:06 verbose #720 > > │ 16 | enum Item {                                                      │
00:02:06 verbose #721 > > │    |      ^^^^                                                        │
00:02:06 verbose #722 > > │    |                                                                  │
00:02:06 verbose #723 > > │    = note: `#[warn(dead_code)]` on by default                         │
00:02:06 verbose #724 > > │                                                                       │
00:02:06 verbose #725 > > │ warning: struct `Cart` is never constructed                           │
00:02:06 verbose #726 > > │   --> C:\home\git\polyglot\apps\spiral\temp\test\./main.rs:41:8       │
00:02:06 verbose #727 > > │    |                                                                  │
00:02:06 verbose #728 > > │ 41 | struct Cart {                                                    │
00:02:06 verbose #729 > > │    |        ^^^^                                                      │
00:02:06 verbose #730 > > │                                                                       │
00:02:06 verbose #731 > > │ warning: associated items `new`, `add_item`, and `remove_item` are      │
00:02:06 verbose #732 > > │ never used                                                                 │
00:02:06 verbose #733 > > │   --> C:\home\git\polyglot\apps\spiral\temp\test\./main.rs:46:8       │
00:02:06 verbose #734 > > │    |                                                                  │
00:02:06 verbose #735 > > │ 45 | impl Cart {                                                      │
00:02:06 verbose #736 > > │    | --------- associated items in this implementation                │
00:02:06 verbose #737 > > │ 46 |     fn new() -> Cart {                                           │
00:02:06 verbose #738 > > │    |        ^^^                                                       │
00:02:06 verbose #739 > > │ ...                                                                   │
00:02:06 verbose #740 > > │ 50 |     fn add_item(&mut self, item: Item) {                         │
00:02:06 verbose #741 > > │    |        ^^^^^^^^                                                  │
00:02:06 verbose #742 > > │ ...                                                                   │
00:02:06 verbose #743 > > │ 56 |     fn remove_item(&mut self, item: &Item) {                     │
00:02:06 verbose #744 > > │    |        ^^^^^^^^^^^                                               │
00:02:06 verbose #745 > > │                                                                       │
00:02:06 verbose #746 > > │ warning: function `parse_comment` is never used                       │
00:02:06 verbose #747 > > │    --> C:\home\git\polyglot\apps\spiral\temp\test\./main.rs:124:4     │
00:02:06 verbose #748 > > │     |                                                                 │
00:02:06 verbose #749 > > │ 124 | fn parse_comment(input: &str) -> IResult<&str, SpiralToken> {   │
00:02:06 verbose #750 > > │     |    ^^^^^^^^^^^^^                                                │
00:02:06 verbose #751 > > │                                                                       │
00:02:06 verbose #752 > > │ warning: function `parse_string` is never used                        │
00:02:06 verbose #753 > > │    --> C:\home\git\polyglot\apps\spiral\temp\test\./main.rs:130:4     │
00:02:06 verbose #754 > > │     |                                                                 │
00:02:06 verbose #755 > > │ 130 | fn parse_string(input: &str) -> IResult<&str, SpiralToken> {    │
00:02:06 verbose #756 > > │     |    ^^^^^^^^^^^^                                                 │
00:02:06 verbose #757 > > │                                                                       │
00:02:06 verbose #758 > > │ warning: function `parse_identifier` is never used                    │
00:02:06 verbose #759 > > │    --> C:\home\git\polyglot\apps\spiral\temp\test\./main.rs:145:4     │
00:02:06 verbose #760 > > │     |                                                                 │
00:02:06 verbose #761 > > │ 145 | fn parse_identifier(input: &str) -> IResult<&str, SpiralToken> {[  │
00:02:06 verbose #762 > > │ 0m                                                                           │
00:02:06 verbose #763 > > │     |    ^^^^^^^^^^^^^^^^                                             │
00:02:06 verbose #764 > > │                                                                       │
00:02:06 verbose #765 > > │ warning: function `parse_integer` is never used                       │
00:02:06 verbose #766 > > │    --> C:\home\git\polyglot\apps\spiral\temp\test\./main.rs:157:4     │
00:02:06 verbose #767 > > │     |                                                                 │
00:02:06 verbose #768 > > │ 157 | fn parse_integer(input: &str) -> IResult<&str, SpiralToken> {   │
00:02:06 verbose #769 > > │     |    ^^^^^^^^^^^^^                                                │
00:02:06 verbose #770 > > │                                                                       │
00:02:06 verbose #771 > > │ warning: function `parse_operator` is never used                      │
00:02:06 verbose #772 > > │    --> C:\home\git\polyglot\apps\spiral\temp\test\./main.rs:165:4     │
00:02:06 verbose #773 > > │     |                                                                 │
00:02:06 verbose #774 > > │ 165 | fn parse_operator(input: &str) -> IResult<&str, SpiralToken> {  │
00:02:06 verbose #775 > > │     |    ^^^^^^^^^^^^^^                                               │
00:02:06 verbose #776 > > │                                                                       │
00:02:06 verbose #777 > > │ warning: function `parse_token` is never used                         │
00:02:06 verbose #778 > > │    --> C:\home\git\polyglot\apps\spiral\temp\test\./main.rs:170:4     │
00:02:06 verbose #779 > > │     |                                                                 │
00:02:06 verbose #780 > > │ 170 | fn parse_token(input: &str) -> IResult<&str, SpiralToken> {     │
00:02:06 verbose #781 > > │     |    ^^^^^^^^^^^                                                  │
00:02:06 verbose #782 > > │                                                                       │
00:02:06 verbose #783 > > │ warning: function `format_token` is never used                        │
00:02:06 verbose #784 > > │    --> C:\home\git\polyglot\apps\spiral\temp\test\./main.rs:180:4     │
00:02:06 verbose #785 > > │     |                                                                 │
00:02:06 verbose #786 > > │ 180 | fn format_token(token: &SpiralToken) -> String {                │
00:02:06 verbose #787 > > │     |    ^^^^^^^^^^^^                                                 │
00:02:06 verbose #788 > > │                                                                       │
00:02:06 verbose #789 > > │ warning: function `parse_expression` is never used                    │
00:02:06 verbose #790 > > │    --> C:\home\git\polyglot\apps\spiral\temp\test\./main.rs:201:4     │
00:02:06 verbose #791 > > │     |                                                                 │
00:02:06 verbose #792 > > │ 201 | fn parse_expression(input: &str) -> IResult<&str, SpiralToken> {[  │
00:02:06 verbose #793 > > │ 0m                                                                           │
00:02:06 verbose #794 > > │     |    ^^^^^^^^^^^^^^^^                                             │
00:02:06 verbose #795 > > │                                                                       │
00:02:06 verbose #796 > > │ warning: `spiral_temp_test` (bin "spiral_temp_test") generated 11       │
00:02:06 verbose #797 > > │ warnings                                                                   │
00:02:06 verbose #798 > > │     Finished `release` profile [optimized] target(s) in 28.49s        │
00:02:06 verbose #799 > > │                                                                              │
00:02:06 verbose #800 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:06 verbose #801 > >
00:02:06 verbose #802 > > ── markdown ────────────────────────────────────────────────────────────────────
00:02:06 verbose #803 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:02:06 verbose #804 > > │ ### run release tests with output enabled                                    │
00:02:06 verbose #805 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:02:06 verbose #806 > >
00:02:06 verbose #807 > > ── pwsh ────────────────────────────────────────────────────────────────────────
00:02:06 verbose #808 > > { cargo +nightly test --release -- --show-output } | Invoke-Block
00:03:26 verbose #809 > >
00:03:26 verbose #810 > > ╭─[ 1.33m - stdout ]───────────────────────────────────────────────────────────╮
00:03:26 verbose #811 > > │    Compiling fable_library_rust v0.1.0                                  │
00:03:26 verbose #812 > > │ (C:\home\git\polyglot\lib\rust\fable\fable_modules\fable-library-rust)     │
00:03:26 verbose #813 > > │    Compiling spiral_temp_test v0.0.1                                    │
00:03:26 verbose #814 > > │ (C:\home\git\polyglot\apps\spiral\temp\test)                               │
00:03:26 verbose #815 > > │     Finished `release` profile [optimized] target(s) in 1m 19s        │
00:03:26 verbose #816 > > │      Running unittests main.rs                                          │
00:03:26 verbose #817 > > │ (C:\home\git\polyglot\workspace\target\release\deps\spiral_temp_test-5f6d226 │
00:03:26 verbose #818 > > │ b2c944840.exe)                                                             │
00:03:26 verbose #819 > > │                                                                              │
00:03:26 verbose #820 > > │ running 3 tests                                                              │
00:03:26 verbose #821 > > │ test test_parse_number ... ok                                                │
00:03:26 verbose #822 > > │ test prop_parse_format_idempotent ... ok                                     │
00:03:26 verbose #823 > > │ test                                                                         │
00:03:26 verbose #824 > > │ adding_and_then_removing_an_item_from_the_cart_leaves_the_cart_unchanged ... │
00:03:26 verbose #825 > > │ ok                                                                           │
00:03:26 verbose #826 > > │                                                                              │
00:03:26 verbose #827 > > │ successes:                                                                   │
00:03:26 verbose #828 > > │                                                                              │
00:03:26 verbose #829 > > │ ---- prop_parse_format_idempotent stdout ----                                │
00:03:26 verbose #830 > > │ input=Operator("=")                                                          │
00:03:26 verbose #831 > > │ input=Integer(-3068258113890437538)                                          │
00:03:26 verbose #832 > > │ input=Comment("r`{9LVtou")                                                   │
00:03:26 verbose #833 > > │ input=StringLiteral("`C9w`b[Qeq=&")                                          │
00:03:26 verbose #834 > > │ input=Identifier("dH8uvFcd2RXOy678ueE")                                      │
00:03:26 verbose #835 > > │ input=Identifier("kNu84K9r42HqPn9breR51VRVq2p0")                             │
00:03:26 verbose #836 > > │ input=Operator("/")                                                          │
00:03:26 verbose #837 > > │ input=StringLiteral("j>]'J&SkW:%")                                           │
00:03:26 verbose #838 > > │ input=Identifier("K60")                                                      │
00:03:26 verbose #839 > > │ input=Comment("]F4n`\\?:dR){'\"/")                                           │
00:03:26 verbose #840 > > │ input=Comment("n[=Y~/*:Z'\\r4/Y'PY*")                                        │
00:03:26 verbose #841 > > │ input=Operator("*")                                                          │
00:03:26 verbose #842 > > │ input=Identifier("XS832WL")                                                  │
00:03:26 verbose #843 > > │ input=Integer(-4422942027186284546)                                          │
00:03:26 verbose #844 > > │ input=Integer(7274062319981550421)                                           │
00:03:26 verbose #845 > > │ input=Comment("u\\'@p:%")                                                    │
00:03:26 verbose #846 > > │ input=Identifier("seNFq1UGmSNLqI4")                                          │
00:03:26 verbose #847 > > │ input=Comment("W22'`%?T%Z{SBvn8=}<srDQv")                                    │
00:03:26 verbose #848 > > │ input=StringLiteral("e/K2%f")                                                │
00:03:26 verbose #849 > > │ input=Comment("@`E%F%<2cH?l/>x6q2\"x`g=@<#/o_2.")                            │
00:03:26 verbose #850 > > │ input=Comment(")|Ppvhd{.")                                                   │
00:03:26 verbose #851 > > │ input=StringLiteral("y")                                                     │
00:03:26 verbose #852 > > │ input=Operator("(")                                                          │
00:03:26 verbose #853 > > │ input=StringLiteral("!!l9a.b;?.sH2:`o~{V+/wz")                               │
00:03:26 verbose #854 > > │ input=Identifier("FNClbddfIX2vEdsW8Fh4wJVDjqs7951")                          │
00:03:26 verbose #855 > > │ input=Integer(-8299174114018671968)                                          │
00:03:26 verbose #856 > > │ input=Operator("-")                                                          │
00:03:26 verbose #857 > > │ input=Integer(4566975303622617815)                                           │
00:03:26 verbose #858 > > │ input=Integer(-3885357202307093177)                                          │
00:03:26 verbose #859 > > │ input=Comment("&kH1WGR")                                                     │
00:03:26 verbose #860 > > │ input=Comment("$")                                                           │
00:03:26 verbose #861 > > │ input=StringLiteral("*:( 8{*Nf|RK!}/?d")                                     │
00:03:26 verbose #862 > > │ input=Identifier("ov2ooi3bw7Qwqr5")                                          │
00:03:26 verbose #863 > > │ input=Comment("i*a=a9.'`m{(;{K!$")                                           │
00:03:26 verbose #864 > > │ input=Integer(9071153473389761251)                                           │
00:03:26 verbose #865 > > │ input=Identifier("OGzxUH2i0ni1xskpH6aLL5qh3a4pBMnu")                         │
00:03:26 verbose #866 > > │ input=StringLiteral("<?&+&7UR[2uo'{G]&")                                     │
00:03:26 verbose #867 > > │ input=StringLiteral("/U*aa!C+!Li{cTY")                                       │
00:03:26 verbose #868 > > │ input=StringLiteral("")                                                      │
00:03:26 verbose #869 > > │ input=Operator("-")                                                          │
00:03:26 verbose #870 > > │ input=Identifier("xwd0sc1X42UGa")                                            │
00:03:26 verbose #871 > > │ input=Comment("P9S!")                                                        │
00:03:26 verbose #872 > > │ input=StringLiteral("D`l~<O")                                                │
00:03:26 verbose #873 > > │ input=Operator("-")                                                          │
00:03:26 verbose #874 > > │ input=Integer(1817586791000156671)                                           │
00:03:26 verbose #875 > > │ input=Operator("/")                                                          │
00:03:26 verbose #876 > > │ input=Integer(-8503628598337286899)                                          │
00:03:26 verbose #877 > > │ input=Comment("jj&X*F(_I(PP9;$TqS=/::wK<z3`")                                │
00:03:26 verbose #878 > > │ input=Comment("+q&Nu\"S,k9R*&?7Pe o`AAR\\Z,/={")                             │
00:03:26 verbose #879 > > │ input=Operator(")")                                                          │
00:03:26 verbose #880 > > │ input=Integer(-2943747657886532668)                                          │
00:03:26 verbose #881 > > │ input=Comment("?8=,[e")                                                      │
00:03:26 verbose #882 > > │ input=Identifier("OBL3QzCPOhKTTO")                                           │
00:03:26 verbose #883 > > │ input=Operator(")")                                                          │
00:03:26 verbose #884 > > │ input=Integer(-7426478321759184332)                                          │
00:03:26 verbose #885 > > │ input=Comment("\"x?&Vx*6Vn@_~?")                                             │
00:03:26 verbose #886 > > │ input=Identifier("w65wxDgr18kOvPX6LSk")                                      │
00:03:26 verbose #887 > > │ input=Comment("K'/e}V-Z*PuIH} _\"$v~`5dO1K")                                 │
00:03:26 verbose #888 > > │ input=Integer(-694593706737348749)                                           │
00:03:26 verbose #889 > > │ input=Integer(7539005474975982945)                                           │
00:03:26 verbose #890 > > │ input=Comment("=kTqF|=j{aiT=q")                                              │
00:03:26 verbose #891 > > │ input=Identifier("ZrQ1DzwNOeM13r2O2sr2UicjIt8v02")                           │
00:03:26 verbose #892 > > │ input=Integer(-2041881984484700496)                                          │
00:03:26 verbose #893 > > │ input=Operator("=")                                                          │
00:03:26 verbose #894 > > │ input=Operator("/")                                                          │
00:03:26 verbose #895 > > │ input=Integer(-1924175436118888005)                                          │
00:03:26 verbose #896 > > │ input=Operator("=")                                                          │
00:03:26 verbose #897 > > │ input=Integer(-1707143643014294199)                                          │
00:03:26 verbose #898 > > │ input=Integer(1342897309562503224)                                           │
00:03:26 verbose #899 > > │ input=Operator("+")                                                          │
00:03:26 verbose #900 > > │ input=StringLiteral("I8<b#6?Xm=<5GtW{20O&x1R~,H={9")                         │
00:03:26 verbose #901 > > │ input=Operator("-")                                                          │
00:03:26 verbose #902 > > │ input=StringLiteral("UOq3Tg0p-`D$3.J83$.zG}YF'")                             │
00:03:26 verbose #903 > > │ input=Operator("(")                                                          │
00:03:26 verbose #904 > > │ input=Integer(-8873861720850054725)                                          │
00:03:26 verbose #905 > > │ input=Comment("x}D^kg{m-x`K'=3@\"CQ&/ja%")                                   │
00:03:26 verbose #906 > > │ input=Operator("/")                                                          │
00:03:26 verbose #907 > > │ input=StringLiteral("-%s*0Gz<Q]")                                            │
00:03:26 verbose #908 > > │ input=Operator("=")                                                          │
00:03:26 verbose #909 > > │ input=StringLiteral("D*9r4%dkh..&%<R>FefM")                                  │
00:03:26 verbose #910 > > │ input=StringLiteral("/rv")                                                   │
00:03:26 verbose #911 > > │ input=StringLiteral("L!M^+;n/%%:-7I%Zqz.^]gJ{*")                             │
00:03:26 verbose #912 > > │ input=Operator("=")                                                          │
00:03:26 verbose #913 > > │ input=Integer(-5347829751632122880)                                          │
00:03:26 verbose #914 > > │ input=Integer(-796066220086526559)                                           │
00:03:26 verbose #915 > > │ input=Integer(-270311883450538233)                                           │
00:03:26 verbose #916 > > │ input=Comment("\\A$Y M`6B\"/")                                               │
00:03:26 verbose #917 > > │ input=Operator(")")                                                          │
00:03:26 verbose #918 > > │ input=Operator(")")                                                          │
00:03:26 verbose #919 > > │ input=StringLiteral("`7$<(sti%dfw_T8hEUS,7e^")                               │
00:03:26 verbose #920 > > │ input=Comment("<W&$W/'*GM$\\\"V{*fC.F{D2")                                   │
00:03:26 verbose #921 > > │ input=Identifier("i5zQ72XZnYaoqQ4ee9A0Lwz5K9")                               │
00:03:26 verbose #922 > > │ input=Integer(-3563498540266560141)                                          │
00:03:26 verbose #923 > > │ input=StringLiteral("`'V&~m']L/vp&B|d>6k,`Z%%b:%x%b<3")                      │
00:03:26 verbose #924 > > │ input=Comment("\\q[=dk.L6IU")                                                │
00:03:26 verbose #925 > > │ input=Identifier("WxzNRkxIQ0ZoJXOEjTPQ7CVkU")                                │
00:03:26 verbose #926 > > │ input=Operator("-")                                                          │
00:03:26 verbose #927 > > │ input=Comment("*11W.?M")                                                     │
00:03:26 verbose #928 > > │ input=Integer(-5749148398277300346)                                          │
00:03:26 verbose #929 > > │ input=Comment("$$:K'\\@38%z")                                                │
00:03:26 verbose #930 > > │ input=Integer(4900241917869232442)                                           │
00:03:26 verbose #931 > > │ input=Operator("*")                                                          │
00:03:26 verbose #932 > > │ input=Integer(-5651074883486045861)                                          │
00:03:26 verbose #933 > > │ input=Identifier("I2CU2qifZum8")                                             │
00:03:26 verbose #934 > > │ input=StringLiteral("{SKh'-&pG")                                             │
00:03:26 verbose #935 > > │ input=Comment("$?Y*EvwI;?H:~`V~.t%:klc")                                     │
00:03:26 verbose #936 > > │ input=StringLiteral("zPWSNNB>BF<L7@)'e&:K")                                  │
00:03:26 verbose #937 > > │ input=StringLiteral("`Qk0A=<B:Lx|.")                                         │
00:03:26 verbose #938 > > │ input=Identifier("R36rtEpf26Y4I9BOtIi3pBS")                                  │
00:03:26 verbose #939 > > │ input=Identifier("TCkBjgR1eKrF2")                                            │
00:03:26 verbose #940 > > │ input=Integer(-6686453438835434614)                                          │
00:03:26 verbose #941 > > │ input=Operator("+")                                                          │
00:03:26 verbose #942 > > │ input=Identifier("s4Rtpd2vXSAAJktp4q73GIp")                                  │
00:03:26 verbose #943 > > │ input=Comment("r?\"vN'T)*[?/?$`E:%+at\\)R'srXUO$")                           │
00:03:26 verbose #944 > > │ input=StringLiteral(":<`NsU.{A**Z?:&fJ'9$")                                  │
00:03:26 verbose #945 > > │ input=Operator("-")                                                          │
00:03:26 verbose #946 > > │ input=Operator("*")                                                          │
00:03:26 verbose #947 > > │ input=Integer(-5458007544738684314)                                          │
00:03:26 verbose #948 > > │ input=Comment("6.?5?Dn*6")                                                   │
00:03:26 verbose #949 > > │ input=Identifier("F10NuduT3Zv8v")                                            │
00:03:26 verbose #950 > > │ input=Operator("-")                                                          │
00:03:26 verbose #951 > > │ input=Comment("\\*s/<BD{")                                                   │
00:03:26 verbose #952 > > │ input=StringLiteral("2ZkR#){3*")                                             │
00:03:26 verbose #953 > > │ input=Comment("GWo\"?M<5'%*x8#\"}")                                          │
00:03:26 verbose #954 > > │ input=StringLiteral("<`S`(M%QFNz.|")                                         │
00:03:26 verbose #955 > > │ input=StringLiteral("$~x?)6U#N*?`")                                          │
00:03:26 verbose #956 > > │ input=Operator("/")                                                          │
00:03:26 verbose #957 > > │ input=StringLiteral("g%s(B]J|ge]'&eRh")                                      │
00:03:26 verbose #958 > > │ input=Integer(4667785063465878797)                                           │
00:03:26 verbose #959 > > │ input=Integer(1664023675628131350)                                           │
00:03:26 verbose #960 > > │ input=Comment("$eT$%&Pc{.&\"r~sEv&Vz}A`=")                                   │
00:03:26 verbose #961 > > │ input=Integer(4501575063987863159)                                           │
00:03:26 verbose #962 > > │ input=Operator("=")                                                          │
00:03:26 verbose #963 > > │ input=Comment("o,Y_QjB\"K<*<</SG%?\"{{L&F={:>h5{")                           │
00:03:26 verbose #964 > > │ input=Comment("<IV,=h<`>n:6O9q;n/yQ%WwMvuL003W0")                            │
00:03:26 verbose #965 > > │ input=Identifier("hHgsPdXS9N48R8cD43D6TXro0")                                │
00:03:26 verbose #966 > > │ input=Integer(-5050856528088501178)                                          │
00:03:26 verbose #967 > > │ input=Identifier("EDLMamqPwzlubpeX7xVl34A")                                  │
00:03:26 verbose #968 > > │ input=Comment("wp:&'o0~\\UM)VY*px\\M}F+A{<B>%j")                             │
00:03:26 verbose #969 > > │ input=Operator("+")                                                          │
00:03:26 verbose #970 > > │ input=StringLiteral(":,=%E6b1:fEf4hsd.lsg.?wHp*Hl%")                         │
00:03:26 verbose #971 > > │ input=Identifier("mlI6YF8Hqc0xVoSmbG1W5Db1e324")                             │
00:03:26 verbose #972 > > │ input=StringLiteral("BP_/hhi`C=9*")                                          │
00:03:26 verbose #973 > > │ input=StringLiteral("+;[$<`.")                                               │
00:03:26 verbose #974 > > │ input=StringLiteral("%ws,C?$Tm")                                             │
00:03:26 verbose #975 > > │ input=Comment("\\@]VmG&*@9[:V%$%uYc")                                        │
00:03:26 verbose #976 > > │ input=Operator("/")                                                          │
00:03:26 verbose #977 > > │ input=Identifier("xm75N9")                                                   │
00:03:26 verbose #978 > > │ input=StringLiteral("@x&{")                                                  │
00:03:26 verbose #979 > > │ input=Operator("/")                                                          │
00:03:26 verbose #980 > > │ input=Identifier("xAw7AAs51P8Qv4nrteK4kBC")                                  │
00:03:26 verbose #981 > > │ input=StringLiteral(".+U))g.g:.:~&g1 5%'>")                                  │
00:03:26 verbose #982 > > │ input=Comment("}mc3$tZGP%/k.J3*mO'v|f")                                      │
00:03:26 verbose #983 > > │ input=Identifier("vqZrSwQOfQIamViVV7")                                       │
00:03:26 verbose #984 > > │ input=Integer(-6670104917459553137)                                          │
00:03:26 verbose #985 > > │ input=StringLiteral("Q2G'}ID<'`v`voipl-C_>")                                 │
00:03:26 verbose #986 > > │ input=Operator("(")                                                          │
00:03:26 verbose #987 > > │ input=StringLiteral("Sh.#B")                                                 │
00:03:26 verbose #988 > > │ input=Operator(")")                                                          │
00:03:26 verbose #989 > > │ input=Operator("-")                                                          │
00:03:26 verbose #990 > > │ input=Identifier("yxh75Xp1")                                                 │
00:03:26 verbose #991 > > │ input=Integer(8755949739817564617)                                           │
00:03:26 verbose #992 > > │ input=Comment("S<0p|D5s-F5+G%/K[|%[")                                        │
00:03:26 verbose #993 > > │ input=StringLiteral("3c ,U{<{<")                                             │
00:03:26 verbose #994 > > │ input=Integer(-6359278162388384841)                                          │
00:03:26 verbose #995 > > │ input=StringLiteral("DoQTtk/>)Z%*$?")                                        │
00:03:26 verbose #996 > > │ input=Integer(-3770361038973228900)                                          │
00:03:26 verbose #997 > > │ input=Identifier("Pafb0gCrXQ")                                               │
00:03:26 verbose #998 > > │ input=Integer(-6309062888108618022)                                          │
00:03:26 verbose #999 > > │ input=StringLiteral("I>^Q.4k?:nPob,[0<.P")                                   │
00:03:26 verbose #1000 > > │ input=Identifier("sdda5Us00QdOC47i4t5xrFokC")                                │
00:03:26 verbose #1001 > > │ input=Identifier("E6p5QFc8")                                                 │
00:03:26 verbose #1002 > > │ input=Operator("/")                                                          │
00:03:26 verbose #1003 > > │ input=Comment("$_$;m4F!\\|G")                                                │
00:03:26 verbose #1004 > > │ input=Identifier("leTAnNN7uDs0")                                             │
00:03:26 verbose #1005 > > │ input=Operator(")")                                                          │
00:03:26 verbose #1006 > > │ input=Integer(-6060925093497013512)                                          │
00:03:26 verbose #1007 > > │ input=Integer(-3247485589503563090)                                          │
00:03:26 verbose #1008 > > │ input=Operator("(")                                                          │
00:03:26 verbose #1009 > > │ input=Integer(-4530445486977312162)                                          │
00:03:26 verbose #1010 > > │ input=Comment("")                                                            │
00:03:26 verbose #1011 > > │ input=StringLiteral("c-B$><2;FA:&Q.svv?3<8-{")                               │
00:03:26 verbose #1012 > > │ input=Integer(-1295760168455727158)                                          │
00:03:26 verbose #1013 > > │ input=Comment("@#<$S\\1(3:q=)`")                                             │
00:03:26 verbose #1014 > > │ input=Operator(")")                                                          │
00:03:26 verbose #1015 > > │ input=Operator(")")                                                          │
00:03:26 verbose #1016 > > │ input=StringLiteral("=$^C.qd` mbd6%|xe'RP$4*")                               │
00:03:26 verbose #1017 > > │ input=Integer(-488529304346795998)                                           │
00:03:26 verbose #1018 > > │ input=StringLiteral("qtnk2=Dk")                                              │
00:03:26 verbose #1019 > > │ input=StringLiteral("/>M=f?1? e7<%<l3&")                                     │
00:03:26 verbose #1020 > > │ input=StringLiteral("[RxvB=+4.5)x)<W`")                                      │
00:03:26 verbose #1021 > > │ input=Integer(-8368873080317383467)                                          │
00:03:26 verbose #1022 > > │ input=Integer(1152834455317273687)                                           │
00:03:26 verbose #1023 > > │ input=Integer(9140646588218387717)                                           │
00:03:26 verbose #1024 > > │ input=StringLiteral("vW")                                                    │
00:03:26 verbose #1025 > > │ input=Operator(")")                                                          │
00:03:26 verbose #1026 > > │ input=StringLiteral("FKbU^e7Z.% mel%K7nCZt&{Fm:yX<?")                        │
00:03:26 verbose #1027 > > │ input=Integer(-2150123772807322830)                                          │
00:03:26 verbose #1028 > > │ input=Operator("(")                                                          │
00:03:26 verbose #1029 > > │ input=Comment("a`)@^N")                                                      │
00:03:26 verbose #1030 > > │ input=Integer(-3039940856834592196)                                          │
00:03:26 verbose #1031 > > │ input=Integer(848306190384765576)                                            │
00:03:26 verbose #1032 > > │ input=Identifier("OM6u36N57bXJ6Tg9Kf28aO1n92K")                              │
00:03:26 verbose #1033 > > │ input=Comment("\\/2?PO\\")                                                   │
00:03:26 verbose #1034 > > │ input=Identifier("Wk1dpyUTD3f9QPJcO9qIOFBn1vWf")                             │
00:03:26 verbose #1035 > > │ input=StringLiteral("")                                                      │
00:03:26 verbose #1036 > > │ input=Identifier("n7gl8R3c5")                                                │
00:03:26 verbose #1037 > > │ input=Integer(3981188875052506257)                                           │
00:03:26 verbose #1038 > > │ input=Comment("psl$=elA@?Du{")                                               │
00:03:26 verbose #1039 > > │ input=Integer(-1923142271345381579)                                          │
00:03:26 verbose #1040 > > │ input=Identifier("c7E633i70P1xmEDthRCDclfUnB624fJCT")                        │
00:03:26 verbose #1041 > > │ input=Comment("=$")                                                          │
00:03:26 verbose #1042 > > │ input=Identifier("y")                                                        │
00:03:26 verbose #1043 > > │ input=Comment("}{'")                                                         │
00:03:26 verbose #1044 > > │ input=Comment("")                                                            │
00:03:26 verbose #1045 > > │ input=Identifier("fWNZS63fpQwj")                                             │
00:03:26 verbose #1046 > > │ input=Identifier("cw7BXY7H3pf9LlMm3p6FBtdbPgnStZ1l")                         │
00:03:26 verbose #1047 > > │ input=Comment("g<!W:={F*V dB%u'l\\]H'~;zoU%)PI")                             │
00:03:26 verbose #1048 > > │ input=StringLiteral("MNgqt$n$/w$0yP/6/")                                     │
00:03:26 verbose #1049 > > │ input=Integer(1849474169787107617)                                           │
00:03:26 verbose #1050 > > │ input=Identifier("R8Dpg9hKQ")                                                │
00:03:26 verbose #1051 > > │ input=StringLiteral("nK%6-`dB^J)A';p/+y]%<")                                 │
00:03:26 verbose #1052 > > │ input=Operator("+")                                                          │
00:03:26 verbose #1053 > > │ input=Operator(")")                                                          │
00:03:26 verbose #1054 > > │ input=StringLiteral("Jaodx{m ^&*~mT9M9(k6?y/=;J?,X")                         │
00:03:26 verbose #1055 > > │ input=Operator("*")                                                          │
00:03:26 verbose #1056 > > │ input=Operator("=")                                                          │
00:03:26 verbose #1057 > > │ input=Identifier("nS6CHMQA3nYquFYsqVd2cZ0QfNoS")                             │
00:03:26 verbose #1058 > > │ input=StringLiteral("U%/=}Y_{A'$w.K$u?u`$*x0]]G@")                           │
00:03:26 verbose #1059 > > │ input=Integer(-7777803561919033435)                                          │
00:03:26 verbose #1060 > > │ input=Comment("CZ*\\NHQPZU^:z.v<`")                                          │
00:03:26 verbose #1061 > > │ input=Integer(7439466321646797062)                                           │
00:03:26 verbose #1062 > > │ input=Integer(-1573084981242901394)                                          │
00:03:26 verbose #1063 > > │ input=Comment("'RUDj+!`8hR/8x56&+x~")                                        │
00:03:26 verbose #1064 > > │ input=Comment("f$,AK<h{,\"'9#{k..JX]f$l%bm\"8{")                             │
00:03:26 verbose #1065 > > │ input=Integer(235533357883706524)                                            │
00:03:26 verbose #1066 > > │ input=Comment("")                                                            │
00:03:26 verbose #1067 > > │ input=StringLiteral(">b,{^XN<9/&ec|O|_e&Z1$+")                               │
00:03:26 verbose #1068 > > │ input=StringLiteral("y~")                                                    │
00:03:26 verbose #1069 > > │ input=StringLiteral("QT@.`[&U")                                              │
00:03:26 verbose #1070 > > │ input=Comment("6/=zQ")                                                       │
00:03:26 verbose #1071 > > │ input=Integer(3280713821905227928)                                           │
00:03:26 verbose #1072 > > │ input=Operator(")")                                                          │
00:03:26 verbose #1073 > > │ input=Integer(1695718497491870450)                                           │
00:03:26 verbose #1074 > > │ input=StringLiteral("}z-=?`mI;")                                             │
00:03:26 verbose #1075 > > │ input=Comment("]x0G/")                                                       │
00:03:26 verbose #1076 > > │ input=StringLiteral("'d0Fs/w%IaHU: RQ-*<|8Tq3T!!i")                          │
00:03:26 verbose #1077 > > │ input=Integer(-8104675414421286399)                                          │
00:03:26 verbose #1078 > > │ input=Comment("\\e")                                                         │
00:03:26 verbose #1079 > > │ input=Comment("]Up.U%@:'LC/c?1Xapg=L dX")                                    │
00:03:26 verbose #1080 > > │ input=Comment("r>C`&>")                                                      │
00:03:26 verbose #1081 > > │ input=Identifier("dm2v7patmzep7vZ5yp8AZ37X2FBEj")                            │
00:03:26 verbose #1082 > > │ input=Comment("2AY{N![=%>WI*vv_G")                                           │
00:03:26 verbose #1083 > > │ input=Integer(3837096867463591011)                                           │
00:03:26 verbose #1084 > > │ input=Operator(")")                                                          │
00:03:26 verbose #1085 > > │ input=Comment("HhL/o! /6M")                                                  │
00:03:26 verbose #1086 > > │                                                                              │
00:03:26 verbose #1087 > > │                                                                              │
00:03:26 verbose #1088 > > │ successes:                                                                   │
00:03:26 verbose #1089 > > │     adding_and_then_removing_an_item_from_the_cart_leaves_the_cart_unchanged │
00:03:26 verbose #1090 > > │     prop_parse_format_idempotent                                             │
00:03:26 verbose #1091 > > │     test_parse_number                                                        │
00:03:26 verbose #1092 > > │                                                                              │
00:03:26 verbose #1093 > > │ test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out;  │
00:03:26 verbose #1094 > > │ finished in 0.39s                                                            │
00:03:26 verbose #1095 > > │                                                                              │
00:03:26 verbose #1096 > > │                                                                              │
00:03:26 verbose #1097 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:26 verbose #1098 > >
00:03:26 verbose #1099 > > ── markdown ────────────────────────────────────────────────────────────────────
00:03:26 verbose #1100 > > ╭──────────────────────────────────────────────────────────────────────────────╮
00:03:26 verbose #1101 > > │ ### execute the binary in release mode                                       │
00:03:26 verbose #1102 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:26 verbose #1103 > >
00:03:26 verbose #1104 > > ── pwsh ────────────────────────────────────────────────────────────────────────
00:03:26 verbose #1105 > > { . $ScriptDir/../../../../workspace/target/release/spiral_temp_test$(_exe) } |
00:03:26 verbose #1106 > > Invoke-Block
00:03:26 verbose #1107 > >
00:03:26 verbose #1108 > > ╭─[ 245.11ms - stdout ]────────────────────────────────────────────────────────╮
00:03:26 verbose #1109 > > │ app=test                                                                     │
00:03:26 verbose #1110 > > │                                                                              │
00:03:26 verbose #1111 > > ╰──────────────────────────────────────────────────────────────────────────────╯
00:03:26 verbose #1112 > 00:03:20 verbose #3 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 86717 }
00:03:26 verbose #1113 > 00:03:20   debug #4 runtime.execute_with_options / { file_name = jupyter; arguments = ["nbconvert", "c:/home/git/polyglot/apps/spiral/temp/test/build.dib.ipynb", "--to", "html", "--HTMLExporter.theme=dark"]; options = { command = jupyter nbconvert "c:/home/git/polyglot/apps/spiral/temp/test/build.dib.ipynb" --to html --HTMLExporter.theme=dark; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:03:34 verbose #1114 > 00:03:28 verbose #5 ! [NbConvertApp] Converting notebook c:/home/git/polyglot/apps/spiral/temp/test/build.dib.ipynb to html
00:03:34 verbose #1115 > 00:03:28 verbose #6 ! C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:03:34 verbose #1116 > 00:03:28 verbose #7 !   validate(nb)
00:03:39 verbose #1117 > 00:03:33 verbose #8 ! [NbConvertApp] Writing 355850 bytes to c:\home\git\polyglot\apps\spiral\temp\test\build.dib.html
00:03:39 verbose #1118 > 00:03:33 verbose #9 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 663 }
00:03:39 verbose #1119 > 00:03:33   debug #10 spiral_builder.run / dib / jupyter nbconvert / { exit_code = 0; jupyter_result_length = 663 }
00:03:39 verbose #1120 > 00:03:33   debug #11 runtime.execute_with_options / { file_name = pwsh; arguments = ["-c", "$counter = 1; $path = 'c:/home/git/polyglot/apps/spiral/temp/test/build.dib.html'; (Get-Content $path -Raw) -replace '(id=\\\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"]; options = { command = pwsh -c "$counter = 1; $path = 'c:/home/git/polyglot/apps/spiral/temp/test/build.dib.html'; (Get-Content $path -Raw) -replace '(id=\"cell-id=)[a-fA-F0-9]{8}', { $_.Groups[1].Value + $counter++ } | Set-Content $path"; cancellation_token = None; environment_variables = Array(MutCell([])); on_line = None; stdin = None; trace = true; working_directory = None } }
00:03:43 verbose #1121 > 00:03:37 verbose #12 runtime.execute_with_options / result / { exit_code = 0; std_trace_length = 0 }
00:03:43 verbose #1122 > 00:03:37   debug #13 spiral_builder.run / dib / html cell ids / { exit_code = 0; pwsh_replace_html_result_length = 0 }
00:03:44 verbose #1123 > 00:03:38   debug #14 spiral_builder.run / dib / { exit_code = 0; result_length = 87439 }
00:03:44   debug #1124 runtime.execute_with_options_async / { exit_code = 0; output_length = 92303 }
00:03:44   debug #4 main / executeCommand / exitCode: 0 / command: ../../../../workspace/target/release/spiral_builder.exe dib --path build.dib
00:03:45 verbose #6 networking.wait_for_port_access / { port = 13805; retry = 0; timeout = Some 100; status = false }
00:03:45 verbose #7 async.run_with_timeout_async / { timeout = 100 }
In [ ]:
{ pwsh ../apps/spiral/vscode/build.ps1 } | Invoke-Block
bun install v1.1.7 (b0b7db5c)

Checked 203 installs across 191 packages (no changes) [4.17s]
Symlink already exists: C:\home\git\polyglot\apps\spiral\vscode\LICENSE -> C:\home\git\polyglot\LICENSE

  out\src\extension.js                  2.4kb
  out\media\cellOutputScrollButtons.js  1.9kb

⚡ Done in 64ms
 DONE  Packaged: out\spiral-vscode-0.0.1.vsix (26 files, 98.15KB)
In [ ]:
{ pwsh ../apps/ipfs/build.ps1 } | Invoke-Block
bun install v1.1.7 (b0b7db5c)

 Done! Checked 220 packages (no changes) [4.59s]
In [ ]:
{ pwsh ./outdated.ps1 } | Invoke-Block
Paket version 8.1.0-alpha004+7aa412f49b32de979c3d5acde07e88e6d47c965b
Resolving dependency graph...
Outdated packages found:
  Group: Main
    * Expecto.FsCheck 10.2.1-fscheck3 -> 10.2.1
    * FsCheck 3.0.0-rc3 -> 2.16.6
    * FSharp.Core 8.0.300-beta.24080.5 -> 8.0.400-beta.24280.1
    * Microsoft.AspNetCore.Connections.Abstractions 7.0 -> 9.0.0-preview.5.24306.11
    * Microsoft.AspNetCore.Http.Connections.Client 7.0 -> 9.0.0-preview.5.24306.11
    * Microsoft.AspNetCore.Http.Connections.Common 7.0 -> 9.0.0-preview.5.24306.11
    * Microsoft.AspNetCore.SignalR.Client 7.0 -> 9.0.0-preview.5.24306.11
    * Microsoft.AspNetCore.SignalR.Client.Core 7.0 -> 9.0.0-preview.5.24306.11
    * Microsoft.AspNetCore.SignalR.Common 7.0 -> 9.0.0-preview.5.24306.11
    * Microsoft.AspNetCore.SignalR.Protocols.Json 7.0 -> 9.0.0-preview.5.24306.11
    * Microsoft.Extensions.DependencyInjection 8.0 -> 9.0.0-preview.5.24306.7
    * Microsoft.Extensions.DependencyInjection.Abstractions 8.0.1 -> 9.0.0-preview.5.24306.7
    * Microsoft.Extensions.Features 7.0 -> 9.0.0-preview.5.24306.11
    * Microsoft.Extensions.Logging 8.0 -> 9.0.0-preview.5.24306.7
    * Microsoft.Extensions.Logging.Abstractions 8.0.1 -> 9.0.0-preview.5.24306.7
    * Microsoft.Extensions.Options 8.0.2 -> 9.0.0-preview.5.24306.7
    * Microsoft.Extensions.Primitives 8.0 -> 9.0.0-preview.5.24306.7
    * System.CodeDom 8.0 -> 9.0.0-preview.5.24306.7
    * System.Management 7.0 -> 9.0.0-preview.5.24306.7
    * System.Threading.Channels 8.0 -> 9.0.0-preview.5.24306.7
Total time taken: 1 minute, 2 seconds

CheckToml / toml: C:\home\git\polyglot\workspace\Cargo.toml
chat_contract_tests
================
Name        Project  Compat   Latest   Kind    Platform
----        -------  ------   ------   ----    --------
autocfg     1.3.0    ---      Removed  Build   ---
equivalent  1.0.1    Removed  ---      Normal  ---
hashbrown   0.12.3   ---      0.14.5   Normal  ---
hashbrown   0.14.5   0.12.3   ---      Normal  ---
indexmap    1.9.3    ---      2.2.6    Normal  ---
indexmap    2.2.6    1.9.3    ---      Normal  ---

CheckToml / toml: C:\home\git\polyglot\apps\chat\contract\Cargo.toml
All dependencies are up to date, yay!

CheckToml / toml: C:\home\git\polyglot\apps\chat\contract\tests\Cargo.toml
Name                  Project  Compat   Latest   Kind    Platform
----                  -------  ------   ------   ----    --------
indexmap->autocfg     1.3.0    Removed  Removed  Build   ---
indexmap->hashbrown   0.12.3   0.14.5   0.14.5   Normal  ---
serde_with->indexmap  1.9.3    2.2.6    2.2.6    Normal  ---

CheckToml / toml: C:\home\git\polyglot\apps\plot\Cargo.toml
All dependencies are up to date, yay!

CheckJson / json: C:/home/git/polyglot
$ npm-check-updates --target greatest
Using bun
Checking C:\home\git\polyglot\package.json

CheckJson / json: C:/home/git/polyglot/apps/ipfs
$ npm-check-updates --target greatest
Using bun
Checking C:\home\git\polyglot\apps\ipfs\package.json

CheckJson / json: C:/home/git/polyglot/apps/spiral/temp/extension
$ npm-check-updates --target greatest
Using bun
Checking C:\home\git\polyglot\apps\spiral\temp\extension\package.json

CheckJson / json: C:/home/git/polyglot/apps/spiral/vscode
$ npm-check-updates --target greatest
Using bun
Checking C:\home\git\polyglot\apps\spiral\vscode\package.json

CheckJson / json: C:/home/git/polyglot/deps/The-Spiral-Language/VS Code Plugin
$ npm-check-updates --target greatest
Checking C:\home\git\polyglot\deps\The-Spiral-Language\VS Code Plugin\package.json